hexsha stringlengths 40 40 | size int64 19 11.4M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 270 | max_stars_repo_name stringlengths 5 110 | 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 3 270 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 67k ⌀ | 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 3 270 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 78 | 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 19 11.4M | avg_line_length float64 1.93 229k | max_line_length int64 12 688k | alphanum_fraction float64 0.07 0.99 | matches listlengths 1 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
52a835b6b70b5485876c5481d0f550e79d142463 | 1,701 | hpp | C++ | src/shader_program_manager.hpp | Ybalrid/gl_framework | 4cf57b63306e0d95040ee7d7b5c710be0efb59de | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | 3 | 2019-09-16T01:42:10.000Z | 2021-11-28T02:58:42.000Z | src/shader_program_manager.hpp | Ybalrid/gl_framework | 4cf57b63306e0d95040ee7d7b5c710be0efb59de | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | null | null | null | src/shader_program_manager.hpp | Ybalrid/gl_framework | 4cf57b63306e0d95040ee7d7b5c710be0efb59de | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | 2 | 2020-01-28T23:33:00.000Z | 2021-11-08T06:14:41.000Z | #pragma once
#include "shader.hpp"
#include <vector>
using shader_handle = std::vector<shader>::size_type;
//Object pool for shader programs
class shader_program_manager
{
std::vector<shader> shaders;
std::vector<size_t> unallocated_shaders;
static shader_program_manager* manager;
public:
static constexpr shader_handle invalid_shader { std::numeric_limits<shader_handle>::max() };
shader_program_manager();
~shader_program_manager();
shader_program_manager(const shader_program_manager&) = delete;
shader_program_manager(shader_program_manager&&) = delete;
shader_program_manager& operator=(const shader_program_manager&) = delete;
shader_program_manager& operator=(shader_program_manager&&) = delete;
static shader& get_from_handle(shader_handle h);
static void get_rid_of(shader_handle h);
template <typename... ConstructorArgs>
static shader_handle create_shader(ConstructorArgs... args)
{
//no "unallocated" shader in the shaders array
if(manager->unallocated_shaders.empty())
{
manager->shaders.emplace_back(args...);
return manager->shaders.size() - 1;
}
const shader_handle handle = manager->unallocated_shaders.back();
manager->unallocated_shaders.pop_back();
get_from_handle(handle) = shader(args...);
return handle;
}
///Set the given uniform for *all* currently existing shader objects
template <typename uniform_parameter>
static void set_frame_uniform(shader::uniform type, uniform_parameter param)
{
for(auto& a_shader : manager->shaders)
{
if(!a_shader.valid()) continue;
a_shader.use();
a_shader.set_uniform(type, param);
}
shader::use_0();
}
};
| 29.327586 | 94 | 0.731335 | [
"object",
"vector"
] |
52aa3b366dfa067da28bb4ffcdab7e198eba547a | 12,844 | cpp | C++ | polytracker/src/dfsan_sources/taint_sources.cpp | RiS3-Lab/polytracker | 2ea047738717ff0c22e3b157934667c9ed84fa6f | [
"Apache-2.0"
] | null | null | null | polytracker/src/dfsan_sources/taint_sources.cpp | RiS3-Lab/polytracker | 2ea047738717ff0c22e3b157934667c9ed84fa6f | [
"Apache-2.0"
] | 1 | 2020-09-01T15:58:13.000Z | 2021-01-18T16:24:56.000Z | polytracker/src/dfsan_sources/taint_sources.cpp | RiS3-Lab/polytracker | 2ea047738717ff0c22e3b157934667c9ed84fa6f | [
"Apache-2.0"
] | null | null | null | #include "dfsan/dfsan_log_mgmt.h"
#include <algorithm>
#include <assert.h>
#include <fcntl.h>
#include <iostream>
#include <mutex>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <sys/mman.h>
#include <sys/stat.h>
#include <thread>
#include <time.h>
#include <unistd.h>
#include <vector>
#define BYTE 1
#define EXT_C_FUNC extern "C" __attribute__((visibility("default")))
#define EXT_CXX_FUNC extern __attribute__((visibility("default")))
#define PPCAT_NX(A, B) A##B
#define PPCAT(A, B) PPCAT_NX(A, B)
#ifdef DEBUG_INFO
#include <iostream>
#endif
typedef PPCAT(PPCAT(uint, DFSAN_LABEL_BITS), _t) uint_dfsan_label_t;
extern taintManager *taint_manager;
// To create some label functions
// Following the libc custom functions from custom.cc
EXT_C_FUNC int __dfsw_open(const char *path, int oflags, dfsan_label path_label,
dfsan_label flag_label, dfsan_label *va_labels,
dfsan_label *ret_label, ...) {
va_list args;
va_start(args, ret_label);
int fd = open(path, oflags, args);
va_end(args);
#ifdef DEBUG_INFO
fprintf(stderr, "open: filename is : %s, fd is %d \n", path, fd);
#endif
if (fd >= 0 && taint_manager->isTracking(path)) {
#ifdef DEBUG_INFO
std::cout << "open: adding new taint info!" << std::endl;
#endif
taint_manager->createNewTaintInfo(path, fd);
}
*ret_label = 0;
return fd;
}
EXT_C_FUNC int __dfsw_openat(int dirfd, const char *path, int oflags,
dfsan_label path_label, dfsan_label flag_label,
dfsan_label *va_labels, dfsan_label *ret_label,
...) {
va_list args;
va_start(args, ret_label);
int fd = openat(dirfd, path, oflags, args);
va_end(args);
#ifdef DEBUG_INFO
fprintf(stderr, "openat: filename is : %s, fd is %d \n", path, fd);
#endif
if (fd >= 0 && taint_manager->isTracking(path)) {
#ifdef DEBUG_INFO
std::cout << "openat: adding new taint info!" << std::endl;
#endif
taint_manager->createNewTaintInfo(path, fd);
}
*ret_label = 0;
return fd;
}
EXT_C_FUNC FILE *__dfsw_fopen64(const char *filename, const char *mode,
dfsan_label fn_label, dfsan_label mode_label,
dfsan_label *ret_label) {
FILE *fd = fopen(filename, mode);
#ifdef DEBUG_INFO
fprintf(stderr, "### fopen64, filename is : %s, fd is %p \n", filename, fd);
fflush(stderr);
#endif
if (fd != NULL && taint_manager->isTracking(filename)) {
#ifdef DEBUG_INFO
std::cout << "fopen64: adding new taint info!" << std::endl;
#endif
taint_manager->createNewTaintInfo(filename, fd);
}
*ret_label = 0;
return fd;
}
EXT_C_FUNC FILE *__dfsw_fopen(const char *filename, const char *mode,
dfsan_label fn_label, dfsan_label mode_label,
dfsan_label *ret_label) {
FILE *fd = fopen(filename, mode);
#ifdef DEBUG_INFO
fprintf(stderr, "### fopen, filename is : %s, fd is %p \n", filename, fd);
#endif
if (fd != NULL && taint_manager->isTracking(filename)) {
#ifdef DEBUG_INFO
std::cout << "fopen: adding new taint info!" << std::endl;
#endif
taint_manager->createNewTaintInfo(filename, fd);
}
*ret_label = 0;
return fd;
}
EXT_C_FUNC int __dfsw_close(int fd, dfsan_label fd_label,
dfsan_label *ret_label) {
int ret = close(fd);
#ifdef DEBUG_INFO
fprintf(stderr, "### close, fd is %d , ret is %d \n", fd, ret);
#endif
if (ret == 0 && taint_manager->isTracking(fd)) {
taint_manager->closeSource(fd);
}
*ret_label = 0;
return ret;
}
EXT_C_FUNC int __dfsw_fclose(FILE *fd, dfsan_label fd_label,
dfsan_label *ret_label) {
int ret = fclose(fd);
#ifdef DEBUG_INFO
fprintf(stderr, "### close, fd is %p, ret is %d \n", fd, ret);
#endif
if (ret == 0 && taint_manager->isTracking(fd)) {
taint_manager->closeSource(fd);
}
*ret_label = 0;
return ret;
}
EXT_C_FUNC ssize_t __dfsw_read(int fd, void *buff, size_t size,
dfsan_label fd_label, dfsan_label buff_label,
dfsan_label size_label, dfsan_label *ret_label) {
long read_start = lseek(fd, 0, SEEK_CUR);
ssize_t ret_val = read(fd, buff, size);
#ifdef DEBUG_INFO
fprintf(stderr, "read: fd is %d, buffer addr is %p, size is %ld\n", fd, buff,
size);
#endif
// Check if we are tracking this fd.
if (taint_manager->isTracking(fd)) {
if (ret_val > 0) {
taint_manager->taintData(fd, (char *)buff, read_start, ret_val);
}
*ret_label = 0;
} else {
*ret_label = 0;
}
return ret_val;
}
EXT_C_FUNC ssize_t __dfsw_pread(int fd, void *buf, size_t count, off_t offset,
dfsan_label fd_label, dfsan_label buf_label,
dfsan_label count_label,
dfsan_label offset_label,
dfsan_label *ret_label) {
ssize_t ret = pread(fd, buf, count, offset);
if (taint_manager->isTracking(fd)) {
if (ret > 0) {
taint_manager->taintData(fd, (char *)buf, offset, ret);
}
*ret_label = 0;
} else {
*ret_label = 0;
}
return ret;
}
EXT_C_FUNC ssize_t __dfsw_pread64(int fd, void *buf, size_t count, off_t offset,
dfsan_label fd_label, dfsan_label buf_label,
dfsan_label count_label,
dfsan_label offset_label,
dfsan_label *ret_label) {
#ifdef DEBUG_INFO
std::cout << "Inside of pread64" << std::endl;
#endif
ssize_t ret = pread(fd, buf, count, offset);
if (taint_manager->isTracking(fd)) {
if (ret > 0) {
taint_manager->taintData(fd, (char *)buf, offset, ret);
}
*ret_label = 0;
} else {
*ret_label = 0;
}
return ret;
}
EXT_C_FUNC size_t __dfsw_fread(void *buff, size_t size, size_t count, FILE *fd,
dfsan_label buf_label, dfsan_label size_label,
dfsan_label count_label, dfsan_label fd_label,
dfsan_label *ret_label) {
long offset = ftell(fd);
size_t ret = fread(buff, size, count, fd);
#ifdef DEBUG_INFO
fprintf(stderr, "### fread, fd is %p \n", fd);
fflush(stderr);
#endif
if (taint_manager->isTracking(fd)) {
if (ret > 0) {
// fread returns number of objects read specified by size
taint_manager->taintData(fd, (char *)buff, offset, ret * size);
}
*ret_label = 0;
} else {
#ifdef DEBUG_INFO
fprintf(stderr, "### fread, not target fd!\n");
fflush(stderr);
#endif
*ret_label = 0;
}
return ret;
}
EXT_C_FUNC size_t __dfsw_fread_unlocked(void *buff, size_t size, size_t count,
FILE *fd, dfsan_label buf_label,
dfsan_label size_label,
dfsan_label count_label,
dfsan_label fd_label,
dfsan_label *ret_label) {
long offset = ftell(fd);
size_t ret = fread_unlocked(buff, size, count, fd);
#ifdef DEBUG_INFO
fprintf(stderr, "### fread_unlocked %p,range is %ld, %ld/%ld\n", fd, offset,
ret, count);
#endif
if (taint_manager->isTracking(fd)) {
if (ret > 0) {
taint_manager->taintData(fd, (char *)buff, offset, ret * size);
}
*ret_label = 0;
} else {
*ret_label = 0;
}
return ret;
}
EXT_C_FUNC int __dfsw_fgetc(FILE *fd, dfsan_label fd_label,
dfsan_label *ret_label) {
long offset = ftell(fd);
int c = fgetc(fd);
*ret_label = 0;
#ifdef DEBUG_INFO
fprintf(stderr, "### fgetc %p, range is %ld, 1 \n", fd, offset);
#endif
if (c != EOF && taint_manager->isTracking(fd)) {
*ret_label = taint_manager->createReturnLabel(
offset, taint_manager->getTargetInfo(fd)->target_name);
}
return c;
}
EXT_C_FUNC int __dfsw_fgetc_unlocked(FILE *fd, dfsan_label fd_label,
dfsan_label *ret_label) {
long offset = ftell(fd);
int c = fgetc_unlocked(fd);
*ret_label = 0;
#ifdef DEBUG_INFO
fprintf(stderr, "### fgetc_unlocked %p, range is %ld, 1 \n", fd, offset);
#endif
if (c != EOF && taint_manager->isTracking(fd)) {
*ret_label = taint_manager->createReturnLabel(
offset, taint_manager->getTargetInfo(fd)->target_name);
}
return c;
}
EXT_C_FUNC int __dfsw__IO_getc(FILE *fd, dfsan_label fd_label,
dfsan_label *ret_label) {
long offset = ftell(fd);
int c = getc(fd);
*ret_label = 0;
#ifdef DEBUG_INFO
fprintf(stderr, "### _IO_getc %p, range is %ld, 1 , c is %d\n", fd, offset,
c);
#endif
if (taint_manager->isTracking(fd) && c != EOF) {
*ret_label = taint_manager->createReturnLabel(
offset, taint_manager->getTargetInfo(fd)->target_name);
}
return c;
}
EXT_C_FUNC int __dfsw_getchar(dfsan_label *ret_label) {
long offset = ftell(stdin);
int c = getchar();
*ret_label = 0;
#ifdef DEBUG_INFO
fprintf(stderr, "### getchar stdin, range is %ld, 1 \n", offset);
#endif
if (c != EOF) {
*ret_label = taint_manager->createReturnLabel(
offset, taint_manager->getTargetInfo(stdin)->target_name);
}
return c;
}
EXT_C_FUNC char *__dfsw_fgets(char *str, int count, FILE *fd,
dfsan_label str_label, dfsan_label count_label,
dfsan_label fd_label, dfsan_label *ret_label) {
long offset = ftell(fd);
char *ret = fgets(str, count, fd);
#ifdef DEBUG_INFO
fprintf(stderr, "fgets %p, range is %ld, %ld \n", fd, offset, strlen(ret));
#endif
if (ret && taint_manager->isTracking(fd)) {
int len = strlen(ret);
taint_manager->taintData(fd, str, offset, len);
*ret_label = str_label;
} else {
*ret_label = 0;
}
return ret;
}
EXT_C_FUNC char *__dfsw_gets(char *str, dfsan_label str_label,
dfsan_label *ret_label) {
long offset = ftell(stdin);
char *ret = fgets(str, sizeof str, stdin);
#ifdef DEBUG_INFO
fprintf(stderr, "gets stdin, range is %ld, %ld \n", offset, strlen(ret) + 1);
#endif
if (ret) {
taint_manager->taintData(stdin, str, offset, strlen(ret));
*ret_label = str_label;
} else {
*ret_label = 0;
}
return ret;
}
EXT_C_FUNC ssize_t __dfsw_getdelim(char **lineptr, size_t *n, int delim,
FILE *fd, dfsan_label buf_label,
dfsan_label size_label,
dfsan_label delim_label,
dfsan_label fd_label,
dfsan_label *ret_label) {
long offset = ftell(fd);
ssize_t ret = getdelim(lineptr, n, delim, fd);
#ifdef DEBUG_INFO
fprintf(stderr, "### getdelim %p,range is %ld, %ld\n", fd, offset, ret);
#endif
if (ret > 0 && taint_manager->isTracking(fd)) {
taint_manager->taintData(fd, *lineptr, offset, ret);
}
*ret_label = 0;
return ret;
}
EXT_C_FUNC ssize_t __dfsw___getdelim(char **lineptr, size_t *n, int delim,
FILE *fd, dfsan_label buf_label,
dfsan_label size_label,
dfsan_label delim_label,
dfsan_label fd_label,
dfsan_label *ret_label) {
long offset = ftell(fd);
ssize_t ret = __getdelim(lineptr, n, delim, fd);
#ifdef DEBUG_INFO
fprintf(stderr, "### __getdelim %p,range is %ld, %ld\n", fd, offset, ret);
#endif
if (ret > 0 && taint_manager->isTracking(fd)) {
taint_manager->taintData(fd, *lineptr, offset, ret);
}
*ret_label = 0;
return ret;
}
EXT_C_FUNC void *__dfsw_mmap(void *start, size_t length, int prot, int flags,
int fd, off_t offset, dfsan_label start_label,
dfsan_label len_label, dfsan_label prot_label,
dfsan_label flags_label, dfsan_label fd_label,
dfsan_label offset_label, dfsan_label *ret_label) {
void *ret = mmap(start, length, prot, flags, fd, offset);
if (ret && taint_manager->isTracking(fd)) {
taint_manager->taintData(fd, (char *)ret, offset, length);
}
*ret_label = 0;
return ret;
}
EXT_C_FUNC int __dfsw_munmap(void *addr, size_t length, dfsan_label addr_label,
dfsan_label length_label, dfsan_label *ret_label) {
#ifdef DEBUG_INFO
fprintf(stderr, "### munmap, addr %p, length %zu \n", addr, length);
#endif
int ret = munmap(addr, length);
dfsan_set_label(0, addr, length);
*ret_label = 0;
return ret;
}
| 32.352645 | 80 | 0.600747 | [
"vector"
] |
52ad9a6b549fa712399959c07229760734e8a0e2 | 2,197 | hpp | C++ | src/rayquery.hpp | nvpro-samples/vk_raytrace | c49ae6aea107cba084fd296b0b2e73fa1e13e067 | [
"Apache-2.0"
] | 253 | 2019-12-03T13:56:46.000Z | 2022-03-30T23:05:07.000Z | src/rayquery.hpp | nvpro-samples/vk_raytrace | c49ae6aea107cba084fd296b0b2e73fa1e13e067 | [
"Apache-2.0"
] | 15 | 2020-12-15T01:58:58.000Z | 2022-02-02T19:49:44.000Z | src/rayquery.hpp | nvpro-samples/vk_raytrace | c49ae6aea107cba084fd296b0b2e73fa1e13e067 | [
"Apache-2.0"
] | 15 | 2019-12-07T11:03:09.000Z | 2022-02-28T02:03:56.000Z | /*
* Copyright (c) 2021, NVIDIA CORPORATION. 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.
*
* SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "nvvk/resourceallocator_vk.hpp"
#include "nvvk/debug_util_vk.hpp"
#include "nvvk/descriptorsets_vk.hpp"
#include "nvvk/profiler_vk.hpp"
#include "renderer.h"
#include "shaders/host_device.h"
/*
Creating the Compute ray query renderer
* Requiring:
- Acceleration structure (AccelSctruct / Tlas)
- An image (Post StoreImage)
- The glTF scene (vertex, index, materials, ... )
* Usage
- setup as usual
- create
- run
*/
class RayQuery : public Renderer
{
public:
void setup(const VkDevice& device, const VkPhysicalDevice& physicalDevice, uint32_t familyIndex, nvvk::ResourceAllocator* allocator) override;
void destroy() override;
void create(const VkExtent2D& size, const std::vector<VkDescriptorSetLayout>& rtDescSetLayouts, Scene* scene) override;
void run(const VkCommandBuffer& cmdBuf, const VkExtent2D& size, nvvk::ProfilerVK& profiler, const std::vector<VkDescriptorSet>& descSets) override;
const std::string name() override { return std::string("RQ"); }
private:
uint32_t m_nbHit{0};
private:
// Setup
nvvk::ResourceAllocator* m_pAlloc{nullptr}; // Allocator for buffer, images, acceleration structures
nvvk::DebugUtil m_debug; // Utility to name objects
VkDevice m_device{VK_NULL_HANDLE};
uint32_t m_queueIndex{0};
VkPipelineLayout m_pipelineLayout{VK_NULL_HANDLE};
VkPipeline m_pipeline{VK_NULL_HANDLE};
};
| 32.791045 | 162 | 0.72508 | [
"vector"
] |
52b37d509c1712c3d7dee4cdf9e29aba4bf667cc | 6,061 | hpp | C++ | include/modprop/neural/FullyConnectedNet.hpp | Humhu/modprop | 0cff8240d5e1522f620de8004c22a74491a0c9fb | [
"AFL-3.0"
] | 1 | 2017-11-10T00:54:53.000Z | 2017-11-10T00:54:53.000Z | include/modprop/neural/FullyConnectedNet.hpp | Humhu/modprop | 0cff8240d5e1522f620de8004c22a74491a0c9fb | [
"AFL-3.0"
] | null | null | null | include/modprop/neural/FullyConnectedNet.hpp | Humhu/modprop | 0cff8240d5e1522f620de8004c22a74491a0c9fb | [
"AFL-3.0"
] | null | null | null | #pragma once
#include "modprop/neural/NullActivation.hpp"
#include "modprop/compo/Interfaces.h"
#include "modprop/compo/Parametric.hpp"
#include <sstream>
namespace percepto
{
// TODO Have a nicer interface for pulling the entire network configuration,
// not just the parameter vector
template <template<typename> class Layer, typename Activation>
class FullyConnectedNet
{
public:
enum OutputLayerMode
{
OUTPUT_UNRECTIFIED = 0,
OUTPUT_RECTIFIED
};
typedef Activation ActivationType;
typedef Layer<ActivationType> RectifiedLayerType;
typedef typename RectifiedLayerType::InputType InputType;
typedef typename RectifiedLayerType::OutputType OutputType;
typedef Layer<NullActivation> UnrectifiedLayerType;
typedef Source<InputType> InputSourceType;
typedef Source<VectorType> OutputSourceType;
FullyConnectedNet() {}
FullyConnectedNet( unsigned int inputDim,
unsigned int outputDim,
unsigned int numHiddenLayers,
unsigned int layerWidth,
const ActivationType& activation,
OutputLayerMode outputMode = OUTPUT_UNRECTIFIED )
: _outputMode( outputMode ),
_unrectifiedLayer( layerWidth, outputDim, NullActivation() )
{
if( numHiddenLayers == 0 )
{
throw std::runtime_error( "Need at least one hidden layer." );
}
_layers.reserve( numHiddenLayers + 1 );
// Create first layer
_layers.emplace_back( inputDim, layerWidth, activation );
// Create middle layers
for( unsigned int i = 1; i < numHiddenLayers; i++ )
{
_layers.emplace_back( layerWidth, layerWidth, activation );
}
// Unrectified layer is created automatically
if( _outputMode == OUTPUT_UNRECTIFIED )
{
_unrectifiedLayer.SetSource( &_layers.back() );
}
else if( _outputMode == OUTPUT_RECTIFIED )
{
_layers.emplace_back( layerWidth, outputDim, activation );
}
else
{
throw std::runtime_error( "Unknown output mode received." );
}
// Connect all layers
for( unsigned int i = 1; i < _layers.size(); i++ )
{
_layers[i].SetSource( &_layers[i-1] );
}
}
FullyConnectedNet( const FullyConnectedNet& other )
: _outputMode( other._outputMode ),
// _layers( other._layers ),
_unrectifiedLayer( other._unrectifiedLayer ),
_paramSets( other._paramSets ),
_params( other._params )
{
for( unsigned int i = 0; i < other._layers.size(); ++i )
{
_layers.emplace_back( other._layers[i] );
}
for( unsigned int i = 1; i < _layers.size(); ++i )
{
_layers[i].SetSource( &_layers[i-1] );
}
if( _outputMode == OUTPUT_UNRECTIFIED )
{
_unrectifiedLayer.SetSource( &_layers.back() );
}
}
void SetOutputOffsets( const VectorType& off )
{
if( _outputMode == OUTPUT_UNRECTIFIED )
{
_unrectifiedLayer.SetOffsets( off );
}
else
{
_layers.back().SetOffsets( off );
}
}
Parameters::Ptr CreateParameters()
{
_paramSets.clear();
_params = ParameterWrapper();
_paramSets.reserve( NumLayers() );
for( unsigned int i = 0; i < _layers.size(); i++ )
{
_paramSets.push_back( _layers[i].CreateParameters() );
_params.AddParameters( _paramSets.back() );
}
if( _outputMode == OUTPUT_UNRECTIFIED )
{
_paramSets.push_back( _unrectifiedLayer.CreateParameters() );
_params.AddParameters( _paramSets.back() );
}
return std::make_shared<ParameterWrapper>( _params );
}
const std::vector<Parameters::Ptr>& GetParameterSets() const
{
return _paramSets;
}
void SetParameterSets( const std::vector<Parameters::Ptr>& params )
{
if( params.size() != NumLayers() )
{
std::stringstream ss;
ss << "FullyConnectedNet: Received " << params.size() <<
" param sets but expected " << NumLayers();
throw std::runtime_error( ss.str() );
}
for( unsigned int i = 0; i < _layers.size(); i++ )
{
_layers[i].SetParameters( params[i] );
}
if( _outputMode == OUTPUT_UNRECTIFIED )
{
_unrectifiedLayer.SetParameters( params.back() );
}
}
void SetSource( InputSourceType* _base )
{
_layers.front().SetSource( _base );
}
unsigned int NumLayers() const
{
if( _outputMode == OUTPUT_UNRECTIFIED )
{
return _layers.size() + 1;
}
else //( _outputMode == OUTPUT_RECTIFIED )
{
return _layers.size();
}
}
Source<VectorType>& GetOutputSource()
{
if( _outputMode == OUTPUT_UNRECTIFIED )
{
return _unrectifiedLayer;
}
// Constructor guarantees that this is true
else //( _outputMode == OUTPUT_RECTIFIED )
{
return _layers.back();
}
}
const Source<VectorType>& GetOutputSource() const
{
if( _outputMode == OUTPUT_UNRECTIFIED )
{
return _unrectifiedLayer;
}
// Constructor guarantees that this is true
else //( _outputMode == OUTPUT_RECTIFIED )
{
return _layers.back();
}
}
OutputType GetOutput() const
{
if( _outputMode == OUTPUT_UNRECTIFIED )
{
return _unrectifiedLayer.GetOutput();
}
else
{
return _layers.back().GetOutput();
}
}
unsigned int NumHiddenLayers() const { return _layers.size(); }
unsigned int OutputDim() const { return _layers.back().OutputDim(); }
unsigned int InputDim() const { return _layers.front().InputDim(); }
const ActivationType& GetActivation() const { return _layers.front().GetActivation(); }
private:
OutputLayerMode _outputMode;
std::vector<RectifiedLayerType> _layers;
UnrectifiedLayerType _unrectifiedLayer; // May be needed for unrectified out
std::vector<Parameters::Ptr> _paramSets;
ParameterWrapper _params;
template <template<typename> class L, typename A>
friend std::ostream& operator<<( std::ostream& os, const FullyConnectedNet<L, A>& n );
};
template <template<typename> class L, typename A>
std::ostream& operator<<( std::ostream& os, const FullyConnectedNet<L, A>& n )
{
for( unsigned int i = 0; i < n._layers.size(); i++ )
{
os << "layer " << i << std::endl << n._layers[i] << std::endl;
}
if( n._outputMode == FullyConnectedNet<L, A>::OUTPUT_UNRECTIFIED )
{
os << "layer " << n._layers.size() << std::endl << n._unrectifiedLayer << std::endl;
}
return os;
}
}
| 24.738776 | 88 | 0.680746 | [
"vector"
] |
52b7dbb3b92dab746f23ac47f6746d0fcca2759d | 4,131 | cpp | C++ | dataProvider/dmProvider.cpp | lgirdk/rtmessage | c0fe7a41990220a962c3bae6ed04f650e88ec6d1 | [
"Apache-2.0"
] | null | null | null | dataProvider/dmProvider.cpp | lgirdk/rtmessage | c0fe7a41990220a962c3bae6ed04f650e88ec6d1 | [
"Apache-2.0"
] | null | null | null | dataProvider/dmProvider.cpp | lgirdk/rtmessage | c0fe7a41990220a962c3bae6ed04f650e88ec6d1 | [
"Apache-2.0"
] | 3 | 2021-04-23T04:31:50.000Z | 2022-02-15T05:28:20.000Z | /*
##########################################################################
# If not stated otherwise in this file or this component's LICENSE
# file the following copyright and licenses apply:
#
# Copyright 2019 RDK Management
#
# 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 <cstring>
#include <iostream>
#include "dmProvider.h"
#include <rtError.h>
#include <rtLog.h>
dmProvider::dmProvider() : m_isTransaction(false)
{
}
dmProvider::~dmProvider()
{
}
void
dmProvider::doGet(std::vector<dmPropertyInfo> const& params, dmQueryResult& result)
{
for (auto const& propInfo : params)
{
auto itr = m_provider_functions.find(propInfo.name());
if ((itr != m_provider_functions.end()) && (itr->second.getter != nullptr))
{
dmValue val = itr->second.getter();
result.addValue(propInfo, val);
}
else
{
dmQueryResult temp;
doGet(propInfo, temp);
if (temp.status() == RT_PROP_NOT_FOUND || temp.values().size() == 0)
{
rtLog_Debug("property:%s not found", propInfo.name().c_str());
result.addValue(propInfo, "", RT_PROP_NOT_FOUND, "Property not found");
}
else
{
result.addValue(propInfo, temp.values()[0].Value);
}
}
}
}
void
dmProvider::doGet(dmPropertyInfo const& /*param*/, dmQueryResult& /*result*/)
{
// EMPTY: overridden by the user
}
void
dmProvider::doSet(std::vector<dmNamedValue> const& params, dmQueryResult& result)
{
bool doTransaction(params.size() > 1);
if(doTransaction)
{
m_isTransaction = true;
beginTransaction();
}
for (auto const& value : params)
{
if(!value.info().isWritable())
{
rtLog_Debug("property:%s not writable", value.name().c_str());
result.addValue(value.info(), "", RT_ERROR, "Property not writable");
continue;
}
auto itr = m_provider_functions.find(value.name());
if ((itr != m_provider_functions.end()) && (itr->second.setter != nullptr))
{
itr->second.setter(value.value());
result.addValue(value.info(), value.value());
}
else
{
dmQueryResult temp;
doSet(value.info(), value.value(), temp);
if (temp.status() == RT_PROP_NOT_FOUND || temp.values().size() == 0)
{
rtLog_Debug("property:%s not found", value.name().c_str());
result.addValue(value.info(), "", RT_PROP_NOT_FOUND, "Property not found");
}
else
{
result.addValue(value.info(), temp.values()[0].Value);
}
}
}
if(doTransaction)
{
endTransaction();
m_isTransaction = false;
}
}
void
dmProvider::doSet(dmPropertyInfo const& /*info*/, dmValue const& /*value*/, dmQueryResult& /*result*/)
{
// EMPTY: overridden by the user
}
// inserts function callback
void
dmProvider::onGet(std::string const& propertyName, getter_function func)
{
auto itr = m_provider_functions.find(propertyName);
if (itr != m_provider_functions.end())
{
itr->second.getter = func;
}
else
{
provider_functions funcs;
funcs.setter = nullptr;
funcs.getter = func;
m_provider_functions.insert(std::make_pair(propertyName, funcs));
}
}
// inserts function callback
void
dmProvider::onSet(std::string const& propertyName, setter_function func)
{
auto itr = m_provider_functions.find(propertyName);
if (itr != m_provider_functions.end())
{
itr->second.setter = func;
}
else
{
provider_functions funcs;
funcs.setter = func;
funcs.getter = nullptr;
m_provider_functions.insert(std::make_pair(propertyName, funcs));
}
}
| 26.312102 | 102 | 0.637618 | [
"vector"
] |
52bd0b5e38bb496cc53b54d1bfbcf7e52da9fb2c | 18,918 | hh | C++ | third-party/gecode/gecode/search.hh | PetterS/easy-IP | d57607333b9844a32723db5e1d748b9eeb4fb2a2 | [
"BSD-2-Clause"
] | 12 | 2015-12-04T05:59:12.000Z | 2020-08-01T00:33:30.000Z | third-party/gecode/gecode/search.hh | PetterS/easy-IP | d57607333b9844a32723db5e1d748b9eeb4fb2a2 | [
"BSD-2-Clause"
] | 1 | 2020-10-04T19:41:26.000Z | 2020-10-04T19:41:26.000Z | third-party/gecode/gecode/search.hh | PetterS/easy-IP | d57607333b9844a32723db5e1d748b9eeb4fb2a2 | [
"BSD-2-Clause"
] | 6 | 2016-04-10T20:31:03.000Z | 2020-10-04T06:13:27.000Z | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
* Guido Tack <tack@gecode.org>
*
* Copyright:
* Christian Schulte, 2002
* Guido Tack, 2004
*
* Last modified:
* $Date: 2013-10-30 15:42:34 +0100 (on, 30 okt 2013) $ by $Author: schulte $
* $Revision: 14037 $
*
* This file is part of Gecode, the generic constraint
* development environment:
* http://www.gecode.org
*
* 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 __GECODE_SEARCH_HH__
#define __GECODE_SEARCH_HH__
#include <gecode/kernel.hh>
/*
* Configure linking
*
*/
#if !defined(GECODE_STATIC_LIBS) && \
(defined(__CYGWIN__) || defined(__MINGW32__) || defined(_MSC_VER))
#ifdef GECODE_BUILD_SEARCH
#define GECODE_SEARCH_EXPORT __declspec( dllexport )
#else
#define GECODE_SEARCH_EXPORT __declspec( dllimport )
#endif
#else
#ifdef GECODE_GCC_HAS_CLASS_VISIBILITY
#define GECODE_SEARCH_EXPORT __attribute__ ((visibility("default")))
#else
#define GECODE_SEARCH_EXPORT
#endif
#endif
// Configure auto-linking
#ifndef GECODE_BUILD_SEARCH
#define GECODE_LIBRARY_NAME "Search"
#include <gecode/support/auto-link.hpp>
#endif
namespace Gecode { namespace Search {
/// %Sequential search engine implementations
namespace Sequential {}
/// %Parallel search engine implementations
namespace Parallel {}
/// %Meta search engine implementations
namespace Meta {}
/**
* \brief %Search configuration
*
* \ingroup TaskModelSearch
*/
namespace Config {
/// Whether engines create a clone when being initialized
const bool clone = true;
/// Number of threads to use
const double threads = 1.0;
/// Create a clone after every \a c_d commits (commit distance)
const unsigned int c_d = 8;
/// Create a clone during recomputation if distance is greater than \a a_d (adaptive distance)
const unsigned int a_d = 2;
/// Minimal number of open nodes for stealing
const unsigned int steal_limit = 3;
/// Initial delay in milliseconds for all but first worker thread
const unsigned int initial_delay = 5;
/// Depth limit for no-good generation during search
const unsigned int nogoods_limit = 128;
}
}}
namespace Gecode { namespace Search {
/**
* \defgroup FuncThrowSearch %Search exceptions
* \ingroup FuncThrow
*/
//@{
/// %Exception: Uninitialized cutoff for restart-based search
class GECODE_VTABLE_EXPORT UninitializedCutoff : public Exception {
public:
/// Initialize with location \a l
UninitializedCutoff(const char* l);
};
//@}
}}
#include <gecode/search/exception.hpp>
namespace Gecode { namespace Search {
/**
* \brief %Search engine statistics
* \ingroup TaskModelSearch
*/
class Statistics : public StatusStatistics {
public:
/// Number of failed nodes in search tree
unsigned long int fail;
/// Number of nodes expanded
unsigned long int node;
/// Maximum depth of search stack
unsigned long int depth;
/// Number of restarts
unsigned long int restart;
/// Number of no-goods posted
unsigned long int nogood;
/// Initialize
Statistics(void);
/// Reset
void reset(void);
/// Return sum with \a s
Statistics operator +(const Statistics& s);
/// Increment by statistics \a s
Statistics& operator +=(const Statistics& s);
};
}}
#include <gecode/search/statistics.hpp>
namespace Gecode { namespace Search {
class Stop;
class Cutoff;
/**
* \brief %Search engine options
*
* Defines options for search engines. Not all search engines might
* honor all option values.
*
* - \a c_d as minimal recomputation distance: this guarantees that
* a path between two nodes in the search tree for which copies are
* stored has at least length \a c_d. That is, in order to recompute
* a node in the search tree, \a c_d recomputation steps are needed.
* The minimal recomputation distance yields a guarantee on saving
* memory compared to full copying: it stores \a c_d times less nodes
* than full copying.
* - \a a_d as adaptive recomputation distance: when a node needs to be
* recomputed and the path is longer than \a a_d, an intermediate copy
* is created (approximately in the middle of the path) to speed up
* future recomputation. Note that small values of \a a_d can increase
* the memory consumption considerably.
*
* Full copying corresponds to a maximal recomputation distance
* \a c_d of 1.
*
* All recomputation performed is based on batch recomputation: batch
* recomputation performs propagation only once for an entire path
* used in recomputation.
*
* The number of threads to be used is controlled by a double \f$n\f$
* (assume that \f$m\f$ is the number of processing units available). If
* \f$1 \leq n\f$, \f$n\f$ threads are chosen (of course with rounding).
* If \f$n \leq -1\f$, then \f$m + n\f$ threads are
* chosen (all but \f$-n\f$ processing units get a thread). If \f$n\f$
* is zero, \f$m\f$ threads are chosen. If \f$0<n<1\f$,
* \f$n \times m\f$ threads are chosen. If \f$-1 <n<0\f$,
* \f$(1+n)\times m\f$ threads are chosen.
*
* \ingroup TaskModelSearch
*/
class Options {
public:
/// Whether engines create a clone when being initialized
bool clone;
/// Number of threads to use
double threads;
/// Create a clone after every \a c_d commits (commit distance)
unsigned int c_d;
/// Create a clone during recomputation if distance is greater than \a a_d (adaptive distance)
unsigned int a_d;
/// Depth limit for extraction of no-goods
unsigned int nogoods_limit;
/// Stop object for stopping search
Stop* stop;
/// Cutoff for restart-based search
Cutoff* cutoff;
/// Default options
GECODE_SEARCH_EXPORT static const Options def;
/// Initialize with default values
Options(void);
/// Expand with real number of threads
GECODE_SEARCH_EXPORT Options
expand(void) const;
};
}}
#include <gecode/search/options.hpp>
namespace Gecode {
template<template<class> class E, class T>
class RBS;
}
namespace Gecode { namespace Search { namespace Meta {
class RBS;
}}}
namespace Gecode { namespace Search {
/**
* \defgroup TaskModelSearchStop Stop-objects for stopping search
* \ingroup TaskModelSearch
*
* Allows to specify various criteria when a search engine should
* stop exploration. Only exploration but neither recomputation
* nor propagation will be interrupted.
*
*/
/**
* \brief Base-class for %Stop-object
* \ingroup TaskModelSearchStop
*/
class GECODE_SEARCH_EXPORT Stop {
public:
/// Default constructor
Stop(void);
/// Stop search, if returns true
virtual bool stop(const Statistics& s, const Options& o) = 0;
/// Destructor
virtual ~Stop(void);
/// Allocate memory from heap
static void* operator new(size_t s);
/// Free memory allocated from heap
static void operator delete(void* p);
};
/**
* \brief %Stop-object based on number of nodes
*
* The number of nodes reported (by the statistics) is the
* number since the engine started exploration. It is not the
* number since the last stop!
* \ingroup TaskModelSearchStop
*/
class GECODE_SEARCH_EXPORT NodeStop : public Stop {
protected:
/// Node limit
unsigned long int l;
public:
/// Stop if node limit \a l is exceeded
NodeStop(unsigned long int l);
/// Return current limit
unsigned long int limit(void) const;
/// Set current limit to \a l nodes
void limit(unsigned long int l);
/// Return true if node limit is exceeded
virtual bool stop(const Statistics& s, const Options& o);
};
/**
* \brief %Stop-object based on number of failures
*
* The number of failures reported (by the statistics) is the
* number since the engine started exploration. It is not the
* number since the last stop!
* \ingroup TaskModelSearchStop
*/
class GECODE_SEARCH_EXPORT FailStop : public Stop {
protected:
/// Failure limit
unsigned long int l;
public:
/// Stop if failure limit \a l is exceeded
FailStop(unsigned long int l);
/// Return current limit
unsigned long int limit(void) const;
/// Set current limit to \a l failures
void limit(unsigned long int l);
/// Return true if failure limit is exceeded
virtual bool stop(const Statistics& s, const Options& o);
};
/**
* \brief %Stop-object based on time
* \ingroup TaskModelSearchStop
*/
class GECODE_SEARCH_EXPORT TimeStop : public Stop {
protected:
/// Time when execution should stop
Support::Timer t;
/// Current limit in milliseconds
unsigned long int l;
public:
/// Stop if search exceeds \a l milliseconds (from creation of this object)
TimeStop(unsigned long int l);
/// Return current limit in milliseconds
unsigned long int limit(void) const;
/// Set current limit to \a l milliseconds
void limit(unsigned long int l);
/// Reset time to zero
void reset(void);
/// Return true if time limit is exceeded
virtual bool stop(const Statistics& s, const Options& o);
};
/**
* \brief %Stop-object for meta engine
* \ingroup TaskModelSearchStop
*/
class GECODE_SEARCH_EXPORT MetaStop : public Stop {
template<template<class>class,class> friend class ::Gecode::RBS;
friend class ::Gecode::Search::Meta::RBS;
private:
/// The failure stop object for the engine
FailStop* e_stop;
/// The stop object for the meta engine
Stop* m_stop;
/// Whether the engine was stopped
bool e_stopped;
/// Accumulated statistics for the meta engine
Statistics m_stat;
public:
/// Stop the meta engine if indicated by the stop object \a s
MetaStop(Stop* s);
/// Return true if meta engine must be stopped
virtual bool stop(const Statistics& s, const Options& o);
/// Set current limit for the engine to \a l fails
void limit(const Search::Statistics& s, unsigned long int l);
/// Update statistics
void update(const Search::Statistics& s);
/// Return the stop object to control the engine
Stop* enginestop(void) const;
/// Return whether the engine has been stopped
bool enginestopped(void) const;
/// Return statistics for the meta engine
Statistics metastatistics(void) const;
/// Delete object
~MetaStop(void);
};
}}
#include <gecode/search/stop.hpp>
namespace Gecode { namespace Search {
/**
* \brief Base class for cutoff generators for restart-based meta engine
*/
class GECODE_SEARCH_EXPORT Cutoff {
public:
/// Default constructor
Cutoff(void);
/// Return next cutoff value
virtual unsigned long int operator ()(void) = 0;
/// Destructor
virtual ~Cutoff(void);
/// Create generator for constant sequence with constant \a s
static Cutoff*
constant(unsigned long int scale=1U);
/// Create generator for linear sequence scaled by \a scale
static Cutoff*
linear(unsigned long int scale=1U);
/** Create generator for geometric sequence scaled by
* \a scale using base \a base
*/
static Cutoff*
geometric(unsigned long int scale=1U, double base=1.5);
/// Create generator for luby sequence with scale-factor \a scale
static Cutoff*
luby(unsigned long int scale=1U);
/** Create generator for random sequence with seed \a seed that
* generates values between \a min and \a max with \a n steps
* between the extreme values (use 0 for \a n to get step size 1).
*/
static Cutoff*
rnd(unsigned int seed,
unsigned long int min, unsigned long int max,
unsigned long int n);
/// Append cutoff values from \a c2 after \a n values from \a c1
static Cutoff*
append(Cutoff* c1, unsigned long int n, Cutoff* c2);
/// Create generator that repeats \a n times each cutoff value from \a c
static Cutoff*
repeat(Cutoff* c, unsigned long int n);
/// Allocate memory from heap
static void* operator new(size_t s);
/// Free memory allocated from heap
static void operator delete(void* p);
};
}}
#include <gecode/search/cutoff.hpp>
namespace Gecode { namespace Search {
/**
* \brief %Search engine implementation interface
*/
class Engine {
public:
/// Return next solution (NULL, if none exists or search has been stopped)
virtual Space* next(void) = 0;
/// Return statistics
virtual Statistics statistics(void) const = 0;
/// Check whether engine has been stopped
virtual bool stopped(void) const = 0;
/// Reset engine to restart at space \a s
virtual void reset(Space* s) = 0;
/// Return no-goods
virtual NoGoods& nogoods(void) = 0;
/// Destructor
virtual ~Engine(void) {}
};
}}
namespace Gecode {
/**
* \brief Base-class for search engines
*/
class EngineBase {
template<template<class>class,class> friend class ::Gecode::RBS;
protected:
/// The actual search engine
Search::Engine* e;
/// Destructor
~EngineBase(void);
/// Constructor
EngineBase(Search::Engine* e = NULL);
};
}
#include <gecode/search/engine-base.hpp>
namespace Gecode {
/**
* \brief Depth-first search engine
*
* This class supports depth-first search for subclasses \a T of
* Space.
* \ingroup TaskModelSearch
*/
template<class T>
class DFS : public EngineBase {
public:
/// Initialize search engine for space \a s with options \a o
DFS(T* s, const Search::Options& o=Search::Options::def);
/// Return next solution (NULL, if none exists or search has been stopped)
T* next(void);
/// Return statistics
Search::Statistics statistics(void) const;
/// Check whether engine has been stopped
bool stopped(void) const;
/// Return no-goods
NoGoods& nogoods(void);
};
/// Invoke depth-first search engine for subclass \a T of space \a s with options \a o
template<class T>
T* dfs(T* s, const Search::Options& o=Search::Options::def);
}
#include <gecode/search/dfs.hpp>
namespace Gecode {
/**
* \brief Depth-first branch-and-bound search engine
*
* Additionally, \a s must implement a member function
* \code virtual void constrain(const T& t) \endcode
* Whenever exploration requires to add a constraint
* to the space \a c currently being explored, the engine
* executes \c c.constrain(t) where \a t is the so-far
* best solution.
* \ingroup TaskModelSearch
*/
template<class T>
class BAB : public EngineBase {
public:
/// Initialize engine for space \a s and options \a o
BAB(T* s, const Search::Options& o=Search::Options::def);
/// Return next better solution (NULL, if none exists or search has been stopped)
T* next(void);
/// Return statistics
Search::Statistics statistics(void) const;
/// Check whether engine has been stopped
bool stopped(void) const;
/// Return no-goods
NoGoods& nogoods(void);
};
/**
* \brief Perform depth-first branch-and-bound search for subclass \a T of space \a s and options \a o
*
* Additionally, \a s must implement a member function
* \code virtual void constrain(const T& t) \endcode
* Whenever exploration requires to add a constraint
* to the space \a c currently being explored, the engine
* executes \c c.constrain(t) where \a t is the so-far
* best solution.
*
* \ingroup TaskModelSearch
*/
template<class T>
T* bab(T* s, const Search::Options& o=Search::Options::def);
}
#include <gecode/search/bab.hpp>
namespace Gecode {
/**
* \brief Meta-engine performing restart-based search
*
* The engine uses the Cutoff sequence supplied in the options \a o to
* periodically restart the search of engine \a E.
*
* The class \a T can implement member functions
* \code virtual void master(unsigned long int i, const Space* s) \endcode
* and
* \code virtual void slave(unsigned long int i, const Space* s) \endcode
*
* Whenever exploration restarts or a solution is found, the
* engine executes the functions on the master and slave
* space. For more details, consult "Modeling and Programming
* with Gecode".
*
* \ingroup TaskModelSearch
*/
template<template<class> class E, class T>
class RBS : public EngineBase {
public:
/// Initialize engine for space \a s and options \a o
RBS(T* s, const Search::Options& o);
/// Return next solution (NULL, if non exists or search has been stopped)
T* next(void);
/// Return statistics
Search::Statistics statistics(void) const;
/// Check whether engine has been stopped
bool stopped(void) const;
};
/**
* \brief Perform restart-based search
*
* The engine uses the Cutoff sequence supplied in the options \a o to
* periodically restart the search of an engine of type \a E.
*
* The class \a T can implement member functions
* \code virtual void master(unsigned long int i, const Space* s) \endcode
* and
* \code virtual void slave(unsigned long int i, const Space* s) \endcode
*
* Whenever exploration restarts or a solution is found, the
* engine executes the functions on the master and slave
* space. For more details, consult "Modeling and Programming
* with Gecode".
*
* \ingroup TaskModelSearch
*/
template<template<class> class E, class T>
T* rbs(T* s, const Search::Options& o);
}
#include <gecode/search/rbs.hpp>
#endif
// STATISTICS: search-other
| 30.562197 | 104 | 0.673908 | [
"object"
] |
1ec4a1cebf250ff4f4895cf56473bcd68eb830db | 409,694 | cc | C++ | src/parser/seclang-scanner.cc | mlosapio/ModSecurity | e9dce44f6a51d4631f0f8c8587738abf55db48b1 | [
"Apache-2.0"
] | 1 | 2020-08-25T10:39:54.000Z | 2020-08-25T10:39:54.000Z | src/parser/seclang-scanner.cc | mlosapio/ModSecurity | e9dce44f6a51d4631f0f8c8587738abf55db48b1 | [
"Apache-2.0"
] | null | null | null | src/parser/seclang-scanner.cc | mlosapio/ModSecurity | e9dce44f6a51d4631f0f8c8587738abf55db48b1 | [
"Apache-2.0"
] | 1 | 2022-01-07T01:36:47.000Z | 2022-01-07T01:36:47.000Z |
#line 2 "seclang-scanner.cc"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
/* %not-for-header */
/* %if-c-only */
/* %if-not-reentrant */
/* %endif */
/* %endif */
/* %ok-for-header */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
/* %if-c++-only */
/* %endif */
/* %if-c-only */
/* %endif */
/* %if-c-only */
/* %endif */
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
/* %if-c-only */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
/* %endif */
/* %if-tables-serialization */
/* %endif */
/* end standard C headers. */
/* %if-c-or-c++ */
/* flex integer type definitions */
#ifndef FLEXINT_H
#define FLEXINT_H
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
* if you want the limit (max/min) macros for int types.
*/
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif
#include <inttypes.h>
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef int flex_int32_t;
typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
/* Limits of integral types. */
#ifndef INT8_MIN
#define INT8_MIN (-128)
#endif
#ifndef INT16_MIN
#define INT16_MIN (-32767-1)
#endif
#ifndef INT32_MIN
#define INT32_MIN (-2147483647-1)
#endif
#ifndef INT8_MAX
#define INT8_MAX (127)
#endif
#ifndef INT16_MAX
#define INT16_MAX (32767)
#endif
#ifndef INT32_MAX
#define INT32_MAX (2147483647)
#endif
#ifndef UINT8_MAX
#define UINT8_MAX (255U)
#endif
#ifndef UINT16_MAX
#define UINT16_MAX (65535U)
#endif
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif
#ifndef SIZE_MAX
#define SIZE_MAX (~(size_t)0)
#endif
#endif /* ! C99 */
#endif /* ! FLEXINT_H */
/* %endif */
/* begin standard C++ headers. */
/* %if-c++-only */
/* %endif */
/* TODO: this is always defined, so inline it */
#define yyconst const
#if defined(__GNUC__) && __GNUC__ >= 3
#define yynoreturn __attribute__((__noreturn__))
#else
#define yynoreturn
#endif
/* %not-for-header */
/* Returned upon end-of-file. */
#define YY_NULL 0
/* %ok-for-header */
/* %not-for-header */
/* Promotes a possibly negative, possibly signed char to an
* integer in range [0..255] for use as an array index.
*/
#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
/* %ok-for-header */
/* %if-reentrant */
/* %endif */
/* %if-not-reentrant */
/* %endif */
/* Enter a start condition. This macro really ought to take a parameter,
* but we do it the disgusting crufty way forced on us by the ()-less
* definition of BEGIN.
*/
#define BEGIN (yy_start) = 1 + 2 *
/* Translate the current start state into a value that can be later handed
* to BEGIN to return to the state. The YYSTATE alias is for lex
* compatibility.
*/
#define YY_START (((yy_start) - 1) / 2)
#define YYSTATE YY_START
/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
/* Special action meaning "start processing a new file". */
#define YY_NEW_FILE yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k.
* Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
* Ditto for the __ia64__ case accordingly.
*/
#define YY_BUF_SIZE 32768
#else
#define YY_BUF_SIZE 16384
#endif /* __ia64__ */
#endif
/* The state buf must be large enough to hold one state per character in the main buffer.
*/
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif
/* %if-not-reentrant */
extern int yyleng;
/* %endif */
/* %if-c-only */
/* %if-not-reentrant */
extern FILE *yyin, *yyout;
/* %endif */
/* %endif */
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
#define YY_LESS_LINENO(n)
#define YY_LINENO_REWIND_TO(ptr)
/* Return all but the first "n" matched characters back to the input stream. */
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
*yy_cp = (yy_hold_char); \
YY_RESTORE_YY_MORE_OFFSET \
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define unput(c) yyunput( c, (yytext_ptr) )
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
{
/* %if-c-only */
FILE *yy_input_file;
/* %endif */
/* %if-c++-only */
/* %endif */
char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position in input buffer */
/* Size of input buffer in bytes, not including room for EOB
* characters.
*/
int yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
int yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
* delete it.
*/
int yy_is_our_buffer;
/* Whether this is an "interactive" input source; if so, and
* if we're using stdio for input, then we want to use getc()
* instead of fread(), to make sure we stop fetching input after
* each newline.
*/
int yy_is_interactive;
/* Whether we're considered to be at the beginning of a line.
* If so, '^' rules will be active on the next match, otherwise
* not.
*/
int yy_at_bol;
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
int yy_fill_buffer;
int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
/* When an EOF's been seen but there's still some text to process
* then we mark the buffer as YY_EOF_PENDING, to indicate that we
* shouldn't try reading from the input source any more. We might
* still have a bunch of tokens to match, though, because of
* possible backing-up.
*
* When we actually see the EOF, we change the status to "new"
* (via yyrestart()), so that the user can continue scanning by
* just pointing yyin at a new input file.
*/
#define YY_BUFFER_EOF_PENDING 2
};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
/* %if-c-only Standard (non-C++) definition */
/* %not-for-header */
/* %if-not-reentrant */
/* Stack of input buffers. */
static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
/* %endif */
/* %ok-for-header */
/* %endif */
/* We provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general
* "scanner state".
*
* Returns the top of the stack, or NULL.
*/
#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)
/* Same as previous macro, but useful when we know that the buffer stack is not
* NULL or when we need an lvalue. For internal use only.
*/
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
/* %if-c-only Standard (non-C++) definition */
/* %if-not-reentrant */
/* %not-for-header */
/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;
static int yy_n_chars; /* number of characters read into yy_ch_buf */
int yyleng;
/* Points to current character in buffer. */
static char *yy_c_buf_p = NULL;
static int yy_init = 0; /* whether we need to initialize */
static int yy_start = 0; /* start state number */
/* Flag which is used to allow yywrap()'s to do buffer switches
* instead of setting up a fresh yyin. A bit of a hack ...
*/
static int yy_did_buffer_switch_on_eof;
/* %ok-for-header */
/* %endif */
void yyrestart ( FILE *input_file );
void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
void yy_delete_buffer ( YY_BUFFER_STATE b );
void yy_flush_buffer ( YY_BUFFER_STATE b );
void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
void yypop_buffer_state ( void );
static void yyensure_buffer_stack ( void );
static void yy_load_buffer_state ( void );
static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
/* %endif */
void *yyalloc ( yy_size_t );
void *yyrealloc ( void *, yy_size_t );
void yyfree ( void * );
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive(is_interactive) \
{ \
if ( ! YY_CURRENT_BUFFER ){ \
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define yy_set_bol(at_bol) \
{ \
if ( ! YY_CURRENT_BUFFER ){\
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
/* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
/* Begin user sect3 */
#define yywrap() (/*CONSTCOND*/1)
#define YY_SKIP_YYWRAP
#define FLEX_DEBUG
typedef flex_uint8_t YY_CHAR;
FILE *yyin = NULL, *yyout = NULL;
typedef int yy_state_type;
extern int yylineno;
int yylineno = 1;
extern char *yytext;
#ifdef yytext_ptr
#undef yytext_ptr
#endif
#define yytext_ptr yytext
/* %% [1.5] DFA */
/* %if-c-only Standard (non-C++) definition */
static yy_state_type yy_get_previous_state ( void );
static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
static int yy_get_next_buffer ( void );
static void yynoreturn yy_fatal_error ( const char* msg );
/* %endif */
/* Done after the current pattern has been matched and before the
* corresponding action - sets up yytext.
*/
#define YY_DO_BEFORE_ACTION \
(yytext_ptr) = yy_bp; \
/* %% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ */\
yyleng = (int) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
/* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\
(yy_c_buf_p) = yy_cp;
/* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */
#define YY_NUM_RULES 539
#define YY_END_OF_BUFFER 540
/* This struct is not used in this scanner,
but its presence is necessary. */
struct yy_trans_info
{
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
static const flex_int16_t yy_accept[3921] =
{ 0,
0, 0, 0, 0, 271, 271, 279, 279, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 283, 283, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 540, 532, 526, 264, 268, 269,
267, 270, 532, 532, 532, 532, 532, 532, 532, 532,
532, 532, 532, 532, 532, 287, 287, 539, 287, 287,
287, 287, 287, 287, 287, 287, 287, 287, 287, 287,
287, 287, 287, 287, 287, 287, 125, 271, 277, 279,
281, 275, 274, 276, 273, 279, 272, 490, 490, 489,
490, 490, 490, 120, 119, 118, 127, 127, 127, 134,
126, 127, 129, 129, 129, 128, 134, 129, 132, 132,
132, 131, 134, 130, 132, 531, 531, 531, 539, 492,
491, 442, 445, 539, 445, 442, 442, 442, 431, 431,
431, 434, 436, 431, 435, 431, 425, 431, 500, 500,
500, 499, 504, 500, 502, 502, 502, 501, 504, 502,
117, 117, 109, 117, 114, 108, 117, 117, 117, 117,
117, 117, 117, 117, 117, 117, 117, 117, 117, 117,
117, 117, 117, 117, 112, 117, 111, 539, 509, 539,
505, 518, 539, 283, 284, 539, 496, 496, 495, 498,
496, 494, 494, 493, 498, 494, 149, 533, 534, 535,
136, 135, 136, 136, 136, 136, 136, 136, 140, 139,
144, 145, 145, 144, 142, 141, 139, 147, 148, 148,
146, 147, 526, 264, 0, 267, 267, 267, 0, 0,
0, 0, 0, 0, 0, 0, 216, 0, 0, 0,
0, 0, 527, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 410, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 415, 0,
0, 0, 0, 0, 121, 0, 124, 271, 277, 279,
281, 278, 279, 280, 281, 282, 526, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 127, 0, 127, 127, 127,
0, 133, 121, 127, 127, 129, 0, 0, 129, 129,
129, 0, 129, 121, 129, 132, 0, 0, 132, 132,
132, 0, 132, 121, 132, 531, 531, 531, 0, 529,
531, 442, 0, 442, 0, 442, 442, 0, 442, 442,
431, 0, 0, 430, 431, 431, 431, 0, 431, 503,
431, 431, 0, 430, 0, 431, 423, 424, 431, 431,
500, 0, 0, 500, 500, 500, 0, 500, 121, 500,
502, 0, 502, 502, 0, 502, 0, 0, 121, 502,
502, 0, 109, 0, 108, 0, 110, 114, 115, 0,
108, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
105, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 106, 0, 0, 112, 0, 113, 111,
111, 0, 509, 0, 518, 0, 509, 507, 517, 0,
505, 518, 0, 0, 525, 0, 508, 0, 283, 284,
0, 284, 0, 0, 496, 0, 496, 0, 497, 496,
494, 0, 0, 494, 0, 494, 533, 534, 535, 0,
0, 0, 0, 0, 0, 137, 138, 144, 0, 0,
144, 0, 144, 143, 147, 0, 0, 147, 0, 147,
267, 0, 0, 0, 0, 0, 0, 0, 215, 0,
0, 0, 0, 0, 0, 0, 527, 528, 0, 0,
0, 393, 0, 0, 383, 0, 0, 0, 418, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 421, 0, 0, 0, 0, 391, 121,
122, 123, 0, 0, 0, 0, 463, 0, 464, 0,
465, 0, 0, 468, 469, 471, 0, 0, 473, 0,
0, 0, 0, 0, 0, 464, 0, 0, 0, 127,
0, 0, 121, 122, 0, 129, 0, 0, 121, 122,
0, 132, 0, 0, 121, 122, 529, 530, 442, 0,
442, 0, 437, 0, 437, 0, 442, 0, 431, 0,
0, 431, 0, 430, 0, 431, 431, 431, 431, 431,
0, 0, 0, 0, 431, 431, 431, 0, 500, 0,
0, 121, 122, 0, 502, 0, 0, 121, 121, 122,
116, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 9, 0, 0,
0, 0, 0, 104, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 106, 107, 507, 517, 513, 516, 0, 520,
0, 0, 525, 0, 0, 508, 506, 515, 0, 0,
285, 0, 0, 496, 0, 0, 0, 494, 0, 0,
0, 0, 0, 0, 0, 144, 0, 0, 0, 147,
0, 0, 267, 0, 0, 0, 0, 0, 168, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 222,
528, 359, 0, 0, 394, 0, 0, 384, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 387, 0, 0, 0, 406, 0, 0, 416,
0, 0, 392, 122, 0, 0, 0, 0, 0, 0,
0, 0, 0, 470, 472, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 127, 0, 122, 129, 0,
122, 132, 0, 122, 530, 442, 0, 0, 0, 0,
442, 0, 0, 438, 443, 439, 438, 443, 439, 431,
0, 431, 431, 431, 0, 431, 0, 0, 0, 0,
431, 0, 430, 0, 431, 431, 426, 432, 427, 426,
432, 427, 0, 0, 431, 431, 500, 0, 122, 502,
0, 122, 122, 0, 0, 0, 0, 0, 0, 0,
0, 5, 0, 0, 7, 0, 0, 0, 8, 0,
0, 0, 49, 0, 0, 0, 13, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 63, 0, 0, 107, 513, 516, 512, 520,
0, 523, 0, 0, 519, 0, 0, 506, 515, 511,
514, 285, 0, 286, 496, 0, 494, 0, 0, 0,
0, 0, 144, 0, 147, 0, 267, 267, 212, 0,
0, 214, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 360, 0, 0, 0, 375,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 388, 0, 0, 0, 0,
0, 0, 422, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 488, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 440, 440, 440, 0, 0, 428, 428,
0, 0, 0, 431, 431, 0, 428, 0, 431, 0,
0, 0, 0, 0, 0, 0, 26, 0, 0, 2,
0, 4, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 12, 14, 0, 0, 16,
0, 53, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 75, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 512, 523, 0,
524, 519, 0, 521, 0, 511, 514, 510, 286, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
267, 267, 0, 0, 0, 169, 0, 0, 219, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 221, 0, 0, 0, 0, 0,
0, 376, 0, 0, 409, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
413, 0, 0, 0, 0, 0, 0, 0, 0, 0,
357, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 474, 0, 0, 0, 0, 0, 0,
0, 0, 0, 444, 441, 444, 441, 433, 429, 433,
429, 0, 428, 0, 0, 0, 431, 0, 0, 0,
1, 0, 0, 0, 0, 0, 0, 0, 0, 41,
41, 0, 8, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 62,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 84, 0, 0, 0, 0, 74, 0,
92, 0, 0, 0, 0, 0, 0, 0, 0, 524,
521, 0, 522, 510, 0, 0, 0, 267, 267, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
258, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 417, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 412, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 459, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 3, 0, 0,
0, 0, 0, 0, 41, 0, 41, 41, 0, 0,
0, 0, 0, 0, 0, 50, 0, 0, 15, 0,
52, 0, 54, 22, 55, 56, 58, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 64, 0, 0, 65, 522, 0, 0, 267,
267, 0, 0, 0, 217, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 361, 0, 0, 0, 396, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 411, 0,
0, 0, 0, 420, 0, 0, 399, 0, 0, 402,
403, 404, 0, 0, 0, 0, 358, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 467, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 27, 0, 0, 0, 0, 0, 0,
40, 41, 40, 0, 41, 0, 0, 102, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 57,
0, 0, 23, 0, 0, 0, 0, 0, 0, 0,
0, 0, 97, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 64, 0, 267, 267, 0,
0, 0, 0, 536, 0, 0, 260, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 362, 0, 0, 363, 295, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
323, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 419, 0, 0, 0,
0, 354, 0, 0, 401, 407, 405, 355, 0, 0,
0, 461, 0, 0, 462, 0, 0, 0, 0, 466,
0, 475, 0, 0, 483, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 40, 0, 40, 0, 0, 0, 0,
0, 0, 50, 0, 0, 0, 0, 0, 0, 51,
0, 0, 0, 0, 0, 0, 0, 73, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 267, 267, 265, 0, 265, 217, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 242, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 291, 364, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 400, 0, 0, 0, 0, 0, 0,
478, 0, 487, 0, 0, 0, 0, 0, 0, 0,
0, 0, 484, 485, 0, 0, 0, 0, 0, 0,
25, 0, 25, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 46, 48, 0, 48, 10, 11,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 60, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 90, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 93, 0, 0, 0, 0, 0, 267, 0, 265,
265, 265, 265, 265, 0, 537, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 191, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 233, 0, 0, 0, 0, 0, 0, 0, 0,
0, 292, 0, 0, 367, 365, 0, 0, 0, 0,
0, 301, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 325, 326, 327, 398,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
343, 0, 0, 0, 0, 0, 351, 352, 353, 414,
0, 0, 476, 0, 0, 450, 447, 0, 0, 470,
0, 0, 0, 0, 0, 0, 0, 486, 0, 0,
456, 0, 453, 0, 0, 0, 0, 25, 0, 0,
0, 26, 0, 0, 0, 0, 0, 0, 0, 0,
0, 44, 44, 0, 0, 48, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 17, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 61, 0, 0, 0,
91, 0, 78, 77, 0, 79, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 94, 80, 83,
81, 0, 267, 267, 0, 0, 0, 0, 220, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
230, 0, 0, 0, 0, 0, 0, 0, 0, 0,
243, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 252, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 368, 366, 0, 0, 298, 0, 0, 373, 0,
395, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 324, 0, 0, 0, 335, 0,
0, 0, 339, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 449, 477, 0, 0, 0, 480,
0, 0, 0, 0, 0, 455, 0, 0, 0, 0,
24, 0, 0, 24, 0, 0, 0, 0, 0, 0,
0, 0, 6, 0, 44, 44, 0, 44, 0, 44,
44, 0, 0, 47, 0, 0, 47, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 59, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 266, 266, 266, 266, 266, 213, 0,
0, 0, 0, 0, 166, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 240, 0, 0,
0, 0, 0, 0, 0, 174, 0, 0, 0, 0,
0, 0, 241, 0, 0, 0, 190, 0, 0, 0,
0, 189, 0, 0, 0, 0, 0, 0, 0, 0,
0, 234, 0, 0, 0, 0, 0, 153, 153, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
374, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 329, 0, 0, 0,
0, 0, 0, 0, 0, 0, 344, 0, 0, 0,
0, 0, 0, 460, 0, 0, 0, 481, 0, 0,
0, 0, 0, 0, 24, 25, 26, 0, 0, 0,
0, 0, 0, 103, 44, 43, 44, 44, 43, 0,
0, 44, 43, 0, 0, 44, 43, 44, 44, 45,
47, 48, 0, 0, 0, 50, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 60, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 88, 0, 0,
0, 0, 0, 0, 218, 0, 0, 161, 0, 163,
0, 0, 0, 0, 0, 0, 0, 0, 0, 238,
0, 0, 0, 0, 0, 0, 0, 231, 0, 0,
0, 0, 0, 0, 248, 0, 0, 263, 263, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 208, 0, 0,
0, 0, 0, 0, 0, 0, 289, 0, 0, 389,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 319, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 340, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 44, 0, 43, 0, 44, 44, 43, 0, 43,
0, 0, 43, 0, 0, 45, 43, 45, 45, 43,
0, 44, 43, 44, 0, 0, 0, 0, 50, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
60, 0, 60, 0, 60, 0, 0, 71, 70, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
87, 69, 82, 0, 0, 0, 170, 0, 0, 0,
0, 0, 0, 173, 0, 0, 0, 0, 0, 0,
0, 0, 0, 175, 0, 0, 0, 0, 0, 245,
244, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 235, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 152, 0, 0,
0, 0, 290, 293, 0, 390, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 318, 0, 0, 0, 0, 0, 0, 0, 0,
377, 0, 379, 0, 342, 0, 0, 0, 350, 0,
0, 0, 0, 0, 482, 0, 0, 0, 0, 0,
0, 0, 0, 0, 35, 0, 0, 42, 44, 42,
0, 44, 42, 0, 0, 42, 44, 0, 42, 0,
42, 45, 45, 42, 45, 26, 0, 18, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 60,
0, 0, 0, 0, 0, 96, 96, 0, 67, 0,
0, 0, 0, 98, 0, 0, 0, 0, 0, 0,
0, 0, 0, 239, 0, 0, 0, 0, 0, 0,
0, 0, 259, 0, 177, 177, 0, 246, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 209, 0, 0, 0, 152, 0, 0,
294, 0, 0, 0, 397, 0, 0, 300, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 333, 0, 378, 0, 336, 380,
0, 341, 0, 381, 0, 356, 0, 466, 0, 0,
0, 0, 0, 0, 0, 28, 0, 0, 0, 0,
0, 0, 42, 42, 0, 42, 0, 44, 0, 42,
45, 43, 45, 45, 0, 0, 0, 0, 0, 0,
0, 0, 0, 60, 0, 0, 0, 0, 0, 0,
68, 66, 100, 0, 0, 0, 0, 0, 0, 167,
0, 0, 0, 0, 0, 0, 0, 0, 0, 227,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 254, 0, 0, 0,
236, 0, 0, 0, 232, 232, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 369, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 315, 0,
0, 0, 0, 0, 328, 332, 0, 0, 0, 0,
382, 0, 349, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 43, 43,
45, 45, 43, 45, 0, 0, 0, 0, 0, 0,
60, 0, 72, 0, 76, 0, 0, 0, 0, 0,
101, 0, 0, 0, 0, 0, 164, 0, 0, 0,
0, 0, 0, 0, 0, 0, 176, 0, 247, 0,
0, 0, 538, 0, 0, 0, 0, 0, 0, 0,
0, 253, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 206, 0, 288, 0, 370, 0,
299, 371, 0, 0, 0, 0, 309, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 479, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 43, 0, 0,
0, 0, 0, 60, 0, 89, 95, 95, 0, 86,
0, 180, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 154, 0, 0, 249, 179, 0, 0, 0,
0, 0, 0, 0, 0, 0, 193, 193, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 211,
0, 296, 297, 372, 0, 0, 0, 0, 308, 0,
0, 0, 0, 0, 0, 0, 0, 0, 322, 0,
334, 0, 0, 0, 0, 0, 408, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 155, 0,
165, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 185, 0, 0, 0, 0, 0, 0, 0,
194, 194, 0, 196, 196, 0, 0, 0, 0, 0,
0, 0, 0, 0, 210, 223, 0, 0, 0, 305,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 448, 0, 0, 0,
454, 0, 0, 29, 0, 0, 0, 36, 0, 0,
19, 0, 0, 85, 99, 0, 0, 162, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
183, 0, 0, 188, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 192, 0, 0,
0, 306, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 385, 337, 0, 346, 0, 451, 0, 0,
457, 0, 0, 0, 0, 37, 0, 20, 0, 160,
226, 226, 0, 160, 156, 0, 0, 0, 262, 0,
250, 0, 229, 0, 0, 0, 0, 0, 0, 0,
187, 0, 0, 195, 197, 0, 0, 0, 0, 151,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 313, 0, 0, 0, 320, 0, 0, 386, 338,
0, 347, 452, 0, 458, 0, 34, 0, 0, 21,
0, 0, 0, 157, 0, 0, 251, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
151, 0, 0, 207, 0, 0, 304, 0, 0, 0,
0, 0, 0, 0, 331, 345, 348, 0, 0, 0,
0, 159, 0, 0, 237, 0, 0, 0, 228, 0,
0, 261, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 310, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 158,
150, 0, 0, 0, 0, 0, 182, 0, 0, 224,
224, 0, 205, 0, 203, 0, 0, 0, 255, 0,
302, 0, 0, 0, 314, 0, 0, 0, 0, 0,
0, 0, 0, 0, 150, 0, 0, 0, 0, 186,
0, 0, 0, 201, 0, 199, 0, 256, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 38,
0, 171, 171, 0, 0, 0, 0, 0, 0, 204,
202, 0, 0, 0, 0, 0, 316, 317, 0, 330,
0, 0, 0, 0, 39, 0, 257, 178, 0, 184,
0, 200, 198, 0, 0, 0, 321, 0, 0, 0,
31, 172, 181, 225, 303, 307, 0, 33, 30, 0,
0, 0, 0, 0, 312, 0, 0, 0, 32, 0
} ;
static const YY_CHAR yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 5, 6, 7, 8, 9, 10, 11, 12, 1,
1, 13, 14, 15, 16, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26, 27, 22, 28, 9, 1,
29, 1, 1, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
9, 57, 9, 1, 58, 1, 59, 60, 61, 62,
63, 64, 65, 66, 67, 68, 69, 70, 71, 72,
73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
83, 84, 85, 86, 87, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1
} ;
static const YY_CHAR yy_meta[88] =
{ 0,
1, 2, 3, 4, 5, 1, 6, 1, 7, 1,
1, 8, 9, 1, 10, 9, 9, 9, 11, 11,
11, 11, 11, 11, 11, 11, 11, 9, 12, 1,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 14, 15, 15, 15, 16, 15, 14, 15, 15,
15, 15, 15, 15, 15, 13, 1, 9, 15, 15,
15, 15, 15, 15, 15, 15, 15, 15, 15, 14,
15, 15, 15, 16, 15, 14, 15, 15, 15, 15,
15, 15, 15, 15, 17, 18, 1
} ;
static const flex_int16_t yy_base[4206] =
{ 0,
0, 80, 161, 0, 4, 8, 14, 247, 21, 87,
101, 254, 25, 40, 53, 261, 265, 275, 284, 290,
94, 304,11894,11893,11890,11841, 324, 347, 365, 383,
413, 434, 314, 448, 335, 397, 505, 0, 457, 464,
591, 597, 603, 609, 419, 425, 271, 298, 102, 612,
11842,11839,11813,11807,11806,11803,11777,11771, 614, 622,
0, 0,11744,11741, 428, 611, 646, 668, 0, 0,
57, 79, 620, 627,11762,14158, 673,14158,14158,14158,
308,14158, 4, 25, 59, 52, 71, 72, 96, 279,
315, 97, 220, 271, 8,14158, 443,14158, 655, 269,
312, 578, 673, 330, 429, 681, 327, 358, 368, 686,
679, 699, 707, 421, 422, 38,11746, 133, 765, 771,
783,14158,14158,14158,14158, 789,14158,14158, 631,14158,
815, 76, 764,14158,14158,14158, 278, 798, 348, 417,
11698, 801, 372, 829, 752,11695, 540, 814, 855, 895,
883,11624, 546,11541, 904, 830, 901,14158, 913,14158,
14158, 918,11472,11466,11465, 924, 957, 964, 934, 980,
991,11462, 601, 1012,11418, 1024, 725, 1042, 770, 1054,
831,11412, 625, 1063, 645, 978, 802, 867, 663, 1072,
14158, 1081,14158,11465, 484, 475, 1047, 719, 764, 874,
717, 940, 752, 1056, 800, 953, 1064, 818, 1059, 917,
821, 885, 405, 1139,14158,11462, 1143, 1147, 476, 309,
1153, 1159, 410, 1011, 490, 493, 1096, 1114,11382, 911,
1122, 1124, 1129,11376, 943, 1158,14158, 0, 0, 0,
14158,14158, 990, 1017, 1053, 1062, 1105, 1118,14158, 120,
1162,11375, 1113, 1168,14158,14158, 282, 1178,11372, 1116,
11347, 1199, 1200,14158, 495, 0, 1187,11335, 1135, 1140,
1144, 1149, 1180, 1172, 1168, 1184,14158, 1173, 1178, 1184,
1199, 1182, 636,11394, 1229, 620, 1196, 1187, 1190, 1187,
1198, 1200, 1198, 1199, 1213, 1221, 297, 1205, 1225, 1220,
1213, 1214, 1234, 1230, 1232, 1236, 1245, 1237, 735, 1243,
1246, 1254, 1261, 1252, 641,11391,11301, 642, 1321, 1327,
1333,14158, 1293,14158, 1304,14158, 1294, 1279, 1270, 1283,
1297, 1268, 1304, 1311, 1298, 1302, 1317, 1302, 1314, 1328,
1321, 1329, 1354, 1321, 1339, 920,11323, 670, 1395, 1405,
1400,14158, 1409, 1410, 1406, 1416,11322,11319, 998, 1423,
1431, 1417, 1429, 1435, 1440, 1439,11311,11305, 1391, 1454,
1467, 1448, 1468, 1474, 1484, 1498, 1504,14158, 1510, 933,
1514, 1525,11304, 1518,11351, 1541, 1561, 346, 1578, 1584,
1585,11212,11006, 1609, 1527, 1624, 1642, 1500, 1648,14158,
1673, 1677, 1615, 1707, 842, 1708,14158,14158, 1733, 1739,
1488,11000,10999, 1005, 1722, 1549, 1633, 1684, 1745, 1701,
1568,10996, 1172, 1751, 1671, 1599, 1664, 1605, 1764, 1767,
1734, 1780,14158,11006, 949, 816,14158, 1784,14158,11000,
1463, 1335, 1402, 1444, 1474, 1477, 1503, 1529, 1581, 1753,
1658, 1746,10974, 1734, 1739, 1728, 1761, 1758, 1774, 1771,
14158, 1761, 1780, 1778, 1780, 1771, 1767, 1779, 1791, 1829,
1792, 1782, 1806, 1533,10996, 1879,14158,10917,14158, 1883,
1907, 1911, 1567, 701, 1917, 1075, 1691, 1560, 1847,10911,
1923, 1930, 1861, 898, 1755, 1100, 1889, 1035, 1936, 1851,
1110, 1937, 1942,10910, 1860,10853, 1293, 1888,14158, 1941,
1943,10827,10821, 1428, 1945, 1947, 0, 0, 0, 1829,
1030, 1882, 1899, 1476, 1921,14158,14158, 1956,10820,10817,
1955, 1948, 1968,14158, 1979,10809,10803, 1996, 1978, 2008,
10798, 1919, 1940, 1946, 1936, 1954, 1955, 1975,14158, 1985,
1984, 1984, 1986, 2035, 1983, 1982, 1967, 2026, 1980, 1992,
2001, 1633, 1998, 1992, 1669, 2007, 2005, 2003,14158, 2018,
2003, 2009, 2031, 2026, 2022, 2030, 2067, 2059, 2047, 2041,
2046, 2057, 2073,14158, 2068, 2084, 2072, 2091, 2109, 2036,
2123,14158, 2087, 2085, 2080, 2097,14158, 2078, 2093, 2107,
14158, 2092, 2099,14158,14158, 2108, 2103, 2098,14158, 2103,
2120, 2112, 2107, 2106, 2110, 2116, 2130, 2122, 2108, 2164,
10771,10674, 2185, 2194,10670, 2168,10606,10584, 2198, 2205,
10566, 2204,10520,10544, 2221, 2222, 2196, 2211, 2215, 2184,
2251, 856, 2282,10511, 2230, 2231, 2288,10432, 2253,10398,
10425, 2313, 2322, 2347, 2255, 2348, 2380, 2409, 2410, 2440,
10461, 2281, 2265, 2384, 2444, 2470, 2474,10365, 2257,10297,
10319, 2458, 2500, 2186, 2247,10290,10315, 2378, 2379, 2391,
14158, 2195, 2232, 2246, 2259, 2274, 2269, 2294,10269, 2281,
2295, 2309, 2332, 2370, 2390, 2497, 2393, 2430, 2427,10233,
2433, 2449, 2459,14158, 2459, 2463, 2464, 2468, 2471, 2494,
10165, 2495, 2500, 2502, 2492, 2489, 2512, 2501, 2496, 2519,
2498, 2523, 2521, 2511, 2528, 2525, 2543, 2516, 2543,10075,
10057, 2526, 2245, 2392, 2421, 2486, 2485, 2597, 2598, 2605,
2606,10064, 2610, 2618, 1372, 2622, 2626, 2628, 9740, 2632,
2636, 2638, 2537, 2596, 9236, 9263, 9262, 2637, 9233, 9260,
2582, 2581, 2583, 2588, 9259, 2641, 9230, 9257, 9256, 2651,
9227, 9254, 92, 2596, 2598, 2617, 2606, 2606,14158, 2607,
2620, 2630, 2634, 2616, 2638, 2666, 2653, 2656, 2650, 2629,
2644, 2649, 2667, 2671, 2670, 2678, 2680, 2680, 2695,14158,
2667, 2710, 9246, 2679,14158, 2682, 9245,14158, 2705, 2702,
2691, 2706, 2710, 2708, 2703, 9244, 2698, 2705, 2711, 2723,
2709, 2716, 2304, 2727, 2724, 2715, 9243, 2716, 2725, 2754,
2728, 2742,14158, 2674, 2739, 2729, 2745, 2736, 2731, 2750,
2754, 2752, 2768, 2752,14158, 2769, 2768, 2759, 2770, 2771,
2774, 2779, 2774, 2772, 2779, 1723, 2813, 2831, 2809, 2840,
2846, 2820, 2842, 2852, 2853, 2866, 947, 2862, 2854, 9282,
2887, 42, 2857, 9242, 916, 9189,14158, 9227,14158, 2886,
2850, 2910, 2953, 2954, 1309, 2974, 2864, 2920, 9226, 2973,
3007, 3016, 3039, 2316, 3048, 3060, 2978, 2847, 3069,14158,
9224,14158, 989, 2867, 3085, 3106, 2853, 2876, 3081, 2877,
2937, 2995, 2930, 2843, 2855, 2869, 2868, 2885, 2878, 2926,
3084,14158, 2964, 2968,14158, 9213, 2956, 3130, 3153, 2982,
2989, 2980,14158, 2994, 3037, 3037,14158, 3047, 3059, 3071,
3054, 3064, 9225, 3069, 3086, 3082, 3094, 3097, 3108, 3093,
3134, 3115, 3119, 3136, 3138, 3133, 3150, 3130, 3142, 3152,
3143, 3135, 9212, 3147, 3141, 3154, 3159, 3150, 3160, 3155,
3160, 3167,14158, 9180, 3155, 2909, 3011, 3122, 3102, 3123,
3219, 3203, 3231, 3232, 3238, 3239, 9188, 3240, 3245, 3246,
3251, 3252, 3257, 3258, 2985, 3256, 3028, 3258, 3176, 3198,
3216, 2934, 3260, 3259, 3264, 3262, 9128, 9109,14158, 3225,
3228,14158, 3246, 3246, 3240, 3235, 3236, 3259, 3242, 3257,
3261, 3263, 3249, 3260, 3248, 3275, 3250, 3255, 3297, 3303,
3287, 3287, 3288, 3292, 3293, 3299, 3301, 3301, 3313, 3301,
3311, 3309, 3320, 3311, 3312,14158, 3350, 3306, 3319, 3371,
3315, 3325, 3336, 3346, 3357, 3360, 3351, 3347, 3361, 9128,
3367, 3369, 3355, 3357, 3362,14158, 3359, 3363, 3360, 3404,
3377, 3383,14158, 3383, 3377, 3379, 3397, 3412, 3413, 3395,
3394, 3405, 3407, 3419, 3406, 3413,14158, 3413, 3430, 3418,
3429, 3428, 3426, 3435, 3427, 3429, 3445, 3426, 9095, 9028,
8999, 9026, 8779, 3501, 3479, 1508, 8806, 8772, 3510, 3480,
3484, 3487, 1344, 3519, 3545, 3522, 3579, 3554, 3588, 3525,
3602, 8740, 8711, 3442, 8710, 3479, 8723, 3479, 3472,14158,
3470,14158, 3485, 3504, 3550, 3538, 3560, 8706, 3577, 3627,
3569, 3565, 3577, 3584, 3589,14158,14158, 8686, 3586,14158,
3597, 8660, 0, 3594, 3582, 3602, 3607, 3623, 3616, 3627,
3651, 3631, 3619, 3644, 3638, 3635, 3648, 3652, 3652, 3642,
3654, 3653, 3656,14158, 3658, 3654, 3659, 3654, 3658, 8587,
3663, 3659, 3668, 3670, 8575, 18, 8542, 3573, 3616, 3617,
3621, 3711, 3732, 3718, 3733, 3739, 3740, 3741, 3746, 3665,
8475, 8442, 8413, 3682, 3688, 3704, 8343, 8314, 8330, 8301,
8303, 8310, 3705, 3715, 3720,14158, 3721, 3708,14158, 3714,
3720, 3709, 3722, 3724, 3718, 3723, 3720, 3723, 3727, 3738,
3719, 3740, 3741, 3732, 3733, 3728, 3740, 3733, 3745, 3751,
3770, 3764, 3759, 3765, 3777, 3764, 3762, 3765, 3781, 3783,
3785, 3774, 3790, 3787,14158, 3778, 3789, 3794, 3781, 3772,
3783,14158, 3815, 3794, 3009, 3780, 3800, 3801, 8302, 3830,
3822, 3823, 3819, 8262, 3814, 3820, 3838, 3823, 8260, 3829,
8226, 3843, 3829, 3832, 3839, 3844, 3846, 3846, 8224, 3837,
14158, 3844, 3833, 3837, 3849, 3840, 3852, 3866, 3870, 3872,
3887, 3888, 3879,14158, 3873, 3890, 3894, 3871, 3883, 3878,
3884, 3896, 3900, 3915, 2888, 1689, 8257, 3916, 3959, 1818,
8256, 3950, 1837, 3960, 1749, 2990, 3980, 3918, 3902, 3938,
14158, 3897, 3941, 3946, 3935, 3944, 3951, 3963, 3957, 0,
4008, 3945,14158, 3957, 3969, 3955, 3975, 3976, 4018, 3995,
3998, 8257, 3986, 8217, 8215, 8157, 8156, 8141, 3989, 4049,
3999, 8105, 8049, 4011, 4003, 4017, 4007, 4020, 4012, 4023,
4028, 4012, 4016,14158, 4051, 4035, 4035, 4060,14158, 4058,
4053, 4048, 4062, 4054, 4049, 966, 7991, 2182, 0, 3935,
3936, 4036, 4040, 4042, 3052, 4067, 4058, 7966, 7923, 4068,
4059, 4103, 4064, 4061, 4059, 4066, 4069, 4064, 4081, 4072,
4083, 4075, 4101, 4087, 4094, 4104, 4104, 4092, 4115, 4106,
4107, 4119, 4122, 4123, 4108, 4123, 4116, 4110, 4127, 4122,
4159, 4127, 4138, 4123, 4145, 4139, 4158, 4147, 4166, 4153,
4149, 4166, 4161, 4169, 4164, 4168, 4171, 4171, 4187, 4180,
4178, 4176,14158, 7926, 7798, 7746, 4192, 4180, 4195, 4194,
4182, 4217, 7681, 7673, 4199, 4210, 4223, 4233, 4211, 4204,
4219, 4214, 4222, 4226, 4238, 4243, 4244, 4238, 4244, 4245,
4245, 4231, 4241, 4255, 4236, 4257, 4248, 4249, 4251, 4272,
4275, 4282, 4280, 4270, 4291,14158, 4272, 4281, 4284, 4275,
4309, 4326, 4328, 4273, 4293, 4299, 4304,14158, 4303, 4312,
4307, 4325, 4311, 4318, 4369, 2441, 7672, 4375, 4333, 7693,
7688, 4310, 4322, 4333, 4359, 4389, 4333, 4361,14158, 4347,
14158, 4364,14158,14158,14158,14158, 7695, 4347, 4382, 4417,
7668, 4374, 4384, 4387, 4386, 4389, 4390, 4384, 4386, 4396,
4419, 4411, 4399, 4420, 4424, 4404, 4425, 4422, 4430, 4431,
4432, 4421, 7612, 3511, 7554, 0, 4465, 4433, 4456, 7492,
1989, 4425, 4427, 4470,14158, 4443, 4431, 4434, 4444, 4463,
4437, 4440, 4462, 4456, 4457, 4468, 4460, 4465, 4475, 4472,
4470, 4471, 4472, 4471, 4472, 4480, 4476, 4486, 4487, 4493,
4483, 4494, 4482, 4501, 4499, 4486, 4499, 4502, 4507, 4519,
4521, 4524, 4513, 4513, 4516, 4516, 4523, 4519, 4516, 4535,
4536, 4526, 4523, 4543, 4560, 4541, 4528, 4545,14158, 4538,
4540, 4530, 4545, 4548, 4553, 4571, 4555, 4559, 4562, 7506,
4568, 4567, 4582, 4572, 4575, 4572, 4588, 4631, 4608, 7335,
4588, 4593, 4581,14158, 4594, 4590,14158, 4598, 4584,14158,
14158,14158, 4582, 4594, 4613, 4618,14158, 4607, 4619, 4612,
4619, 4619, 4633, 4623, 4625, 4627, 4643, 4644, 4645, 4647,
4637, 4653, 4657, 4662, 4646, 4649, 4658, 4667, 4684, 2191,
7364, 4689, 4675,14158, 4673, 4689, 4690, 4692, 4693, 4685,
7315, 4731, 7302, 3568, 7112, 4682, 0,14158, 7044, 4699,
4689, 4751, 4696, 4716, 4724, 4724, 4717, 7040, 4736,14158,
7018, 4717, 4777, 4746, 4748, 4736, 4741, 4741, 4746, 4760,
4756, 4776,14158, 4784, 4777, 4785, 4784, 4786, 4788, 4787,
4787, 4794, 4781, 4782, 4778, 3580, 4814, 6952, 6955, 6954,
4782, 4790, 0, 4857, 4791, 4796,14158, 4802, 4803, 4816,
4818, 4836, 4821, 4837, 4836, 4845, 4838, 4828, 4843, 4832,
4836, 4832, 4848, 4843, 4844, 4855, 4850, 4833, 4840, 4843,
4851, 4858, 4920, 4846, 4854, 4853, 4868, 4889, 4889, 4880,
4886, 4884, 4899, 4895, 4886, 4901, 4898, 4936, 4904, 4905,
4908, 4907, 4912, 4909,14158, 4906, 4902, 4941,14158, 4920,
4918, 4924, 4938, 4931, 4938, 4952, 4953, 4946, 6946, 4952,
14158, 4949, 4955, 4941, 4943, 4957, 4945, 4947, 4977, 4952,
4959, 4965, 4963, 4968, 4956, 4957,14158, 5002, 4975, 4972,
4976,14158, 4983, 4991,14158,14158,14158,14158, 5004, 6941,
4989, 4988, 5000, 4995,14158, 5007, 5000, 5001, 5010, 5005,
5012,14158, 5017, 5051,14158, 5022, 5015, 5016, 5022, 5016,
5025, 5039, 5063, 5078, 5031, 5040, 5061, 5046, 5049, 5060,
5070, 5057, 5065, 5134, 6845, 5095, 5103, 6693, 6639, 5104,
5082, 5090,14158, 5097, 5112, 5098, 5107, 5099, 5105,14158,
5105, 5123, 5121, 5180, 6618, 5122, 5114,14158, 5110, 5131,
5131, 5133, 5134, 5130, 5135, 5131, 5160, 5137, 5156, 5175,
5167, 5169, 5183, 5190, 5187, 5175, 5188, 5178, 5194, 5195,
5186, 2177, 6390, 5261, 6257, 5265,14158, 5187, 6303, 5182,
5203, 5196, 5234, 5235, 5244, 5237, 5238, 5234, 5240, 5246,
5231, 5243, 5238, 6279, 5116, 5247, 5254, 5254, 5236, 5237,
5245, 5252,14158, 5254, 5262, 5260, 5250, 5323, 5265, 5250,
5295, 5296, 5293, 5298, 5298, 5290, 5297, 5306, 5304, 5300,
5296, 5297, 5291, 5341, 5293, 5302, 5308, 5310, 5315, 5317,
5304, 5309, 5323, 5146,14158, 5312, 5318, 5309, 5322, 5343,
5343, 5334, 5335, 5338, 5341, 5348, 5387, 5363, 5352, 5352,
5355, 5356, 5359, 5361, 5367, 5364, 5380, 5382, 5390, 5408,
5399, 5394, 5400, 5407, 5405, 5407, 5421, 5413, 5412, 5415,
5430, 5418, 5434,14158, 6036, 5435, 5437, 5431, 5438, 6077,
14158, 5962,14158, 5437, 5436, 5447, 5438, 5430, 5436, 5456,
5455, 5444,14158,14158, 5447, 5460, 1035, 1169, 5455, 5458,
5489, 5490, 5500, 5482, 5486, 5480, 5480, 5491, 5480, 5494,
5489, 5502, 5491, 5282,14158, 5507, 5517, 5525,14158,14158,
5501, 5490, 5489, 5495, 5503, 5508, 5499, 5511, 5500, 5526,
5585, 5564, 5509, 5517, 5559, 5552, 5553, 5553, 5568, 0,
5569, 5580, 5561, 5580, 5570, 5586, 5596, 5582,14158, 5598,
5599, 5600, 5601, 5603, 5591, 5597, 5608, 5612, 5608, 5603,
5622,14158, 5606, 5623, 5634, 5635, 5632, 5905, 5724, 5670,
1957, 5673, 5685, 5688, 5638,14158, 5646, 5638, 5645, 5656,
5744, 5652, 5652, 5656, 5653, 5660, 5656, 5671, 5663, 5661,
5661, 5390, 5709, 5679, 5684, 5670, 5673, 5678, 5681, 5681,
5693, 5684, 5691, 5396, 0, 5717, 5714, 5712, 5726, 5715,
5712, 5711, 5711, 5722, 5720, 0, 5734, 5735, 5741, 5724,
0, 5802, 5729, 5746, 5734, 5753, 5762, 5575, 5767, 5777,
5770,14158, 5783, 5771, 5160, 5564, 5773, 5772, 5769, 5789,
5795, 5778, 5794, 5784, 5782, 5800, 5793, 5798, 5790, 5799,
5798, 5807, 5814, 5802, 5798, 5813,14158,14158,14158,14158,
5806, 5820, 5832, 5813, 5828, 5835, 5837, 5837, 5835, 5825,
5718, 5846, 5838, 5852, 5839, 5854,14158,14158,14158,14158,
5851, 5839,14158, 5840, 5761,14158,14158, 5854, 5847,14158,
5847, 5843, 5860, 5853, 5866, 5863, 5870,14158, 1446, 1625,
14158, 2341,14158, 5863, 5867, 5884, 5693, 5661, 5705, 5539,
5911,14158, 5875, 5888, 5889, 5880, 5896, 5890, 5886, 5888,
5896, 250, 5958, 5533, 5499, 5498, 5927, 5461, 5928, 5902,
5908, 5909, 5901, 5903, 5900, 5906,14158, 5918, 5907, 5915,
5971, 5934, 5932, 5946, 5957, 5938, 5943, 5968, 5966, 5963,
5971, 5971, 5959, 5975, 5962, 5965, 0, 5969, 5972, 5980,
14158, 5985,14158,14158, 5965,14158, 5975, 5976, 5979, 5276,
5979, 5982, 5984, 5982, 5993, 5995, 5993,14158,14158, 5992,
14158, 6011, 5233, 6053, 5179, 6065, 6002, 6028,14158, 6027,
6017, 6071, 5940, 6024, 6035, 6044, 6042, 6029, 6026, 6034,
6090, 6040, 6037, 6053, 6043, 6047, 6058, 6056, 6065, 0,
6099, 6113, 6078, 6067, 6086, 6089, 6095, 6085, 6096, 6098,
14158, 6131, 6089, 5228, 6093, 6103, 6105, 6095, 6107, 6104,
6105, 6111, 6098, 6114, 0, 6106, 6113, 6108, 6122, 5176,
6113, 6110, 6159, 6130, 6123, 6183, 6142, 6141, 6144, 6143,
6152,14158,14158, 6154, 6147, 5118, 6144, 5106, 6177, 6151,
14158, 6145, 6156, 6149, 6158, 6171, 6152, 5003, 6157, 6165,
6166, 6162, 6168, 6181,14158, 6165, 6181, 6174, 4949, 6182,
6178, 6190,14158, 6184, 6186, 6185, 6187, 6193, 6211, 6197,
6198, 6203, 6204, 6220,14158,14158, 6219, 6225, 6223,14158,
6222, 6227, 6228, 4979, 2425,14158, 6233, 6230, 4870, 4824,
4692, 6254, 4732, 6255, 6256, 6219, 6233, 6228, 6226, 6233,
6237, 6235,14158, 6234, 4720, 6314, 6289, 6270, 6318, 6326,
6330, 4631, 4627, 4533, 6282, 4392, 6283, 6291, 6252, 4386,
6259, 6278, 6297, 6294, 6300, 6313, 6317, 6308,14158, 6319,
6317, 6325, 6323, 6312, 6325, 6313, 6316, 6317, 6316, 6316,
6320, 6324, 6325, 6334, 6330, 6342, 6344, 6351, 6364, 6366,
6372, 6374, 4353, 6375, 4341, 6373, 6360, 6375, 6368, 6370,
6379, 6370, 6370, 4309, 6414,14158, 4113, 6418,14158, 6380,
6378, 6386, 6391, 0, 0, 6302, 6381, 6388, 6384, 6386,
6402, 6400, 6400, 6412, 6454, 6399, 6412,14158, 6424, 6413,
6429, 6434, 6420, 4041, 0, 0, 6415, 6429, 6428, 6438,
6446, 6443,14158, 6436, 6483, 6437,14158, 6448, 6440, 6444,
6466,14158, 6451, 6459, 6471, 6502, 6474, 6480, 6469, 6480,
6471,14158, 6473, 6483, 6518, 6479, 6490, 0, 6530, 1544,
6492, 3982, 6487, 6503, 6506, 6494, 6495, 6506, 6512, 6518,
14158, 6511, 6525, 6513, 6522, 6528, 6525, 6527, 6532, 6523,
6518, 6534, 6531, 6533, 6543, 3974, 3960, 6526, 6546, 6536,
6545, 6551, 6542, 6558, 6561, 6565,14158, 6564, 6566, 6559,
6556, 6561, 6566,14158, 6573, 6571, 6566,14158, 6572, 6572,
6582, 6577, 6577, 6588, 6613, 6614,14158, 6584, 6599, 6596,
6599, 6599, 6601,14158, 3960, 6623, 6648, 6667, 3779, 6636,
6654, 6661, 6628, 6679, 6690, 6702, 652, 6708, 6720, 3816,
6642, 6655, 6638, 6628, 6639,14158, 6663, 6665, 6652, 6674,
6682, 6683, 6683, 6690, 6694, 6695, 6702, 6698, 6693, 6705,
6708, 6711, 6702,14158, 6718, 6713, 6718, 6719, 6705, 6723,
6722, 6710, 6713, 6732, 6735, 6743, 6742,14158, 6738, 6754,
6741, 6758, 6755, 6761,14158, 6765, 6754,14158, 3699, 0,
6755, 6764, 6757, 6751, 6769, 6757, 6771, 6762, 0, 0,
6769, 6772, 6760, 6780, 6779, 6763, 6785,14158, 3546, 6784,
6775, 6795, 6840, 6841,14158, 6788, 6795, 0, 6848, 6816,
6809, 6849, 6824, 6801, 6829, 6826, 6807, 6862, 6832, 6839,
6821, 6837, 6818, 6840, 6844, 6837, 0, 0, 6839, 6836,
6843, 1551, 3476, 1922, 6851, 6838, 6880, 6843, 3451, 6888,
6860, 6872, 6861, 6864, 6886, 6875, 6885, 3361, 3356, 6878,
6886, 6882, 6886, 6887, 6910, 6895, 6896, 6880, 6896, 6889,
6884, 6891, 6902, 6892, 6899, 6894,14158, 6899, 6895, 6907,
6907, 6930, 6915, 6921, 6919, 6926, 6930, 6943, 6944, 6944,
6934, 6937, 6948, 6938, 6972, 6950, 6938, 6938, 6933, 3326,
6957, 7016, 7007, 749, 7020, 7032, 7036, 7051, 3281, 3232,
7021, 7028, 7030, 7040, 2301, 7069, 942, 7089, 7098, 7104,
7110, 6978, 7123, 7129, 7018, 3210, 3194, 6963,14158, 7020,
7005, 7011, 7012, 7028, 7042, 7049, 7044, 3133, 7086, 7082,
14158, 7090,14158, 7094,14158, 7097, 7093, 7105,14158, 7107,
7098, 7112, 7110, 7112, 7114, 7104, 7117, 7109, 7116, 7119,
14158,14158,14158, 7129, 7118, 7130,14158, 7127, 7131, 7144,
7128, 7127, 7152,14158, 7137, 3116, 7145, 7145, 7158, 7145,
7146, 6995, 7150,14158, 7157, 7157, 7160, 7097, 7207,14158,
14158, 7158, 7169, 0, 7179, 7182, 7174, 7180, 7175, 7197,
7178, 7228, 7192, 0, 7247, 7175, 7189, 7190, 7253, 7205,
7190, 7217, 7215, 3017, 7217, 7227, 7220, 2880, 2033, 2924,
7220, 7227,14158, 7254, 7225,14158, 7231, 7232, 7222, 7230,
7237, 7246, 7252, 7242, 7255, 7260, 7251, 7247, 7257, 7253,
7254,14158, 7254, 7250, 7268, 7259, 7261, 7268, 7281, 7273,
7303, 7283, 7305, 7288,14158, 7282, 7285, 7291,14158, 7289,
2869, 7304, 7309, 7298,14158, 7298, 7314, 7317, 7304, 7317,
2892, 7301, 7302, 7323,14158, 7298, 7324, 1445, 7383, 2843,
7344, 7372, 7337, 7384, 7398, 7402, 7413, 2822, 7345, 7394,
3344, 7414, 7396, 7432, 7451,14158, 2810, 7390, 7386, 7397,
2728, 7403, 2640, 7410, 2604, 7411, 7404, 7418, 7410,14158,
7420, 7408, 7416, 7433, 7423, 7416, 7419, 7425,14158, 7428,
7430, 7450, 7433,14158, 7453, 7436, 7453, 7443, 7441, 7428,
7461, 7457, 7455,14158, 7464, 7470, 7460, 7469, 7466, 7516,
7486, 7433,14158, 7489, 0, 7508, 0, 7542, 7476, 7475,
2590, 7489, 7498, 7491, 7503, 7512, 7517, 7515, 7516, 7524,
7567, 7533, 7519, 7539, 2578, 7532, 7536, 7527, 7556, 7533,
7540, 7545, 7546,14158, 7545, 7562, 7565, 2437, 7552, 7548,
14158, 7567, 7560, 7574,14158, 7568, 7579,14158, 7567, 7580,
7581, 7583, 7576, 7581, 2471, 7587, 7587, 7586, 7582, 2416,
7588, 7579, 7592, 7583,14158, 7596,14158, 7591,14158,14158,
7592,14158, 2403, 7639, 7595,14158, 7598,14158, 7603, 7621,
7626, 7617, 7616, 7636, 7626,14158, 7623, 7641, 7641, 7627,
7637, 7629, 7677, 7666, 3533, 7706, 7707, 7715, 7681, 7738,
7744, 3924, 7750, 7769, 7641, 7691, 7694, 7702, 7697, 2428,
7705, 7705, 7725,14158, 7716, 7722, 7742, 7744, 7741, 7743,
14158,14158, 7750, 7752, 7738, 7738, 7558, 7754, 7756,14158,
7678, 7747, 7757, 7762, 7752, 7749, 7761, 7760, 7758, 7813,
7764, 7839, 7789, 2411, 7778, 7807, 0, 7782, 7794, 7808,
7806, 7807, 7814, 7805, 7806, 7818, 7865, 7723, 7817, 7830,
14158, 7823, 7834, 7835, 0, 7897, 7823, 7834, 7845, 7899,
7830, 7907, 7844, 7855, 7868, 7849, 7720, 7860, 7863, 7864,
7859, 2352, 7865, 7880, 7882, 7875, 7883, 2342,14158, 2298,
7875, 7888, 7889, 7880,14158, 2234, 7876, 7896, 7897, 7887,
14158, 7886,14158, 7887, 7901, 7900, 7897, 7906, 7916, 7911,
7925, 2259, 7916, 7933, 7922, 7935, 7939, 7934, 7978, 7962,
7998, 7960, 7999, 8010, 7931, 7957, 7957, 7954, 7969, 2247,
14158, 7953,14158, 7987,14158, 7986, 7979, 7982, 7991, 7996,
14158, 7987, 8056, 7971, 7999, 8053, 8064, 7987, 8004, 7990,
7990, 7991, 8000, 8005, 8001, 8061, 8091, 8062,14158, 8060,
8119, 8084, 0, 8091, 8074, 8082, 8076, 8085, 8093, 8090,
8095,14158, 7977, 8045, 8147, 8087, 8082, 8159, 8091, 8099,
8126, 8161, 8165, 8172,14158, 8122,14158, 8138,14158, 8137,
14158, 8035, 2182, 8136, 8144, 8135, 8036, 8142, 8137, 8166,
8134, 8142, 8139, 8154, 8141, 8167, 8167, 8175, 8176, 8185,
8166, 8191, 8186, 8186,14158, 8181, 8187, 8189, 8184, 8190,
8220, 8197, 8200, 8204, 2157, 8201, 8204, 8266, 8207, 8210,
8227, 2173, 8205,14158, 8228,14158,14158,14158, 8231,14158,
8216, 8277, 8305, 8166, 8302, 8228, 8241, 8244, 8235, 8239,
8252, 8250,14158, 8246, 8273,14158, 8326, 8321, 8322, 8307,
8312, 8357, 8326, 8314, 8314, 8315, 0, 8274, 8364, 8365,
8336, 8341, 8372, 8340, 8330, 8339, 2166, 8312, 8400, 8388,
8335,14158,14158,14158, 8381, 8378, 8381, 8382,14158, 8381,
8390, 8398, 8404, 8385, 8402, 2019, 8390, 1998,14158, 8391,
14158, 8405, 8406, 8398, 8397, 8401,14158, 2050, 8409, 8403,
3139, 8411, 8405, 8447, 8418, 8440, 8455, 0, 1830, 8441,
8443, 8458, 8460, 1759, 8460, 8448, 8392, 8485, 8506, 8532,
14158, 8463, 8466, 8470, 8393, 8481, 8485, 8497, 8448, 8492,
8488, 8490,14158, 8497, 8560, 8513, 8498, 8499, 8567, 8494,
1709, 8495, 0, 1652, 8586, 0, 8495, 8506, 3353, 8538,
8555, 8550, 8589, 8617, 8608,14158, 8544, 8558, 8553,14158,
8582, 1579, 8587, 8615, 8599, 8603, 8607, 8608, 8607, 8621,
8606, 8606, 8607, 8620, 8623, 8624,14158, 1374, 8623, 3280,
14158, 3939, 8624, 8659, 8621, 8628, 8653, 0, 0, 8671,
14158, 8656, 8671,14158,14158, 8705, 8716, 8643, 8685, 8449,
8673, 8744, 8450, 0, 8669, 8598, 8674, 8676, 8686, 8671,
8753, 8677, 8686,14158, 8779, 8696, 8687, 1313, 1065, 8719,
8744, 5695, 1008, 7013, 8710, 8729, 8747, 8804, 8740, 8750,
8757,14158, 8758, 8768, 8774, 8762, 8764, 8777, 8779, 8771,
8787, 8788, 8731, 8817, 8787,14158, 8789,14158, 989, 5386,
14158, 5403, 8808, 914, 8792, 0, 8788,14158, 8800, 8847,
8868, 0, 0, 0,14158, 8800, 8599, 8804, 8865, 8706,
0, 0, 8872, 0, 8833, 8831, 8837, 8851, 8855, 8856,
8878, 8856, 8872,14158,14158, 8875, 8877, 8863, 8882, 879,
8664, 876, 8875, 8865, 8867, 8867, 8868, 8870, 8866, 8880,
8890,14158, 8888, 8895, 8880,14158, 8879, 8883,14158,14158,
8894, 8921,14158, 6682,14158, 8888,14158, 8905, 8912,14158,
830, 8910, 0, 8961, 0, 8919, 0, 743, 8916, 8928,
8925, 8931, 8926, 8929, 8934, 8972, 8853, 8854, 8938, 8943,
8974, 8937, 8944,14158, 8949, 8950,14158, 8953, 8950, 8940,
8947, 8947, 8945, 8952, 670,14158,14158, 8963, 8956, 8971,
8975,14158, 8958, 602, 0, 9002, 447, 9010,14158, 8969,
8978,14158, 8982, 8982, 8988, 8983, 9034, 8996, 9035, 9036,
9042, 9043, 9006, 9007, 9024, 9011, 9026,14158, 436, 9025,
9021, 9025, 9031, 9023, 9037, 461, 367, 9032, 9068,14158,
330, 9064, 366, 9033, 9030, 9036,14158, 9026, 9033, 0,
9077, 9039, 9105, 0, 9106, 0, 9112, 9113,14158, 9051,
14158, 9052, 9064, 9065,14158, 9061, 9072, 9091, 9075, 9093,
9088, 0, 315, 9128, 9080, 9086, 9136, 9082, 9138,14158,
9101, 262, 254, 9144, 0, 9156, 0,14158, 9114, 9113,
9103, 9110, 9118, 9109, 9125, 9123, 9117, 9120, 9126, 0,
0, 143, 9172, 0, 9127, 9182, 9176, 9193, 9141,14158,
14158, 138, 109, 9177, 9176, 9179,14158,14158, 9167,14158,
9188, 9179, 9183, 9184, 0, 43,14158, 9208, 9238, 9247,
9199,14158,14158, 9213, 9221, 9222,14158, 6, 9233, 9243,
14158,14158, 9266,14158,14158,14158, 9240,14158,14158, 9236,
9237, 9249, 9257, 9250,14158, 9262, 9262, 9264,14158,14158,
9326, 9344, 9362, 9380, 9398, 9416, 9434, 9452, 9470, 9488,
9506, 9524, 9542, 9560, 9578, 9596, 9614, 9632, 9650, 9668,
9686, 9704, 9722, 9740, 9758, 9776, 9794, 9812, 9830, 9848,
9866, 9884, 9902, 9920, 9938, 9956, 9974, 9992,10010,10028,
10046,10064,10082,10100,10118,10136,10154,10172,10190,10208,
10226,10244,10262,10280,10298,10316,10334,10352,10370,10387,
10405,10423,10441,10459,10477,10494,10512,10530,10548,10566,
10584,10602,10620,10638,10656,10674,10692,10710,10728,10746,
10764,10782,10800,10818,10836,10854,10872,10890,10908,10925,
10943,10961,10979,10997,11015,11033,11051,11068,11086,11104,
11122,11140,11158,11176,11194,11212,11230,11248,11266,11284,
11302,11320,11338,11356,11374,11392,11409,11427,11445,11463,
11481,11499,11517,11534,11552,11570,11588,11606,11624,11642,
11660,11678,11696,11714,11732,11750,11768,11786,11804,11822,
11840,11857,11875,11893,11911,11929,11947,11965,11983,12001,
12019,12037,12048,12062,12080,12088,12104,12121,12125,12141,
12159,12169,12185,12203,12221,12239,12256,12272,12290,12308,
12326,12344,12362,12379,12395,12413,12422,12438,12456,12474,
12492,12509,12517,12532,12548,12565,12583,12601,12619,12637,
12655,12673,12691,12709,12727,12745,12755,12763,12778,12793,
12804,12812,12820,12836,12852,12868,12885,12903,12921,12939,
12957,12975,12993,13011,13029,13047,13065,13083,13101,13119,
13137,13155,13168,13176,13184,13192,13203,13219,13235,13243,
13251,13267,13285,13303,13321,13339,13357,13375,13393,13411,
13429,13447,13465,13481,13497,13515,13533,13543,13559,13575,
13588,13606,13623,13640,13657,13668,13684,13701,13718,13730,
13746,13764,13781,13799,13816,13834,13851,13867,13884,13894,
13910,13927,13945,13962,13980,13998,14015,14032,14050,14062,
14078,14095,14112,14123,14139
} ;
static const flex_int16_t yy_def[4206] =
{ 0,
3921, 3921, 3920, 3, 3922, 3922, 3, 3, 3923, 3923,
3923, 3923, 3924, 3924, 3925, 3925, 3926, 3926, 3927, 3927,
3928, 3928, 3922, 3922, 3922, 3922, 3929, 3929, 3930, 3930,
3930, 3930, 3931, 3931, 3932, 3932, 3920, 37, 37, 37,
3922, 3922, 3922, 3922, 3922, 3922, 3933, 3933, 3934, 3934,
3935, 3935, 3936, 3936, 3937, 3937, 3938, 3938, 3939, 3939,
3922, 3922, 3940, 3940, 3941, 3941, 3939, 3939, 3922, 3922,
3942, 3942, 3943, 3943, 3920, 3920, 3920, 3920, 3920, 3920,
3944, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 131, 3920, 3920, 3920, 3945, 3945, 3945, 3920,
3920, 3945, 3946, 3946, 3946, 3920, 3947, 3946, 3948, 3948,
3948, 3920, 3949, 3920, 3948, 3950, 3950, 3920, 3950, 3920,
3920, 3951, 3920, 3920, 3920, 3951, 3952, 3951, 3953, 3953,
3953, 3920, 3954, 3953, 3920, 3955, 3920, 3953, 3956, 3956,
3956, 3920, 3957, 3956, 3958, 3958, 3958, 3920, 3920, 3958,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3959, 3959, 3920, 3920,
3959, 3960, 3960, 3920, 3961, 3960, 3920, 3962, 3963, 3964,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3965, 3920, 3966, 3965, 3920, 3920, 3920, 3967, 3920, 3968,
3920, 3967, 3920, 3920, 3920, 3969, 3969, 3969, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3970, 3920, 3970, 3970, 3970,
3920, 3920, 3970, 3970, 3970, 3971, 3920, 3972, 3971, 3971,
3971, 3920, 3971, 3971, 3971, 3973, 3920, 3974, 3973, 3973,
3973, 3920, 3973, 3973, 3973, 3975, 3975, 3920, 3975, 3920,
3975, 3976, 3920, 3976, 3920, 3977, 3978, 3979, 3978, 3976,
3980, 3920, 3981, 3980, 3980, 3980, 3980, 3920, 3980, 3920,
3982, 3983, 3984, 3983, 3985, 3983, 3920, 3920, 3980, 3980,
3986, 3920, 3987, 3986, 3986, 3986, 3920, 3986, 3986, 3986,
3988, 3920, 3988, 3988, 3920, 3988, 3920, 3920, 3988, 3988,
3988, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3989, 3920, 3989, 3920, 3920, 3989,
3990, 3920, 3991, 3990, 3920, 3990, 3992, 3993, 3994, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3995, 3920, 3996,
3995, 3920, 3995, 3920, 3997, 3920, 3998, 3997, 3920, 3997,
3999, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 4000,
3920, 3920, 4000, 4000, 4001, 4002, 3920, 3920, 4002, 4002,
4003, 4004, 3920, 3920, 4004, 4004, 3920, 3920, 4005, 4006,
4005, 4007, 4008, 4009, 4009, 4009, 4008, 4010, 4011, 3920,
3920, 4012, 4013, 4012, 4014, 4012, 4015, 4016, 4016, 4016,
4017, 4017, 4017, 4018, 4016, 4011, 4011, 4019, 4020, 3920,
3920, 4020, 4020, 3920, 4021, 3920, 3920, 4021, 3920, 4021,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4022, 3920, 3920, 4023, 4024, 3920, 3920,
3920, 3920, 3920, 3920, 4025, 4026, 3920, 3920, 4027, 4028,
3920, 3920, 4029, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 4030, 3920, 4030, 4031, 3920,
4031, 4032, 3920, 4032, 3920, 4033, 4034, 4034, 4034, 4035,
4033, 4035, 4035, 3920, 4036, 3920, 3920, 4036, 3920, 4011,
3920, 4037, 4037, 4037, 4038, 4039, 4038, 4038, 4040, 4041,
4037, 4042, 4039, 4040, 4039, 4039, 4011, 4043, 4011, 3920,
4043, 3920, 4043, 4043, 4044, 4011, 4045, 3920, 4045, 4046,
3920, 4046, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 4047, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4048, 3920, 4049, 3920, 3920, 3920,
3920, 3920, 4050, 3920, 4051, 3920, 4052, 4052, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 4053,
3920, 4054, 3920, 4055, 4056, 4057, 4058, 3920, 4037, 4059,
4059, 4059, 4040, 4037, 4039, 4040, 4039, 4060, 4039, 4061,
4062, 4063, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4064, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 4047, 4065, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 4066, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 4067, 3920, 3920, 3920, 3920, 4068, 3920, 4069, 3920,
4070, 4070, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4056, 4057, 4056, 4057, 4059, 4039, 4059,
4040, 4059, 4040, 4071, 4040, 4040, 4039, 4061, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 4064,
4072, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 4073, 3920,
3920, 4065, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 4066, 3920, 4066, 4074, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4070, 4070, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
4059, 4040, 4060, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4072, 4075, 4064, 4072, 3920, 3920,
3920, 3920, 3920, 3920, 4076, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4066, 3920, 4074, 3920, 3920, 3920, 4070,
4077, 3920, 3920, 4078, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 4040,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
4064, 4072, 3920, 4075, 4064, 3920, 4079, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 4066, 3920, 4070, 4080, 4081,
3920, 3920, 4082, 4078, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4083, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4072, 3920, 4075, 4075, 3920, 4079, 4084,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 4085, 4080, 4080, 4081, 4081, 3920, 3920, 4082, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4086, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4087, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
4083, 4088, 4083, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4089, 3920, 4084, 4090, 4084, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 4091,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4092, 4093, 4080,
3920, 4080, 4081, 4081, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 4094, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4086, 4095, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 4096, 3920, 3920, 3920, 3920,
4097, 4087, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4083, 4088, 3920,
4088, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 4089, 4098, 4099, 3920, 4084, 4090, 3920, 4090, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 4091, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 4092, 4100, 4093, 4101, 3920, 3920, 3920, 3920,
3920, 4102, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 4103,
4094, 4104, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4095, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4096, 3920, 3920, 3920, 3920, 4097,
3920, 3920, 3920, 3920, 3920, 4105, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 4088, 3920, 4083, 4088, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4106, 4098, 4107, 4089, 4108, 4109,
4098, 4110, 3920, 3920, 4111, 3920, 4112, 4111, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4113, 4114, 3920, 4115, 4116, 3920, 3920,
3920, 3920, 3920, 4117, 4118, 4119, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4120, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4121, 4122, 4123, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4124, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4125, 3920, 3920, 4126, 4126, 4127,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4128, 4129, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4130, 4131, 4132, 4133, 3920, 4134,
4135, 4131, 4136, 4137, 4138, 4139, 4130, 4132, 4139, 4140,
4141, 4142, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 4143, 4144,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 4145, 4146,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 4147, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4148, 4148, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4149, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 4150, 4151, 3920, 3920,
3920, 4152, 3920, 4152, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4153, 3920, 3920, 3920, 3920, 3920,
3920, 4132, 4154, 4130, 4155, 4132, 4132, 4156, 3920, 3920,
4154, 4154, 4157, 4157, 4158, 4159, 4140, 4159, 4159, 4160,
4160, 4130, 4161, 4161, 4162, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 4145, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4163, 4164, 3920,
3920, 3920, 3920, 4165, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4166, 4149, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4150, 3920, 3920, 3920, 3920, 4152, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4130, 4132, 3920,
4154, 4130, 4158, 4159, 4155, 4161, 4132, 3920, 4157, 4154,
4140, 4159, 4140, 4167, 4159, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4163, 4163, 4168, 4164, 3920, 3920,
4165, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4166, 3920, 3920, 3920, 4169, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4152, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 4132, 4154, 4158, 4155, 4155, 4161, 4157, 4159,
4167, 4140, 4159, 4167, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
4170, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4168, 3920, 3920, 4171, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4169, 4169, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 4132, 4154,
4167, 4140, 4159, 4167, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 4171, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 4172, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 4173, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4167, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 4172, 4172, 4174, 4175,
3920, 3920, 3920, 3920, 3920, 3920, 4173, 4173, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4176, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
4174, 4174, 4177, 4175, 4175, 4178, 3920, 3920, 4179, 3920,
3920, 3920, 4173, 4173, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4176, 4180, 3920,
3920, 3920, 3920, 3920, 3920, 4181, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4182, 3920, 4183, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 4177, 4178, 3920,
3920, 4179, 3920, 4179, 3920, 3920, 3920, 4173, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 4180, 3920, 3920, 3920, 4181,
4181, 4184, 4185, 4186, 3920, 3920, 4187, 3920, 3920, 3920,
4182, 4188, 4183, 4189, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
4179, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
4185, 3920, 4190, 4187, 4191, 4192, 4188, 4189, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
4179, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 4190, 4191, 4192, 3920, 4192, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 4193, 3920, 4194, 4195,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 4192, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 4193,
4193, 3920, 4194, 4196, 4195, 4197, 4198, 4199, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 4200, 3920, 4201, 4192, 3920, 3920, 3920, 3920, 3920,
3920, 4196, 4197, 4198, 4202, 4199, 4203, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 4200,
4204, 4201, 4201, 4205, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 4202, 4203, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 4204, 4205, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 0,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920
} ;
static const flex_int16_t yy_nxt[14246] =
{ 0,
3920, 77, 78, 79, 77, 118, 80, 81, 118, 118,
283, 284, 118, 3920, 82, 119, 120, 121, 119, 122,
123, 3920, 129, 98, 124, 129, 130, 98, 125, 1387,
83, 135, 84, 85, 3908, 269, 136, 86, 87, 88,
315, 316, 98, 89, 90, 91, 135, 92, 93, 3902,
131, 136, 94, 1106, 138, 139, 95, 138, 83, 872,
84, 85, 140, 269, 141, 86, 87, 88, 256, 270,
126, 89, 90, 91, 1388, 92, 93, 132, 283, 284,
94, 77, 78, 79, 77, 257, 80, 81, 129, 98,
256, 129, 130, 271, 82, 157, 158, 270, 157, 127,
96, 272, 129, 98, 233, 129, 130, 257, 234, 142,
83, 235, 84, 85, 273, 3893, 131, 86, 87, 88,
274, 271, 1007, 89, 90, 91, 275, 92, 93, 272,
133, 280, 94, 526, 318, 527, 95, 318, 83, 1008,
84, 85, 273, 132, 3892, 86, 87, 88, 274, 3920,
159, 89, 90, 91, 275, 92, 93, 132, 236, 280,
94, 96, 97, 98, 96, 97, 96, 96, 96, 96,
96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
96, 99, 96, 96, 100, 101, 102, 103, 104, 105,
96, 96, 96, 106, 96, 107, 108, 109, 110, 111,
112, 113, 96, 114, 115, 96, 96, 116, 96, 99,
96, 96, 100, 101, 102, 103, 104, 105, 96, 96,
96, 106, 96, 107, 108, 109, 110, 111, 112, 113,
96, 114, 115, 96, 96, 96, 96, 117, 119, 120,
121, 119, 122, 123, 281, 129, 98, 124, 129, 130,
3871, 125, 138, 139, 2284, 138, 144, 145, 3870, 144,
140, 146, 141, 228, 147, 229, 144, 145, 2485, 144,
230, 146, 281, 133, 147, 150, 151, 347, 150, 347,
152, 150, 151, 153, 150, 526, 152, 527, 154, 153,
228, 282, 229, 126, 154, 157, 158, 230, 157, 267,
132, 489, 267, 569, 276, 180, 181, 142, 180, 289,
182, 148, 277, 183, 569, 163, 164, 231, 163, 282,
165, 148, 127, 96, 348, 166, 186, 187, 163, 188,
155, 167, 276, 3861, 189, 278, 155, 289, 163, 164,
277, 163, 163, 165, 231, 290, 268, 347, 166, 347,
159, 163, 279, 645, 167, 490, 170, 171, 295, 170,
184, 172, 3768, 278, 173, 163, 174, 301, 357, 175,
168, 358, 176, 290, 170, 171, 3803, 170, 302, 172,
279, 190, 173, 177, 174, 3832, 295, 175, 186, 187,
176, 188, 646, 168, 348, 301, 189, 474, 475, 163,
163, 177, 497, 498, 170, 171, 302, 170, 303, 172,
224, 178, 173, 224, 174, 225, 224, 175, 359, 224,
176, 225, 163, 163, 252, 170, 171, 253, 170, 178,
172, 177, 252, 173, 285, 174, 303, 285, 175, 180,
181, 176, 180, 190, 182, 313, 252, 183, 214, 215,
216, 217, 177, 191, 314, 214, 215, 216, 217, 178,
191, 191, 296, 351, 297, 226, 441, 487, 191, 441,
487, 226, 488, 313, 254, 438, 439, 440, 438, 3831,
178, 502, 314, 3824, 502, 503, 504, 283, 284, 286,
296, 352, 297, 3803, 184, 191, 192, 193, 194, 192,
191, 195, 191, 191, 191, 191, 191, 191, 191, 196,
191, 191, 191, 191, 191, 191, 191, 191, 191, 191,
191, 191, 191, 191, 191, 197, 198, 199, 200, 201,
191, 191, 191, 202, 191, 191, 203, 204, 205, 206,
207, 191, 208, 209, 210, 191, 211, 191, 212, 191,
191, 213, 191, 197, 198, 199, 200, 201, 191, 191,
191, 202, 191, 191, 203, 204, 205, 206, 207, 191,
208, 209, 210, 191, 211, 191, 212, 191, 191, 191,
191, 191, 218, 219, 220, 221, 359, 222, 218, 219,
220, 221, 369, 222, 218, 219, 220, 221, 3800, 222,
218, 219, 220, 221, 233, 222, 291, 252, 234, 242,
253, 235, 315, 316, 352, 252, 259, 242, 292, 260,
352, 261, 327, 259, 259, 327, 260, 557, 261, 252,
557, 259, 590, 318, 291, 590, 318, 223, 259, 422,
243, 242, 244, 223, 422, 259, 292, 395, 243, 223,
244, 245, 246, 247, 248, 223, 2284, 254, 236, 245,
246, 247, 248, 242, 263, 264, 262, 263, 243, 619,
244, 414, 243, 262, 244, 400, 243, 265, 244, 245,
246, 247, 248, 245, 246, 247, 248, 245, 246, 247,
248, 423, 287, 489, 243, 288, 244, 293, 2872, 400,
243, 298, 244, 306, 294, 245, 246, 247, 248, 428,
304, 245, 246, 247, 248, 299, 620, 3794, 307, 265,
287, 300, 243, 288, 244, 293, 305, 308, 407, 298,
408, 306, 294, 245, 246, 247, 248, 400, 304, 3769,
310, 584, 309, 299, 311, 312, 307, 490, 357, 300,
446, 358, 584, 2284, 305, 308, 319, 320, 321, 319,
452, 322, 323, 320, 321, 323, 412, 324, 310, 413,
309, 398, 311, 312, 325, 321, 321, 325, 446, 326,
323, 320, 321, 323, 447, 324, 455, 342, 452, 349,
343, 448, 349, 353, 354, 3032, 422, 347, 359, 347,
347, 422, 347, 449, 344, 345, 364, 365, 474, 475,
357, 320, 447, 358, 455, 342, 414, 320, 343, 448,
360, 377, 378, 360, 377, 357, 3762, 412, 358, 321,
413, 449, 344, 345, 459, 320, 328, 329, 330, 331,
332, 333, 465, 334, 350, 472, 335, 355, 423, 662,
336, 367, 337, 338, 368, 339, 340, 341, 285, 367,
363, 285, 459, 872, 328, 329, 330, 331, 332, 333,
465, 334, 3624, 472, 335, 361, 379, 414, 336, 367,
337, 338, 368, 339, 340, 341, 370, 367, 663, 370,
741, 367, 377, 378, 368, 377, 374, 375, 450, 367,
367, 369, 873, 368, 377, 380, 381, 377, 367, 383,
383, 451, 383, 427, 383, 383, 383, 473, 383, 347,
383, 347, 383, 645, 637, 3692, 450, 637, 383, 369,
392, 386, 3717, 393, 470, 394, 383, 471, 392, 451,
441, 371, 383, 441, 742, 473, 2284, 379, 383, 388,
373, 383, 392, 383, 868, 383, 383, 508, 383, 379,
383, 388, 646, 453, 384, 471, 348, 1563, 383, 424,
384, 396, 425, 454, 396, 383, 392, 422, 460, 393,
395, 394, 383, 3713, 392, 509, 461, 392, 3043, 514,
393, 453, 394, 383, 383, 392, 662, 625, 392, 383,
383, 454, 499, 389, 668, 499, 460, 500, 392, 392,
390, 393, 1564, 394, 461, 391, 392, 509, 391, 401,
392, 520, 870, 403, 426, 404, 397, 748, 405, 2260,
392, 2261, 383, 388, 409, 410, 569, 395, 392, 383,
383, 393, 392, 394, 626, 415, 392, 569, 415, 520,
412, 669, 521, 413, 3692, 419, 420, 501, 395, 412,
392, 3685, 413, 659, 429, 430, 422, 497, 498, 442,
406, 422, 432, 433, 434, 432, 456, 522, 443, 466,
521, 749, 444, 467, 462, 435, 523, 445, 399, 468,
506, 463, 744, 745, 457, 506, 458, 442, 469, 391,
416, 464, 503, 504, 456, 522, 443, 466, 506, 418,
444, 467, 462, 506, 523, 445, 506, 468, 431, 463,
512, 506, 457, 513, 458, 512, 469, 436, 513, 464,
476, 477, 478, 476, 480, 477, 478, 481, 482, 483,
484, 482, 507, 485, 482, 483, 484, 491, 524, 485,
492, 493, 494, 492, 512, 495, 525, 513, 529, 531,
507, 530, 538, 2262, 529, 2263, 529, 530, 510, 542,
514, 674, 529, 543, 536, 514, 524, 537, 267, 536,
529, 267, 536, 544, 525, 436, 529, 534, 545, 436,
534, 263, 264, 486, 263, 536, 536, 542, 537, 486,
536, 543, 546, 536, 516, 496, 547, 548, 531, 549,
550, 544, 551, 552, 533, 553, 545, 536, 675, 556,
285, 554, 559, 285, 538, 268, 560, 561, 562, 563,
546, 564, 565, 566, 547, 548, 555, 549, 550, 567,
551, 552, 568, 553, 570, 540, 265, 556, 571, 554,
559, 572, 573, 574, 560, 561, 562, 563, 575, 564,
565, 566, 576, 579, 555, 582, 577, 567, 578, 583,
568, 585, 570, 580, 581, 286, 571, 586, 587, 572,
573, 574, 588, 589, 323, 327, 575, 323, 327, 324,
576, 579, 753, 582, 577, 325, 578, 583, 325, 585,
326, 580, 581, 593, 594, 586, 587, 595, 598, 3684,
588, 589, 319, 320, 321, 319, 887, 322, 323, 320,
321, 323, 604, 324, 325, 321, 321, 325, 599, 326,
596, 593, 594, 597, 606, 595, 598, 605, 607, 754,
265, 610, 600, 601, 602, 1323, 603, 611, 612, 614,
604, 1113, 613, 615, 617, 608, 599, 682, 596, 618,
609, 597, 606, 613, 986, 605, 607, 320, 3648, 610,
600, 601, 602, 320, 603, 611, 612, 614, 616, 321,
613, 615, 617, 608, 889, 682, 349, 618, 609, 349,
631, 613, 600, 601, 347, 367, 347, 353, 354, 621,
623, 355, 624, 623, 619, 347, 616, 347, 347, 347,
347, 347, 357, 363, 360, 358, 627, 360, 987, 357,
600, 601, 358, 364, 365, 357, 629, 757, 358, 629,
625, 357, 630, 683, 358, 367, 357, 632, 368, 358,
2465, 350, 2466, 367, 373, 370, 622, 633, 370, 2284,
367, 620, 355, 368, 441, 348, 348, 441, 367, 374,
375, 683, 359, 628, 367, 635, 631, 368, 635, 361,
367, 367, 367, 368, 758, 363, 636, 626, 367, 684,
367, 359, 584, 368, 412, 369, 359, 413, 367, 377,
378, 3032, 377, 584, 634, 377, 378, 685, 377, 650,
371, 377, 380, 381, 377, 377, 638, 684, 377, 383,
383, 686, 383, 632, 373, 872, 383, 383, 399, 383,
369, 383, 383, 392, 733, 685, 648, 733, 394, 383,
369, 392, 383, 640, 414, 383, 383, 383, 687, 686,
2793, 419, 420, 383, 379, 640, 651, 2968, 668, 688,
379, 735, 383, 388, 735, 383, 379, 383, 487, 383,
379, 487, 422, 488, 390, 388, 687, 422, 643, 383,
388, 384, 383, 649, 382, 383, 383, 688, 383, 383,
383, 392, 388, 1317, 393, 643, 394, 641, 383, 392,
2794, 429, 430, 383, 383, 669, 383, 2969, 674, 431,
383, 383, 383, 392, 676, 392, 399, 389, 393, 399,
394, 399, 689, 392, 423, 396, 642, 640, 396, 2260,
392, 2261, 660, 393, 647, 394, 3633, 392, 392, 418,
390, 395, 670, 399, 409, 410, 383, 388, 392, 805,
689, 648, 392, 394, 392, 675, 392, 393, 3920, 394,
805, 677, 392, 383, 388, 395, 315, 316, 431, 383,
383, 406, 285, 676, 391, 285, 392, 391, 391, 392,
397, 391, 653, 392, 654, 808, 403, 655, 404, 671,
412, 405, 487, 413, 658, 487, 808, 488, 649, 661,
399, 392, 693, 673, 399, 392, 868, 412, 391, 391,
413, 391, 391, 392, 392, 3920, 403, 664, 404, 404,
677, 405, 405, 415, 658, 658, 415, 427, 412, 656,
693, 413, 1098, 406, 666, 392, 391, 666, 422, 392,
418, 667, 393, 422, 394, 392, 672, 392, 393, 672,
394, 412, 424, 392, 413, 425, 743, 414, 657, 743,
422, 392, 391, 406, 665, 678, 1113, 392, 679, 680,
2509, 422, 697, 422, 870, 698, 422, 699, 416, 620,
694, 432, 433, 434, 432, 438, 439, 440, 438, 395,
431, 695, 391, 391, 435, 395, 690, 700, 691, 701,
697, 414, 692, 698, 702, 699, 704, 426, 694, 705,
707, 706, 708, 710, 712, 703, 713, 715, 714, 695,
423, 716, 709, 423, 690, 700, 691, 701, 730, 731,
692, 711, 702, 886, 704, 887, 436, 705, 707, 706,
708, 710, 712, 703, 713, 715, 714, 732, 736, 716,
709, 736, 502, 737, 1113, 502, 730, 731, 3589, 711,
717, 718, 739, 719, 506, 739, 720, 740, 721, 506,
722, 723, 724, 761, 725, 732, 726, 727, 728, 729,
476, 477, 478, 476, 480, 477, 478, 480, 717, 718,
746, 719, 510, 746, 720, 747, 721, 755, 722, 723,
724, 761, 725, 889, 726, 727, 728, 729, 480, 477,
478, 481, 482, 483, 484, 482, 507, 485, 492, 493,
494, 492, 1321, 495, 482, 483, 484, 491, 2968, 485,
762, 492, 493, 494, 492, 436, 495, 499, 502, 436,
499, 502, 500, 750, 756, 506, 750, 763, 751, 512,
506, 516, 513, 512, 759, 764, 513, 767, 762, 2131,
2131, 529, 529, 436, 765, 530, 774, 486, 557, 529,
529, 557, 775, 496, 529, 763, 533, 530, 2794, 486,
776, 777, 529, 764, 529, 536, 496, 771, 537, 540,
536, 1750, 501, 536, 774, 778, 529, 510, 779, 514,
775, 760, 536, 516, 768, 769, 540, 536, 776, 777,
536, 766, 531, 780, 536, 781, 782, 537, 783, 536,
784, 799, 536, 778, 533, 800, 779, 801, 802, 803,
801, 804, 806, 807, 772, 538, 536, 590, 809, 3128,
590, 780, 810, 781, 782, 266, 783, 811, 784, 799,
812, 813, 770, 800, 3577, 3570, 802, 803, 814, 804,
806, 807, 815, 816, 540, 785, 809, 786, 787, 817,
810, 788, 789, 790, 818, 811, 3568, 791, 812, 813,
792, 823, 793, 794, 795, 796, 814, 797, 798, 2794,
815, 816, 824, 785, 825, 786, 787, 817, 819, 788,
789, 790, 818, 821, 822, 791, 826, 827, 792, 823,
793, 794, 795, 796, 828, 797, 798, 820, 829, 830,
824, 831, 825, 835, 834, 833, 819, 834, 836, 837,
838, 821, 822, 839, 826, 827, 833, 840, 841, 832,
842, 843, 828, 844, 845, 820, 829, 830, 846, 831,
847, 835, 848, 849, 850, 851, 836, 837, 838, 852,
853, 839, 854, 855, 351, 840, 841, 832, 842, 843,
3553, 844, 845, 347, 357, 347, 846, 358, 847, 2129,
848, 849, 850, 851, 2509, 3508, 623, 852, 853, 623,
854, 855, 355, 1563, 347, 858, 347, 637, 858, 629,
637, 868, 629, 347, 357, 347, 861, 358, 1113, 861,
367, 357, 865, 368, 358, 865, 383, 640, 367, 383,
856, 383, 635, 864, 859, 635, 864, 367, 367, 640,
368, 368, 866, 266, 877, 367, 367, 390, 1388, 3475,
869, 348, 428, 383, 878, 914, 733, 645, 645, 733,
348, 422, 383, 640, 359, 383, 422, 382, 2509, 392,
862, 359, 393, 412, 394, 640, 413, 392, 866, 870,
431, 641, 887, 914, 903, 886, 915, 369, 369, 383,
916, 392, 662, 383, 388, 900, 874, 3411, 383, 383,
388, 3396, 383, 399, 383, 901, 875, 917, 662, 643,
642, 640, 388, 910, 915, 643, 918, 871, 916, 880,
383, 888, 2871, 907, 391, 879, 383, 391, 919, 392,
1066, 904, 653, 399, 654, 917, 399, 655, 399, 2492,
882, 1066, 920, 1113, 918, 922, 642, 640, 389, 884,
889, 392, 923, 924, 647, 2262, 919, 2263, 391, 391,
399, 391, 391, 392, 392, 3391, 653, 890, 654, 654,
920, 655, 655, 922, 882, 882, 902, 876, 388, 656,
923, 924, 1116, 383, 388, 392, 391, 925, 656, 678,
590, 391, 679, 590, 391, 399, 392, 422, 399, 892,
399, 893, 912, 976, 894, 913, 976, 895, 657, 3390,
422, 660, 926, 656, 891, 925, 885, 886, 392, 3384,
391, 391, 399, 897, 391, 392, 392, 3349, 403, 403,
404, 404, 735, 898, 405, 735, 658, 658, 927, 2465,
926, 2466, 657, 657, 423, 428, 896, 392, 392, 2509,
406, 391, 930, 2968, 897, 391, 392, 423, 391, 403,
392, 404, 1703, 403, 898, 404, 927, 658, 405, 672,
3290, 658, 672, 931, 412, 406, 659, 413, 392, 399,
930, 666, 392, 3282, 666, 906, 392, 932, 906, 393,
392, 394, 934, 393, 392, 394, 977, 736, 392, 977,
736, 931, 737, 2969, 899, 391, 659, 1704, 392, 935,
905, 909, 392, 936, 909, 932, 412, 937, 928, 413,
934, 938, 939, 940, 414, 929, 929, 929, 929, 929,
929, 929, 929, 929, 941, 899, 395, 935, 3277, 391,
395, 936, 942, 944, 945, 937, 950, 951, 952, 938,
939, 940, 953, 954, 957, 955, 960, 946, 947, 956,
948, 949, 941, 958, 963, 964, 414, 961, 965, 966,
942, 944, 945, 969, 950, 951, 952, 962, 959, 975,
953, 954, 957, 955, 960, 946, 947, 956, 948, 949,
967, 958, 963, 964, 3251, 961, 965, 966, 970, 968,
971, 969, 972, 508, 3237, 962, 959, 975, 978, 739,
506, 978, 739, 979, 740, 506, 980, 981, 967, 980,
981, 743, 982, 999, 743, 2509, 970, 968, 971, 984,
972, 510, 984, 746, 985, 1000, 746, 988, 747, 989,
988, 1001, 989, 750, 990, 1002, 750, 992, 751, 993,
992, 999, 993, 512, 994, 1009, 513, 529, 1010, 1011,
530, 2509, 995, 1000, 1012, 529, 1013, 536, 1014, 1001,
537, 1015, 536, 1002, 1016, 536, 1017, 1018, 801, 529,
1019, 801, 1033, 1009, 1034, 834, 1010, 1011, 834, 536,
1031, 1035, 1012, 1025, 1013, 1020, 1014, 1026, 1021, 1015,
1028, 1027, 1016, 997, 1017, 1018, 1022, 1003, 1019, 1032,
1033, 1036, 1034, 1023, 1029, 1038, 1030, 1005, 1031, 1035,
1024, 1025, 1040, 1020, 1043, 1026, 1021, 1037, 1028, 1027,
1039, 1041, 1044, 1042, 1022, 1045, 1046, 1032, 1049, 1036,
1050, 1023, 1029, 1038, 1030, 1052, 1053, 1046, 1024, 2509,
1040, 1054, 1043, 1055, 1056, 1037, 1057, 1058, 1039, 1041,
1044, 1042, 1060, 1045, 1061, 1062, 1049, 1063, 1050, 1064,
1065, 1067, 1068, 1052, 1053, 1069, 1071, 1047, 1072, 1054,
1073, 1055, 1056, 1075, 1057, 1058, 1076, 1077, 1078, 1079,
1060, 1073, 1061, 1062, 1080, 1063, 1081, 1064, 1065, 1067,
1068, 1082, 1074, 1069, 1071, 1083, 1072, 1084, 1085, 1086,
1087, 1075, 1088, 1090, 1076, 1077, 1078, 1079, 1091, 1092,
1089, 1093, 1080, 1094, 1081, 1095, 1096, 1097, 1100, 1082,
1074, 1893, 1099, 1083, 355, 1084, 1085, 1086, 1087, 1102,
1088, 1090, 858, 3040, 367, 858, 1091, 1092, 1089, 1093,
347, 1094, 347, 1095, 1096, 1097, 363, 861, 373, 1101,
861, 1103, 357, 864, 865, 358, 864, 865, 367, 1108,
390, 368, 1122, 390, 662, 626, 367, 383, 640, 622,
383, 868, 383, 1105, 872, 1110, 632, 1104, 399, 868,
640, 887, 418, 866, 662, 1123, 1124, 348, 383, 640,
1126, 383, 392, 383, 383, 1107, 628, 394, 634, 3038,
392, 640, 359, 663, 866, 872, 651, 1127, 369, 669,
976, 391, 1128, 976, 391, 383, 392, 1129, 1126, 653,
3176, 1109, 641, 1120, 655, 1130, 3167, 882, 1131, 1111,
2794, 834, 671, 675, 834, 1127, 2970, 887, 392, 870,
1128, 431, 649, 871, 873, 1129, 1125, 870, 399, 889,
1073, 642, 640, 1130, 391, 391, 1131, 391, 391, 392,
392, 1073, 653, 653, 654, 1109, 656, 655, 655, 1132,
882, 882, 642, 640, 399, 391, 1112, 399, 391, 399,
392, 392, 392, 892, 392, 893, 428, 393, 894, 394,
884, 895, 392, 677, 1200, 657, 912, 1132, 1136, 913,
1137, 399, 392, 1139, 422, 889, 392, 1113, 391, 883,
883, 391, 977, 392, 1141, 977, 653, 399, 654, 1142,
399, 655, 399, 3124, 882, 1453, 1136, 1143, 1137, 656,
886, 1139, 1144, 1115, 395, 392, 1453, 1202, 657, 657,
391, 754, 1141, 391, 399, 392, 1502, 1142, 892, 391,
893, 423, 391, 894, 392, 1143, 895, 892, 886, 1117,
1144, 391, 894, 1114, 391, 895, 392, 392, 1453, 1118,
1145, 893, 896, 1146, 894, 392, 392, 895, 393, 1453,
394, 1147, 909, 392, 758, 909, 391, 412, 391, 391,
413, 392, 657, 1148, 1121, 896, 404, 392, 1145, 405,
889, 1146, 658, 1188, 896, 1149, 1188, 906, 1150, 1147,
906, 1151, 392, 391, 1133, 393, 1119, 394, 1154, 1134,
392, 1148, 3084, 978, 980, 395, 978, 980, 979, 1155,
1156, 1135, 1157, 1149, 392, 1158, 1150, 414, 1159, 1151,
1160, 665, 1133, 3580, 2509, 3581, 1154, 1134, 1140, 1140,
1140, 1140, 1140, 1140, 1140, 1140, 1140, 1155, 1156, 1135,
1157, 1161, 395, 1158, 1162, 1163, 1159, 1164, 1160, 1165,
391, 929, 929, 929, 929, 929, 929, 929, 929, 929,
1166, 1167, 1168, 1169, 1170, 1171, 1172, 1173, 1177, 1180,
1175, 1181, 1162, 1163, 1176, 1164, 1178, 1165, 1182, 1179,
1183, 1184, 1185, 1187, 1189, 3046, 1204, 1189, 1166, 1167,
1168, 1169, 1170, 1171, 1172, 1173, 1177, 1180, 1175, 1181,
981, 1893, 1176, 981, 1178, 982, 1182, 1179, 1183, 1184,
1185, 1187, 1190, 984, 1204, 1190, 984, 1191, 985, 1192,
1193, 988, 1192, 1193, 988, 1194, 989, 1196, 1205, 989,
1196, 990, 1197, 992, 1206, 1197, 992, 1198, 993, 1199,
510, 993, 1199, 994, 516, 1201, 529, 1203, 1208, 1207,
536, 1210, 1213, 1209, 529, 536, 1205, 1214, 536, 1215,
1216, 1217, 1206, 1218, 3580, 1219, 3581, 533, 3038, 1220,
540, 1221, 2864, 1222, 1223, 1224, 1225, 1230, 1233, 1234,
1213, 1226, 1227, 1228, 1229, 1214, 1231, 1215, 1216, 1217,
1232, 1218, 756, 1219, 760, 768, 766, 1220, 772, 1221,
770, 1222, 1223, 1224, 1225, 1230, 1233, 1234, 1235, 1226,
1227, 1228, 1229, 1236, 1231, 1237, 1238, 1239, 1232, 1240,
1241, 1242, 1245, 1248, 1246, 1243, 1250, 1244, 1247, 1251,
1252, 1253, 1254, 1255, 3025, 1260, 1235, 1261, 2284, 3623,
1249, 1236, 1264, 1237, 1238, 1239, 1265, 1240, 1241, 1242,
1245, 1248, 1246, 1243, 1250, 1244, 1247, 1251, 1252, 1253,
1254, 1255, 1256, 1260, 1266, 1261, 1257, 1262, 1249, 1267,
1264, 1268, 1269, 1258, 1265, 1259, 1270, 1271, 1262, 1272,
3043, 1274, 1275, 1276, 1277, 1278, 1279, 1280, 1281, 3624,
1256, 1289, 1266, 2985, 1257, 1290, 1291, 1267, 2984, 1268,
1269, 1258, 1292, 1259, 1270, 1271, 1293, 1272, 1263, 1274,
1275, 1276, 1277, 1278, 1279, 1280, 1281, 1282, 1283, 1289,
1294, 1284, 1295, 1290, 1291, 1296, 1285, 1297, 1298, 1299,
1292, 1300, 1286, 1301, 1293, 1302, 1287, 1303, 1288, 1304,
1305, 1306, 1307, 1308, 1309, 1282, 1283, 1310, 1294, 1284,
1295, 1311, 1312, 1296, 1285, 1297, 1298, 1299, 1313, 1300,
1286, 1301, 351, 1302, 1287, 1303, 1288, 1304, 1305, 1306,
1307, 1308, 1309, 1316, 1320, 1310, 868, 887, 428, 1311,
1312, 887, 383, 640, 887, 383, 1313, 383, 2975, 1329,
355, 391, 1331, 1332, 391, 1314, 392, 1333, 866, 653,
391, 654, 1746, 391, 1318, 392, 431, 882, 1324, 383,
654, 1325, 2970, 655, 1328, 1334, 882, 1329, 392, 1113,
1331, 1332, 662, 1322, 3187, 1333, 391, 391, 1335, 391,
399, 392, 2934, 399, 892, 399, 1117, 641, 399, 894,
399, 2492, 895, 1334, 1317, 1321, 656, 1388, 883, 889,
1338, 1115, 889, 392, 1188, 891, 1335, 1188, 1326, 1886,
391, 904, 399, 391, 1336, 392, 1315, 640, 892, 391,
893, 1563, 391, 894, 392, 1319, 895, 892, 1338, 893,
1337, 886, 894, 399, 657, 895, 399, 392, 399, 1339,
896, 1342, 1336, 1344, 1345, 1346, 392, 1189, 1190, 660,
1189, 1190, 1390, 1191, 1887, 1390, 1347, 1348, 1337, 1350,
399, 1351, 1353, 1354, 1355, 896, 1564, 1339, 1343, 1342,
1356, 1344, 1345, 1346, 1327, 1140, 1140, 1140, 1140, 1140,
1140, 1140, 1140, 1140, 1347, 1348, 1357, 1350, 406, 1351,
1353, 1354, 1355, 1358, 1319, 1359, 1361, 1362, 1356, 1360,
1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1363, 1364,
1365, 1366, 1367, 1370, 1357, 1368, 1369, 399, 1371, 1372,
1373, 1358, 1374, 1359, 1361, 1362, 1375, 1376, 1377, 1378,
1380, 1381, 1382, 1383, 1384, 2917, 1363, 1364, 1365, 1366,
1367, 1370, 1192, 1368, 1369, 1192, 1371, 1372, 1373, 1391,
1374, 508, 1391, 1395, 1375, 1376, 1377, 1378, 1380, 1381,
1382, 1383, 1384, 1193, 1392, 1396, 1193, 1392, 1194, 1393,
1196, 1197, 1394, 1196, 1197, 1394, 1198, 1199, 1397, 510,
1199, 1395, 1400, 1401, 1402, 1403, 1404, 1405, 1406, 1407,
1408, 1409, 1410, 1396, 1411, 1412, 1413, 1415, 1416, 1417,
1418, 1419, 1414, 1420, 1421, 1422, 1397, 1423, 1424, 1425,
1400, 1401, 1402, 1403, 1404, 1405, 1406, 1407, 1408, 1409,
1410, 1426, 1411, 1412, 1413, 1415, 1416, 1417, 1418, 1419,
1414, 1420, 1421, 1422, 1427, 1423, 1424, 1425, 1428, 1429,
1430, 1431, 1432, 1433, 1434, 1435, 1436, 1438, 1439, 1426,
1440, 1441, 1442, 1443, 1444, 1445, 1446, 1447, 1452, 1454,
2284, 1437, 1427, 1455, 1456, 2859, 1428, 1429, 1430, 1431,
1432, 1433, 1434, 1435, 1436, 1438, 1439, 1448, 1440, 1441,
1442, 1443, 1444, 1445, 1446, 1447, 1452, 1454, 1449, 1437,
1458, 1455, 1456, 1450, 1451, 1459, 1460, 1461, 1463, 1464,
1465, 1466, 1468, 1470, 1471, 1448, 1472, 1473, 1475, 1476,
1477, 1479, 1480, 1474, 1481, 1482, 1449, 1483, 1458, 1484,
1485, 1450, 1451, 1459, 1460, 1461, 1463, 1464, 1465, 1466,
1468, 1470, 1471, 1486, 1472, 1473, 1475, 1476, 1477, 1479,
1480, 1474, 1481, 1482, 1487, 1483, 1488, 1484, 1485, 1489,
1490, 1491, 1492, 1493, 1494, 1495, 1496, 1497, 1498, 1499,
1500, 1486, 868, 887, 1504, 662, 1390, 1391, 2284, 1390,
1391, 1507, 1487, 3650, 1488, 3651, 3920, 1489, 1490, 1491,
1492, 1493, 1494, 1495, 1496, 1497, 1498, 1499, 1500, 1501,
391, 399, 1504, 391, 399, 392, 399, 887, 892, 1507,
893, 869, 888, 894, 2284, 1508, 895, 884, 399, 1509,
3312, 391, 1510, 1505, 391, 1506, 392, 392, 399, 1503,
1511, 893, 1512, 1513, 894, 1514, 1519, 895, 1520, 1521,
870, 889, 659, 1508, 1522, 1523, 1112, 1509, 391, 1516,
1510, 1505, 1516, 1506, 1516, 896, 656, 2820, 1511, 1517,
1512, 1513, 1516, 1514, 1519, 1524, 1520, 1521, 1529, 1525,
1530, 2819, 1522, 1523, 1532, 889, 1119, 1392, 1538, 2796,
1392, 1567, 1393, 1394, 1567, 886, 1394, 2758, 1539, 1542,
1543, 1544, 1545, 1524, 1546, 1547, 1529, 1548, 1530, 1527,
1549, 1550, 1532, 1551, 1518, 1528, 1538, 1360, 1360, 1360,
1360, 1360, 1360, 1360, 1360, 1360, 1539, 1542, 1543, 1544,
1545, 1552, 1546, 1547, 1553, 1548, 1554, 1527, 1549, 1550,
1555, 1551, 1556, 1528, 1557, 1559, 1560, 1561, 1562, 1568,
1558, 1569, 1572, 1573, 1574, 1575, 1576, 1574, 1577, 1552,
1578, 1579, 1553, 1580, 1554, 1581, 1582, 1583, 1555, 1584,
1556, 1588, 1557, 1559, 1560, 1561, 1562, 1568, 1558, 1569,
1572, 1573, 1589, 1575, 1576, 1585, 1577, 1590, 1578, 1579,
1591, 1580, 1592, 1581, 1582, 1583, 1593, 1584, 1586, 1588,
1594, 1595, 1596, 1587, 1601, 1602, 1597, 1603, 1604, 1605,
1589, 1606, 1598, 1585, 1599, 1590, 1607, 1600, 1591, 2346,
1592, 1614, 1615, 1616, 1593, 1617, 1586, 1618, 1594, 1595,
1596, 1587, 1601, 1602, 1597, 1603, 1604, 1605, 1619, 1606,
1598, 1620, 1599, 1608, 1607, 1600, 1621, 1609, 1622, 1614,
1615, 1616, 1623, 1617, 1610, 1618, 1611, 1612, 1624, 1613,
1625, 1626, 1627, 1628, 1629, 1630, 1619, 1631, 1632, 1620,
1633, 1608, 1634, 1638, 1621, 1609, 1622, 1639, 1640, 1641,
1623, 1642, 1610, 1649, 1611, 1612, 1624, 1613, 1625, 1626,
1627, 1628, 1629, 1630, 1650, 1631, 1632, 1643, 1633, 1654,
1634, 1638, 1656, 1651, 1644, 1639, 1640, 1641, 1657, 1642,
1654, 1649, 1645, 1658, 1659, 1660, 1652, 1646, 1653, 1661,
1662, 1655, 1650, 1663, 1664, 1643, 1665, 1666, 1667, 1668,
1656, 1651, 1644, 1669, 1670, 1673, 1657, 1674, 1675, 1676,
1645, 1658, 1659, 1660, 1652, 1646, 1653, 1661, 1662, 1655,
1677, 1663, 1664, 1671, 1665, 1666, 1667, 1668, 1672, 1678,
1679, 1669, 1670, 1673, 1680, 1674, 1675, 1676, 1681, 1682,
1685, 1687, 1688, 1683, 1689, 1686, 887, 1691, 1677, 399,
1692, 1671, 399, 1693, 399, 1690, 1672, 1678, 1679, 1684,
1694, 1695, 1680, 1113, 1696, 1115, 1681, 1682, 1685, 1687,
1688, 1683, 1689, 1686, 399, 1691, 399, 1697, 1692, 1698,
1699, 1693, 1700, 1706, 1709, 2344, 2726, 1684, 1694, 1695,
1516, 1710, 1696, 1516, 1711, 1516, 1516, 1716, 2724, 1516,
1701, 1516, 1326, 1516, 896, 1697, 1701, 1698, 1699, 1516,
1700, 1706, 1709, 883, 889, 1717, 1718, 2667, 1719, 1710,
1713, 1721, 1711, 2498, 1714, 1716, 1715, 1526, 1526, 1526,
1526, 1526, 1526, 1526, 1526, 1526, 1722, 1725, 1726, 1727,
1728, 1729, 1730, 1717, 1718, 1702, 1719, 1731, 1713, 1721,
1732, 1518, 1714, 1733, 1715, 1723, 1723, 1723, 1723, 1723,
1723, 1723, 1723, 1723, 1722, 1725, 1726, 1727, 1728, 1729,
1730, 1734, 1735, 1736, 1737, 1731, 1738, 1739, 1732, 1740,
1741, 1733, 1742, 1743, 1744, 1745, 1567, 1747, 1751, 1567,
1752, 1574, 1654, 1755, 1574, 1756, 1753, 1757, 1758, 1734,
1735, 1736, 1737, 1654, 1738, 1739, 1761, 1740, 1741, 1762,
1742, 1743, 1744, 1745, 1763, 1747, 1751, 1759, 1752, 1764,
1765, 1755, 1766, 1756, 1760, 1757, 1758, 1767, 1768, 1769,
1770, 1771, 1772, 1773, 1761, 1774, 1775, 1762, 1776, 1777,
1778, 1779, 1763, 1780, 1781, 1759, 1782, 1764, 1765, 1783,
1766, 1784, 1760, 1785, 1786, 1767, 1768, 1769, 1770, 1771,
1772, 1773, 1787, 1774, 1775, 1788, 1776, 1777, 1778, 1779,
1789, 1780, 1781, 1790, 1782, 1791, 1792, 1783, 1793, 1784,
1794, 1785, 1786, 1795, 1796, 1797, 1798, 1799, 1800, 1801,
1787, 1802, 1803, 1788, 1804, 1807, 1805, 1808, 1789, 1809,
1810, 1790, 1811, 1791, 1792, 1812, 1793, 1805, 1794, 2496,
1813, 1795, 1796, 1797, 1798, 1799, 1800, 1801, 1814, 1802,
1803, 1815, 1804, 1807, 1816, 1808, 1817, 1809, 1810, 1818,
1811, 1819, 1821, 1812, 1822, 1823, 1824, 1806, 1813, 1825,
1826, 1839, 1827, 1840, 1837, 1841, 1814, 1842, 1843, 1815,
1844, 1845, 1816, 1828, 1817, 1837, 1846, 1818, 2078, 1819,
1821, 1847, 1822, 1823, 1824, 2284, 1848, 1825, 1826, 1839,
1827, 1840, 1849, 1841, 1850, 1842, 1843, 1851, 1844, 1845,
1852, 1828, 1829, 1830, 1846, 1853, 1831, 1854, 1832, 1847,
1855, 1856, 1833, 1834, 1848, 1857, 1835, 1858, 1859, 1860,
1849, 1836, 1850, 1861, 1862, 1851, 1863, 1864, 1852, 1865,
1829, 1830, 1869, 1853, 1831, 1854, 1832, 1870, 1855, 1856,
1833, 1834, 1866, 1857, 1835, 1858, 1859, 1860, 1871, 1836,
1867, 1861, 1862, 1868, 1863, 1864, 1872, 1865, 1873, 1875,
1869, 1876, 1877, 1878, 1879, 1870, 1880, 1882, 1883, 1888,
1866, 1891, 1516, 1892, 2284, 1516, 1871, 1516, 1867, 1881,
1894, 1868, 1884, 2475, 1872, 1516, 1873, 1875, 2473, 1876,
1877, 1878, 1879, 1895, 1880, 1882, 1883, 1888, 1896, 1891,
1897, 1892, 1893, 1898, 1905, 1899, 1901, 1881, 1894, 1712,
1712, 1712, 1712, 1712, 1712, 1712, 1712, 1712, 1902, 1906,
1907, 1895, 1908, 1903, 1909, 1910, 1896, 1518, 1897, 1911,
1912, 1898, 1905, 1899, 1901, 1723, 1723, 1723, 1723, 1723,
1723, 1723, 1723, 1723, 1913, 1914, 1902, 1906, 1907, 1915,
1908, 1903, 1909, 1910, 1916, 1917, 1921, 1911, 1912, 1918,
1924, 1925, 1926, 1927, 1928, 1929, 1930, 1922, 1931, 1919,
1837, 1937, 1913, 1914, 1938, 2063, 1923, 1915, 1940, 1941,
1920, 1837, 1916, 1917, 1921, 1942, 1943, 1918, 1924, 1925,
1926, 1927, 1928, 1929, 1930, 1922, 1931, 1919, 3920, 1937,
1944, 3920, 1938, 3920, 1923, 1945, 1940, 1941, 1920, 1946,
1947, 1948, 1949, 1942, 1943, 1950, 1951, 1952, 1953, 1955,
1956, 1957, 1958, 1959, 1960, 1961, 1962, 1963, 1944, 1964,
1965, 1966, 1967, 1945, 1954, 1969, 2664, 1946, 1947, 1948,
1949, 1970, 1971, 1950, 1951, 1952, 1953, 1955, 1956, 1957,
1958, 1959, 1960, 1961, 1962, 1963, 1972, 1964, 1965, 1966,
1967, 1968, 1954, 1969, 1968, 1973, 1974, 1975, 1976, 1970,
1971, 1977, 1978, 1979, 1980, 1981, 1982, 1984, 1985, 1986,
1984, 1987, 1983, 1988, 1972, 1990, 1991, 1992, 1989, 1993,
1994, 1997, 1998, 1973, 1974, 1975, 1976, 1995, 1999, 1977,
1978, 1979, 1980, 1981, 1982, 2002, 1985, 1986, 1995, 1987,
1983, 1988, 2003, 1990, 1991, 1992, 1989, 1993, 1994, 1997,
1998, 2000, 2004, 2005, 2006, 2008, 1999, 2009, 2010, 2011,
2012, 2013, 2014, 2002, 2015, 2001, 2018, 2019, 1996, 2020,
2003, 2021, 2022, 2023, 2024, 2661, 2640, 2016, 2030, 2000,
2004, 2005, 2006, 2008, 2031, 2009, 2010, 2011, 2012, 2013,
2014, 2017, 2015, 2032, 2018, 2019, 2033, 2020, 2034, 2021,
2022, 2023, 2024, 2025, 2026, 2016, 2030, 2035, 2037, 2027,
2038, 2039, 2031, 2040, 2041, 2042, 2043, 2028, 2044, 2017,
2029, 2032, 2045, 2046, 2033, 2047, 2034, 2053, 2054, 2055,
2630, 2025, 2026, 2056, 2057, 2035, 2037, 2027, 2038, 2039,
2058, 2040, 2041, 2042, 2043, 2028, 2044, 2059, 2029, 2064,
2045, 2046, 2048, 2047, 2049, 2053, 2054, 2055, 2050, 2062,
2065, 2056, 2057, 2068, 2048, 2066, 2049, 2069, 2058, 2051,
2050, 2052, 2067, 2070, 2071, 2059, 1703, 2064, 2072, 2073,
2048, 2051, 2049, 2060, 1703, 2077, 2050, 2152, 2065, 2079,
2152, 2068, 2048, 2066, 2049, 2069, 2080, 2051, 2050, 2052,
2067, 2070, 2071, 2081, 2063, 1516, 2072, 2073, 1516, 2051,
1516, 2060, 2082, 2085, 2083, 1701, 2084, 2079, 1516, 2086,
2087, 1704, 2088, 2089, 2080, 2090, 2101, 2102, 2103, 1887,
2078, 2081, 2192, 2620, 2104, 2105, 2106, 2107, 2108, 2109,
2082, 2085, 2083, 2192, 2084, 2618, 2412, 2086, 2087, 2110,
2088, 2089, 2602, 2090, 2101, 2102, 2103, 2412, 2113, 2114,
1702, 2091, 2104, 2105, 2106, 2107, 2108, 2109, 2092, 2092,
2092, 2092, 2092, 2092, 2092, 2092, 2092, 2110, 2111, 2115,
2093, 2116, 2094, 2095, 2096, 2112, 2113, 2114, 2097, 2117,
2118, 2121, 2119, 2098, 2122, 2123, 2124, 2125, 2126, 2127,
2135, 2137, 2099, 2120, 2587, 2346, 2111, 2115, 2093, 2116,
2094, 2095, 2096, 2112, 2138, 2139, 2097, 2117, 2118, 2121,
2119, 2098, 2122, 2123, 2124, 2125, 2126, 2127, 2135, 2137,
2099, 2120, 2130, 2131, 2132, 2130, 2133, 2131, 2134, 2133,
2140, 2141, 2138, 2139, 2142, 2143, 2144, 2145, 2146, 2147,
2148, 2149, 2150, 2153, 2154, 2155, 2156, 2157, 2158, 2344,
2159, 2160, 2161, 2283, 2162, 2163, 2284, 2166, 2140, 2141,
2167, 2534, 2142, 2143, 2144, 2145, 2146, 2147, 2148, 2149,
2150, 2153, 2154, 2155, 2156, 2157, 2158, 1934, 2159, 2160,
2161, 1936, 2162, 2163, 1968, 2166, 2168, 1968, 2167, 2165,
2169, 2170, 2171, 2172, 2173, 2174, 2175, 2176, 2177, 2178,
2179, 2180, 1984, 2183, 2184, 1984, 2185, 2181, 2186, 2187,
2188, 2189, 2190, 2191, 2168, 2193, 2194, 2195, 2169, 2170,
2171, 2172, 2173, 2174, 2175, 2176, 2177, 2178, 2179, 2180,
2196, 2183, 2184, 2197, 2185, 2198, 2186, 2187, 2188, 2189,
2190, 2191, 2199, 2193, 2194, 2195, 2200, 2201, 2202, 2203,
3650, 2152, 3651, 2215, 2152, 2216, 2370, 3920, 2196, 2217,
3920, 2197, 3920, 2198, 2218, 2219, 2220, 3714, 2221, 3715,
2199, 2222, 2223, 2224, 2200, 2201, 2202, 2203, 2204, 2205,
2206, 2215, 2207, 2216, 2208, 2209, 2225, 2217, 2210, 2211,
2212, 2226, 2218, 2219, 2220, 2213, 2221, 2214, 2227, 2222,
2223, 2224, 2228, 2229, 2230, 2231, 2204, 2205, 2206, 2232,
2207, 2233, 2208, 2209, 2225, 2234, 2210, 2211, 2212, 2226,
2235, 2236, 2237, 2213, 2238, 2214, 2227, 2239, 2240, 2242,
2228, 2229, 2230, 2231, 2243, 2244, 2245, 2232, 2248, 2233,
2249, 2250, 2251, 2234, 2252, 2253, 2254, 2255, 2235, 2236,
2237, 2256, 2238, 2257, 2258, 2239, 2240, 2242, 2259, 2264,
2267, 2270, 2243, 2244, 2245, 2265, 2248, 2266, 2249, 2250,
2251, 2267, 2252, 2253, 2254, 2255, 2272, 2496, 2285, 2256,
2273, 2257, 2258, 2274, 2275, 2276, 2259, 2264, 2288, 2277,
2278, 2279, 2280, 2265, 2281, 2266, 2285, 2290, 2291, 2292,
2293, 2294, 2295, 2296, 2272, 2268, 2271, 2297, 2273, 2298,
2309, 2274, 2275, 2276, 2078, 2493, 2063, 2277, 2278, 2279,
2280, 2492, 2281, 2286, 2310, 2290, 2291, 2292, 2293, 2294,
2295, 2296, 2299, 2289, 2300, 2297, 2406, 2298, 2309, 2406,
2413, 2078, 2092, 2092, 2092, 2092, 2092, 2092, 2092, 2092,
2092, 2413, 2310, 2311, 2312, 2473, 2314, 2315, 2316, 2313,
2299, 2318, 2300, 2301, 2301, 2301, 2301, 2301, 2301, 2301,
2301, 2301, 2319, 2320, 2321, 2302, 2322, 2303, 2304, 2305,
2323, 2311, 2312, 2306, 2314, 2315, 2316, 2313, 2307, 2318,
2324, 2325, 2326, 2327, 2328, 2329, 2330, 2308, 2331, 2332,
2319, 2320, 2321, 2302, 2322, 2303, 2304, 2305, 2323, 2333,
2334, 2306, 2335, 2336, 2337, 2338, 2307, 2339, 2324, 2325,
2326, 2327, 2328, 2329, 2330, 2308, 2331, 2332, 2340, 2341,
2342, 2130, 2131, 2132, 2130, 2131, 2132, 2333, 2334, 2347,
2335, 2336, 2337, 2338, 2348, 2339, 2133, 2131, 2134, 2133,
2131, 2134, 2349, 2350, 2351, 2360, 2340, 2341, 2342, 2361,
2362, 3690, 2363, 2364, 2365, 2366, 2367, 2347, 2368, 2369,
2372, 2374, 2348, 2372, 2375, 2376, 2471, 2063, 2377, 2378,
2349, 2350, 2351, 2360, 2379, 2380, 1934, 2361, 2362, 1934,
2363, 2364, 2365, 2366, 2367, 2381, 2368, 2369, 2382, 2374,
2383, 1936, 2375, 2376, 1936, 2352, 2377, 2378, 2352, 2470,
2373, 3691, 2379, 2380, 2385, 2386, 2387, 2388, 2389, 2390,
2391, 2472, 2392, 2381, 2353, 2455, 2382, 2393, 2383, 2394,
2396, 2397, 2398, 2399, 2401, 2446, 2402, 2354, 2373, 2355,
2346, 2403, 2385, 2386, 2387, 2388, 2389, 2390, 2391, 2356,
2392, 2357, 2358, 2359, 2404, 2393, 2405, 2394, 2396, 2397,
2398, 2399, 2401, 3920, 2402, 2354, 3920, 2355, 3920, 2403,
2407, 2408, 2409, 2410, 2411, 2414, 2415, 2356, 2416, 2357,
2358, 2359, 2404, 2417, 2405, 2418, 2419, 2421, 2422, 2423,
2424, 2425, 2426, 2427, 2428, 2420, 2429, 2430, 2407, 2408,
2409, 2410, 2411, 2414, 2415, 2433, 2416, 2434, 2431, 2435,
2436, 2417, 2437, 2418, 2419, 2421, 2422, 2423, 2424, 2425,
2426, 2427, 2428, 2432, 2429, 2430, 2438, 2439, 2440, 2441,
2442, 2443, 2444, 2433, 2445, 2434, 2431, 2435, 2436, 2447,
2437, 2448, 2449, 2450, 2451, 2452, 2453, 2454, 2456, 2457,
2458, 2432, 2459, 2460, 2438, 2439, 2440, 2441, 2442, 2443,
2444, 2461, 2445, 2462, 2463, 2464, 2467, 2447, 2468, 2448,
2449, 2450, 2451, 2452, 2453, 2454, 2456, 2457, 2458, 2469,
2459, 2460, 2474, 2476, 2477, 2478, 2479, 2480, 2481, 2461,
2482, 2462, 2463, 2464, 2467, 2483, 2468, 2484, 2494, 2497,
2499, 2556, 2500, 2501, 2556, 2502, 2503, 2469, 2504, 2505,
2506, 2476, 2477, 2478, 2479, 2480, 2481, 2507, 2482, 2487,
2508, 2344, 2487, 2483, 2487, 2484, 2247, 2475, 2499, 2488,
2500, 2501, 2489, 2502, 2503, 2510, 2504, 2505, 2506, 2511,
2512, 2515, 2509, 2495, 2498, 2507, 2490, 2516, 2508, 2301,
2301, 2301, 2301, 2301, 2301, 2301, 2301, 2301, 2517, 2513,
2518, 2519, 2520, 2510, 2514, 2521, 2522, 2511, 2512, 2515,
2523, 2524, 2525, 2526, 2491, 2516, 2527, 2528, 2529, 2530,
2531, 2532, 2533, 2535, 2536, 2537, 2517, 2513, 2518, 2519,
2520, 2538, 2514, 2521, 2522, 2539, 2540, 2541, 2523, 2524,
2525, 2526, 2542, 2543, 2527, 2528, 2529, 2530, 2531, 2532,
2533, 2535, 2536, 2537, 2545, 2546, 2549, 2545, 2550, 2538,
2553, 2551, 2557, 2539, 2540, 2541, 2548, 2546, 2552, 2548,
2542, 2543, 2352, 2558, 2560, 2352, 2561, 2554, 2562, 2559,
2563, 2246, 2564, 2566, 2549, 2567, 2550, 2568, 2553, 2551,
2557, 2565, 2569, 2241, 2565, 2570, 2552, 2571, 2572, 2573,
3920, 2558, 2560, 3920, 2561, 3920, 2562, 2559, 2563, 2344,
2564, 2566, 2577, 2567, 2372, 2568, 2578, 2372, 2579, 2575,
2569, 2346, 2580, 2570, 2343, 2571, 2572, 2573, 2581, 2582,
2583, 2584, 2585, 2586, 2588, 2585, 2345, 2589, 2590, 2591,
2577, 2592, 2593, 2594, 2578, 2595, 2579, 2596, 2597, 2598,
2580, 2599, 2600, 2601, 2603, 2604, 2581, 2582, 2583, 2584,
2605, 2586, 2588, 2605, 2606, 2589, 2590, 2591, 2607, 2592,
2593, 2594, 2611, 2595, 2612, 2596, 2597, 2598, 2613, 2599,
2600, 2601, 2603, 2604, 2609, 2614, 2615, 2609, 2616, 2610,
2617, 2619, 2606, 2621, 2623, 2624, 2607, 2625, 2626, 2627,
2611, 2628, 2612, 2629, 2621, 2631, 2613, 2632, 2633, 2634,
2635, 2636, 2637, 2614, 2615, 2638, 2616, 2639, 2617, 2619,
2641, 2642, 2623, 2624, 2643, 2625, 2626, 2627, 2644, 2628,
2645, 2629, 2646, 2631, 2622, 2632, 2633, 2634, 2635, 2636,
2637, 2647, 2648, 2638, 2649, 2639, 2650, 2651, 2641, 2642,
2652, 2653, 2643, 2654, 2655, 2656, 2644, 2657, 2645, 2658,
2646, 2659, 2660, 2662, 2663, 2665, 2267, 2471, 2667, 2647,
2648, 2668, 2649, 2669, 2650, 2651, 2670, 2671, 2652, 2653,
2672, 2654, 2655, 2656, 2284, 2657, 2673, 2658, 2674, 2659,
2660, 2662, 2663, 2691, 2285, 2693, 2667, 2151, 2485, 2668,
2679, 2669, 2494, 2556, 2670, 2671, 2556, 2694, 2672, 2136,
2475, 2666, 2475, 1936, 2673, 2487, 2674, 2680, 2487, 2487,
2487, 2695, 2487, 2693, 2487, 2676, 2682, 2487, 2489, 2683,
2487, 2487, 2487, 2696, 2487, 2694, 2487, 2687, 2498, 2692,
2489, 2676, 2677, 1893, 2489, 2681, 2684, 2498, 2697, 2695,
2698, 2699, 2700, 2701, 2688, 2702, 2703, 2704, 2677, 2705,
2706, 2696, 2707, 2708, 2709, 2710, 2711, 2712, 2713, 2714,
2678, 1893, 2715, 2716, 2685, 2717, 2697, 2718, 2698, 2699,
2700, 2701, 2689, 2702, 2703, 2704, 2491, 2705, 2706, 2719,
2707, 2708, 2709, 2710, 2711, 2712, 2713, 2714, 2720, 2721,
2715, 2716, 2722, 2717, 2723, 2718, 2725, 2727, 2728, 2729,
2730, 2731, 2732, 2733, 2734, 2545, 2546, 2719, 2545, 2548,
2546, 2735, 2548, 2736, 2737, 2738, 2720, 2721, 2741, 2742,
2722, 2743, 2723, 2744, 2725, 2727, 2728, 2729, 2730, 2731,
2732, 2733, 2734, 2745, 2746, 2747, 1934, 2748, 2751, 2735,
2752, 2736, 2737, 2738, 2753, 2565, 2741, 2742, 2565, 2743,
2749, 2744, 2754, 2755, 2756, 2757, 2760, 2761, 2762, 2763,
2344, 2745, 2746, 2747, 2346, 2748, 2751, 2764, 2752, 2765,
2770, 2766, 2753, 2767, 2769, 2343, 2771, 2769, 2772, 2345,
2754, 2755, 2756, 2757, 2760, 2761, 2762, 2763, 2773, 2774,
2775, 2776, 2777, 2778, 2779, 2764, 2778, 2765, 2770, 2766,
2781, 2767, 2782, 2783, 2771, 2784, 2772, 2785, 2786, 2605,
2789, 2790, 2605, 2780, 2787, 2791, 2773, 2774, 2775, 2776,
2777, 2609, 2779, 2795, 2609, 2797, 2610, 2798, 2781, 2799,
2782, 2783, 2800, 2784, 2801, 2785, 2786, 2802, 2789, 2790,
2803, 2780, 2804, 2791, 2805, 2806, 2807, 2808, 2809, 2810,
2811, 2795, 2812, 2797, 2813, 2798, 2814, 2799, 2815, 2816,
2800, 2817, 2801, 2818, 2821, 2802, 2822, 2823, 2803, 2824,
2804, 2825, 2805, 2806, 2807, 2808, 2809, 2810, 2811, 2826,
2812, 2827, 2813, 2828, 2814, 2829, 2815, 2816, 2830, 2817,
2831, 2818, 2821, 2832, 2822, 2823, 2833, 2824, 2834, 2825,
2835, 2836, 2837, 2838, 2839, 2840, 2841, 2826, 2842, 2827,
2843, 2828, 2844, 2829, 2471, 2845, 2830, 2846, 2831, 2847,
2848, 2832, 2849, 2850, 2833, 2851, 2834, 2284, 2835, 2836,
2837, 2838, 2839, 2840, 2841, 2100, 2842, 2860, 2843, 2853,
2844, 2485, 2853, 2494, 2853, 2846, 2492, 2847, 2848, 2854,
2849, 2850, 2855, 2851, 2861, 2863, 2875, 2075, 2487, 2472,
2063, 2487, 2491, 2487, 2876, 2284, 2856, 2877, 2858, 2682,
2853, 2489, 2680, 2853, 2865, 2853, 3714, 2878, 3715, 2485,
2867, 2487, 2862, 2855, 2487, 2677, 2487, 2879, 2495, 2880,
2881, 2870, 2876, 2487, 2857, 2877, 2487, 2868, 2487, 2853,
2864, 2078, 2853, 2687, 2853, 2878, 2489, 2882, 2684, 2854,
2074, 2487, 2855, 2491, 2487, 2879, 2487, 2880, 2881, 2883,
2688, 2873, 2884, 2885, 2489, 2869, 2856, 2886, 2887, 2888,
2889, 2890, 2891, 2892, 2893, 2882, 2871, 2894, 2688, 2895,
2896, 2897, 2898, 2899, 2900, 2901, 2902, 2883, 2689, 2903,
2884, 2885, 2904, 2905, 2857, 2886, 2887, 2888, 2889, 2890,
2891, 2892, 2893, 2906, 2907, 2894, 2874, 2895, 2896, 2897,
2898, 2899, 2900, 2901, 2902, 2908, 2909, 2903, 2910, 2911,
2904, 2905, 2912, 2913, 2914, 2915, 2916, 2918, 2919, 2920,
2921, 2906, 2907, 2922, 2923, 2924, 2925, 2927, 2928, 2929,
2930, 2931, 2932, 2908, 2909, 2933, 2910, 2911, 2935, 2936,
2912, 2913, 2914, 2915, 2916, 2918, 2919, 2920, 2921, 2937,
2940, 2922, 2923, 2924, 2925, 2927, 2928, 2929, 2930, 2931,
2932, 2938, 2939, 2933, 2938, 2939, 2935, 2936, 2941, 2769,
2942, 2943, 2769, 2944, 2946, 2950, 1887, 2937, 2940, 2951,
2952, 2953, 2947, 2778, 2956, 2948, 2778, 2949, 2954, 2957,
2958, 2959, 2960, 2961, 2962, 2963, 2941, 2965, 2942, 2943,
2966, 2967, 2946, 2950, 2945, 2971, 2972, 2951, 2952, 2953,
2947, 2974, 2956, 2948, 2977, 2949, 2973, 2957, 2958, 2959,
2960, 2961, 2962, 2963, 2976, 2965, 2978, 2973, 2966, 2967,
2979, 2980, 2945, 2971, 2972, 2976, 2981, 2982, 2983, 2974,
2988, 2986, 2977, 2989, 2990, 2991, 2992, 2993, 2994, 2995,
2996, 2997, 2998, 2999, 2978, 2987, 3000, 2992, 2979, 2980,
3001, 3002, 3003, 3004, 2981, 2982, 2983, 3005, 2988, 2986,
3006, 2989, 2990, 2991, 3007, 2993, 2994, 2995, 2996, 2997,
2998, 2999, 3008, 3009, 3000, 3010, 3011, 3012, 3001, 3002,
3003, 3004, 3013, 3014, 3015, 3005, 3016, 3017, 3006, 3018,
3019, 3020, 3007, 2471, 3021, 3022, 3023, 3024, 3026, 2874,
3008, 3009, 2284, 3010, 3011, 3012, 3090, 3047, 2036, 3090,
3013, 3014, 3015, 2007, 3016, 3017, 3027, 3018, 3019, 3020,
1936, 1934, 3021, 3022, 3023, 3024, 3026, 2853, 3030, 3690,
2853, 2853, 2853, 1932, 2853, 3047, 2853, 3028, 2271, 2494,
2855, 3033, 3030, 2853, 3027, 2861, 2853, 2853, 2853, 3039,
2853, 2679, 2853, 3028, 2856, 1904, 2855, 3036, 3034, 2861,
2855, 2679, 2487, 3048, 3049, 2487, 2861, 2487, 2680, 3050,
2856, 3051, 2676, 3031, 2856, 2489, 3052, 1900, 2680, 3624,
2853, 1890, 3029, 2853, 2289, 2853, 3035, 3031, 3053, 2677,
3041, 3048, 3049, 2855, 3040, 3054, 2681, 3050, 3029, 3051,
2853, 3055, 3037, 2853, 3052, 2853, 2864, 2868, 3096, 2853,
3041, 3096, 2853, 2855, 2853, 2487, 3053, 2678, 2487, 3044,
2487, 2487, 2855, 3054, 2487, 2683, 2487, 2868, 3056, 3055,
3057, 2683, 3058, 1518, 2487, 3042, 2868, 2487, 3059, 2487,
2487, 3060, 2684, 2487, 2687, 2487, 3061, 2489, 2684, 3062,
2687, 3063, 3064, 2489, 3065, 3042, 3056, 3066, 3057, 3067,
3058, 2688, 3068, 3069, 3045, 3070, 3059, 2688, 3071, 3060,
2685, 3072, 3073, 3074, 3061, 3075, 2871, 3062, 3076, 3063,
3064, 3077, 3065, 3078, 3079, 3066, 3080, 3067, 3081, 2689,
3068, 3069, 3082, 3070, 3083, 2874, 3071, 3085, 3086, 3072,
3073, 3074, 3087, 3075, 3088, 3089, 3076, 3091, 3092, 3077,
3093, 3078, 3079, 3094, 3080, 3099, 3081, 3100, 2939, 3102,
3082, 2939, 3083, 3097, 3103, 3085, 3086, 3104, 3105, 3106,
3087, 3110, 3088, 3089, 3116, 3091, 3092, 3107, 3093, 3111,
3112, 3094, 3111, 3099, 3113, 3100, 3117, 3102, 3108, 3109,
3118, 3114, 3103, 3120, 3121, 3104, 3105, 3106, 3920, 3110,
3122, 3920, 3116, 3920, 3119, 3107, 3123, 3119, 3112, 3125,
3126, 3127, 3113, 3129, 3117, 3130, 3108, 3109, 3118, 3114,
3131, 3120, 3121, 3132, 3133, 3134, 3135, 3136, 3122, 3137,
3138, 3131, 3139, 3140, 3123, 3141, 3142, 3125, 3126, 3127,
3143, 3129, 3144, 3130, 3145, 3146, 3147, 3148, 3149, 3150,
3151, 3132, 3133, 3134, 3135, 3136, 3152, 3137, 3138, 3153,
3139, 3140, 3154, 3141, 3142, 3155, 3156, 3159, 3143, 3157,
3144, 3160, 3145, 3146, 3147, 3148, 3149, 3150, 3151, 3162,
3157, 3163, 3160, 3164, 3152, 3165, 3166, 3153, 3168, 3169,
3154, 3170, 3171, 3155, 3156, 3159, 3172, 3173, 3174, 3175,
3177, 3178, 3181, 3179, 3182, 3184, 2679, 3162, 1885, 3163,
3158, 3164, 3161, 3165, 3166, 2492, 3168, 3169, 3180, 3170,
3171, 1705, 2861, 2680, 3172, 3173, 3174, 3175, 3177, 3178,
3181, 3179, 3182, 3037, 2853, 2853, 2284, 2853, 2853, 2853,
2853, 1874, 1838, 3185, 3183, 3041, 3180, 2855, 2855, 2853,
3040, 3189, 2853, 2487, 2853, 3030, 2487, 3045, 2487, 3186,
2284, 2856, 2868, 2687, 2853, 2853, 2489, 2853, 2853, 2853,
2853, 3195, 2861, 3196, 3028, 3190, 3034, 2855, 2855, 3221,
2688, 3197, 3221, 2487, 3232, 3198, 2487, 3232, 2487, 3037,
3042, 2856, 2868, 3192, 3199, 3200, 2489, 3201, 3202, 3195,
3040, 3196, 2853, 3203, 3187, 2853, 3204, 2853, 3188, 3197,
3193, 3205, 3041, 3198, 3206, 2855, 3207, 3208, 3209, 3037,
3045, 3210, 3199, 3200, 3211, 3201, 3202, 3212, 3213, 2868,
3214, 3203, 3215, 3216, 3204, 3217, 3218, 3219, 3194, 3205,
3220, 3222, 3206, 3223, 3207, 3208, 3209, 3224, 3225, 3210,
3226, 3227, 3211, 3228, 3229, 3212, 3213, 3045, 3214, 3096,
3215, 3216, 3096, 3217, 3218, 3219, 3231, 3090, 3220, 3222,
3090, 3223, 3233, 3235, 3236, 3224, 3225, 3238, 3226, 3227,
3239, 3228, 3229, 3240, 3230, 3230, 3230, 3230, 3230, 3230,
3230, 3230, 3230, 3920, 3231, 3241, 3920, 3242, 3920, 3243,
3233, 3235, 3236, 3244, 3245, 3238, 3246, 3256, 3239, 3333,
3256, 3240, 3333, 1820, 1748, 1388, 3248, 3249, 3111, 3250,
3252, 3111, 3253, 3241, 3254, 3242, 3257, 3243, 3258, 3259,
3260, 3244, 3245, 3261, 3246, 3247, 3247, 3247, 3247, 3247,
3247, 3247, 3247, 3247, 3248, 3249, 3262, 3250, 3252, 3263,
3253, 3264, 3254, 3265, 3257, 3266, 3258, 3259, 3260, 3267,
3268, 3261, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276,
3278, 3279, 3280, 3281, 3262, 3283, 3284, 3263, 3285, 3264,
3286, 3265, 3287, 3266, 3288, 3289, 3293, 3267, 3268, 3294,
3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276, 3278, 3279,
3280, 3281, 3295, 3283, 3284, 3291, 3285, 3296, 3286, 3297,
3287, 3298, 3288, 3289, 3293, 3299, 3291, 3294, 1565, 3300,
3301, 3302, 3303, 3304, 3305, 3306, 3308, 3030, 2853, 3221,
3295, 2853, 3221, 2853, 3336, 3296, 3307, 3297, 3028, 3298,
1724, 2855, 3310, 3299, 2861, 3315, 3292, 3300, 3301, 3302,
3303, 3304, 3305, 3306, 3308, 2856, 1720, 2853, 2853, 2680,
2853, 2853, 2853, 2853, 3307, 1708, 2487, 3033, 3033, 2487,
1707, 2487, 3031, 3315, 3363, 3316, 3309, 3363, 1705, 2489,
1648, 3317, 3318, 3029, 3034, 3034, 3379, 2864, 1647, 2853,
3319, 3320, 2853, 2688, 2853, 2487, 3321, 3379, 2487, 3041,
2487, 2853, 2855, 3316, 2853, 3192, 2853, 3322, 2489, 3317,
3318, 2867, 3035, 3187, 2855, 3323, 2868, 3324, 3319, 3320,
2487, 2874, 3193, 2487, 3321, 2487, 3325, 3326, 2868, 3327,
3313, 3328, 3329, 2489, 3330, 3322, 3331, 3332, 3334, 3335,
3338, 3339, 3340, 3323, 3042, 3324, 3341, 3193, 3342, 3343,
3311, 3344, 3345, 1637, 3325, 3326, 2869, 3327, 3351, 3328,
3329, 3351, 3330, 3346, 3331, 3332, 3334, 3335, 3338, 3339,
3340, 3348, 3350, 3354, 3341, 3314, 3342, 3343, 3355, 3344,
3345, 3230, 3230, 3230, 3230, 3230, 3230, 3230, 3230, 3230,
3232, 3346, 3356, 3232, 3357, 3358, 3359, 3360, 3361, 3348,
3350, 3354, 3362, 3364, 3352, 1636, 3355, 3347, 3347, 3347,
3347, 3347, 3347, 3347, 3347, 3347, 3365, 3366, 3367, 3368,
3356, 3369, 3357, 3358, 3359, 3360, 3361, 3370, 3371, 3373,
3362, 3364, 3352, 3247, 3247, 3247, 3247, 3247, 3247, 3247,
3247, 3247, 3375, 3376, 3365, 3366, 3367, 3368, 3256, 3369,
3372, 3256, 3377, 3372, 3378, 3370, 3371, 3373, 3374, 3380,
3381, 3374, 3382, 3383, 3385, 3386, 3387, 3388, 3389, 3392,
3375, 3376, 3393, 3394, 3395, 3397, 3398, 3399, 3400, 3402,
3377, 3403, 3378, 3404, 3405, 3406, 3401, 3380, 3381, 3407,
3382, 3383, 3385, 3386, 3387, 3388, 3389, 3392, 3408, 3409,
3393, 3394, 3395, 3397, 3398, 3399, 3400, 3402, 3410, 3403,
3412, 3404, 3405, 3406, 3401, 3413, 3414, 3407, 3415, 3416,
3417, 3314, 3433, 3030, 2284, 3433, 3408, 3409, 3458, 2853,
3419, 3458, 2853, 1635, 2853, 1571, 3410, 3420, 3412, 3028,
2861, 3421, 2855, 3413, 3414, 3422, 3415, 3416, 3417, 2487,
2853, 3423, 2487, 2853, 2487, 2853, 2856, 3424, 3419, 3418,
3041, 2487, 2489, 2855, 2487, 3420, 2487, 3425, 2862, 3421,
3426, 3192, 3427, 3422, 2489, 3428, 3193, 2868, 3429, 3423,
3430, 3431, 1570, 3434, 2857, 3424, 3436, 3437, 3193, 3438,
3439, 3440, 3441, 3442, 3443, 3425, 3459, 1565, 3426, 3459,
3427, 3474, 3479, 3428, 3314, 2869, 3429, 3333, 3430, 3431,
3333, 3434, 3474, 3479, 3436, 3437, 3314, 3438, 3439, 3440,
3441, 3442, 3443, 1541, 3432, 3432, 3432, 3432, 3432, 3432,
3432, 3432, 3432, 3435, 3435, 3435, 3435, 3435, 3435, 3435,
3435, 3435, 3435, 3435, 3337, 3337, 3337, 3337, 3337, 3337,
3337, 3337, 3337, 3337, 3337, 3444, 3445, 3446, 3435, 3347,
3347, 3347, 3347, 3347, 3347, 3347, 3347, 3347, 3448, 3337,
3351, 3449, 3450, 3351, 3451, 3452, 3453, 3454, 3455, 3456,
3461, 3462, 1540, 3444, 3445, 3446, 3464, 3447, 3447, 3447,
3447, 3447, 3447, 3447, 3447, 3447, 3448, 3465, 3460, 3449,
3450, 3460, 3451, 3452, 3453, 3454, 3455, 3456, 3461, 3462,
3463, 3466, 3468, 3463, 3464, 3468, 3469, 3520, 1537, 3469,
3520, 3471, 3472, 3374, 3473, 3465, 3374, 3476, 3477, 3478,
3480, 3481, 3485, 1536, 1535, 3486, 3487, 3488, 3489, 3466,
3470, 3470, 3470, 3470, 3470, 3470, 3470, 3470, 3470, 3471,
3472, 3490, 3473, 3482, 3491, 3476, 3477, 3478, 3480, 3481,
3485, 3483, 3484, 3486, 3487, 3488, 3489, 3492, 3493, 3494,
3495, 3496, 3497, 3498, 3499, 3500, 3501, 3502, 3503, 3490,
3505, 3482, 3491, 3504, 3506, 3504, 3507, 3509, 3510, 3483,
3484, 3511, 1534, 3512, 1533, 3492, 3493, 3494, 3495, 3496,
3497, 3498, 3499, 3500, 3501, 3502, 3503, 3513, 3505, 3514,
3515, 3516, 3506, 3517, 3507, 3509, 3510, 2487, 1531, 3511,
2487, 3512, 2487, 1113, 872, 3458, 3522, 3192, 3458, 3523,
2489, 1478, 3524, 1469, 3525, 3513, 3526, 3514, 3515, 3516,
3527, 3517, 3528, 3529, 3193, 3432, 3432, 3432, 3432, 3432,
3432, 3432, 3432, 3432, 3522, 3504, 3433, 3523, 3521, 3433,
3524, 3518, 3525, 3468, 3526, 3530, 3554, 1467, 3527, 1462,
3528, 3529, 3311, 3519, 3519, 3519, 3519, 3519, 3519, 3519,
3519, 3519, 3435, 3435, 3435, 3435, 3435, 3435, 3435, 3435,
3435, 3435, 3435, 3530, 3447, 3447, 3447, 3447, 3447, 3447,
3447, 3447, 3447, 3531, 3532, 3533, 3534, 3435, 3535, 1457,
3537, 3535, 3538, 3539, 3540, 3542, 3545, 3547, 3542, 3545,
3543, 3546, 3548, 3463, 3550, 3551, 3463, 3552, 3549, 1399,
1398, 3531, 3532, 3533, 3534, 540, 538, 3536, 3537, 3556,
3538, 3539, 3540, 3596, 3602, 3547, 3596, 3602, 533, 531,
3548, 3469, 3550, 3551, 3469, 3552, 3470, 3470, 3470, 3470,
3470, 3470, 3470, 3470, 3470, 3536, 3559, 3556, 3555, 3555,
3555, 3555, 3555, 3555, 3555, 3555, 3555, 3557, 3560, 3561,
3562, 3563, 3564, 3558, 3565, 3566, 3567, 3569, 3571, 3572,
3573, 3574, 3575, 3576, 3559, 3578, 3579, 3582, 3583, 3606,
3667, 3670, 3606, 3667, 3670, 3557, 3560, 3561, 3562, 3563,
3564, 3558, 3565, 3566, 3567, 3569, 3571, 3572, 3573, 3574,
3575, 3576, 3585, 3578, 3579, 3582, 3583, 3584, 3584, 3584,
3584, 3584, 3584, 3584, 3584, 3584, 3584, 3584, 3586, 3587,
3590, 3591, 3592, 3593, 3594, 3595, 3542, 516, 514, 3542,
3585, 3543, 3584, 3597, 3597, 3597, 3597, 3597, 3597, 3597,
3597, 3597, 3599, 3600, 3601, 3603, 3586, 3587, 3590, 3591,
3592, 3593, 3594, 3595, 3519, 3519, 3519, 3519, 3519, 3519,
3519, 3519, 3519, 3520, 3604, 3605, 3520, 3607, 3608, 3609,
3599, 3600, 3601, 3603, 3610, 3612, 3613, 3614, 3617, 3620,
3598, 3598, 3598, 3598, 3598, 3598, 3598, 3598, 3598, 510,
3621, 3535, 3604, 3605, 3535, 3607, 3608, 3609, 3615, 1389,
3625, 3615, 3610, 3612, 3613, 3614, 3617, 3620, 3611, 3611,
3611, 3611, 3611, 3611, 3611, 3611, 3611, 3545, 3621, 3626,
3545, 3627, 3546, 3553, 3629, 3630, 3631, 3616, 3625, 3606,
3667, 1385, 3606, 3667, 3674, 3723, 1379, 3628, 3628, 3628,
3628, 3628, 3628, 3628, 3628, 3628, 3632, 3626, 3468, 3627,
3634, 3554, 3629, 3630, 3631, 3616, 3555, 3555, 3555, 3555,
3555, 3555, 3555, 3555, 3555, 3628, 3628, 3628, 3628, 3628,
3628, 3628, 3628, 3628, 3632, 3635, 3636, 3637, 3634, 3638,
3639, 3640, 3641, 3642, 3643, 3644, 3645, 3646, 3647, 3649,
3652, 3598, 3598, 3598, 3598, 3598, 3598, 3598, 3598, 3598,
3741, 3920, 3653, 3635, 3636, 3637, 3654, 3638, 3639, 3640,
3641, 3642, 3643, 3644, 3645, 3646, 3647, 3649, 3652, 3584,
3584, 3584, 3584, 3584, 3584, 3584, 3584, 3584, 3584, 3584,
3653, 3655, 3657, 3658, 3654, 3659, 3661, 3670, 3662, 3661,
3670, 3663, 3726, 1349, 3584, 3666, 3668, 1341, 3672, 3662,
3624, 3675, 3665, 3676, 3677, 3678, 3679, 3680, 3682, 3655,
3657, 3658, 3683, 3659, 3597, 3597, 3597, 3597, 3597, 3597,
3597, 3597, 3597, 3666, 3668, 3602, 3672, 3709, 3602, 3675,
1330, 3676, 3677, 3678, 3679, 3680, 3682, 3686, 3709, 3693,
3683, 3694, 3669, 3669, 3669, 3669, 3669, 3669, 3669, 3669,
3669, 3611, 3611, 3611, 3611, 3611, 3611, 3611, 3611, 3611,
3615, 3695, 3687, 3615, 3696, 3686, 3688, 3693, 3697, 3694,
3664, 3698, 3699, 3689, 431, 418, 414, 3681, 3681, 3681,
3681, 3681, 3681, 3681, 3681, 3681, 3700, 3701, 3553, 3695,
3687, 3702, 3696, 3703, 3688, 3704, 3697, 3705, 3706, 3698,
3699, 3689, 3628, 3628, 3628, 3628, 3628, 3628, 3628, 3628,
3628, 3707, 3708, 3710, 3700, 3701, 3711, 3712, 3716, 3702,
3718, 3703, 3719, 3704, 3710, 3705, 3706, 3720, 3662, 3722,
3662, 3662, 3725, 3920, 3779, 3780, 399, 3779, 3780, 3707,
3708, 3662, 395, 373, 3711, 3712, 3716, 3729, 3718, 3661,
3719, 3662, 3661, 3920, 3663, 3720, 3920, 3722, 3920, 3730,
3725, 3731, 3662, 3669, 3669, 3669, 3669, 3669, 3669, 3669,
3669, 3669, 3732, 3733, 3734, 3729, 3681, 3681, 3681, 3681,
3681, 3681, 3681, 3681, 3681, 3735, 3736, 3730, 3737, 3731,
3738, 3739, 3740, 3742, 3743, 3744, 3745, 3746, 3747, 3748,
3732, 3733, 3734, 3749, 3750, 3767, 3751, 3752, 3753, 3754,
3755, 3756, 3664, 3735, 3736, 3758, 3737, 3757, 3738, 3739,
3740, 3742, 3743, 3744, 3745, 3746, 3747, 3748, 3757, 3759,
3760, 3749, 3750, 3664, 3751, 3752, 3753, 3754, 3755, 3756,
3763, 3761, 3920, 3758, 3770, 3920, 3771, 3920, 3772, 3773,
3774, 3775, 3776, 3777, 3781, 3768, 3777, 3759, 3760, 3782,
3690, 3783, 3784, 3785, 3786, 3787, 3788, 3789, 3763, 3761,
3790, 3791, 3770, 3792, 3771, 3793, 3772, 3773, 3774, 3775,
3776, 3795, 3781, 3796, 3797, 3798, 3799, 3782, 3801, 3783,
3784, 3785, 3786, 3787, 3788, 3789, 3801, 3804, 3790, 3791,
3778, 3792, 3805, 3793, 3806, 3807, 3808, 3809, 3812, 3795,
3691, 3796, 3797, 3798, 3799, 3811, 3779, 3780, 3811, 3779,
3780, 3814, 3816, 3817, 3818, 3804, 3817, 3818, 3778, 3819,
3805, 3820, 3806, 3807, 3808, 3809, 3812, 3821, 3802, 3822,
3823, 3825, 3826, 3827, 3828, 3829, 3768, 3830, 3833, 3834,
3835, 3836, 3834, 3837, 3838, 3839, 3840, 3819, 3811, 3820,
3841, 3811, 369, 363, 359, 3821, 3801, 3822, 3823, 3825,
3826, 3827, 3828, 3829, 3848, 3830, 3833, 3849, 3850, 3836,
3851, 3837, 3838, 3839, 3840, 3852, 3920, 3920, 3841, 3920,
3920, 3920, 3920, 3817, 3818, 3853, 3817, 3818, 3845, 3847,
3768, 3854, 3848, 3855, 3856, 3849, 3850, 3857, 3851, 3863,
3865, 3867, 3863, 3852, 3864, 3869, 3802, 3866, 3858, 3868,
3866, 3859, 3868, 3853, 3874, 3920, 3875, 3876, 3920, 3854,
3920, 3855, 3856, 3877, 3878, 3857, 3879, 3920, 3865, 3867,
3920, 3880, 3920, 3869, 3881, 3882, 3858, 3883, 3884, 3859,
3887, 3891, 3874, 3863, 3875, 3876, 3863, 3889, 3864, 355,
3889, 3877, 3878, 3866, 3879, 1273, 3866, 1212, 1211, 3880,
1195, 1186, 3881, 3882, 3868, 3883, 3884, 3868, 3887, 3891,
3888, 3888, 3888, 3888, 3888, 3888, 3888, 3888, 3888, 3894,
3895, 3890, 3890, 3890, 3890, 3890, 3890, 3890, 3890, 3890,
3896, 3897, 3898, 3899, 3900, 3901, 3888, 3888, 3888, 3888,
3888, 3888, 3888, 3888, 3888, 1174, 1153, 3894, 3895, 3889,
1138, 662, 3889, 1113, 645, 385, 3904, 3905, 3896, 3897,
3898, 3899, 3900, 3901, 3906, 3907, 3903, 3903, 3903, 3903,
3903, 3903, 3903, 3903, 3903, 3890, 3890, 3890, 3890, 3890,
3890, 3890, 3890, 3890, 3904, 3905, 3909, 3910, 3911, 3912,
3913, 3914, 3906, 3907, 3903, 3903, 3903, 3903, 3903, 3903,
3903, 3903, 3903, 3915, 3916, 3917, 3918, 3919, 385, 872,
1070, 1059, 1051, 1048, 3909, 3910, 3911, 3912, 3913, 3914,
1006, 540, 538, 1004, 533, 531, 998, 516, 514, 996,
510, 3915, 3916, 3917, 3918, 3919, 76, 76, 76, 76,
76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
134, 134, 134, 134, 134, 134, 134, 134, 137, 137,
137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
137, 137, 137, 137, 137, 137, 143, 143, 143, 143,
143, 143, 143, 143, 143, 143, 143, 143, 143, 143,
143, 143, 143, 143, 149, 149, 149, 149, 149, 149,
149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
149, 149, 156, 156, 156, 156, 156, 156, 156, 156,
156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
162, 162, 162, 162, 162, 162, 162, 162, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
169, 169, 169, 169, 169, 169, 179, 179, 179, 179,
179, 179, 179, 179, 179, 179, 179, 179, 179, 179,
179, 179, 179, 179, 185, 185, 185, 185, 185, 185,
185, 185, 185, 185, 185, 185, 185, 185, 185, 185,
185, 185, 227, 227, 227, 227, 227, 227, 227, 227,
227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
232, 232, 232, 232, 232, 232, 232, 232, 232, 232,
232, 232, 232, 232, 232, 232, 232, 232, 237, 237,
237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
237, 237, 237, 237, 237, 237, 238, 238, 238, 238,
238, 238, 238, 238, 238, 238, 238, 238, 238, 238,
238, 238, 238, 238, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 240, 240, 240, 240, 240, 240, 240, 240,
240, 240, 240, 240, 240, 240, 240, 240, 240, 240,
241, 241, 241, 241, 241, 241, 241, 241, 241, 241,
241, 241, 241, 241, 241, 241, 241, 241, 249, 249,
249, 249, 249, 249, 249, 249, 249, 249, 249, 249,
249, 249, 249, 249, 249, 249, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 258, 258, 258, 258, 258, 258, 258, 258,
258, 258, 258, 258, 258, 258, 258, 258, 258, 258,
266, 266, 991, 266, 266, 266, 266, 266, 266, 266,
266, 266, 266, 266, 266, 266, 266, 266, 346, 346,
346, 346, 346, 346, 346, 346, 346, 346, 346, 346,
346, 346, 346, 346, 346, 346, 356, 356, 356, 356,
356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
356, 356, 356, 356, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 366, 366, 366, 366, 366, 366, 366, 366,
366, 366, 366, 366, 366, 366, 366, 366, 366, 366,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 376, 376,
376, 376, 376, 376, 376, 376, 376, 376, 376, 376,
376, 376, 376, 376, 376, 376, 382, 382, 382, 382,
382, 382, 382, 382, 382, 382, 382, 382, 382, 382,
382, 382, 382, 382, 387, 387, 387, 387, 387, 387,
387, 387, 387, 387, 387, 387, 387, 387, 387, 387,
387, 387, 391, 391, 391, 391, 391, 391, 391, 391,
391, 391, 391, 391, 391, 391, 391, 391, 391, 391,
399, 399, 399, 399, 399, 399, 399, 399, 399, 399,
399, 399, 399, 399, 399, 399, 399, 399, 402, 402,
402, 402, 402, 402, 402, 402, 402, 402, 402, 402,
402, 402, 402, 402, 402, 402, 411, 411, 411, 411,
411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
411, 411, 411, 411, 418, 418, 418, 418, 418, 418,
418, 418, 418, 418, 418, 418, 418, 418, 418, 418,
418, 418, 421, 421, 421, 421, 421, 421, 421, 421,
421, 421, 421, 421, 421, 421, 421, 421, 421, 421,
505, 505, 505, 505, 505, 505, 505, 505, 505, 505,
505, 505, 505, 505, 505, 505, 505, 505, 511, 511,
511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
511, 511, 511, 511, 511, 511, 516, 516, 516, 516,
516, 516, 516, 516, 516, 516, 516, 516, 516, 516,
516, 516, 516, 516, 517, 517, 983, 517, 517, 517,
517, 517, 517, 517, 517, 517, 517, 517, 517, 517,
517, 517, 518, 518, 974, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
519, 519, 973, 519, 519, 519, 519, 519, 519, 519,
519, 519, 519, 519, 519, 519, 519, 519, 528, 528,
528, 528, 528, 528, 528, 528, 528, 528, 528, 528,
528, 528, 528, 528, 528, 528, 533, 533, 533, 533,
533, 533, 533, 533, 533, 533, 533, 533, 533, 533,
533, 533, 533, 533, 535, 535, 535, 535, 535, 535,
535, 535, 535, 535, 535, 535, 535, 535, 535, 535,
535, 535, 540, 540, 540, 540, 540, 540, 540, 540,
540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
266, 266, 943, 266, 266, 266, 266, 266, 266, 266,
266, 266, 266, 266, 266, 266, 266, 266, 346, 346,
346, 346, 346, 346, 346, 346, 346, 346, 346, 346,
346, 346, 346, 346, 346, 346, 356, 356, 356, 356,
356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
356, 356, 356, 356, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
933, 363, 366, 366, 366, 366, 366, 366, 366, 366,
366, 366, 366, 366, 366, 366, 366, 366, 366, 366,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 921, 373, 376, 376,
376, 376, 376, 376, 376, 376, 376, 376, 376, 376,
376, 376, 376, 376, 376, 376, 382, 382, 382, 382,
382, 382, 382, 382, 382, 382, 382, 382, 382, 382,
382, 382, 382, 382, 639, 639, 639, 639, 639, 639,
639, 639, 639, 639, 639, 639, 639, 639, 639, 639,
639, 639, 387, 387, 387, 387, 387, 387, 387, 387,
387, 387, 387, 387, 387, 387, 387, 387, 387, 387,
644, 911, 644, 644, 431, 908, 644, 644, 644, 644,
644, 418, 644, 644, 644, 644, 644, 391, 391, 391,
391, 391, 391, 391, 391, 391, 391, 391, 391, 391,
391, 391, 391, 391, 391, 399, 399, 399, 399, 399,
399, 399, 399, 399, 399, 399, 399, 399, 399, 399,
399, 414, 399, 652, 652, 652, 652, 652, 652, 652,
652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
652, 402, 402, 402, 402, 402, 402, 402, 402, 402,
402, 402, 402, 402, 402, 402, 402, 402, 402, 659,
659, 659, 659, 659, 659, 659, 659, 659, 659, 659,
659, 659, 659, 659, 659, 659, 659, 661, 662, 661,
661, 881, 399, 661, 661, 661, 661, 661, 395, 661,
661, 661, 661, 661, 411, 411, 411, 411, 411, 411,
411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
411, 411, 418, 418, 418, 418, 418, 418, 418, 418,
418, 418, 418, 418, 418, 418, 418, 418, 645, 418,
421, 421, 421, 421, 421, 421, 421, 421, 421, 421,
421, 421, 421, 421, 421, 421, 421, 421, 505, 505,
505, 505, 505, 505, 505, 505, 505, 505, 505, 505,
505, 505, 505, 505, 505, 505, 511, 511, 511, 511,
511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
511, 511, 511, 511, 516, 516, 516, 516, 516, 516,
516, 516, 516, 516, 516, 516, 516, 516, 516, 516,
863, 516, 517, 517, 373, 517, 517, 517, 517, 517,
517, 517, 517, 517, 517, 517, 517, 517, 517, 517,
518, 518, 369, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 519, 519,
860, 519, 519, 519, 519, 519, 519, 519, 519, 519,
519, 519, 519, 519, 519, 519, 528, 528, 528, 528,
528, 528, 528, 528, 528, 528, 528, 528, 528, 528,
528, 528, 528, 528, 533, 533, 533, 533, 533, 533,
533, 533, 533, 533, 533, 533, 533, 533, 533, 533,
363, 533, 535, 535, 535, 535, 535, 535, 535, 535,
535, 535, 535, 535, 535, 535, 535, 535, 535, 535,
540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
540, 540, 540, 540, 540, 540, 359, 540, 266, 266,
857, 266, 266, 266, 266, 266, 266, 266, 266, 266,
266, 266, 266, 266, 266, 266, 346, 346, 346, 346,
346, 346, 346, 346, 346, 346, 346, 346, 346, 346,
346, 346, 346, 346, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 356, 356, 356, 356, 356, 356, 356, 356,
356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 366, 366,
366, 366, 366, 366, 366, 366, 366, 366, 366, 366,
366, 366, 366, 366, 366, 366, 639, 639, 639, 639,
639, 639, 639, 639, 639, 639, 639, 639, 639, 639,
639, 639, 639, 639, 867, 355, 867, 867, 773, 538,
867, 867, 867, 867, 867, 539, 867, 867, 867, 867,
867, 867, 870, 531, 870, 870, 532, 514, 870, 870,
870, 870, 870, 515, 870, 870, 870, 870, 870, 870,
387, 387, 387, 387, 387, 387, 387, 387, 387, 387,
387, 387, 387, 387, 387, 387, 387, 387, 644, 508,
644, 644, 752, 738, 644, 644, 644, 644, 644, 479,
644, 644, 644, 644, 644, 399, 399, 399, 399, 399,
399, 399, 399, 399, 399, 399, 399, 399, 399, 399,
399, 399, 399, 391, 391, 391, 391, 391, 391, 391,
391, 391, 391, 391, 391, 391, 391, 391, 391, 391,
391, 652, 652, 652, 652, 652, 652, 652, 652, 652,
652, 652, 652, 652, 652, 652, 652, 652, 652, 883,
883, 883, 883, 883, 883, 883, 883, 883, 883, 883,
883, 883, 883, 883, 883, 883, 883, 885, 734, 885,
885, 696, 681, 885, 885, 885, 885, 885, 437, 885,
885, 885, 885, 885, 885, 657, 657, 657, 657, 657,
657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
657, 657, 657, 402, 402, 402, 402, 402, 402, 402,
402, 402, 402, 402, 402, 402, 402, 402, 402, 402,
402, 661, 428, 661, 661, 414, 417, 661, 661, 661,
661, 661, 395, 661, 661, 661, 661, 661, 659, 659,
659, 659, 659, 659, 659, 659, 659, 659, 659, 659,
659, 659, 659, 659, 659, 659, 418, 418, 418, 418,
418, 418, 418, 418, 418, 418, 418, 418, 418, 418,
418, 418, 418, 418, 411, 411, 411, 411, 411, 411,
411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
411, 411, 421, 421, 421, 421, 421, 421, 421, 421,
421, 421, 421, 421, 421, 421, 421, 421, 421, 421,
505, 505, 505, 505, 505, 505, 505, 505, 505, 505,
505, 505, 505, 505, 505, 505, 505, 505, 516, 516,
516, 516, 516, 516, 516, 516, 516, 516, 516, 516,
516, 516, 516, 516, 516, 516, 511, 511, 511, 511,
511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
511, 511, 511, 511, 533, 533, 533, 533, 533, 533,
533, 533, 533, 533, 533, 533, 533, 533, 533, 533,
533, 533, 528, 528, 528, 528, 528, 528, 528, 528,
528, 528, 528, 528, 528, 528, 528, 528, 528, 528,
540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
540, 540, 540, 540, 540, 540, 540, 540, 535, 535,
535, 535, 535, 535, 535, 535, 535, 535, 535, 535,
535, 535, 535, 535, 535, 535, 266, 266, 398, 266,
266, 266, 266, 266, 266, 266, 266, 266, 266, 266,
266, 266, 266, 266, 346, 346, 346, 346, 346, 346,
346, 346, 346, 346, 346, 346, 346, 346, 346, 346,
346, 346, 356, 356, 356, 356, 356, 356, 356, 356,
356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
366, 366, 366, 366, 366, 366, 366, 366, 366, 366,
366, 366, 366, 366, 366, 366, 366, 366, 639, 639,
639, 639, 639, 639, 639, 639, 639, 639, 639, 639,
639, 639, 639, 639, 639, 639, 867, 390, 867, 867,
385, 369, 867, 867, 867, 867, 867, 372, 867, 867,
867, 867, 867, 867, 870, 359, 870, 870, 362, 351,
870, 870, 870, 870, 870, 592, 870, 870, 870, 870,
870, 870, 644, 591, 644, 644, 558, 541, 644, 644,
644, 644, 644, 539, 644, 644, 644, 644, 644, 652,
652, 652, 652, 652, 652, 652, 652, 652, 652, 652,
652, 652, 652, 652, 652, 652, 652, 885, 539, 885,
885, 532, 515, 885, 885, 885, 885, 885, 508, 885,
885, 885, 885, 885, 885, 657, 657, 657, 657, 657,
657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
657, 657, 657, 889, 479, 889, 889, 437, 417, 889,
889, 889, 889, 889, 398, 889, 889, 889, 889, 889,
889, 883, 883, 883, 883, 883, 883, 883, 883, 883,
883, 883, 883, 883, 883, 883, 883, 883, 883, 886,
886, 886, 886, 886, 886, 886, 886, 886, 886, 886,
886, 886, 886, 886, 886, 886, 886, 661, 398, 661,
661, 385, 385, 661, 661, 661, 661, 661, 385, 661,
661, 661, 661, 661, 402, 402, 402, 402, 402, 402,
402, 402, 402, 402, 402, 402, 402, 402, 402, 402,
402, 402, 411, 411, 411, 411, 411, 411, 411, 411,
411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
421, 421, 421, 421, 421, 421, 421, 421, 421, 421,
421, 421, 421, 421, 421, 421, 421, 421, 1152, 1152,
1152, 1152, 1152, 1152, 1152, 1152, 1152, 372, 1152, 1152,
1152, 1152, 1152, 1152, 1152, 1152, 505, 505, 505, 505,
505, 505, 505, 505, 505, 505, 505, 505, 505, 505,
505, 505, 505, 505, 511, 511, 511, 511, 511, 511,
511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
511, 511, 528, 528, 528, 528, 528, 528, 528, 528,
528, 528, 528, 528, 528, 528, 528, 528, 528, 528,
535, 535, 535, 535, 535, 535, 535, 535, 535, 535,
535, 535, 535, 535, 535, 535, 535, 535, 266, 266,
372, 266, 266, 266, 266, 266, 266, 266, 266, 266,
266, 266, 266, 266, 266, 266, 363, 363, 363, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 363, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 639, 639, 639, 639, 639, 639, 639, 639,
639, 639, 639, 639, 639, 639, 639, 639, 639, 639,
867, 362, 867, 867, 351, 317, 867, 867, 867, 867,
867, 3920, 867, 867, 867, 867, 867, 867, 870, 250,
870, 870, 250, 98, 870, 870, 870, 870, 870, 98,
870, 870, 870, 870, 870, 870, 399, 399, 399, 399,
399, 399, 399, 399, 399, 399, 399, 399, 399, 399,
399, 399, 399, 399, 885, 98, 885, 885, 98, 98,
885, 885, 885, 885, 885, 98, 885, 885, 885, 885,
885, 885, 886, 886, 886, 886, 886, 886, 886, 886,
886, 886, 886, 886, 886, 886, 886, 886, 886, 886,
661, 98, 661, 661, 98, 161, 661, 661, 661, 661,
661, 661, 661, 661, 661, 661, 661, 659, 659, 659,
659, 659, 659, 659, 659, 659, 659, 659, 659, 659,
659, 659, 659, 659, 659, 418, 418, 418, 418, 418,
418, 418, 418, 418, 418, 418, 418, 418, 418, 418,
418, 418, 418, 1340, 161, 1340, 1340, 160, 160, 1340,
1340, 1340, 3920, 1340, 1340, 1340, 1340, 1340, 1340, 1340,
1340, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 3920, 1352,
3920, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1386,
1386, 1386, 1386, 1386, 1386, 1386, 1386, 1386, 1386, 1386,
1386, 1386, 1386, 1386, 1386, 1386, 1386, 516, 516, 516,
516, 516, 516, 516, 516, 516, 516, 516, 516, 516,
516, 516, 516, 516, 516, 533, 533, 533, 533, 533,
533, 533, 533, 533, 533, 533, 533, 533, 533, 533,
533, 533, 533, 540, 540, 540, 540, 540, 540, 540,
540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
540, 266, 266, 3920, 266, 266, 266, 266, 266, 266,
266, 266, 266, 266, 266, 266, 266, 266, 266, 883,
883, 883, 883, 883, 883, 883, 883, 883, 883, 883,
883, 883, 883, 883, 883, 883, 883, 1515, 1515, 1515,
1515, 1515, 1515, 1515, 1515, 1515, 1515, 1515, 1515, 1515,
1515, 1515, 1515, 1515, 1515, 1526, 3920, 3920, 1526, 3920,
3920, 1526, 1566, 3920, 3920, 3920, 3920, 3920, 1566, 1566,
1566, 3920, 1566, 1566, 1566, 1566, 1566, 1566, 1566, 1566,
1516, 1516, 1516, 1516, 1516, 1516, 1516, 1516, 1516, 1516,
1516, 1516, 1516, 1516, 1516, 1516, 1516, 1516, 1712, 3920,
3920, 1712, 3920, 1712, 1749, 1749, 1749, 1749, 1749, 1749,
1749, 1749, 1749, 1749, 1749, 1749, 1749, 1749, 1749, 1749,
1749, 1749, 1754, 3920, 3920, 1754, 1754, 3920, 3920, 1754,
3920, 1754, 3920, 1754, 1754, 1754, 1754, 1889, 1889, 1889,
1889, 1933, 1933, 3920, 1933, 1933, 1933, 1933, 1933, 1933,
1933, 1933, 1933, 1933, 1933, 1933, 1933, 1933, 1933, 1935,
1935, 3920, 1935, 1935, 1935, 1935, 1935, 1935, 1935, 1935,
1935, 1935, 1935, 1935, 1935, 1935, 1935, 1939, 3920, 1939,
3920, 1939, 1939, 1939, 1939, 2061, 2061, 2061, 2061, 2061,
2061, 2061, 2061, 2061, 2061, 2061, 2061, 2061, 2061, 2061,
2061, 2061, 2061, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
2076, 2128, 2128, 2128, 2128, 2128, 2128, 2128, 2128, 2128,
2128, 2128, 2128, 2128, 2128, 2128, 2128, 2128, 2128, 2164,
2164, 3920, 3920, 2164, 2164, 2164, 2164, 2164, 3920, 2164,
2164, 2164, 2164, 2164, 2164, 2164, 2164, 2182, 3920, 3920,
2182, 2182, 3920, 3920, 2182, 3920, 2182, 3920, 2182, 2182,
2182, 2182, 2269, 2269, 2269, 2269, 2269, 2269, 2269, 2269,
2269, 2269, 2269, 2269, 2269, 2269, 2269, 2269, 2269, 2269,
2282, 3920, 2282, 2282, 3920, 3920, 2282, 2282, 2282, 2282,
2282, 2282, 2282, 2282, 2282, 2282, 2282, 2282, 2287, 2287,
2287, 2287, 2287, 2287, 2287, 2287, 2287, 2287, 2287, 2287,
2287, 2287, 2287, 2287, 2287, 2287, 2317, 3920, 3920, 3920,
3920, 3920, 2317, 2317, 2317, 3920, 2317, 2317, 2317, 2317,
2317, 2317, 2317, 2317, 2343, 2343, 3920, 2343, 2343, 2343,
2343, 2343, 2343, 2343, 2343, 2343, 2343, 2343, 2343, 2343,
2343, 2343, 2345, 2345, 3920, 2345, 2345, 2345, 2345, 2345,
2345, 2345, 2345, 2345, 2345, 2345, 2345, 2345, 2345, 2345,
2371, 3920, 3920, 2371, 2371, 3920, 3920, 2371, 3920, 2371,
3920, 2371, 2371, 2371, 2371, 2384, 3920, 3920, 3920, 3920,
3920, 2384, 2384, 2384, 3920, 2384, 2384, 2384, 2384, 2384,
2384, 2384, 2384, 2395, 2395, 3920, 2395, 2395, 3920, 2395,
2395, 2395, 2395, 2395, 2395, 2395, 2395, 2395, 2395, 2395,
2400, 3920, 2400, 3920, 2400, 2400, 2400, 2400, 2486, 2486,
2486, 2486, 2486, 2486, 2486, 2486, 2486, 2486, 2486, 2486,
2486, 2486, 2486, 2486, 2486, 2486, 2284, 3920, 2284, 2284,
3920, 3920, 2284, 2284, 2284, 2284, 2284, 2284, 2284, 2284,
2284, 2284, 2284, 2284, 2544, 2544, 2544, 2544, 2544, 2544,
2544, 2544, 2544, 2544, 2544, 2544, 2544, 2544, 2544, 2544,
2544, 2544, 2547, 2547, 2547, 2547, 2547, 2547, 2547, 2547,
2547, 2547, 2547, 2547, 2547, 2547, 2547, 2547, 2547, 2547,
2555, 3920, 3920, 2555, 2555, 3920, 3920, 2555, 3920, 2555,
3920, 2555, 2555, 2555, 2555, 2574, 3920, 2574, 3920, 2574,
2574, 2574, 2574, 2576, 3920, 3920, 2576, 2576, 3920, 3920,
2576, 3920, 2576, 3920, 2576, 2576, 2576, 2576, 2608, 2608,
3920, 2608, 2608, 2608, 2608, 2608, 2608, 2608, 2608, 2608,
2608, 2608, 2608, 2608, 2608, 2675, 3920, 2675, 2675, 3920,
3920, 2675, 2675, 2675, 2675, 2675, 2675, 2675, 2675, 2675,
2675, 2675, 2675, 2487, 2487, 2487, 2487, 2487, 2487, 2487,
2487, 2487, 2487, 2487, 2487, 2487, 2487, 2487, 2487, 2487,
2487, 2489, 2489, 2489, 2489, 2489, 2489, 2489, 2489, 2489,
2489, 2489, 2489, 2489, 2489, 2489, 2489, 2489, 2489, 2686,
2686, 2686, 2686, 2686, 2686, 2686, 2686, 2686, 2686, 2686,
2686, 2686, 2686, 2686, 2686, 2686, 2686, 2690, 3920, 2690,
2690, 3920, 3920, 2690, 2690, 2690, 2690, 2690, 2690, 2690,
2690, 2690, 2690, 2690, 2690, 2287, 2287, 2287, 2287, 2287,
2287, 2287, 2287, 2287, 2287, 2287, 2287, 2287, 2287, 2287,
2287, 2287, 2287, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
2076, 2343, 2343, 3920, 2343, 2343, 2343, 2343, 2343, 2343,
2343, 2343, 2343, 2343, 2343, 2343, 2343, 2343, 2343, 2544,
2544, 2544, 2544, 2544, 2544, 2544, 2544, 2544, 2544, 2544,
2544, 2544, 2544, 2544, 2544, 2544, 2544, 2345, 2345, 3920,
2345, 2345, 2345, 2345, 2345, 2345, 2345, 2345, 2345, 2345,
2345, 2345, 2345, 2345, 2345, 2547, 2547, 2547, 2547, 2547,
2547, 2547, 2547, 2547, 2547, 2547, 2547, 2547, 2547, 2547,
2547, 2547, 2547, 2739, 3920, 2739, 3920, 2739, 2739, 2739,
2739, 2555, 3920, 2555, 3920, 2555, 2555, 2555, 2555, 2740,
3920, 3920, 2740, 3920, 3920, 3920, 2740, 3920, 2740, 3920,
2740, 2740, 2740, 2740, 2750, 3920, 3920, 2750, 2750, 3920,
3920, 2750, 3920, 2750, 3920, 2750, 2750, 2750, 2750, 2574,
3920, 3920, 2574, 3920, 2574, 3920, 2574, 2574, 2574, 2574,
2759, 3920, 2759, 3920, 2759, 2759, 2759, 2759, 2576, 3920,
2576, 3920, 2576, 2576, 2576, 2576, 2768, 2768, 3920, 2768,
2768, 3920, 2768, 2768, 2768, 2768, 2768, 2768, 2768, 2768,
2768, 2768, 2768, 2788, 3920, 3920, 2788, 2788, 3920, 3920,
2788, 3920, 2788, 3920, 2788, 2788, 2788, 2788, 2608, 2608,
3920, 2608, 2608, 3920, 2608, 2608, 2608, 2608, 2608, 2608,
2608, 2608, 2608, 2608, 2608, 2792, 2792, 2792, 2792, 2792,
2792, 2792, 2792, 2792, 2792, 2792, 2792, 2792, 2792, 2792,
2792, 2792, 2792, 2269, 2269, 2269, 2269, 2269, 2269, 2269,
2269, 2269, 2269, 2269, 2269, 2269, 2269, 2269, 2269, 2269,
2269, 2061, 2061, 2061, 2061, 2061, 2061, 2061, 2061, 2061,
2061, 2061, 2061, 2061, 2061, 2061, 2061, 2061, 2061, 2675,
3920, 2675, 2675, 3920, 3920, 2675, 2675, 2675, 2675, 2675,
2675, 2675, 2675, 2675, 2675, 2675, 2675, 2282, 3920, 2282,
2282, 3920, 3920, 2282, 2282, 2282, 2282, 2282, 2282, 2282,
2282, 2282, 2282, 2282, 2282, 2852, 2852, 2852, 2852, 2852,
2852, 2852, 2852, 2852, 2852, 2852, 2852, 2852, 2852, 2852,
2852, 2852, 2852, 2486, 2486, 2486, 2486, 2486, 2486, 2486,
2486, 2486, 2486, 2486, 2486, 2486, 2486, 2486, 2486, 2486,
2486, 2853, 2853, 2853, 2853, 2853, 2853, 2853, 2853, 2853,
2853, 2853, 2853, 2853, 2853, 2853, 2853, 2853, 2853, 2487,
2487, 2487, 2487, 2487, 2487, 2487, 2487, 2487, 2487, 2487,
2487, 2487, 2487, 2487, 2487, 2487, 2487, 2284, 3920, 2284,
2284, 3920, 3920, 2284, 2284, 2284, 2284, 2284, 2284, 2284,
2284, 2284, 2284, 2284, 2284, 2866, 2866, 2866, 2866, 2866,
2866, 2866, 2866, 2866, 2866, 2866, 2866, 2866, 2866, 2866,
2866, 2866, 2866, 2489, 2489, 2489, 2489, 2489, 2489, 2489,
2489, 2489, 2489, 2489, 2489, 2489, 2489, 2489, 2489, 2489,
2489, 2686, 2686, 2686, 2686, 2686, 2686, 2686, 2686, 2686,
2686, 2686, 2686, 2686, 2686, 2686, 2686, 2686, 2686, 2690,
3920, 2690, 2690, 3920, 3920, 2690, 2690, 2690, 2690, 2690,
2690, 2690, 2690, 2690, 2690, 2690, 2690, 2287, 2287, 2287,
2287, 2287, 2287, 2287, 2287, 2287, 2287, 2287, 2287, 2287,
2287, 2287, 2287, 2287, 2287, 2076, 2076, 2076, 2076, 2076,
2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
2076, 2076, 2076, 2739, 3920, 3920, 2739, 3920, 2739, 3920,
2739, 2739, 2739, 2739, 2740, 3920, 2740, 3920, 2740, 2740,
2740, 2740, 2926, 3920, 2926, 3920, 2926, 2926, 2926, 2926,
2750, 3920, 2750, 3920, 2750, 2750, 2750, 2750, 2759, 3920,
3920, 2759, 3920, 2759, 3920, 2759, 2759, 2759, 2759, 2768,
2768, 3920, 2768, 2768, 3920, 2768, 2768, 2768, 2768, 2768,
2768, 2768, 2768, 2768, 2768, 2768, 2955, 3920, 3920, 2955,
2955, 3920, 3920, 2955, 3920, 2955, 3920, 2955, 2955, 2955,
2955, 2964, 3920, 2964, 3920, 2964, 2964, 2964, 2964, 2788,
3920, 2788, 3920, 2788, 2788, 2788, 2788, 2792, 2792, 2792,
2792, 2792, 2792, 2792, 2792, 2792, 2792, 2792, 2792, 2792,
2792, 2792, 2792, 2792, 2792, 2269, 2269, 2269, 2269, 2269,
2269, 2269, 2269, 2269, 2269, 2269, 2269, 2269, 2269, 2269,
2269, 2269, 2269, 2853, 2853, 2853, 2853, 2853, 2853, 2853,
2853, 2853, 2853, 2853, 2853, 2853, 2853, 2853, 2853, 2853,
2853, 2855, 2855, 2855, 2855, 2855, 2855, 2855, 2855, 2855,
2855, 2855, 2855, 2855, 2855, 2855, 2855, 2855, 2855, 2486,
2486, 2486, 2486, 2486, 2486, 2486, 2486, 2486, 2486, 2486,
2486, 2486, 2486, 2486, 2486, 2486, 2486, 2487, 2487, 2487,
2487, 2487, 2487, 2487, 2487, 2487, 2487, 2487, 2487, 2487,
2487, 2487, 2487, 2487, 2487, 2284, 3920, 2284, 2284, 3920,
3920, 2284, 2284, 2284, 2284, 2284, 2284, 2284, 2284, 2284,
2284, 2284, 2284, 2866, 2866, 2866, 2866, 2866, 2866, 2866,
2866, 2866, 2866, 2866, 2866, 2866, 2866, 2866, 2866, 2866,
2866, 2489, 2489, 2489, 2489, 2489, 2489, 2489, 2489, 2489,
2489, 2489, 2489, 2489, 2489, 2489, 2489, 2489, 2489, 2686,
2686, 2686, 2686, 2686, 2686, 2686, 2686, 2686, 2686, 2686,
2686, 2686, 2686, 2686, 2686, 2686, 2686, 2287, 2287, 2287,
2287, 2287, 2287, 2287, 2287, 2287, 2287, 2287, 2287, 2287,
2287, 2287, 2287, 2287, 2287, 3095, 3095, 3920, 3095, 3095,
3920, 3095, 3095, 3095, 3095, 3095, 3095, 3095, 3095, 3095,
3095, 3095, 3098, 3920, 3920, 3098, 3098, 3920, 3920, 3098,
3920, 3098, 3920, 3098, 3098, 3098, 3098, 3101, 3101, 3101,
3101, 3920, 3101, 3101, 3101, 3101, 3101, 3101, 3101, 3101,
3101, 3101, 3101, 3101, 3101, 3115, 3920, 3920, 3920, 3920,
3920, 3115, 3115, 3115, 3920, 3115, 3115, 3115, 3115, 3115,
3115, 3115, 3115, 3191, 3191, 3191, 3191, 3191, 3191, 3191,
3191, 3191, 3191, 3191, 3191, 3191, 3191, 3191, 3191, 3191,
3191, 3234, 3920, 3234, 3920, 3234, 3234, 3234, 3234, 3255,
3255, 3920, 3255, 3255, 3920, 3255, 3255, 3255, 3255, 3255,
3255, 3255, 3255, 3255, 3255, 3255, 3337, 3920, 3920, 3337,
3337, 3920, 3920, 3920, 3920, 3920, 3920, 3337, 3353, 3353,
3920, 3920, 3920, 3353, 3353, 3353, 3353, 3353, 3353, 3353,
3353, 3353, 3353, 3353, 3353, 3353, 3457, 3457, 3920, 3457,
3457, 3920, 3457, 3457, 3457, 3457, 3457, 3457, 3457, 3457,
3457, 3457, 3457, 3467, 3467, 3920, 3467, 3467, 3920, 3467,
3467, 3467, 3467, 3467, 3467, 3467, 3467, 3467, 3467, 3467,
3541, 3541, 3920, 3541, 3541, 3541, 3541, 3541, 3541, 3541,
3541, 3541, 3541, 3541, 3541, 3541, 3541, 3544, 3544, 3920,
3544, 3544, 3544, 3544, 3544, 3544, 3544, 3544, 3544, 3544,
3544, 3544, 3544, 3544, 3588, 3920, 3588, 3920, 3588, 3920,
3588, 3588, 3588, 3588, 3618, 3618, 3920, 3618, 3618, 3920,
3618, 3618, 3618, 3618, 3618, 3618, 3618, 3618, 3618, 3618,
3618, 3619, 3619, 3920, 3619, 3619, 3920, 3619, 3619, 3619,
3619, 3619, 3619, 3619, 3619, 3619, 3619, 3619, 3622, 3622,
3622, 3622, 3622, 3622, 3622, 3622, 3622, 3622, 3622, 3622,
3622, 3622, 3622, 3622, 3622, 3622, 3656, 3920, 3656, 3920,
3656, 3920, 3656, 3656, 3656, 3656, 3660, 3660, 3920, 3660,
3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660,
3660, 3660, 3660, 3660, 3671, 3671, 3920, 3671, 3671, 3920,
3671, 3671, 3671, 3671, 3671, 3671, 3671, 3671, 3671, 3671,
3671, 3673, 3673, 3920, 3920, 3673, 3673, 3673, 3673, 3673,
3920, 3673, 3673, 3673, 3673, 3673, 3673, 3673, 3673, 3662,
3662, 3920, 3662, 3662, 3920, 3662, 3662, 3662, 3662, 3662,
3662, 3662, 3662, 3662, 3662, 3662, 3721, 3920, 3920, 3920,
3920, 3920, 3721, 3721, 3721, 3920, 3721, 3721, 3721, 3721,
3721, 3721, 3721, 3721, 3664, 3920, 3920, 3920, 3920, 3920,
3664, 3664, 3664, 3920, 3664, 3664, 3664, 3664, 3664, 3664,
3664, 3664, 3724, 3920, 3920, 3724, 3724, 3920, 3920, 3724,
3920, 3724, 3920, 3724, 3724, 3724, 3724, 3727, 3727, 3920,
3727, 3727, 3920, 3727, 3727, 3727, 3727, 3727, 3727, 3727,
3727, 3727, 3727, 3727, 3728, 3920, 3920, 3920, 3920, 3920,
3728, 3728, 3728, 3920, 3728, 3728, 3728, 3728, 3728, 3728,
3728, 3728, 3764, 3920, 3764, 3920, 3764, 3764, 3764, 3764,
3765, 3765, 3920, 3765, 3765, 3920, 3765, 3765, 3765, 3765,
3765, 3765, 3765, 3765, 3765, 3765, 3765, 3766, 3766, 3766,
3766, 3766, 3766, 3766, 3766, 3766, 3766, 3766, 3766, 3766,
3766, 3766, 3766, 3766, 3766, 3810, 3810, 3920, 3810, 3810,
3920, 3810, 3810, 3810, 3810, 3810, 3810, 3810, 3810, 3810,
3810, 3810, 3813, 3813, 3920, 3920, 3813, 3813, 3813, 3813,
3813, 3920, 3813, 3813, 3813, 3813, 3813, 3813, 3813, 3813,
3815, 3815, 3920, 3920, 3815, 3815, 3815, 3815, 3815, 3920,
3815, 3815, 3815, 3815, 3815, 3815, 3815, 3815, 3842, 3842,
3920, 3842, 3842, 3920, 3842, 3842, 3842, 3842, 3842, 3842,
3842, 3842, 3842, 3842, 3842, 3843, 3843, 3920, 3843, 3843,
3920, 3843, 3843, 3843, 3843, 3843, 3843, 3843, 3843, 3843,
3843, 3843, 3844, 3844, 3920, 3920, 3844, 3844, 3844, 3844,
3844, 3920, 3844, 3844, 3844, 3844, 3844, 3844, 3844, 3844,
3846, 3846, 3920, 3920, 3846, 3846, 3846, 3846, 3846, 3920,
3846, 3846, 3846, 3846, 3846, 3846, 3846, 3846, 3860, 3920,
3860, 3920, 3860, 3920, 3860, 3860, 3860, 3860, 3862, 3862,
3920, 3862, 3862, 3862, 3862, 3862, 3862, 3862, 3862, 3862,
3862, 3862, 3862, 3862, 3862, 3872, 3872, 3920, 3872, 3872,
3920, 3872, 3872, 3872, 3872, 3872, 3872, 3872, 3872, 3872,
3872, 3872, 3873, 3873, 3920, 3873, 3873, 3920, 3873, 3873,
3873, 3873, 3873, 3873, 3873, 3873, 3873, 3873, 3873, 3885,
3920, 3885, 3920, 3885, 3920, 3885, 3885, 3885, 3885, 3886,
3920, 3920, 3920, 3920, 3920, 3886, 3886, 3886, 3920, 3886,
3886, 3886, 3886, 3886, 3886, 3886, 3886, 75, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920
} ;
static const flex_int16_t yy_chk[14246] =
{ 0,
0, 1, 1, 1, 1, 5, 1, 1, 5, 6,
95, 95, 6, 0, 1, 7, 7, 7, 7, 7,
7, 0, 9, 9, 7, 9, 9, 13, 7, 1186,
1, 13, 1, 1, 3898, 83, 13, 1, 1, 1,
116, 116, 14, 1, 1, 1, 14, 1, 1, 3886,
9, 14, 1, 872, 15, 15, 1, 15, 1, 872,
1, 1, 15, 83, 15, 1, 1, 1, 71, 84,
7, 1, 1, 1, 1186, 1, 1, 9, 132, 132,
1, 2, 2, 2, 2, 71, 2, 2, 10, 10,
72, 10, 10, 85, 2, 21, 21, 84, 21, 7,
7, 86, 11, 11, 49, 11, 11, 72, 49, 15,
2, 49, 2, 2, 87, 3873, 10, 2, 2, 2,
88, 85, 773, 2, 2, 2, 89, 2, 2, 86,
11, 92, 2, 250, 118, 250, 2, 118, 2, 773,
2, 2, 87, 10, 3872, 2, 2, 2, 88, 3862,
21, 2, 2, 2, 89, 2, 2, 11, 49, 92,
2, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 8, 8,
8, 8, 8, 8, 93, 12, 12, 8, 12, 12,
3843, 8, 16, 16, 2282, 16, 17, 17, 3842, 17,
16, 17, 16, 47, 17, 47, 18, 18, 2282, 18,
47, 18, 93, 12, 18, 19, 19, 137, 19, 137,
19, 20, 20, 19, 20, 257, 20, 257, 19, 20,
48, 94, 48, 8, 20, 22, 22, 48, 22, 81,
12, 220, 81, 297, 90, 33, 33, 16, 33, 100,
33, 17, 90, 33, 297, 27, 27, 47, 27, 94,
27, 18, 8, 8, 137, 27, 35, 35, 27, 35,
19, 27, 90, 3833, 35, 91, 20, 100, 28, 28,
90, 28, 27, 28, 48, 101, 81, 139, 28, 139,
22, 28, 91, 388, 28, 220, 29, 29, 104, 29,
33, 29, 3803, 91, 29, 28, 29, 107, 143, 29,
27, 143, 29, 101, 30, 30, 3801, 30, 108, 30,
91, 35, 30, 29, 30, 3797, 104, 30, 36, 36,
30, 36, 388, 28, 139, 107, 36, 213, 213, 27,
27, 30, 223, 223, 31, 31, 108, 31, 109, 31,
45, 29, 31, 45, 31, 45, 46, 31, 143, 46,
31, 46, 28, 28, 65, 32, 32, 65, 32, 30,
32, 31, 65, 32, 97, 32, 109, 97, 32, 34,
34, 32, 34, 36, 34, 114, 65, 34, 39, 39,
39, 39, 32, 39, 115, 40, 40, 40, 40, 31,
40, 39, 105, 140, 105, 45, 196, 219, 40, 196,
219, 46, 219, 114, 65, 195, 195, 195, 195, 3796,
32, 225, 115, 3789, 225, 226, 226, 265, 265, 97,
105, 140, 105, 3767, 34, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 41, 41, 41, 41, 147, 41, 42, 42,
42, 42, 153, 42, 43, 43, 43, 43, 3764, 43,
44, 44, 44, 44, 50, 44, 102, 66, 50, 59,
66, 50, 286, 286, 147, 66, 73, 60, 102, 73,
153, 73, 129, 74, 73, 129, 74, 283, 74, 66,
283, 74, 315, 318, 102, 315, 318, 41, 73, 185,
59, 67, 59, 42, 185, 74, 102, 173, 60, 43,
60, 59, 59, 59, 59, 44, 2687, 66, 50, 60,
60, 60, 60, 68, 77, 77, 73, 77, 59, 348,
59, 183, 67, 74, 67, 173, 60, 129, 60, 59,
59, 59, 59, 67, 67, 67, 67, 60, 60, 60,
60, 185, 99, 484, 68, 99, 68, 103, 2687, 183,
67, 106, 67, 111, 103, 68, 68, 68, 68, 189,
110, 67, 67, 67, 67, 106, 348, 3755, 111, 77,
99, 106, 68, 99, 68, 103, 110, 112, 177, 106,
177, 111, 103, 68, 68, 68, 68, 189, 110, 3728,
113, 309, 112, 106, 113, 113, 111, 484, 145, 106,
198, 145, 309, 2854, 110, 112, 119, 119, 119, 119,
201, 119, 120, 120, 120, 120, 179, 120, 113, 179,
112, 177, 113, 113, 121, 121, 121, 121, 198, 121,
126, 126, 126, 126, 199, 126, 203, 133, 201, 138,
133, 199, 138, 142, 142, 2854, 187, 138, 145, 138,
142, 187, 142, 199, 133, 133, 148, 148, 436, 436,
148, 119, 199, 148, 203, 133, 179, 120, 133, 199,
144, 156, 156, 144, 156, 144, 3721, 181, 144, 121,
181, 199, 133, 133, 205, 126, 131, 131, 131, 131,
131, 131, 208, 131, 138, 211, 131, 142, 187, 405,
131, 149, 131, 131, 149, 131, 131, 131, 188, 149,
148, 188, 205, 642, 131, 131, 131, 131, 131, 131,
208, 131, 3692, 211, 131, 144, 156, 181, 131, 151,
131, 131, 151, 131, 131, 131, 150, 151, 405, 150,
494, 150, 157, 157, 150, 157, 155, 155, 200, 150,
155, 149, 642, 155, 159, 159, 159, 159, 155, 162,
162, 200, 162, 188, 162, 166, 166, 212, 166, 346,
166, 346, 162, 875, 380, 3690, 200, 380, 166, 151,
169, 166, 3654, 169, 210, 169, 162, 210, 169, 200,
435, 150, 166, 435, 494, 212, 2867, 157, 167, 167,
155, 167, 169, 167, 867, 168, 168, 230, 168, 159,
168, 167, 875, 202, 162, 210, 346, 1386, 168, 186,
166, 170, 186, 202, 170, 167, 170, 186, 206, 170,
169, 170, 168, 3649, 170, 230, 206, 171, 2867, 235,
171, 202, 171, 162, 162, 171, 903, 359, 170, 166,
166, 202, 224, 167, 414, 224, 206, 224, 174, 171,
168, 174, 1386, 174, 206, 176, 174, 235, 176, 174,
176, 243, 867, 176, 186, 176, 170, 498, 176, 2057,
174, 2057, 167, 167, 178, 178, 521, 171, 178, 168,
168, 178, 176, 178, 359, 180, 178, 521, 180, 243,
180, 414, 244, 180, 3623, 184, 184, 224, 174, 184,
178, 3619, 184, 903, 190, 190, 190, 486, 486, 197,
176, 190, 192, 192, 192, 192, 204, 245, 197, 209,
244, 498, 197, 209, 207, 192, 246, 197, 178, 209,
227, 207, 496, 496, 204, 227, 204, 197, 209, 176,
180, 207, 501, 501, 204, 245, 197, 209, 228, 184,
197, 209, 207, 228, 246, 197, 231, 209, 190, 207,
232, 231, 204, 232, 204, 233, 209, 192, 233, 207,
214, 214, 214, 214, 217, 217, 217, 217, 218, 218,
218, 218, 227, 218, 221, 221, 221, 221, 247, 221,
222, 222, 222, 222, 236, 222, 248, 236, 251, 253,
228, 251, 260, 2058, 254, 2058, 251, 254, 231, 269,
232, 423, 254, 270, 258, 233, 247, 258, 267, 258,
251, 267, 258, 271, 248, 214, 254, 253, 272, 217,
260, 263, 263, 218, 263, 262, 258, 269, 262, 221,
262, 270, 273, 262, 236, 222, 274, 275, 251, 276,
278, 271, 279, 280, 254, 280, 272, 262, 423, 282,
285, 281, 287, 285, 258, 267, 288, 289, 290, 291,
273, 292, 293, 294, 274, 275, 281, 276, 278, 295,
279, 280, 296, 280, 298, 262, 263, 282, 299, 281,
287, 300, 301, 302, 288, 289, 290, 291, 303, 292,
293, 294, 304, 305, 281, 307, 304, 295, 304, 308,
296, 310, 298, 306, 306, 285, 299, 311, 312, 300,
301, 302, 313, 314, 323, 327, 303, 323, 327, 323,
304, 305, 507, 307, 304, 325, 304, 308, 325, 310,
325, 306, 306, 328, 329, 311, 312, 330, 332, 3618,
313, 314, 319, 319, 319, 319, 885, 319, 320, 320,
320, 320, 335, 320, 321, 321, 321, 321, 333, 321,
331, 328, 329, 331, 336, 330, 332, 335, 337, 507,
327, 338, 333, 333, 334, 1113, 334, 339, 340, 341,
335, 1113, 340, 342, 344, 337, 333, 442, 331, 345,
337, 331, 336, 345, 745, 335, 337, 319, 3578, 338,
333, 333, 334, 320, 334, 339, 340, 341, 343, 321,
340, 342, 344, 337, 885, 442, 349, 345, 337, 349,
369, 345, 343, 343, 349, 369, 349, 350, 350, 351,
353, 351, 354, 353, 350, 355, 343, 355, 353, 354,
353, 354, 356, 362, 360, 356, 362, 360, 745, 360,
343, 343, 360, 361, 361, 363, 364, 514, 363, 364,
361, 364, 365, 443, 364, 366, 365, 369, 366, 365,
2259, 349, 2259, 366, 372, 370, 351, 372, 370, 3028,
370, 350, 355, 370, 441, 353, 354, 441, 370, 371,
371, 443, 356, 362, 373, 374, 371, 373, 374, 360,
374, 371, 373, 374, 514, 363, 375, 361, 374, 444,
375, 364, 524, 375, 411, 366, 365, 411, 375, 376,
376, 3028, 376, 524, 372, 377, 377, 445, 377, 398,
370, 379, 379, 379, 379, 381, 381, 444, 381, 384,
384, 446, 384, 371, 373, 1106, 382, 382, 398, 382,
374, 382, 384, 395, 474, 445, 395, 474, 395, 382,
375, 395, 386, 386, 411, 386, 384, 386, 447, 446,
2610, 416, 416, 382, 376, 386, 398, 2792, 416, 448,
377, 488, 387, 387, 488, 387, 379, 387, 483, 386,
381, 483, 421, 483, 384, 387, 447, 421, 387, 389,
389, 382, 389, 395, 389, 390, 390, 448, 390, 387,
390, 391, 389, 1106, 391, 389, 391, 386, 390, 391,
2610, 426, 426, 384, 384, 416, 389, 2792, 426, 428,
382, 382, 390, 391, 428, 394, 403, 387, 394, 403,
394, 403, 449, 394, 421, 396, 386, 386, 396, 2260,
396, 2260, 403, 396, 389, 396, 3562, 394, 396, 417,
390, 391, 417, 403, 397, 397, 387, 387, 397, 562,
449, 397, 396, 397, 399, 426, 397, 399, 3544, 399,
562, 428, 399, 389, 389, 394, 427, 427, 427, 390,
390, 403, 425, 427, 401, 425, 399, 401, 402, 401,
396, 402, 401, 402, 401, 565, 402, 401, 402, 417,
418, 402, 487, 418, 402, 487, 565, 487, 397, 403,
403, 401, 451, 420, 399, 402, 1316, 420, 404, 406,
420, 404, 406, 404, 406, 3541, 404, 406, 404, 406,
427, 404, 406, 415, 404, 406, 415, 425, 415, 401,
451, 415, 856, 402, 409, 404, 406, 409, 431, 409,
418, 410, 409, 431, 409, 410, 419, 409, 410, 419,
410, 419, 424, 410, 419, 424, 495, 420, 401, 495,
424, 409, 402, 404, 406, 429, 1325, 410, 429, 430,
3514, 430, 454, 429, 1316, 455, 430, 456, 415, 856,
452, 432, 432, 432, 432, 438, 438, 438, 438, 409,
431, 452, 404, 406, 432, 410, 450, 457, 450, 458,
454, 419, 450, 455, 459, 456, 460, 424, 452, 462,
463, 462, 464, 465, 466, 459, 467, 468, 467, 452,
429, 469, 464, 430, 450, 457, 450, 458, 471, 472,
450, 465, 459, 1325, 460, 1320, 432, 462, 463, 462,
464, 465, 466, 459, 467, 468, 467, 473, 489, 469,
464, 489, 500, 489, 1323, 500, 471, 472, 3509, 465,
470, 470, 493, 470, 505, 493, 470, 493, 470, 505,
470, 470, 470, 520, 470, 473, 470, 470, 470, 470,
476, 476, 476, 476, 480, 480, 480, 480, 470, 470,
497, 470, 508, 497, 470, 497, 470, 508, 470, 470,
470, 520, 470, 1320, 470, 470, 470, 470, 481, 481,
481, 481, 482, 482, 482, 482, 505, 482, 485, 485,
485, 485, 1323, 485, 491, 491, 491, 491, 2794, 491,
522, 492, 492, 492, 492, 476, 492, 499, 502, 480,
499, 502, 499, 503, 508, 510, 503, 523, 503, 511,
510, 515, 511, 516, 515, 525, 516, 532, 522, 2131,
2131, 531, 528, 481, 531, 528, 542, 482, 557, 531,
528, 557, 543, 485, 533, 523, 532, 533, 2794, 491,
544, 545, 533, 525, 528, 535, 492, 539, 535, 539,
535, 1571, 499, 535, 542, 546, 533, 510, 547, 511,
543, 515, 538, 516, 532, 538, 539, 535, 544, 545,
538, 531, 528, 548, 540, 550, 551, 540, 552, 540,
553, 555, 540, 546, 533, 556, 547, 558, 559, 560,
558, 561, 563, 564, 539, 535, 540, 590, 566, 2969,
590, 548, 567, 550, 551, 1571, 552, 568, 553, 555,
570, 571, 538, 556, 3498, 3488, 559, 560, 572, 561,
563, 564, 573, 574, 540, 554, 566, 554, 554, 575,
567, 554, 554, 554, 576, 568, 3486, 554, 570, 571,
554, 579, 554, 554, 554, 554, 572, 554, 554, 2969,
573, 574, 580, 554, 581, 554, 554, 575, 577, 554,
554, 554, 576, 578, 578, 554, 582, 583, 554, 579,
554, 554, 554, 554, 585, 554, 554, 577, 586, 587,
580, 588, 581, 593, 591, 589, 577, 591, 594, 595,
596, 578, 578, 598, 582, 583, 589, 599, 600, 588,
602, 603, 585, 606, 607, 577, 586, 587, 608, 588,
610, 593, 611, 612, 613, 614, 594, 595, 596, 615,
616, 598, 617, 618, 619, 599, 600, 588, 602, 603,
3467, 606, 607, 620, 626, 620, 608, 626, 610, 1932,
611, 612, 613, 614, 3422, 3415, 623, 615, 616, 623,
617, 618, 619, 1388, 623, 624, 623, 637, 624, 629,
637, 640, 629, 624, 629, 624, 630, 629, 1690, 630,
632, 630, 638, 632, 630, 638, 639, 639, 632, 639,
620, 639, 635, 636, 626, 635, 636, 635, 636, 639,
635, 636, 639, 1932, 645, 635, 636, 646, 1388, 3383,
640, 623, 674, 639, 645, 682, 733, 645, 646, 733,
624, 675, 641, 641, 629, 641, 675, 641, 3320, 649,
632, 630, 649, 669, 649, 641, 669, 649, 641, 640,
674, 639, 655, 682, 663, 1690, 683, 635, 636, 641,
684, 649, 663, 643, 643, 662, 643, 3302, 643, 647,
647, 3286, 647, 663, 647, 662, 643, 685, 662, 643,
639, 639, 647, 675, 683, 647, 686, 641, 684, 649,
643, 655, 2865, 669, 652, 645, 647, 652, 687, 652,
823, 663, 652, 653, 652, 685, 653, 652, 653, 2865,
652, 823, 688, 894, 686, 690, 641, 641, 643, 653,
655, 652, 691, 692, 647, 2262, 687, 2262, 654, 656,
653, 654, 656, 654, 656, 3280, 654, 656, 654, 656,
688, 654, 656, 690, 654, 656, 662, 643, 643, 652,
691, 692, 894, 647, 647, 654, 656, 693, 653, 678,
679, 657, 678, 679, 657, 664, 657, 678, 664, 657,
664, 657, 680, 734, 657, 680, 734, 657, 652, 3278,
680, 664, 694, 654, 656, 693, 653, 653, 657, 3272,
658, 659, 664, 658, 659, 658, 659, 3234, 658, 659,
658, 659, 735, 658, 659, 735, 658, 659, 695, 2465,
694, 2465, 654, 656, 678, 679, 657, 658, 659, 3200,
664, 660, 697, 3128, 660, 665, 660, 680, 665, 660,
665, 660, 1516, 665, 660, 665, 695, 660, 665, 672,
3163, 665, 672, 698, 672, 658, 659, 672, 660, 664,
697, 666, 665, 3150, 666, 667, 666, 699, 667, 666,
667, 666, 701, 667, 666, 667, 737, 736, 667, 737,
736, 698, 736, 3128, 658, 659, 660, 1516, 666, 702,
665, 673, 667, 703, 673, 699, 673, 705, 696, 673,
701, 706, 707, 708, 672, 696, 696, 696, 696, 696,
696, 696, 696, 696, 709, 660, 666, 702, 3145, 665,
667, 703, 710, 712, 713, 705, 714, 715, 716, 706,
707, 708, 717, 718, 719, 718, 721, 713, 713, 718,
713, 713, 709, 720, 723, 724, 673, 722, 725, 726,
710, 712, 713, 728, 714, 715, 716, 722, 720, 732,
717, 718, 719, 718, 721, 713, 713, 718, 713, 713,
727, 720, 723, 724, 3115, 722, 725, 726, 729, 727,
729, 728, 729, 753, 3101, 722, 720, 732, 738, 739,
754, 738, 739, 738, 739, 754, 740, 741, 727, 740,
741, 743, 741, 761, 743, 3055, 729, 727, 729, 744,
729, 753, 744, 746, 744, 762, 746, 747, 746, 748,
747, 763, 748, 750, 748, 764, 750, 751, 750, 752,
751, 761, 752, 758, 752, 774, 758, 766, 775, 776,
766, 3053, 754, 762, 777, 766, 778, 770, 780, 763,
770, 781, 770, 764, 782, 770, 783, 784, 801, 766,
785, 801, 790, 774, 791, 834, 775, 776, 834, 770,
789, 792, 777, 787, 778, 785, 780, 787, 785, 781,
788, 787, 782, 758, 783, 784, 786, 766, 785, 789,
790, 793, 791, 786, 788, 794, 788, 770, 789, 792,
786, 787, 795, 785, 797, 787, 785, 793, 788, 787,
794, 796, 798, 796, 786, 799, 802, 789, 804, 793,
806, 786, 788, 794, 788, 809, 810, 802, 786, 3051,
795, 811, 797, 812, 813, 793, 814, 815, 794, 796,
798, 796, 817, 799, 818, 819, 804, 820, 806, 821,
822, 824, 825, 809, 810, 826, 828, 802, 829, 811,
830, 812, 813, 831, 814, 815, 832, 835, 836, 837,
817, 830, 818, 819, 838, 820, 839, 821, 822, 824,
825, 840, 830, 826, 828, 841, 829, 842, 843, 844,
846, 831, 847, 848, 832, 835, 836, 837, 849, 850,
847, 851, 838, 852, 839, 853, 854, 855, 859, 840,
830, 3047, 857, 841, 857, 842, 843, 844, 846, 862,
847, 848, 858, 3038, 862, 858, 849, 850, 847, 851,
858, 852, 858, 853, 854, 855, 860, 861, 863, 860,
861, 863, 861, 864, 865, 861, 864, 865, 864, 881,
869, 864, 907, 873, 898, 859, 864, 866, 866, 857,
866, 869, 866, 868, 873, 887, 862, 866, 881, 868,
866, 887, 908, 866, 904, 908, 910, 858, 871, 871,
914, 871, 880, 871, 866, 880, 860, 880, 863, 3030,
880, 871, 861, 898, 871, 1315, 881, 915, 864, 907,
976, 882, 916, 976, 882, 871, 882, 917, 914, 882,
3021, 882, 866, 904, 882, 918, 3011, 882, 919, 888,
2970, 913, 908, 910, 913, 915, 2968, 888, 882, 869,
916, 911, 880, 871, 1315, 917, 911, 868, 888, 887,
1002, 866, 866, 918, 883, 884, 919, 883, 884, 883,
884, 1002, 883, 884, 883, 884, 882, 883, 884, 920,
883, 884, 871, 871, 890, 886, 888, 890, 886, 890,
886, 883, 884, 886, 897, 886, 913, 897, 886, 897,
890, 886, 897, 911, 995, 882, 912, 920, 923, 912,
924, 890, 886, 927, 912, 888, 897, 1326, 891, 883,
884, 891, 977, 891, 930, 977, 891, 892, 891, 931,
892, 891, 892, 2964, 891, 1265, 923, 932, 924, 890,
886, 927, 934, 892, 897, 891, 1265, 997, 883, 884,
893, 995, 930, 893, 892, 893, 1326, 931, 893, 895,
893, 912, 895, 893, 895, 932, 893, 895, 890, 895,
934, 896, 895, 891, 896, 895, 896, 893, 1395, 896,
935, 896, 892, 936, 896, 899, 895, 896, 899, 1395,
899, 938, 909, 899, 997, 909, 905, 909, 896, 905,
909, 905, 891, 939, 905, 893, 905, 899, 935, 905,
892, 936, 905, 979, 895, 940, 979, 906, 941, 938,
906, 942, 906, 905, 921, 906, 896, 906, 944, 921,
906, 939, 2926, 978, 980, 899, 978, 980, 978, 945,
946, 921, 947, 940, 906, 948, 941, 909, 949, 942,
950, 905, 921, 3501, 2888, 3501, 944, 921, 928, 928,
928, 928, 928, 928, 928, 928, 928, 945, 946, 921,
947, 951, 906, 948, 951, 952, 949, 953, 950, 954,
905, 929, 929, 929, 929, 929, 929, 929, 929, 929,
955, 956, 957, 958, 959, 960, 961, 962, 965, 967,
964, 968, 951, 952, 964, 953, 966, 954, 969, 966,
970, 971, 972, 975, 982, 2877, 999, 982, 955, 956,
957, 958, 959, 960, 961, 962, 965, 967, 964, 968,
981, 2876, 964, 981, 966, 981, 969, 966, 970, 971,
972, 975, 983, 984, 999, 983, 984, 983, 984, 985,
986, 988, 985, 986, 988, 986, 989, 990, 1000, 989,
990, 989, 991, 992, 1001, 991, 992, 991, 993, 994,
996, 993, 994, 993, 998, 996, 1003, 998, 1004, 1003,
1005, 1006, 1010, 1005, 1003, 1005, 1000, 1011, 1005, 1013,
1014, 1015, 1001, 1016, 3580, 1017, 3580, 1004, 2860, 1018,
1006, 1019, 2859, 1020, 1021, 1022, 1023, 1025, 1027, 1028,
1010, 1024, 1024, 1024, 1024, 1011, 1026, 1013, 1014, 1015,
1026, 1016, 996, 1017, 998, 1004, 1003, 1018, 1006, 1019,
1005, 1020, 1021, 1022, 1023, 1025, 1027, 1028, 1029, 1024,
1024, 1024, 1024, 1030, 1026, 1031, 1032, 1033, 1026, 1034,
1035, 1036, 1037, 1039, 1038, 1036, 1040, 1036, 1038, 1041,
1042, 1043, 1044, 1045, 2850, 1048, 1029, 1049, 3041, 3549,
1039, 1030, 1051, 1031, 1032, 1033, 1052, 1034, 1035, 1036,
1037, 1039, 1038, 1036, 1040, 1036, 1038, 1041, 1042, 1043,
1044, 1045, 1047, 1048, 1053, 1049, 1047, 1050, 1039, 1054,
1051, 1055, 1056, 1047, 1052, 1047, 1057, 1058, 1050, 1059,
3041, 1061, 1062, 1063, 1064, 1065, 1067, 1068, 1069, 3549,
1047, 1071, 1053, 2809, 1047, 1072, 1074, 1054, 2808, 1055,
1056, 1047, 1075, 1047, 1057, 1058, 1076, 1059, 1050, 1061,
1062, 1063, 1064, 1065, 1067, 1068, 1069, 1070, 1070, 1071,
1077, 1070, 1078, 1072, 1074, 1079, 1070, 1080, 1081, 1082,
1075, 1083, 1070, 1084, 1076, 1085, 1070, 1086, 1070, 1088,
1089, 1090, 1091, 1092, 1093, 1070, 1070, 1094, 1077, 1070,
1078, 1095, 1096, 1079, 1070, 1080, 1081, 1082, 1097, 1083,
1070, 1084, 1098, 1085, 1070, 1086, 1070, 1088, 1089, 1090,
1091, 1092, 1093, 1105, 1110, 1094, 1105, 1110, 1124, 1095,
1096, 1111, 1104, 1104, 1112, 1104, 1097, 1104, 2799, 1126,
1098, 1109, 1128, 1129, 1109, 1104, 1109, 1131, 1104, 1109,
1114, 1109, 1564, 1114, 1109, 1114, 1124, 1109, 1114, 1104,
1114, 1116, 2793, 1114, 1120, 1133, 1114, 1126, 1109, 1116,
1128, 1129, 1120, 1112, 3185, 1131, 1115, 1114, 1134, 1115,
1116, 1115, 2759, 1120, 1115, 1118, 1115, 1104, 1118, 1115,
1118, 3185, 1115, 1133, 1105, 1110, 1109, 1564, 1111, 1111,
1136, 1118, 1112, 1115, 1188, 1114, 1134, 1188, 1116, 1704,
1117, 1120, 1118, 1117, 1135, 1117, 1104, 1104, 1117, 1119,
1117, 1746, 1119, 1117, 1119, 1109, 1117, 1119, 1136, 1119,
1135, 1115, 1119, 1121, 1114, 1119, 1121, 1117, 1121, 1137,
1118, 1139, 1135, 1141, 1142, 1143, 1119, 1189, 1190, 1121,
1189, 1190, 1191, 1190, 1704, 1191, 1144, 1145, 1135, 1149,
1121, 1151, 1154, 1155, 1156, 1117, 1746, 1137, 1140, 1139,
1157, 1141, 1142, 1143, 1119, 1140, 1140, 1140, 1140, 1140,
1140, 1140, 1140, 1140, 1144, 1145, 1158, 1149, 1121, 1151,
1154, 1155, 1156, 1159, 1117, 1160, 1162, 1163, 1157, 1161,
1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1164, 1165,
1166, 1167, 1168, 1170, 1158, 1169, 1169, 1121, 1171, 1172,
1173, 1159, 1175, 1160, 1162, 1163, 1176, 1177, 1178, 1179,
1181, 1182, 1183, 1184, 1184, 2739, 1164, 1165, 1166, 1167,
1168, 1170, 1192, 1169, 1169, 1192, 1171, 1172, 1173, 1194,
1175, 1200, 1194, 1204, 1176, 1177, 1178, 1179, 1181, 1182,
1183, 1184, 1184, 1193, 1195, 1205, 1193, 1195, 1193, 1195,
1196, 1197, 1198, 1196, 1197, 1198, 1197, 1199, 1206, 1200,
1199, 1204, 1213, 1214, 1215, 1217, 1218, 1220, 1221, 1222,
1223, 1224, 1225, 1205, 1226, 1227, 1228, 1229, 1230, 1231,
1232, 1233, 1228, 1234, 1235, 1236, 1206, 1237, 1238, 1239,
1213, 1214, 1215, 1217, 1218, 1220, 1221, 1222, 1223, 1224,
1225, 1240, 1226, 1227, 1228, 1229, 1230, 1231, 1232, 1233,
1228, 1234, 1235, 1236, 1241, 1237, 1238, 1239, 1242, 1243,
1244, 1245, 1246, 1247, 1248, 1249, 1250, 1251, 1252, 1240,
1253, 1254, 1256, 1257, 1258, 1259, 1260, 1261, 1264, 1266,
2690, 1250, 1241, 1267, 1268, 2679, 1242, 1243, 1244, 1245,
1246, 1247, 1248, 1249, 1250, 1251, 1252, 1263, 1253, 1254,
1256, 1257, 1258, 1259, 1260, 1261, 1264, 1266, 1263, 1250,
1270, 1267, 1268, 1263, 1263, 1271, 1272, 1273, 1275, 1276,
1277, 1278, 1280, 1282, 1283, 1263, 1284, 1285, 1286, 1287,
1288, 1290, 1292, 1285, 1293, 1294, 1263, 1295, 1270, 1296,
1297, 1263, 1263, 1271, 1272, 1273, 1275, 1276, 1277, 1278,
1280, 1282, 1283, 1298, 1284, 1285, 1286, 1287, 1288, 1290,
1292, 1285, 1293, 1294, 1299, 1295, 1300, 1296, 1297, 1301,
1302, 1303, 1305, 1306, 1307, 1308, 1309, 1310, 1311, 1312,
1313, 1298, 1314, 1318, 1329, 1328, 1390, 1391, 3192, 1390,
1391, 1332, 1299, 3582, 1300, 3582, 1328, 1301, 1302, 1303,
1305, 1306, 1307, 1308, 1309, 1310, 1311, 1312, 1313, 1322,
1319, 1324, 1329, 1319, 1324, 1319, 1324, 1322, 1319, 1332,
1319, 1314, 1318, 1319, 2675, 1333, 1319, 1324, 1322, 1334,
3192, 1327, 1335, 1330, 1327, 1330, 1327, 1319, 1324, 1327,
1336, 1327, 1337, 1338, 1327, 1339, 1342, 1327, 1344, 1345,
1314, 1318, 1328, 1333, 1346, 1347, 1322, 1334, 1327, 1341,
1335, 1330, 1341, 1330, 1341, 1319, 1324, 2637, 1336, 1341,
1337, 1338, 1341, 1339, 1342, 1348, 1344, 1345, 1350, 1349,
1351, 2636, 1346, 1347, 1353, 1322, 1327, 1392, 1359, 2612,
1392, 1393, 1392, 1394, 1393, 1324, 1394, 2574, 1361, 1364,
1365, 1366, 1367, 1348, 1368, 1369, 1350, 1370, 1351, 1349,
1371, 1372, 1353, 1373, 1341, 1349, 1359, 1360, 1360, 1360,
1360, 1360, 1360, 1360, 1360, 1360, 1361, 1364, 1365, 1366,
1367, 1375, 1368, 1369, 1376, 1370, 1377, 1349, 1371, 1372,
1378, 1373, 1380, 1349, 1381, 1382, 1383, 1384, 1385, 1396,
1381, 1397, 1400, 1401, 1402, 1403, 1404, 1402, 1405, 1375,
1406, 1407, 1376, 1408, 1377, 1409, 1410, 1411, 1378, 1412,
1380, 1414, 1381, 1382, 1383, 1384, 1385, 1396, 1381, 1397,
1400, 1401, 1415, 1403, 1404, 1413, 1405, 1416, 1406, 1407,
1417, 1408, 1418, 1409, 1410, 1411, 1419, 1412, 1413, 1414,
1420, 1421, 1422, 1413, 1424, 1425, 1423, 1426, 1427, 1428,
1415, 1429, 1423, 1413, 1423, 1416, 1430, 1423, 1417, 2547,
1418, 1432, 1433, 1434, 1419, 1435, 1413, 1436, 1420, 1421,
1422, 1413, 1424, 1425, 1423, 1426, 1427, 1428, 1437, 1429,
1423, 1438, 1423, 1431, 1430, 1423, 1439, 1431, 1440, 1432,
1433, 1434, 1441, 1435, 1431, 1436, 1431, 1431, 1442, 1431,
1443, 1444, 1445, 1446, 1447, 1448, 1437, 1449, 1450, 1438,
1451, 1431, 1452, 1457, 1439, 1431, 1440, 1458, 1459, 1460,
1441, 1461, 1431, 1465, 1431, 1431, 1442, 1431, 1443, 1444,
1445, 1446, 1447, 1448, 1466, 1449, 1450, 1462, 1451, 1468,
1452, 1457, 1469, 1467, 1462, 1458, 1459, 1460, 1470, 1461,
1468, 1465, 1462, 1471, 1472, 1473, 1467, 1462, 1467, 1474,
1475, 1468, 1466, 1476, 1477, 1462, 1478, 1479, 1480, 1481,
1469, 1467, 1462, 1482, 1483, 1485, 1470, 1486, 1487, 1488,
1462, 1471, 1472, 1473, 1467, 1462, 1467, 1474, 1475, 1468,
1489, 1476, 1477, 1484, 1478, 1479, 1480, 1481, 1484, 1490,
1491, 1482, 1483, 1485, 1492, 1486, 1487, 1488, 1493, 1494,
1497, 1498, 1499, 1495, 1500, 1497, 1501, 1504, 1489, 1503,
1505, 1484, 1503, 1506, 1503, 1502, 1484, 1490, 1491, 1495,
1507, 1509, 1492, 1502, 1510, 1503, 1493, 1494, 1497, 1498,
1499, 1495, 1500, 1497, 1502, 1504, 1503, 1511, 1505, 1512,
1513, 1506, 1514, 1519, 1522, 2544, 2535, 1495, 1507, 1509,
1515, 1523, 1510, 1515, 1524, 1515, 1518, 1527, 2533, 1518,
1515, 1518, 1502, 1515, 1503, 1511, 1518, 1512, 1513, 1518,
1514, 1519, 1522, 1501, 1501, 1528, 1530, 2500, 1532, 1523,
1525, 1538, 1524, 2496, 1525, 1527, 1525, 1526, 1526, 1526,
1526, 1526, 1526, 1526, 1526, 1526, 1539, 1542, 1543, 1544,
1545, 1546, 1547, 1528, 1530, 1515, 1532, 1548, 1525, 1538,
1549, 1518, 1525, 1550, 1525, 1540, 1540, 1540, 1540, 1540,
1540, 1540, 1540, 1540, 1539, 1542, 1543, 1544, 1545, 1546,
1547, 1551, 1552, 1553, 1554, 1548, 1555, 1556, 1549, 1557,
1558, 1550, 1559, 1560, 1561, 1562, 1567, 1568, 1572, 1567,
1573, 1574, 1569, 1576, 1574, 1577, 1574, 1578, 1579, 1551,
1552, 1553, 1554, 1569, 1555, 1556, 1581, 1557, 1558, 1582,
1559, 1560, 1561, 1562, 1583, 1568, 1572, 1580, 1573, 1584,
1585, 1576, 1586, 1577, 1580, 1578, 1579, 1587, 1588, 1589,
1590, 1591, 1592, 1593, 1581, 1594, 1595, 1582, 1596, 1597,
1598, 1599, 1583, 1600, 1601, 1580, 1602, 1584, 1585, 1603,
1586, 1604, 1580, 1605, 1606, 1587, 1588, 1589, 1590, 1591,
1592, 1593, 1607, 1594, 1595, 1608, 1596, 1597, 1598, 1599,
1609, 1600, 1601, 1610, 1602, 1611, 1612, 1603, 1613, 1604,
1614, 1605, 1606, 1615, 1616, 1617, 1618, 1619, 1620, 1621,
1607, 1622, 1623, 1608, 1624, 1626, 1625, 1627, 1609, 1628,
1630, 1610, 1631, 1611, 1612, 1632, 1613, 1625, 1614, 2494,
1633, 1615, 1616, 1617, 1618, 1619, 1620, 1621, 1634, 1622,
1623, 1635, 1624, 1626, 1636, 1627, 1637, 1628, 1630, 1638,
1631, 1639, 1641, 1632, 1642, 1643, 1644, 1625, 1633, 1645,
1646, 1651, 1647, 1652, 1649, 1653, 1634, 1655, 1656, 1635,
1658, 1659, 1636, 1647, 1637, 1649, 1663, 1638, 2493, 1639,
1641, 1664, 1642, 1643, 1644, 2492, 1665, 1645, 1646, 1651,
1647, 1652, 1666, 1653, 1668, 1655, 1656, 1669, 1658, 1659,
1670, 1647, 1648, 1648, 1663, 1671, 1648, 1672, 1648, 1664,
1673, 1674, 1648, 1648, 1665, 1675, 1648, 1676, 1677, 1678,
1666, 1648, 1668, 1679, 1680, 1669, 1681, 1682, 1670, 1683,
1648, 1648, 1685, 1671, 1648, 1672, 1648, 1686, 1673, 1674,
1648, 1648, 1683, 1675, 1648, 1676, 1677, 1678, 1687, 1648,
1684, 1679, 1680, 1684, 1681, 1682, 1688, 1683, 1689, 1692,
1685, 1693, 1695, 1696, 1697, 1686, 1698, 1699, 1700, 1706,
1683, 1710, 1702, 1711, 2485, 1702, 1687, 1702, 1684, 1698,
1713, 1684, 1702, 2473, 1688, 1702, 1689, 1692, 2471, 1693,
1695, 1696, 1697, 1714, 1698, 1699, 1700, 1706, 1715, 1710,
1716, 1711, 1712, 1717, 1722, 1717, 1719, 1698, 1713, 1712,
1712, 1712, 1712, 1712, 1712, 1712, 1712, 1712, 1719, 1724,
1724, 1714, 1725, 1719, 1726, 1727, 1715, 1702, 1716, 1728,
1729, 1717, 1722, 1717, 1719, 1723, 1723, 1723, 1723, 1723,
1723, 1723, 1723, 1723, 1730, 1731, 1719, 1724, 1724, 1732,
1725, 1719, 1726, 1727, 1734, 1735, 1737, 1728, 1729, 1736,
1738, 1739, 1740, 1741, 1742, 1743, 1744, 1737, 1745, 1736,
1747, 1751, 1730, 1731, 1752, 2470, 1737, 1732, 1755, 1756,
1736, 1747, 1734, 1735, 1737, 1758, 1759, 1736, 1738, 1739,
1740, 1741, 1742, 1743, 1744, 1737, 1745, 1736, 1754, 1751,
1760, 1754, 1752, 1754, 1737, 1761, 1755, 1756, 1736, 1762,
1763, 1764, 1765, 1758, 1759, 1766, 1767, 1768, 1769, 1770,
1771, 1772, 1773, 1774, 1775, 1776, 1777, 1778, 1760, 1779,
1780, 1781, 1782, 1761, 1769, 1784, 2469, 1762, 1763, 1764,
1765, 1785, 1786, 1766, 1767, 1768, 1769, 1770, 1771, 1772,
1773, 1774, 1775, 1776, 1777, 1778, 1787, 1779, 1780, 1781,
1782, 1783, 1769, 1784, 1783, 1788, 1789, 1790, 1791, 1785,
1786, 1792, 1793, 1794, 1795, 1796, 1797, 1798, 1799, 1800,
1798, 1801, 1797, 1801, 1787, 1802, 1803, 1804, 1801, 1806,
1807, 1810, 1811, 1788, 1789, 1790, 1791, 1808, 1812, 1792,
1793, 1794, 1795, 1796, 1797, 1814, 1799, 1800, 1808, 1801,
1797, 1801, 1815, 1802, 1803, 1804, 1801, 1806, 1807, 1810,
1811, 1813, 1816, 1817, 1818, 1820, 1812, 1822, 1823, 1824,
1825, 1826, 1827, 1814, 1828, 1813, 1830, 1831, 1808, 1832,
1815, 1833, 1834, 1835, 1836, 2464, 2439, 1829, 1839, 1813,
1816, 1817, 1818, 1820, 1840, 1822, 1823, 1824, 1825, 1826,
1827, 1829, 1828, 1841, 1830, 1831, 1843, 1832, 1844, 1833,
1834, 1835, 1836, 1838, 1838, 1829, 1839, 1849, 1851, 1838,
1852, 1853, 1840, 1854, 1856, 1857, 1858, 1838, 1859, 1829,
1838, 1841, 1860, 1861, 1843, 1863, 1844, 1866, 1867, 1868,
2428, 1838, 1838, 1869, 1870, 1849, 1851, 1838, 1852, 1853,
1871, 1854, 1856, 1857, 1858, 1838, 1859, 1872, 1838, 1875,
1860, 1861, 1864, 1863, 1864, 1866, 1867, 1868, 1864, 1874,
1876, 1869, 1870, 1878, 1873, 1877, 1873, 1879, 1871, 1864,
1873, 1864, 1877, 1880, 1881, 1872, 1886, 1875, 1882, 1883,
1864, 1873, 1864, 1873, 1887, 1890, 1864, 1955, 1876, 1891,
1955, 1878, 1873, 1877, 1873, 1879, 1892, 1864, 1873, 1864,
1877, 1880, 1881, 1894, 1874, 1884, 1882, 1883, 1884, 1873,
1884, 1873, 1895, 1897, 1896, 1884, 1896, 1891, 1884, 1898,
1899, 1886, 1901, 1902, 1892, 1903, 1906, 1907, 1909, 1887,
1890, 1894, 1994, 2418, 1910, 1911, 1912, 1913, 1914, 1915,
1895, 1897, 1896, 1994, 1896, 2416, 2195, 1898, 1899, 1916,
1901, 1902, 2400, 1903, 1906, 1907, 1909, 2195, 1918, 1919,
1884, 1904, 1910, 1911, 1912, 1913, 1914, 1915, 1904, 1904,
1904, 1904, 1904, 1904, 1904, 1904, 1904, 1916, 1917, 1920,
1904, 1921, 1904, 1904, 1904, 1917, 1918, 1919, 1904, 1922,
1923, 1925, 1924, 1904, 1926, 1927, 1928, 1929, 1930, 1931,
1938, 1940, 1904, 1924, 2384, 2345, 1917, 1920, 1904, 1921,
1904, 1904, 1904, 1917, 1941, 1942, 1904, 1922, 1923, 1925,
1924, 1904, 1926, 1927, 1928, 1929, 1930, 1931, 1938, 1940,
1904, 1924, 1934, 1934, 1934, 1934, 1936, 1936, 1936, 1936,
1943, 1944, 1941, 1942, 1945, 1946, 1947, 1948, 1949, 1950,
1951, 1952, 1953, 1956, 1957, 1958, 1959, 1960, 1961, 2343,
1962, 1964, 1965, 2074, 1966, 1967, 2074, 1969, 1943, 1944,
1970, 2330, 1945, 1946, 1947, 1948, 1949, 1950, 1951, 1952,
1953, 1956, 1957, 1958, 1959, 1960, 1961, 1934, 1962, 1964,
1965, 1936, 1966, 1967, 1968, 1969, 1971, 1968, 1970, 1968,
1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981,
1982, 1983, 1984, 1985, 1986, 1984, 1987, 1984, 1988, 1989,
1990, 1991, 1992, 1993, 1971, 1996, 1997, 1998, 1972, 1973,
1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983,
1999, 1985, 1986, 2000, 1987, 2001, 1988, 1989, 1990, 1991,
1992, 1993, 2002, 1996, 1997, 1998, 2003, 2004, 2005, 2006,
3650, 2152, 3650, 2008, 2152, 2009, 2152, 2164, 1999, 2010,
2164, 2000, 2164, 2001, 2011, 2012, 2013, 3652, 2014, 3652,
2002, 2015, 2016, 2017, 2003, 2004, 2005, 2006, 2007, 2007,
2007, 2008, 2007, 2009, 2007, 2007, 2018, 2010, 2007, 2007,
2007, 2019, 2011, 2012, 2013, 2007, 2014, 2007, 2020, 2015,
2016, 2017, 2021, 2022, 2023, 2024, 2007, 2007, 2007, 2025,
2007, 2026, 2007, 2007, 2018, 2027, 2007, 2007, 2007, 2019,
2028, 2029, 2030, 2007, 2031, 2007, 2020, 2032, 2033, 2036,
2021, 2022, 2023, 2024, 2037, 2038, 2039, 2025, 2044, 2026,
2045, 2046, 2047, 2027, 2048, 2049, 2050, 2051, 2028, 2029,
2030, 2052, 2031, 2052, 2055, 2032, 2033, 2036, 2056, 2059,
2061, 2062, 2037, 2038, 2039, 2060, 2044, 2060, 2045, 2046,
2047, 2063, 2048, 2049, 2050, 2051, 2064, 2288, 2076, 2052,
2065, 2052, 2055, 2066, 2067, 2068, 2056, 2059, 2077, 2069,
2070, 2071, 2072, 2060, 2073, 2060, 2078, 2081, 2082, 2083,
2084, 2085, 2086, 2087, 2064, 2061, 2062, 2088, 2065, 2089,
2093, 2066, 2067, 2068, 2286, 2285, 2063, 2069, 2070, 2071,
2072, 2284, 2073, 2076, 2094, 2081, 2082, 2083, 2084, 2085,
2086, 2087, 2090, 2077, 2090, 2088, 2188, 2089, 2093, 2188,
2196, 2078, 2092, 2092, 2092, 2092, 2092, 2092, 2092, 2092,
2092, 2196, 2094, 2095, 2096, 2270, 2097, 2098, 2099, 2096,
2090, 2101, 2090, 2091, 2091, 2091, 2091, 2091, 2091, 2091,
2091, 2091, 2102, 2103, 2104, 2091, 2105, 2091, 2091, 2091,
2106, 2095, 2096, 2091, 2097, 2098, 2099, 2096, 2091, 2101,
2107, 2108, 2110, 2111, 2112, 2113, 2114, 2091, 2115, 2116,
2102, 2103, 2104, 2091, 2105, 2091, 2091, 2091, 2106, 2117,
2118, 2091, 2119, 2120, 2121, 2123, 2091, 2124, 2107, 2108,
2110, 2111, 2112, 2113, 2114, 2091, 2115, 2116, 2125, 2126,
2127, 2130, 2130, 2130, 2130, 2132, 2132, 2117, 2118, 2135,
2119, 2120, 2121, 2123, 2137, 2124, 2133, 2133, 2133, 2133,
2134, 2134, 2138, 2139, 2140, 2142, 2125, 2126, 2127, 2143,
2144, 3622, 2145, 2146, 2147, 2148, 2149, 2135, 2150, 2151,
2153, 2154, 2137, 2153, 2155, 2156, 2269, 2268, 2157, 2158,
2138, 2139, 2140, 2142, 2159, 2160, 2130, 2143, 2144, 2132,
2145, 2146, 2147, 2148, 2149, 2161, 2150, 2151, 2162, 2154,
2163, 2133, 2155, 2156, 2134, 2141, 2157, 2158, 2141, 2267,
2153, 3622, 2159, 2160, 2166, 2167, 2168, 2169, 2170, 2171,
2172, 2269, 2173, 2161, 2141, 2245, 2162, 2174, 2163, 2175,
2177, 2178, 2179, 2180, 2183, 2231, 2184, 2141, 2153, 2141,
2129, 2185, 2166, 2167, 2168, 2169, 2170, 2171, 2172, 2141,
2173, 2141, 2141, 2141, 2186, 2174, 2187, 2175, 2177, 2178,
2179, 2180, 2183, 2182, 2184, 2141, 2182, 2141, 2182, 2185,
2189, 2190, 2191, 2193, 2194, 2197, 2198, 2141, 2199, 2141,
2141, 2141, 2186, 2200, 2187, 2201, 2202, 2203, 2204, 2205,
2206, 2207, 2208, 2209, 2210, 2202, 2211, 2212, 2189, 2190,
2191, 2193, 2194, 2197, 2198, 2214, 2199, 2215, 2213, 2216,
2221, 2200, 2222, 2201, 2202, 2203, 2204, 2205, 2206, 2207,
2208, 2209, 2210, 2213, 2211, 2212, 2223, 2224, 2225, 2226,
2227, 2228, 2229, 2214, 2230, 2215, 2213, 2216, 2221, 2232,
2222, 2233, 2234, 2235, 2236, 2241, 2242, 2244, 2248, 2249,
2251, 2213, 2252, 2253, 2223, 2224, 2225, 2226, 2227, 2228,
2229, 2254, 2230, 2255, 2256, 2257, 2264, 2232, 2265, 2233,
2234, 2235, 2236, 2241, 2242, 2244, 2248, 2249, 2251, 2266,
2252, 2253, 2271, 2273, 2274, 2275, 2276, 2277, 2278, 2254,
2279, 2255, 2256, 2257, 2264, 2280, 2265, 2281, 2287, 2289,
2290, 2353, 2291, 2292, 2353, 2293, 2294, 2266, 2295, 2296,
2298, 2273, 2274, 2275, 2276, 2277, 2278, 2299, 2279, 2283,
2300, 2128, 2283, 2280, 2283, 2281, 2042, 2271, 2290, 2283,
2291, 2292, 2283, 2293, 2294, 2302, 2295, 2296, 2298, 2303,
2304, 2306, 2301, 2287, 2289, 2299, 2283, 2307, 2300, 2301,
2301, 2301, 2301, 2301, 2301, 2301, 2301, 2301, 2308, 2305,
2309, 2310, 2311, 2302, 2305, 2312, 2313, 2303, 2304, 2306,
2314, 2315, 2316, 2318, 2283, 2307, 2319, 2320, 2322, 2325,
2327, 2328, 2329, 2331, 2332, 2333, 2308, 2305, 2309, 2310,
2311, 2334, 2305, 2312, 2313, 2335, 2336, 2337, 2314, 2315,
2316, 2318, 2340, 2342, 2319, 2320, 2322, 2325, 2327, 2328,
2329, 2331, 2332, 2333, 2344, 2344, 2347, 2344, 2348, 2334,
2351, 2350, 2354, 2335, 2336, 2337, 2346, 2346, 2350, 2346,
2340, 2342, 2352, 2355, 2356, 2352, 2357, 2352, 2358, 2355,
2359, 2040, 2360, 2362, 2347, 2363, 2348, 2364, 2351, 2350,
2354, 2361, 2365, 2035, 2361, 2366, 2350, 2367, 2368, 2369,
2371, 2355, 2356, 2371, 2357, 2371, 2358, 2355, 2359, 2344,
2360, 2362, 2373, 2363, 2372, 2364, 2374, 2372, 2375, 2372,
2365, 2346, 2376, 2366, 2344, 2367, 2368, 2369, 2377, 2378,
2379, 2380, 2382, 2383, 2385, 2382, 2346, 2386, 2387, 2388,
2373, 2389, 2390, 2391, 2374, 2392, 2375, 2393, 2394, 2396,
2376, 2397, 2398, 2399, 2401, 2402, 2377, 2378, 2379, 2380,
2403, 2383, 2385, 2403, 2404, 2386, 2387, 2388, 2405, 2389,
2390, 2391, 2407, 2392, 2408, 2393, 2394, 2396, 2409, 2397,
2398, 2399, 2401, 2402, 2406, 2410, 2411, 2406, 2414, 2406,
2415, 2417, 2404, 2419, 2420, 2422, 2405, 2423, 2424, 2425,
2407, 2426, 2408, 2427, 2419, 2429, 2409, 2430, 2431, 2432,
2433, 2434, 2436, 2410, 2411, 2437, 2414, 2438, 2415, 2417,
2440, 2441, 2420, 2422, 2442, 2423, 2424, 2425, 2444, 2426,
2445, 2427, 2446, 2429, 2419, 2430, 2431, 2432, 2433, 2434,
2436, 2447, 2448, 2437, 2449, 2438, 2450, 2451, 2440, 2441,
2452, 2453, 2442, 2454, 2457, 2458, 2444, 2459, 2445, 2461,
2446, 2462, 2463, 2467, 2468, 2472, 2474, 2475, 2476, 2447,
2448, 2477, 2449, 2478, 2450, 2451, 2479, 2480, 2452, 2453,
2481, 2454, 2457, 2458, 2488, 2459, 2482, 2461, 2484, 2462,
2463, 2467, 2468, 2495, 2497, 2499, 2476, 1954, 2488, 2477,
2487, 2478, 2498, 2556, 2479, 2480, 2556, 2501, 2481, 1939,
2472, 2474, 2475, 1935, 2482, 2486, 2484, 2487, 2486, 2489,
2486, 2502, 2489, 2499, 2489, 2486, 2488, 2490, 2486, 2489,
2490, 2491, 2490, 2503, 2491, 2501, 2491, 2490, 2495, 2497,
2490, 2491, 2486, 2504, 2491, 2487, 2489, 2498, 2505, 2502,
2506, 2507, 2508, 2510, 2490, 2511, 2512, 2513, 2491, 2514,
2515, 2503, 2516, 2517, 2518, 2519, 2520, 2521, 2522, 2523,
2486, 2504, 2524, 2525, 2489, 2526, 2505, 2527, 2506, 2507,
2508, 2510, 2490, 2511, 2512, 2513, 2491, 2514, 2515, 2528,
2516, 2517, 2518, 2519, 2520, 2521, 2522, 2523, 2529, 2530,
2524, 2525, 2531, 2526, 2532, 2527, 2534, 2536, 2537, 2538,
2539, 2540, 2541, 2542, 2543, 2545, 2545, 2528, 2545, 2548,
2548, 2550, 2548, 2551, 2552, 2553, 2529, 2530, 2557, 2558,
2531, 2559, 2532, 2560, 2534, 2536, 2537, 2538, 2539, 2540,
2541, 2542, 2543, 2561, 2562, 2563, 1933, 2564, 2566, 2550,
2567, 2551, 2552, 2553, 2569, 2565, 2557, 2558, 2565, 2559,
2565, 2560, 2570, 2571, 2572, 2573, 2577, 2578, 2579, 2580,
2545, 2561, 2562, 2563, 2548, 2564, 2566, 2581, 2567, 2582,
2586, 2584, 2569, 2584, 2585, 2545, 2588, 2585, 2589, 2548,
2570, 2571, 2572, 2573, 2577, 2578, 2579, 2580, 2590, 2591,
2593, 2594, 2595, 2596, 2597, 2581, 2596, 2582, 2586, 2584,
2598, 2584, 2599, 2600, 2588, 2601, 2589, 2603, 2604, 2605,
2606, 2606, 2605, 2597, 2605, 2607, 2590, 2591, 2593, 2594,
2595, 2609, 2597, 2611, 2609, 2613, 2609, 2614, 2598, 2615,
2599, 2600, 2616, 2601, 2617, 2603, 2604, 2618, 2606, 2606,
2619, 2597, 2620, 2607, 2622, 2623, 2624, 2625, 2626, 2627,
2628, 2611, 2629, 2613, 2630, 2614, 2631, 2615, 2632, 2633,
2616, 2634, 2617, 2635, 2638, 2618, 2639, 2640, 2619, 2641,
2620, 2642, 2622, 2623, 2624, 2625, 2626, 2627, 2628, 2643,
2629, 2644, 2630, 2645, 2631, 2646, 2632, 2633, 2648, 2634,
2649, 2635, 2638, 2650, 2639, 2640, 2651, 2641, 2652, 2642,
2653, 2655, 2656, 2657, 2659, 2660, 2661, 2643, 2662, 2644,
2663, 2645, 2664, 2646, 2665, 2666, 2648, 2668, 2649, 2669,
2670, 2650, 2671, 2672, 2651, 2673, 2652, 2676, 2653, 2655,
2656, 2657, 2659, 2660, 2661, 1905, 2662, 2680, 2663, 2677,
2664, 2676, 2677, 2691, 2677, 2668, 2683, 2669, 2670, 2677,
2671, 2672, 2677, 2673, 2680, 2681, 2692, 1889, 2678, 2665,
2666, 2678, 2682, 2678, 2693, 2682, 2677, 2694, 2678, 2676,
2684, 2678, 2681, 2684, 2683, 2684, 3714, 2695, 3714, 2682,
2684, 2685, 2680, 2684, 2685, 2678, 2685, 2697, 2691, 2698,
2699, 2685, 2693, 2686, 2677, 2694, 2686, 2684, 2686, 2688,
2681, 2692, 2688, 2686, 2688, 2695, 2686, 2700, 2685, 2688,
1888, 2689, 2688, 2678, 2689, 2697, 2689, 2698, 2699, 2701,
2686, 2689, 2702, 2703, 2689, 2684, 2688, 2704, 2705, 2706,
2707, 2708, 2709, 2710, 2711, 2700, 2685, 2712, 2689, 2713,
2715, 2716, 2717, 2718, 2719, 2720, 2721, 2701, 2686, 2722,
2702, 2703, 2723, 2724, 2688, 2704, 2705, 2706, 2707, 2708,
2709, 2710, 2711, 2725, 2726, 2712, 2689, 2713, 2715, 2716,
2717, 2718, 2719, 2720, 2721, 2727, 2729, 2722, 2730, 2731,
2723, 2724, 2732, 2733, 2734, 2736, 2737, 2741, 2742, 2743,
2744, 2725, 2726, 2745, 2746, 2747, 2748, 2751, 2752, 2753,
2754, 2755, 2756, 2727, 2729, 2757, 2730, 2731, 2760, 2761,
2732, 2733, 2734, 2736, 2737, 2741, 2742, 2743, 2744, 2762,
2766, 2745, 2746, 2747, 2748, 2751, 2752, 2753, 2754, 2755,
2756, 2763, 2764, 2757, 2763, 2764, 2760, 2761, 2767, 2769,
2770, 2771, 2769, 2772, 2773, 2774, 1885, 2762, 2766, 2775,
2776, 2777, 2773, 2778, 2779, 2773, 2778, 2773, 2778, 2780,
2781, 2782, 2783, 2784, 2785, 2786, 2767, 2789, 2770, 2771,
2790, 2791, 2773, 2774, 2772, 2795, 2796, 2775, 2776, 2777,
2773, 2798, 2779, 2773, 2801, 2773, 2797, 2780, 2781, 2782,
2783, 2784, 2785, 2786, 2800, 2789, 2802, 2797, 2790, 2791,
2803, 2804, 2772, 2795, 2796, 2800, 2805, 2806, 2807, 2798,
2811, 2810, 2801, 2812, 2813, 2814, 2815, 2816, 2817, 2818,
2819, 2820, 2821, 2822, 2802, 2810, 2823, 2815, 2803, 2804,
2824, 2825, 2826, 2828, 2805, 2806, 2807, 2829, 2811, 2810,
2830, 2812, 2813, 2814, 2831, 2816, 2817, 2818, 2819, 2820,
2821, 2822, 2832, 2833, 2823, 2834, 2835, 2836, 2824, 2825,
2826, 2828, 2837, 2838, 2839, 2829, 2840, 2841, 2830, 2842,
2843, 2844, 2831, 2845, 2846, 2847, 2848, 2849, 2851, 2872,
2832, 2833, 2872, 2834, 2835, 2836, 2932, 2878, 1850, 2932,
2837, 2838, 2839, 1819, 2840, 2841, 2851, 2842, 2843, 2844,
1750, 1749, 2846, 2847, 2848, 2849, 2851, 2852, 2853, 3624,
2852, 2855, 2852, 1748, 2855, 2878, 2855, 2852, 2845, 2875,
2852, 2855, 2861, 2856, 2851, 2853, 2856, 2857, 2856, 2862,
2857, 2863, 2857, 2856, 2852, 1721, 2856, 2857, 2855, 2861,
2857, 2864, 2858, 2880, 2881, 2858, 2862, 2858, 2863, 2882,
2856, 2883, 2858, 2853, 2857, 2858, 2884, 1718, 2864, 3624,
2866, 1709, 2852, 2866, 2875, 2866, 2855, 2861, 2885, 2858,
2866, 2880, 2881, 2866, 2862, 2886, 2863, 2882, 2856, 2883,
2868, 2887, 2857, 2868, 2884, 2868, 2864, 2866, 2938, 2869,
2868, 2938, 2869, 2868, 2869, 2870, 2885, 2858, 2870, 2869,
2870, 2871, 2869, 2886, 2871, 2870, 2871, 2868, 2889, 2887,
2890, 2871, 2892, 1705, 2873, 2866, 2869, 2873, 2894, 2873,
2874, 2896, 2870, 2874, 2873, 2874, 2897, 2873, 2871, 2898,
2874, 2900, 2901, 2874, 2902, 2868, 2889, 2903, 2890, 2904,
2892, 2873, 2905, 2906, 2869, 2907, 2894, 2874, 2908, 2896,
2870, 2909, 2910, 2914, 2897, 2915, 2871, 2898, 2916, 2900,
2901, 2918, 2902, 2919, 2920, 2903, 2921, 2904, 2922, 2873,
2905, 2906, 2923, 2907, 2925, 2874, 2908, 2927, 2928, 2909,
2910, 2914, 2929, 2915, 2930, 2931, 2916, 2933, 2935, 2918,
2936, 2919, 2920, 2937, 2921, 2942, 2922, 2943, 2939, 2945,
2923, 2939, 2925, 2939, 2946, 2927, 2928, 2947, 2948, 2949,
2929, 2951, 2930, 2931, 2956, 2933, 2935, 2950, 2936, 2952,
2953, 2937, 2952, 2942, 2953, 2943, 2957, 2945, 2950, 2950,
2958, 2953, 2946, 2960, 2961, 2947, 2948, 2949, 2955, 2951,
2962, 2955, 2956, 2955, 2959, 2950, 2963, 2959, 2953, 2965,
2966, 2967, 2953, 2971, 2957, 2972, 2950, 2950, 2958, 2953,
2974, 2960, 2961, 2975, 2977, 2978, 2979, 2980, 2962, 2981,
2982, 2974, 2983, 2984, 2963, 2985, 2985, 2965, 2966, 2967,
2986, 2971, 2987, 2972, 2988, 2989, 2990, 2991, 2993, 2994,
2995, 2975, 2977, 2978, 2979, 2980, 2996, 2981, 2982, 2997,
2983, 2984, 2998, 2985, 2985, 2999, 3000, 3002, 2986, 3001,
2987, 3003, 2988, 2989, 2990, 2991, 2993, 2994, 2995, 3004,
3001, 3006, 3003, 3007, 2996, 3008, 3010, 2997, 3012, 3013,
2998, 3014, 3016, 2999, 3000, 3002, 3017, 3018, 3019, 3020,
3022, 3023, 3026, 3024, 3027, 3031, 3039, 3004, 1703, 3006,
3001, 3007, 3003, 3008, 3010, 3033, 3012, 3013, 3024, 3014,
3016, 1701, 3031, 3039, 3017, 3018, 3019, 3020, 3022, 3023,
3026, 3024, 3027, 3032, 3029, 3034, 3032, 3029, 3034, 3029,
3034, 1691, 1650, 3033, 3029, 3034, 3024, 3029, 3034, 3035,
3031, 3039, 3035, 3036, 3035, 3040, 3036, 3043, 3036, 3035,
3043, 3029, 3034, 3036, 3037, 3042, 3036, 3037, 3042, 3037,
3042, 3048, 3040, 3049, 3037, 3042, 3035, 3037, 3042, 3080,
3036, 3050, 3080, 3044, 3092, 3052, 3044, 3092, 3044, 3029,
3034, 3037, 3042, 3044, 3054, 3056, 3044, 3057, 3058, 3048,
3040, 3049, 3045, 3059, 3035, 3045, 3061, 3045, 3036, 3050,
3044, 3062, 3045, 3052, 3063, 3045, 3064, 3065, 3066, 3037,
3042, 3067, 3054, 3056, 3068, 3057, 3058, 3070, 3071, 3045,
3072, 3059, 3073, 3075, 3061, 3076, 3077, 3078, 3044, 3062,
3079, 3081, 3063, 3082, 3064, 3065, 3066, 3083, 3085, 3067,
3086, 3087, 3068, 3088, 3089, 3070, 3071, 3045, 3072, 3096,
3073, 3075, 3096, 3076, 3077, 3078, 3091, 3090, 3079, 3081,
3090, 3082, 3094, 3099, 3100, 3083, 3085, 3102, 3086, 3087,
3103, 3088, 3089, 3104, 3090, 3090, 3090, 3090, 3090, 3090,
3090, 3090, 3090, 3098, 3091, 3105, 3098, 3106, 3098, 3107,
3094, 3099, 3100, 3108, 3109, 3102, 3110, 3119, 3103, 3217,
3119, 3104, 3217, 1640, 1570, 1565, 3112, 3113, 3111, 3114,
3116, 3111, 3117, 3105, 3118, 3106, 3120, 3107, 3121, 3122,
3123, 3108, 3109, 3125, 3110, 3111, 3111, 3111, 3111, 3111,
3111, 3111, 3111, 3111, 3112, 3113, 3126, 3114, 3116, 3127,
3117, 3129, 3118, 3130, 3120, 3132, 3121, 3122, 3123, 3133,
3134, 3125, 3136, 3137, 3139, 3140, 3141, 3142, 3143, 3144,
3146, 3147, 3148, 3149, 3126, 3151, 3152, 3127, 3153, 3129,
3154, 3130, 3156, 3132, 3158, 3161, 3165, 3133, 3134, 3167,
3136, 3137, 3139, 3140, 3141, 3142, 3143, 3144, 3146, 3147,
3148, 3149, 3169, 3151, 3152, 3164, 3153, 3170, 3154, 3171,
3156, 3172, 3158, 3161, 3165, 3173, 3164, 3167, 1563, 3174,
3175, 3177, 3178, 3179, 3180, 3181, 3182, 3184, 3183, 3221,
3169, 3183, 3221, 3183, 3221, 3170, 3181, 3171, 3183, 3172,
1541, 3183, 3189, 3173, 3184, 3195, 3164, 3174, 3175, 3177,
3178, 3179, 3180, 3181, 3182, 3183, 1537, 3186, 3187, 3189,
3186, 3187, 3186, 3187, 3181, 1521, 3188, 3186, 3187, 3188,
1520, 3188, 3184, 3195, 3248, 3196, 3188, 3248, 1517, 3188,
1464, 3197, 3198, 3183, 3186, 3187, 3267, 3189, 1463, 3190,
3199, 3201, 3190, 3188, 3190, 3191, 3202, 3267, 3191, 3190,
3191, 3193, 3190, 3196, 3193, 3191, 3193, 3203, 3191, 3197,
3198, 3193, 3186, 3187, 3193, 3205, 3190, 3206, 3199, 3201,
3194, 3188, 3191, 3194, 3202, 3194, 3207, 3208, 3193, 3209,
3194, 3210, 3213, 3194, 3214, 3203, 3215, 3216, 3218, 3219,
3222, 3223, 3224, 3205, 3190, 3206, 3225, 3194, 3226, 3227,
3191, 3228, 3229, 1456, 3207, 3208, 3193, 3209, 3236, 3210,
3213, 3236, 3214, 3231, 3215, 3216, 3218, 3219, 3222, 3223,
3224, 3233, 3235, 3238, 3225, 3194, 3226, 3227, 3239, 3228,
3229, 3230, 3230, 3230, 3230, 3230, 3230, 3230, 3230, 3230,
3232, 3231, 3240, 3232, 3241, 3242, 3243, 3244, 3245, 3233,
3235, 3238, 3246, 3249, 3236, 1455, 3239, 3232, 3232, 3232,
3232, 3232, 3232, 3232, 3232, 3232, 3250, 3252, 3253, 3254,
3240, 3257, 3241, 3242, 3243, 3244, 3245, 3258, 3259, 3261,
3246, 3249, 3236, 3247, 3247, 3247, 3247, 3247, 3247, 3247,
3247, 3247, 3263, 3264, 3250, 3252, 3253, 3254, 3256, 3257,
3260, 3256, 3265, 3260, 3266, 3258, 3259, 3261, 3262, 3268,
3269, 3262, 3270, 3271, 3273, 3274, 3275, 3276, 3277, 3281,
3263, 3264, 3282, 3283, 3284, 3287, 3288, 3289, 3290, 3292,
3265, 3294, 3266, 3295, 3296, 3297, 3290, 3268, 3269, 3298,
3270, 3271, 3273, 3274, 3275, 3276, 3277, 3281, 3299, 3300,
3282, 3283, 3284, 3287, 3288, 3289, 3290, 3292, 3301, 3294,
3303, 3295, 3296, 3297, 3290, 3304, 3305, 3298, 3306, 3307,
3308, 3312, 3334, 3310, 3312, 3334, 3299, 3300, 3363, 3309,
3315, 3363, 3309, 1454, 3309, 1399, 3301, 3316, 3303, 3309,
3310, 3317, 3309, 3304, 3305, 3318, 3306, 3307, 3308, 3311,
3313, 3319, 3311, 3313, 3311, 3313, 3309, 3322, 3315, 3311,
3313, 3314, 3311, 3313, 3314, 3316, 3314, 3324, 3310, 3317,
3326, 3314, 3327, 3318, 3314, 3328, 3311, 3313, 3329, 3319,
3330, 3332, 1398, 3335, 3309, 3322, 3338, 3339, 3314, 3340,
3341, 3342, 3343, 3344, 3345, 3324, 3364, 1387, 3326, 3364,
3327, 3382, 3387, 3328, 3311, 3313, 3329, 3333, 3330, 3332,
3333, 3335, 3382, 3387, 3338, 3339, 3314, 3340, 3341, 3342,
3343, 3344, 3345, 1363, 3333, 3333, 3333, 3333, 3333, 3333,
3333, 3333, 3333, 3336, 3336, 3336, 3336, 3336, 3336, 3336,
3336, 3336, 3336, 3336, 3337, 3337, 3337, 3337, 3337, 3337,
3337, 3337, 3337, 3337, 3337, 3346, 3348, 3350, 3336, 3347,
3347, 3347, 3347, 3347, 3347, 3347, 3347, 3347, 3352, 3337,
3351, 3354, 3355, 3351, 3356, 3357, 3358, 3359, 3360, 3361,
3366, 3367, 1362, 3346, 3348, 3350, 3369, 3351, 3351, 3351,
3351, 3351, 3351, 3351, 3351, 3351, 3352, 3370, 3365, 3354,
3355, 3365, 3356, 3357, 3358, 3359, 3360, 3361, 3366, 3367,
3368, 3371, 3372, 3368, 3369, 3372, 3373, 3434, 1358, 3373,
3434, 3376, 3378, 3374, 3380, 3370, 3374, 3384, 3385, 3386,
3388, 3389, 3391, 1357, 1356, 3392, 3393, 3394, 3395, 3371,
3374, 3374, 3374, 3374, 3374, 3374, 3374, 3374, 3374, 3376,
3378, 3396, 3380, 3390, 3397, 3384, 3385, 3386, 3388, 3389,
3391, 3390, 3390, 3392, 3393, 3394, 3395, 3398, 3399, 3400,
3401, 3402, 3403, 3404, 3406, 3407, 3408, 3409, 3410, 3396,
3412, 3390, 3397, 3411, 3413, 3411, 3414, 3416, 3417, 3390,
3390, 3419, 1355, 3420, 1354, 3398, 3399, 3400, 3401, 3402,
3403, 3404, 3406, 3407, 3408, 3409, 3410, 3421, 3412, 3423,
3425, 3429, 3413, 3431, 3414, 3416, 3417, 3418, 1352, 3419,
3418, 3420, 3418, 1321, 1317, 3458, 3436, 3418, 3458, 3437,
3418, 1289, 3438, 1281, 3439, 3421, 3440, 3423, 3425, 3429,
3441, 3431, 3442, 3444, 3418, 3432, 3432, 3432, 3432, 3432,
3432, 3432, 3432, 3432, 3436, 3411, 3433, 3437, 3435, 3433,
3438, 3433, 3439, 3468, 3440, 3445, 3468, 1279, 3441, 1274,
3442, 3444, 3418, 3433, 3433, 3433, 3433, 3433, 3433, 3433,
3433, 3433, 3435, 3435, 3435, 3435, 3435, 3435, 3435, 3435,
3435, 3435, 3435, 3445, 3447, 3447, 3447, 3447, 3447, 3447,
3447, 3447, 3447, 3448, 3449, 3450, 3451, 3435, 3452, 1269,
3453, 3452, 3454, 3455, 3456, 3459, 3460, 3461, 3459, 3460,
3459, 3460, 3462, 3463, 3464, 3465, 3463, 3466, 3463, 1212,
1211, 3448, 3449, 3450, 3451, 1210, 1209, 3452, 3453, 3471,
3454, 3455, 3456, 3517, 3525, 3461, 3517, 3525, 1208, 1207,
3462, 3469, 3464, 3465, 3469, 3466, 3470, 3470, 3470, 3470,
3470, 3470, 3470, 3470, 3470, 3452, 3476, 3471, 3469, 3469,
3469, 3469, 3469, 3469, 3469, 3469, 3469, 3475, 3477, 3478,
3480, 3481, 3482, 3475, 3483, 3484, 3485, 3487, 3490, 3492,
3493, 3494, 3495, 3496, 3476, 3499, 3500, 3502, 3503, 3529,
3600, 3603, 3529, 3600, 3603, 3475, 3477, 3478, 3480, 3481,
3482, 3475, 3483, 3484, 3485, 3487, 3490, 3492, 3493, 3494,
3495, 3496, 3505, 3499, 3500, 3502, 3503, 3504, 3504, 3504,
3504, 3504, 3504, 3504, 3504, 3504, 3504, 3504, 3506, 3507,
3510, 3511, 3512, 3513, 3515, 3516, 3542, 1203, 1202, 3542,
3505, 3542, 3504, 3518, 3518, 3518, 3518, 3518, 3518, 3518,
3518, 3518, 3522, 3523, 3524, 3526, 3506, 3507, 3510, 3511,
3512, 3513, 3515, 3516, 3519, 3519, 3519, 3519, 3519, 3519,
3519, 3519, 3519, 3520, 3527, 3528, 3520, 3530, 3531, 3532,
3522, 3523, 3524, 3526, 3534, 3536, 3537, 3538, 3540, 3547,
3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 1201,
3548, 3535, 3527, 3528, 3535, 3530, 3531, 3532, 3539, 1187,
3550, 3539, 3534, 3536, 3537, 3538, 3540, 3547, 3535, 3535,
3535, 3535, 3535, 3535, 3535, 3535, 3535, 3545, 3548, 3551,
3545, 3552, 3545, 3553, 3557, 3558, 3559, 3539, 3550, 3606,
3667, 1185, 3606, 3667, 3606, 3667, 1180, 3553, 3553, 3553,
3553, 3553, 3553, 3553, 3553, 3553, 3561, 3551, 3554, 3552,
3563, 3554, 3557, 3558, 3559, 3539, 3555, 3555, 3555, 3555,
3555, 3555, 3555, 3555, 3555, 3554, 3554, 3554, 3554, 3554,
3554, 3554, 3554, 3554, 3561, 3564, 3565, 3566, 3563, 3567,
3568, 3569, 3570, 3571, 3572, 3573, 3574, 3575, 3576, 3579,
3583, 3598, 3598, 3598, 3598, 3598, 3598, 3598, 3598, 3598,
3691, 1152, 3585, 3564, 3565, 3566, 3586, 3567, 3568, 3569,
3570, 3571, 3572, 3573, 3574, 3575, 3576, 3579, 3583, 3584,
3584, 3584, 3584, 3584, 3584, 3584, 3584, 3584, 3584, 3584,
3585, 3587, 3590, 3592, 3586, 3593, 3596, 3670, 3596, 3596,
3670, 3596, 3670, 1148, 3584, 3599, 3601, 1138, 3605, 3596,
3691, 3607, 3597, 3608, 3609, 3610, 3612, 3613, 3616, 3587,
3590, 3592, 3617, 3593, 3597, 3597, 3597, 3597, 3597, 3597,
3597, 3597, 3597, 3599, 3601, 3602, 3605, 3643, 3602, 3607,
1127, 3608, 3609, 3610, 3612, 3613, 3616, 3620, 3643, 3625,
3617, 3626, 3602, 3602, 3602, 3602, 3602, 3602, 3602, 3602,
3602, 3611, 3611, 3611, 3611, 3611, 3611, 3611, 3611, 3611,
3615, 3627, 3621, 3615, 3629, 3620, 3621, 3625, 3630, 3626,
3596, 3631, 3633, 3621, 1125, 1123, 1122, 3615, 3615, 3615,
3615, 3615, 3615, 3615, 3615, 3615, 3634, 3635, 3628, 3627,
3621, 3636, 3629, 3637, 3621, 3638, 3630, 3639, 3640, 3631,
3633, 3621, 3628, 3628, 3628, 3628, 3628, 3628, 3628, 3628,
3628, 3641, 3642, 3644, 3634, 3635, 3645, 3647, 3653, 3636,
3655, 3637, 3657, 3638, 3644, 3639, 3640, 3659, 3660, 3666,
3660, 3660, 3668, 3660, 3737, 3738, 1108, 3737, 3738, 3641,
3642, 3660, 1107, 1103, 3645, 3647, 3653, 3675, 3655, 3661,
3657, 3661, 3661, 3673, 3661, 3659, 3673, 3666, 3673, 3676,
3668, 3677, 3661, 3669, 3669, 3669, 3669, 3669, 3669, 3669,
3669, 3669, 3678, 3679, 3680, 3675, 3681, 3681, 3681, 3681,
3681, 3681, 3681, 3681, 3681, 3682, 3683, 3676, 3686, 3677,
3687, 3688, 3689, 3693, 3694, 3695, 3696, 3697, 3698, 3699,
3678, 3679, 3680, 3700, 3701, 3726, 3703, 3704, 3705, 3707,
3708, 3711, 3660, 3682, 3683, 3716, 3686, 3712, 3687, 3688,
3689, 3693, 3694, 3695, 3696, 3697, 3698, 3699, 3712, 3718,
3719, 3700, 3701, 3661, 3703, 3704, 3705, 3707, 3708, 3711,
3722, 3719, 3724, 3716, 3729, 3724, 3730, 3724, 3731, 3732,
3733, 3734, 3735, 3736, 3739, 3726, 3736, 3718, 3719, 3740,
3741, 3742, 3743, 3745, 3746, 3748, 3749, 3750, 3722, 3719,
3751, 3752, 3729, 3753, 3730, 3754, 3731, 3732, 3733, 3734,
3735, 3758, 3739, 3759, 3760, 3761, 3763, 3740, 3766, 3742,
3743, 3745, 3746, 3748, 3749, 3750, 3768, 3770, 3751, 3752,
3736, 3753, 3771, 3754, 3773, 3774, 3775, 3776, 3778, 3758,
3741, 3759, 3760, 3761, 3763, 3777, 3779, 3780, 3777, 3779,
3780, 3779, 3780, 3781, 3782, 3770, 3781, 3782, 3736, 3783,
3771, 3784, 3773, 3774, 3775, 3776, 3778, 3785, 3766, 3786,
3787, 3790, 3791, 3792, 3793, 3794, 3768, 3795, 3798, 3799,
3802, 3804, 3799, 3805, 3806, 3808, 3809, 3783, 3811, 3784,
3812, 3811, 1102, 1101, 1100, 3785, 3835, 3786, 3787, 3790,
3791, 3792, 3793, 3794, 3820, 3795, 3798, 3822, 3823, 3804,
3824, 3805, 3806, 3808, 3809, 3826, 3813, 3815, 3812, 3813,
3815, 3813, 3815, 3817, 3818, 3827, 3817, 3818, 3817, 3818,
3802, 3828, 3820, 3829, 3830, 3822, 3823, 3831, 3824, 3834,
3836, 3838, 3834, 3826, 3834, 3841, 3835, 3837, 3831, 3839,
3837, 3831, 3839, 3827, 3849, 3844, 3850, 3851, 3844, 3828,
3844, 3829, 3830, 3852, 3853, 3831, 3854, 3846, 3836, 3838,
3846, 3855, 3846, 3841, 3856, 3857, 3831, 3858, 3859, 3831,
3865, 3869, 3849, 3863, 3850, 3851, 3863, 3867, 3863, 1099,
3867, 3852, 3853, 3866, 3854, 1060, 3866, 1008, 1007, 3855,
987, 974, 3856, 3857, 3868, 3858, 3859, 3868, 3865, 3869,
3866, 3866, 3866, 3866, 3866, 3866, 3866, 3866, 3866, 3874,
3875, 3868, 3868, 3868, 3868, 3868, 3868, 3868, 3868, 3868,
3876, 3879, 3881, 3882, 3883, 3884, 3888, 3888, 3888, 3888,
3888, 3888, 3888, 3888, 3888, 963, 943, 3874, 3875, 3889,
926, 901, 3889, 889, 878, 876, 3891, 3894, 3876, 3879,
3881, 3882, 3883, 3884, 3895, 3896, 3889, 3889, 3889, 3889,
3889, 3889, 3889, 3889, 3889, 3890, 3890, 3890, 3890, 3890,
3890, 3890, 3890, 3890, 3891, 3894, 3899, 3900, 3907, 3910,
3911, 3912, 3895, 3896, 3903, 3903, 3903, 3903, 3903, 3903,
3903, 3903, 3903, 3913, 3914, 3916, 3917, 3918, 874, 870,
827, 816, 807, 803, 3899, 3900, 3907, 3910, 3911, 3912,
772, 771, 769, 768, 767, 765, 760, 759, 757, 756,
755, 3913, 3914, 3916, 3917, 3918, 3921, 3921, 3921, 3921,
3921, 3921, 3921, 3921, 3921, 3921, 3921, 3921, 3921, 3921,
3921, 3921, 3921, 3921, 3922, 3922, 3922, 3922, 3922, 3922,
3922, 3922, 3922, 3922, 3922, 3922, 3922, 3922, 3922, 3922,
3922, 3922, 3923, 3923, 3923, 3923, 3923, 3923, 3923, 3923,
3923, 3923, 3923, 3923, 3923, 3923, 3923, 3923, 3923, 3923,
3924, 3924, 3924, 3924, 3924, 3924, 3924, 3924, 3924, 3924,
3924, 3924, 3924, 3924, 3924, 3924, 3924, 3924, 3925, 3925,
3925, 3925, 3925, 3925, 3925, 3925, 3925, 3925, 3925, 3925,
3925, 3925, 3925, 3925, 3925, 3925, 3926, 3926, 3926, 3926,
3926, 3926, 3926, 3926, 3926, 3926, 3926, 3926, 3926, 3926,
3926, 3926, 3926, 3926, 3927, 3927, 3927, 3927, 3927, 3927,
3927, 3927, 3927, 3927, 3927, 3927, 3927, 3927, 3927, 3927,
3927, 3927, 3928, 3928, 3928, 3928, 3928, 3928, 3928, 3928,
3928, 3928, 3928, 3928, 3928, 3928, 3928, 3928, 3928, 3928,
3929, 3929, 3929, 3929, 3929, 3929, 3929, 3929, 3929, 3929,
3929, 3929, 3929, 3929, 3929, 3929, 3929, 3929, 3930, 3930,
3930, 3930, 3930, 3930, 3930, 3930, 3930, 3930, 3930, 3930,
3930, 3930, 3930, 3930, 3930, 3930, 3931, 3931, 3931, 3931,
3931, 3931, 3931, 3931, 3931, 3931, 3931, 3931, 3931, 3931,
3931, 3931, 3931, 3931, 3932, 3932, 3932, 3932, 3932, 3932,
3932, 3932, 3932, 3932, 3932, 3932, 3932, 3932, 3932, 3932,
3932, 3932, 3933, 3933, 3933, 3933, 3933, 3933, 3933, 3933,
3933, 3933, 3933, 3933, 3933, 3933, 3933, 3933, 3933, 3933,
3934, 3934, 3934, 3934, 3934, 3934, 3934, 3934, 3934, 3934,
3934, 3934, 3934, 3934, 3934, 3934, 3934, 3934, 3935, 3935,
3935, 3935, 3935, 3935, 3935, 3935, 3935, 3935, 3935, 3935,
3935, 3935, 3935, 3935, 3935, 3935, 3936, 3936, 3936, 3936,
3936, 3936, 3936, 3936, 3936, 3936, 3936, 3936, 3936, 3936,
3936, 3936, 3936, 3936, 3937, 3937, 3937, 3937, 3937, 3937,
3937, 3937, 3937, 3937, 3937, 3937, 3937, 3937, 3937, 3937,
3937, 3937, 3938, 3938, 3938, 3938, 3938, 3938, 3938, 3938,
3938, 3938, 3938, 3938, 3938, 3938, 3938, 3938, 3938, 3938,
3939, 3939, 3939, 3939, 3939, 3939, 3939, 3939, 3939, 3939,
3939, 3939, 3939, 3939, 3939, 3939, 3939, 3939, 3940, 3940,
3940, 3940, 3940, 3940, 3940, 3940, 3940, 3940, 3940, 3940,
3940, 3940, 3940, 3940, 3940, 3940, 3941, 3941, 3941, 3941,
3941, 3941, 3941, 3941, 3941, 3941, 3941, 3941, 3941, 3941,
3941, 3941, 3941, 3941, 3942, 3942, 3942, 3942, 3942, 3942,
3942, 3942, 3942, 3942, 3942, 3942, 3942, 3942, 3942, 3942,
3942, 3942, 3943, 3943, 3943, 3943, 3943, 3943, 3943, 3943,
3943, 3943, 3943, 3943, 3943, 3943, 3943, 3943, 3943, 3943,
3944, 3944, 749, 3944, 3944, 3944, 3944, 3944, 3944, 3944,
3944, 3944, 3944, 3944, 3944, 3944, 3944, 3944, 3945, 3945,
3945, 3945, 3945, 3945, 3945, 3945, 3945, 3945, 3945, 3945,
3945, 3945, 3945, 3945, 3945, 3945, 3946, 3946, 3946, 3946,
3946, 3946, 3946, 3946, 3946, 3946, 3946, 3946, 3946, 3946,
3946, 3946, 3946, 3946, 3947, 3947, 3947, 3947, 3947, 3947,
3947, 3947, 3947, 3947, 3947, 3947, 3947, 3947, 3947, 3947,
3947, 3947, 3948, 3948, 3948, 3948, 3948, 3948, 3948, 3948,
3948, 3948, 3948, 3948, 3948, 3948, 3948, 3948, 3948, 3948,
3949, 3949, 3949, 3949, 3949, 3949, 3949, 3949, 3949, 3949,
3949, 3949, 3949, 3949, 3949, 3949, 3949, 3949, 3950, 3950,
3950, 3950, 3950, 3950, 3950, 3950, 3950, 3950, 3950, 3950,
3950, 3950, 3950, 3950, 3950, 3950, 3951, 3951, 3951, 3951,
3951, 3951, 3951, 3951, 3951, 3951, 3951, 3951, 3951, 3951,
3951, 3951, 3951, 3951, 3952, 3952, 3952, 3952, 3952, 3952,
3952, 3952, 3952, 3952, 3952, 3952, 3952, 3952, 3952, 3952,
3952, 3952, 3953, 3953, 3953, 3953, 3953, 3953, 3953, 3953,
3953, 3953, 3953, 3953, 3953, 3953, 3953, 3953, 3953, 3953,
3954, 3954, 3954, 3954, 3954, 3954, 3954, 3954, 3954, 3954,
3954, 3954, 3954, 3954, 3954, 3954, 3954, 3954, 3955, 3955,
3955, 3955, 3955, 3955, 3955, 3955, 3955, 3955, 3955, 3955,
3955, 3955, 3955, 3955, 3955, 3955, 3956, 3956, 3956, 3956,
3956, 3956, 3956, 3956, 3956, 3956, 3956, 3956, 3956, 3956,
3956, 3956, 3956, 3956, 3957, 3957, 3957, 3957, 3957, 3957,
3957, 3957, 3957, 3957, 3957, 3957, 3957, 3957, 3957, 3957,
3957, 3957, 3958, 3958, 3958, 3958, 3958, 3958, 3958, 3958,
3958, 3958, 3958, 3958, 3958, 3958, 3958, 3958, 3958, 3958,
3959, 3959, 3959, 3959, 3959, 3959, 3959, 3959, 3959, 3959,
3959, 3959, 3959, 3959, 3959, 3959, 3959, 3959, 3960, 3960,
3960, 3960, 3960, 3960, 3960, 3960, 3960, 3960, 3960, 3960,
3960, 3960, 3960, 3960, 3960, 3960, 3961, 3961, 3961, 3961,
3961, 3961, 3961, 3961, 3961, 3961, 3961, 3961, 3961, 3961,
3961, 3961, 3961, 3961, 3962, 3962, 742, 3962, 3962, 3962,
3962, 3962, 3962, 3962, 3962, 3962, 3962, 3962, 3962, 3962,
3962, 3962, 3963, 3963, 731, 3963, 3963, 3963, 3963, 3963,
3963, 3963, 3963, 3963, 3963, 3963, 3963, 3963, 3963, 3963,
3964, 3964, 730, 3964, 3964, 3964, 3964, 3964, 3964, 3964,
3964, 3964, 3964, 3964, 3964, 3964, 3964, 3964, 3965, 3965,
3965, 3965, 3965, 3965, 3965, 3965, 3965, 3965, 3965, 3965,
3965, 3965, 3965, 3965, 3965, 3965, 3966, 3966, 3966, 3966,
3966, 3966, 3966, 3966, 3966, 3966, 3966, 3966, 3966, 3966,
3966, 3966, 3966, 3966, 3967, 3967, 3967, 3967, 3967, 3967,
3967, 3967, 3967, 3967, 3967, 3967, 3967, 3967, 3967, 3967,
3967, 3967, 3968, 3968, 3968, 3968, 3968, 3968, 3968, 3968,
3968, 3968, 3968, 3968, 3968, 3968, 3968, 3968, 3968, 3968,
3969, 3969, 711, 3969, 3969, 3969, 3969, 3969, 3969, 3969,
3969, 3969, 3969, 3969, 3969, 3969, 3969, 3969, 3970, 3970,
3970, 3970, 3970, 3970, 3970, 3970, 3970, 3970, 3970, 3970,
3970, 3970, 3970, 3970, 3970, 3970, 3971, 3971, 3971, 3971,
3971, 3971, 3971, 3971, 3971, 3971, 3971, 3971, 3971, 3971,
3971, 3971, 3971, 3971, 3972, 3972, 3972, 3972, 3972, 3972,
3972, 3972, 3972, 3972, 3972, 3972, 3972, 3972, 3972, 3972,
700, 3972, 3973, 3973, 3973, 3973, 3973, 3973, 3973, 3973,
3973, 3973, 3973, 3973, 3973, 3973, 3973, 3973, 3973, 3973,
3974, 3974, 3974, 3974, 3974, 3974, 3974, 3974, 3974, 3974,
3974, 3974, 3974, 3974, 3974, 3974, 689, 3974, 3975, 3975,
3975, 3975, 3975, 3975, 3975, 3975, 3975, 3975, 3975, 3975,
3975, 3975, 3975, 3975, 3975, 3975, 3976, 3976, 3976, 3976,
3976, 3976, 3976, 3976, 3976, 3976, 3976, 3976, 3976, 3976,
3976, 3976, 3976, 3976, 3977, 3977, 3977, 3977, 3977, 3977,
3977, 3977, 3977, 3977, 3977, 3977, 3977, 3977, 3977, 3977,
3977, 3977, 3978, 3978, 3978, 3978, 3978, 3978, 3978, 3978,
3978, 3978, 3978, 3978, 3978, 3978, 3978, 3978, 3978, 3978,
3979, 677, 3979, 3979, 676, 671, 3979, 3979, 3979, 3979,
3979, 670, 3979, 3979, 3979, 3979, 3979, 3980, 3980, 3980,
3980, 3980, 3980, 3980, 3980, 3980, 3980, 3980, 3980, 3980,
3980, 3980, 3980, 3980, 3980, 3981, 3981, 3981, 3981, 3981,
3981, 3981, 3981, 3981, 3981, 3981, 3981, 3981, 3981, 3981,
3981, 668, 3981, 3982, 3982, 3982, 3982, 3982, 3982, 3982,
3982, 3982, 3982, 3982, 3982, 3982, 3982, 3982, 3982, 3982,
3982, 3983, 3983, 3983, 3983, 3983, 3983, 3983, 3983, 3983,
3983, 3983, 3983, 3983, 3983, 3983, 3983, 3983, 3983, 3984,
3984, 3984, 3984, 3984, 3984, 3984, 3984, 3984, 3984, 3984,
3984, 3984, 3984, 3984, 3984, 3984, 3984, 3985, 661, 3985,
3985, 651, 650, 3985, 3985, 3985, 3985, 3985, 648, 3985,
3985, 3985, 3985, 3985, 3986, 3986, 3986, 3986, 3986, 3986,
3986, 3986, 3986, 3986, 3986, 3986, 3986, 3986, 3986, 3986,
3986, 3986, 3987, 3987, 3987, 3987, 3987, 3987, 3987, 3987,
3987, 3987, 3987, 3987, 3987, 3987, 3987, 3987, 644, 3987,
3988, 3988, 3988, 3988, 3988, 3988, 3988, 3988, 3988, 3988,
3988, 3988, 3988, 3988, 3988, 3988, 3988, 3988, 3989, 3989,
3989, 3989, 3989, 3989, 3989, 3989, 3989, 3989, 3989, 3989,
3989, 3989, 3989, 3989, 3989, 3989, 3990, 3990, 3990, 3990,
3990, 3990, 3990, 3990, 3990, 3990, 3990, 3990, 3990, 3990,
3990, 3990, 3990, 3990, 3991, 3991, 3991, 3991, 3991, 3991,
3991, 3991, 3991, 3991, 3991, 3991, 3991, 3991, 3991, 3991,
634, 3991, 3992, 3992, 633, 3992, 3992, 3992, 3992, 3992,
3992, 3992, 3992, 3992, 3992, 3992, 3992, 3992, 3992, 3992,
3993, 3993, 631, 3993, 3993, 3993, 3993, 3993, 3993, 3993,
3993, 3993, 3993, 3993, 3993, 3993, 3993, 3993, 3994, 3994,
628, 3994, 3994, 3994, 3994, 3994, 3994, 3994, 3994, 3994,
3994, 3994, 3994, 3994, 3994, 3994, 3995, 3995, 3995, 3995,
3995, 3995, 3995, 3995, 3995, 3995, 3995, 3995, 3995, 3995,
3995, 3995, 3995, 3995, 3996, 3996, 3996, 3996, 3996, 3996,
3996, 3996, 3996, 3996, 3996, 3996, 3996, 3996, 3996, 3996,
627, 3996, 3997, 3997, 3997, 3997, 3997, 3997, 3997, 3997,
3997, 3997, 3997, 3997, 3997, 3997, 3997, 3997, 3997, 3997,
3998, 3998, 3998, 3998, 3998, 3998, 3998, 3998, 3998, 3998,
3998, 3998, 3998, 3998, 3998, 3998, 625, 3998, 3999, 3999,
622, 3999, 3999, 3999, 3999, 3999, 3999, 3999, 3999, 3999,
3999, 3999, 3999, 3999, 3999, 3999, 4000, 4000, 4000, 4000,
4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000,
4000, 4000, 4000, 4000, 4001, 4001, 4001, 4001, 4001, 4001,
4001, 4001, 4001, 4001, 4001, 4001, 4001, 4001, 4001, 4001,
4001, 4001, 4002, 4002, 4002, 4002, 4002, 4002, 4002, 4002,
4002, 4002, 4002, 4002, 4002, 4002, 4002, 4002, 4002, 4002,
4003, 4003, 4003, 4003, 4003, 4003, 4003, 4003, 4003, 4003,
4003, 4003, 4003, 4003, 4003, 4003, 4003, 4003, 4004, 4004,
4004, 4004, 4004, 4004, 4004, 4004, 4004, 4004, 4004, 4004,
4004, 4004, 4004, 4004, 4004, 4004, 4005, 4005, 4005, 4005,
4005, 4005, 4005, 4005, 4005, 4005, 4005, 4005, 4005, 4005,
4005, 4005, 4005, 4005, 4006, 621, 4006, 4006, 541, 537,
4006, 4006, 4006, 4006, 4006, 536, 4006, 4006, 4006, 4006,
4006, 4006, 4007, 530, 4007, 4007, 529, 513, 4007, 4007,
4007, 4007, 4007, 512, 4007, 4007, 4007, 4007, 4007, 4007,
4008, 4008, 4008, 4008, 4008, 4008, 4008, 4008, 4008, 4008,
4008, 4008, 4008, 4008, 4008, 4008, 4008, 4008, 4009, 506,
4009, 4009, 504, 490, 4009, 4009, 4009, 4009, 4009, 478,
4009, 4009, 4009, 4009, 4009, 4010, 4010, 4010, 4010, 4010,
4010, 4010, 4010, 4010, 4010, 4010, 4010, 4010, 4010, 4010,
4010, 4010, 4010, 4011, 4011, 4011, 4011, 4011, 4011, 4011,
4011, 4011, 4011, 4011, 4011, 4011, 4011, 4011, 4011, 4011,
4011, 4012, 4012, 4012, 4012, 4012, 4012, 4012, 4012, 4012,
4012, 4012, 4012, 4012, 4012, 4012, 4012, 4012, 4012, 4013,
4013, 4013, 4013, 4013, 4013, 4013, 4013, 4013, 4013, 4013,
4013, 4013, 4013, 4013, 4013, 4013, 4013, 4014, 475, 4014,
4014, 453, 440, 4014, 4014, 4014, 4014, 4014, 434, 4014,
4014, 4014, 4014, 4014, 4014, 4015, 4015, 4015, 4015, 4015,
4015, 4015, 4015, 4015, 4015, 4015, 4015, 4015, 4015, 4015,
4015, 4015, 4015, 4016, 4016, 4016, 4016, 4016, 4016, 4016,
4016, 4016, 4016, 4016, 4016, 4016, 4016, 4016, 4016, 4016,
4016, 4017, 422, 4017, 4017, 413, 412, 4017, 4017, 4017,
4017, 4017, 393, 4017, 4017, 4017, 4017, 4017, 4018, 4018,
4018, 4018, 4018, 4018, 4018, 4018, 4018, 4018, 4018, 4018,
4018, 4018, 4018, 4018, 4018, 4018, 4019, 4019, 4019, 4019,
4019, 4019, 4019, 4019, 4019, 4019, 4019, 4019, 4019, 4019,
4019, 4019, 4019, 4019, 4020, 4020, 4020, 4020, 4020, 4020,
4020, 4020, 4020, 4020, 4020, 4020, 4020, 4020, 4020, 4020,
4020, 4020, 4021, 4021, 4021, 4021, 4021, 4021, 4021, 4021,
4021, 4021, 4021, 4021, 4021, 4021, 4021, 4021, 4021, 4021,
4022, 4022, 4022, 4022, 4022, 4022, 4022, 4022, 4022, 4022,
4022, 4022, 4022, 4022, 4022, 4022, 4022, 4022, 4023, 4023,
4023, 4023, 4023, 4023, 4023, 4023, 4023, 4023, 4023, 4023,
4023, 4023, 4023, 4023, 4023, 4023, 4024, 4024, 4024, 4024,
4024, 4024, 4024, 4024, 4024, 4024, 4024, 4024, 4024, 4024,
4024, 4024, 4024, 4024, 4025, 4025, 4025, 4025, 4025, 4025,
4025, 4025, 4025, 4025, 4025, 4025, 4025, 4025, 4025, 4025,
4025, 4025, 4026, 4026, 4026, 4026, 4026, 4026, 4026, 4026,
4026, 4026, 4026, 4026, 4026, 4026, 4026, 4026, 4026, 4026,
4027, 4027, 4027, 4027, 4027, 4027, 4027, 4027, 4027, 4027,
4027, 4027, 4027, 4027, 4027, 4027, 4027, 4027, 4028, 4028,
4028, 4028, 4028, 4028, 4028, 4028, 4028, 4028, 4028, 4028,
4028, 4028, 4028, 4028, 4028, 4028, 4029, 4029, 392, 4029,
4029, 4029, 4029, 4029, 4029, 4029, 4029, 4029, 4029, 4029,
4029, 4029, 4029, 4029, 4030, 4030, 4030, 4030, 4030, 4030,
4030, 4030, 4030, 4030, 4030, 4030, 4030, 4030, 4030, 4030,
4030, 4030, 4031, 4031, 4031, 4031, 4031, 4031, 4031, 4031,
4031, 4031, 4031, 4031, 4031, 4031, 4031, 4031, 4031, 4031,
4032, 4032, 4032, 4032, 4032, 4032, 4032, 4032, 4032, 4032,
4032, 4032, 4032, 4032, 4032, 4032, 4032, 4032, 4033, 4033,
4033, 4033, 4033, 4033, 4033, 4033, 4033, 4033, 4033, 4033,
4033, 4033, 4033, 4033, 4033, 4033, 4034, 385, 4034, 4034,
383, 368, 4034, 4034, 4034, 4034, 4034, 367, 4034, 4034,
4034, 4034, 4034, 4034, 4035, 358, 4035, 4035, 357, 347,
4035, 4035, 4035, 4035, 4035, 317, 4035, 4035, 4035, 4035,
4035, 4035, 4036, 316, 4036, 4036, 284, 268, 4036, 4036,
4036, 4036, 4036, 261, 4036, 4036, 4036, 4036, 4036, 4037,
4037, 4037, 4037, 4037, 4037, 4037, 4037, 4037, 4037, 4037,
4037, 4037, 4037, 4037, 4037, 4037, 4037, 4038, 259, 4038,
4038, 252, 234, 4038, 4038, 4038, 4038, 4038, 229, 4038,
4038, 4038, 4038, 4038, 4038, 4039, 4039, 4039, 4039, 4039,
4039, 4039, 4039, 4039, 4039, 4039, 4039, 4039, 4039, 4039,
4039, 4039, 4039, 4040, 216, 4040, 4040, 194, 182, 4040,
4040, 4040, 4040, 4040, 175, 4040, 4040, 4040, 4040, 4040,
4040, 4041, 4041, 4041, 4041, 4041, 4041, 4041, 4041, 4041,
4041, 4041, 4041, 4041, 4041, 4041, 4041, 4041, 4041, 4042,
4042, 4042, 4042, 4042, 4042, 4042, 4042, 4042, 4042, 4042,
4042, 4042, 4042, 4042, 4042, 4042, 4042, 4043, 172, 4043,
4043, 165, 164, 4043, 4043, 4043, 4043, 4043, 163, 4043,
4043, 4043, 4043, 4043, 4044, 4044, 4044, 4044, 4044, 4044,
4044, 4044, 4044, 4044, 4044, 4044, 4044, 4044, 4044, 4044,
4044, 4044, 4045, 4045, 4045, 4045, 4045, 4045, 4045, 4045,
4045, 4045, 4045, 4045, 4045, 4045, 4045, 4045, 4045, 4045,
4046, 4046, 4046, 4046, 4046, 4046, 4046, 4046, 4046, 4046,
4046, 4046, 4046, 4046, 4046, 4046, 4046, 4046, 4047, 4047,
4047, 4047, 4047, 4047, 4047, 4047, 4047, 154, 4047, 4047,
4047, 4047, 4047, 4047, 4047, 4047, 4048, 4048, 4048, 4048,
4048, 4048, 4048, 4048, 4048, 4048, 4048, 4048, 4048, 4048,
4048, 4048, 4048, 4048, 4049, 4049, 4049, 4049, 4049, 4049,
4049, 4049, 4049, 4049, 4049, 4049, 4049, 4049, 4049, 4049,
4049, 4049, 4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050,
4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050,
4051, 4051, 4051, 4051, 4051, 4051, 4051, 4051, 4051, 4051,
4051, 4051, 4051, 4051, 4051, 4051, 4051, 4051, 4052, 4052,
152, 4052, 4052, 4052, 4052, 4052, 4052, 4052, 4052, 4052,
4052, 4052, 4052, 4052, 4052, 4052, 4053, 4053, 4053, 4053,
4053, 4053, 4053, 4053, 4053, 4053, 4053, 4053, 4053, 4053,
4053, 4053, 4053, 4053, 4054, 4054, 4054, 4054, 4054, 4054,
4054, 4054, 4054, 4054, 4054, 4054, 4054, 4054, 4054, 4054,
4054, 4054, 4055, 4055, 4055, 4055, 4055, 4055, 4055, 4055,
4055, 4055, 4055, 4055, 4055, 4055, 4055, 4055, 4055, 4055,
4056, 146, 4056, 4056, 141, 117, 4056, 4056, 4056, 4056,
4056, 75, 4056, 4056, 4056, 4056, 4056, 4056, 4057, 64,
4057, 4057, 63, 58, 4057, 4057, 4057, 4057, 4057, 57,
4057, 4057, 4057, 4057, 4057, 4057, 4058, 4058, 4058, 4058,
4058, 4058, 4058, 4058, 4058, 4058, 4058, 4058, 4058, 4058,
4058, 4058, 4058, 4058, 4059, 56, 4059, 4059, 55, 54,
4059, 4059, 4059, 4059, 4059, 53, 4059, 4059, 4059, 4059,
4059, 4059, 4060, 4060, 4060, 4060, 4060, 4060, 4060, 4060,
4060, 4060, 4060, 4060, 4060, 4060, 4060, 4060, 4060, 4060,
4061, 52, 4061, 4061, 51, 26, 4061, 4061, 4061, 4061,
4061, 4061, 4061, 4061, 4061, 4061, 4061, 4062, 4062, 4062,
4062, 4062, 4062, 4062, 4062, 4062, 4062, 4062, 4062, 4062,
4062, 4062, 4062, 4062, 4062, 4063, 4063, 4063, 4063, 4063,
4063, 4063, 4063, 4063, 4063, 4063, 4063, 4063, 4063, 4063,
4063, 4063, 4063, 4064, 25, 4064, 4064, 24, 23, 4064,
4064, 4064, 0, 4064, 4064, 4064, 4064, 4064, 4064, 4064,
4064, 4065, 4065, 4065, 4065, 4065, 4065, 4065, 0, 4065,
0, 4065, 4065, 4065, 4065, 4065, 4065, 4065, 4065, 4066,
4066, 4066, 4066, 4066, 4066, 4066, 4066, 4066, 4066, 4066,
4066, 4066, 4066, 4066, 4066, 4066, 4066, 4067, 4067, 4067,
4067, 4067, 4067, 4067, 4067, 4067, 4067, 4067, 4067, 4067,
4067, 4067, 4067, 4067, 4067, 4068, 4068, 4068, 4068, 4068,
4068, 4068, 4068, 4068, 4068, 4068, 4068, 4068, 4068, 4068,
4068, 4068, 4068, 4069, 4069, 4069, 4069, 4069, 4069, 4069,
4069, 4069, 4069, 4069, 4069, 4069, 4069, 4069, 4069, 4069,
4069, 4070, 4070, 0, 4070, 4070, 4070, 4070, 4070, 4070,
4070, 4070, 4070, 4070, 4070, 4070, 4070, 4070, 4070, 4071,
4071, 4071, 4071, 4071, 4071, 4071, 4071, 4071, 4071, 4071,
4071, 4071, 4071, 4071, 4071, 4071, 4071, 4072, 4072, 4072,
4072, 4072, 4072, 4072, 4072, 4072, 4072, 4072, 4072, 4072,
4072, 4072, 4072, 4072, 4072, 4073, 0, 0, 4073, 0,
0, 4073, 4074, 0, 0, 0, 0, 0, 4074, 4074,
4074, 0, 4074, 4074, 4074, 4074, 4074, 4074, 4074, 4074,
4075, 4075, 4075, 4075, 4075, 4075, 4075, 4075, 4075, 4075,
4075, 4075, 4075, 4075, 4075, 4075, 4075, 4075, 4076, 0,
0, 4076, 0, 4076, 4077, 4077, 4077, 4077, 4077, 4077,
4077, 4077, 4077, 4077, 4077, 4077, 4077, 4077, 4077, 4077,
4077, 4077, 4078, 0, 0, 4078, 4078, 0, 0, 4078,
0, 4078, 0, 4078, 4078, 4078, 4078, 4079, 4079, 4079,
4079, 4080, 4080, 0, 4080, 4080, 4080, 4080, 4080, 4080,
4080, 4080, 4080, 4080, 4080, 4080, 4080, 4080, 4080, 4081,
4081, 0, 4081, 4081, 4081, 4081, 4081, 4081, 4081, 4081,
4081, 4081, 4081, 4081, 4081, 4081, 4081, 4082, 0, 4082,
0, 4082, 4082, 4082, 4082, 4083, 4083, 4083, 4083, 4083,
4083, 4083, 4083, 4083, 4083, 4083, 4083, 4083, 4083, 4083,
4083, 4083, 4083, 4084, 4084, 4084, 4084, 4084, 4084, 4084,
4084, 4084, 4084, 4084, 4084, 4084, 4084, 4084, 4084, 4084,
4084, 4085, 4085, 4085, 4085, 4085, 4085, 4085, 4085, 4085,
4085, 4085, 4085, 4085, 4085, 4085, 4085, 4085, 4085, 4086,
4086, 0, 0, 4086, 4086, 4086, 4086, 4086, 0, 4086,
4086, 4086, 4086, 4086, 4086, 4086, 4086, 4087, 0, 0,
4087, 4087, 0, 0, 4087, 0, 4087, 0, 4087, 4087,
4087, 4087, 4088, 4088, 4088, 4088, 4088, 4088, 4088, 4088,
4088, 4088, 4088, 4088, 4088, 4088, 4088, 4088, 4088, 4088,
4089, 0, 4089, 4089, 0, 0, 4089, 4089, 4089, 4089,
4089, 4089, 4089, 4089, 4089, 4089, 4089, 4089, 4090, 4090,
4090, 4090, 4090, 4090, 4090, 4090, 4090, 4090, 4090, 4090,
4090, 4090, 4090, 4090, 4090, 4090, 4091, 0, 0, 0,
0, 0, 4091, 4091, 4091, 0, 4091, 4091, 4091, 4091,
4091, 4091, 4091, 4091, 4092, 4092, 0, 4092, 4092, 4092,
4092, 4092, 4092, 4092, 4092, 4092, 4092, 4092, 4092, 4092,
4092, 4092, 4093, 4093, 0, 4093, 4093, 4093, 4093, 4093,
4093, 4093, 4093, 4093, 4093, 4093, 4093, 4093, 4093, 4093,
4094, 0, 0, 4094, 4094, 0, 0, 4094, 0, 4094,
0, 4094, 4094, 4094, 4094, 4095, 0, 0, 0, 0,
0, 4095, 4095, 4095, 0, 4095, 4095, 4095, 4095, 4095,
4095, 4095, 4095, 4096, 4096, 0, 4096, 4096, 0, 4096,
4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
4097, 0, 4097, 0, 4097, 4097, 4097, 4097, 4098, 4098,
4098, 4098, 4098, 4098, 4098, 4098, 4098, 4098, 4098, 4098,
4098, 4098, 4098, 4098, 4098, 4098, 4099, 0, 4099, 4099,
0, 0, 4099, 4099, 4099, 4099, 4099, 4099, 4099, 4099,
4099, 4099, 4099, 4099, 4100, 4100, 4100, 4100, 4100, 4100,
4100, 4100, 4100, 4100, 4100, 4100, 4100, 4100, 4100, 4100,
4100, 4100, 4101, 4101, 4101, 4101, 4101, 4101, 4101, 4101,
4101, 4101, 4101, 4101, 4101, 4101, 4101, 4101, 4101, 4101,
4102, 0, 0, 4102, 4102, 0, 0, 4102, 0, 4102,
0, 4102, 4102, 4102, 4102, 4103, 0, 4103, 0, 4103,
4103, 4103, 4103, 4104, 0, 0, 4104, 4104, 0, 0,
4104, 0, 4104, 0, 4104, 4104, 4104, 4104, 4105, 4105,
0, 4105, 4105, 4105, 4105, 4105, 4105, 4105, 4105, 4105,
4105, 4105, 4105, 4105, 4105, 4106, 0, 4106, 4106, 0,
0, 4106, 4106, 4106, 4106, 4106, 4106, 4106, 4106, 4106,
4106, 4106, 4106, 4107, 4107, 4107, 4107, 4107, 4107, 4107,
4107, 4107, 4107, 4107, 4107, 4107, 4107, 4107, 4107, 4107,
4107, 4108, 4108, 4108, 4108, 4108, 4108, 4108, 4108, 4108,
4108, 4108, 4108, 4108, 4108, 4108, 4108, 4108, 4108, 4109,
4109, 4109, 4109, 4109, 4109, 4109, 4109, 4109, 4109, 4109,
4109, 4109, 4109, 4109, 4109, 4109, 4109, 4110, 0, 4110,
4110, 0, 0, 4110, 4110, 4110, 4110, 4110, 4110, 4110,
4110, 4110, 4110, 4110, 4110, 4111, 4111, 4111, 4111, 4111,
4111, 4111, 4111, 4111, 4111, 4111, 4111, 4111, 4111, 4111,
4111, 4111, 4111, 4112, 4112, 4112, 4112, 4112, 4112, 4112,
4112, 4112, 4112, 4112, 4112, 4112, 4112, 4112, 4112, 4112,
4112, 4113, 4113, 0, 4113, 4113, 4113, 4113, 4113, 4113,
4113, 4113, 4113, 4113, 4113, 4113, 4113, 4113, 4113, 4114,
4114, 4114, 4114, 4114, 4114, 4114, 4114, 4114, 4114, 4114,
4114, 4114, 4114, 4114, 4114, 4114, 4114, 4115, 4115, 0,
4115, 4115, 4115, 4115, 4115, 4115, 4115, 4115, 4115, 4115,
4115, 4115, 4115, 4115, 4115, 4116, 4116, 4116, 4116, 4116,
4116, 4116, 4116, 4116, 4116, 4116, 4116, 4116, 4116, 4116,
4116, 4116, 4116, 4117, 0, 4117, 0, 4117, 4117, 4117,
4117, 4118, 0, 4118, 0, 4118, 4118, 4118, 4118, 4119,
0, 0, 4119, 0, 0, 0, 4119, 0, 4119, 0,
4119, 4119, 4119, 4119, 4120, 0, 0, 4120, 4120, 0,
0, 4120, 0, 4120, 0, 4120, 4120, 4120, 4120, 4121,
0, 0, 4121, 0, 4121, 0, 4121, 4121, 4121, 4121,
4122, 0, 4122, 0, 4122, 4122, 4122, 4122, 4123, 0,
4123, 0, 4123, 4123, 4123, 4123, 4124, 4124, 0, 4124,
4124, 0, 4124, 4124, 4124, 4124, 4124, 4124, 4124, 4124,
4124, 4124, 4124, 4125, 0, 0, 4125, 4125, 0, 0,
4125, 0, 4125, 0, 4125, 4125, 4125, 4125, 4126, 4126,
0, 4126, 4126, 0, 4126, 4126, 4126, 4126, 4126, 4126,
4126, 4126, 4126, 4126, 4126, 4127, 4127, 4127, 4127, 4127,
4127, 4127, 4127, 4127, 4127, 4127, 4127, 4127, 4127, 4127,
4127, 4127, 4127, 4128, 4128, 4128, 4128, 4128, 4128, 4128,
4128, 4128, 4128, 4128, 4128, 4128, 4128, 4128, 4128, 4128,
4128, 4129, 4129, 4129, 4129, 4129, 4129, 4129, 4129, 4129,
4129, 4129, 4129, 4129, 4129, 4129, 4129, 4129, 4129, 4130,
0, 4130, 4130, 0, 0, 4130, 4130, 4130, 4130, 4130,
4130, 4130, 4130, 4130, 4130, 4130, 4130, 4131, 0, 4131,
4131, 0, 0, 4131, 4131, 4131, 4131, 4131, 4131, 4131,
4131, 4131, 4131, 4131, 4131, 4132, 4132, 4132, 4132, 4132,
4132, 4132, 4132, 4132, 4132, 4132, 4132, 4132, 4132, 4132,
4132, 4132, 4132, 4133, 4133, 4133, 4133, 4133, 4133, 4133,
4133, 4133, 4133, 4133, 4133, 4133, 4133, 4133, 4133, 4133,
4133, 4134, 4134, 4134, 4134, 4134, 4134, 4134, 4134, 4134,
4134, 4134, 4134, 4134, 4134, 4134, 4134, 4134, 4134, 4135,
4135, 4135, 4135, 4135, 4135, 4135, 4135, 4135, 4135, 4135,
4135, 4135, 4135, 4135, 4135, 4135, 4135, 4136, 0, 4136,
4136, 0, 0, 4136, 4136, 4136, 4136, 4136, 4136, 4136,
4136, 4136, 4136, 4136, 4136, 4137, 4137, 4137, 4137, 4137,
4137, 4137, 4137, 4137, 4137, 4137, 4137, 4137, 4137, 4137,
4137, 4137, 4137, 4138, 4138, 4138, 4138, 4138, 4138, 4138,
4138, 4138, 4138, 4138, 4138, 4138, 4138, 4138, 4138, 4138,
4138, 4139, 4139, 4139, 4139, 4139, 4139, 4139, 4139, 4139,
4139, 4139, 4139, 4139, 4139, 4139, 4139, 4139, 4139, 4140,
0, 4140, 4140, 0, 0, 4140, 4140, 4140, 4140, 4140,
4140, 4140, 4140, 4140, 4140, 4140, 4140, 4141, 4141, 4141,
4141, 4141, 4141, 4141, 4141, 4141, 4141, 4141, 4141, 4141,
4141, 4141, 4141, 4141, 4141, 4142, 4142, 4142, 4142, 4142,
4142, 4142, 4142, 4142, 4142, 4142, 4142, 4142, 4142, 4142,
4142, 4142, 4142, 4143, 0, 0, 4143, 0, 4143, 0,
4143, 4143, 4143, 4143, 4144, 0, 4144, 0, 4144, 4144,
4144, 4144, 4145, 0, 4145, 0, 4145, 4145, 4145, 4145,
4146, 0, 4146, 0, 4146, 4146, 4146, 4146, 4147, 0,
0, 4147, 0, 4147, 0, 4147, 4147, 4147, 4147, 4148,
4148, 0, 4148, 4148, 0, 4148, 4148, 4148, 4148, 4148,
4148, 4148, 4148, 4148, 4148, 4148, 4149, 0, 0, 4149,
4149, 0, 0, 4149, 0, 4149, 0, 4149, 4149, 4149,
4149, 4150, 0, 4150, 0, 4150, 4150, 4150, 4150, 4151,
0, 4151, 0, 4151, 4151, 4151, 4151, 4152, 4152, 4152,
4152, 4152, 4152, 4152, 4152, 4152, 4152, 4152, 4152, 4152,
4152, 4152, 4152, 4152, 4152, 4153, 4153, 4153, 4153, 4153,
4153, 4153, 4153, 4153, 4153, 4153, 4153, 4153, 4153, 4153,
4153, 4153, 4153, 4154, 4154, 4154, 4154, 4154, 4154, 4154,
4154, 4154, 4154, 4154, 4154, 4154, 4154, 4154, 4154, 4154,
4154, 4155, 4155, 4155, 4155, 4155, 4155, 4155, 4155, 4155,
4155, 4155, 4155, 4155, 4155, 4155, 4155, 4155, 4155, 4156,
4156, 4156, 4156, 4156, 4156, 4156, 4156, 4156, 4156, 4156,
4156, 4156, 4156, 4156, 4156, 4156, 4156, 4157, 4157, 4157,
4157, 4157, 4157, 4157, 4157, 4157, 4157, 4157, 4157, 4157,
4157, 4157, 4157, 4157, 4157, 4158, 0, 4158, 4158, 0,
0, 4158, 4158, 4158, 4158, 4158, 4158, 4158, 4158, 4158,
4158, 4158, 4158, 4159, 4159, 4159, 4159, 4159, 4159, 4159,
4159, 4159, 4159, 4159, 4159, 4159, 4159, 4159, 4159, 4159,
4159, 4160, 4160, 4160, 4160, 4160, 4160, 4160, 4160, 4160,
4160, 4160, 4160, 4160, 4160, 4160, 4160, 4160, 4160, 4161,
4161, 4161, 4161, 4161, 4161, 4161, 4161, 4161, 4161, 4161,
4161, 4161, 4161, 4161, 4161, 4161, 4161, 4162, 4162, 4162,
4162, 4162, 4162, 4162, 4162, 4162, 4162, 4162, 4162, 4162,
4162, 4162, 4162, 4162, 4162, 4163, 4163, 0, 4163, 4163,
0, 4163, 4163, 4163, 4163, 4163, 4163, 4163, 4163, 4163,
4163, 4163, 4164, 0, 0, 4164, 4164, 0, 0, 4164,
0, 4164, 0, 4164, 4164, 4164, 4164, 4165, 4165, 4165,
4165, 0, 4165, 4165, 4165, 4165, 4165, 4165, 4165, 4165,
4165, 4165, 4165, 4165, 4165, 4166, 0, 0, 0, 0,
0, 4166, 4166, 4166, 0, 4166, 4166, 4166, 4166, 4166,
4166, 4166, 4166, 4167, 4167, 4167, 4167, 4167, 4167, 4167,
4167, 4167, 4167, 4167, 4167, 4167, 4167, 4167, 4167, 4167,
4167, 4168, 0, 4168, 0, 4168, 4168, 4168, 4168, 4169,
4169, 0, 4169, 4169, 0, 4169, 4169, 4169, 4169, 4169,
4169, 4169, 4169, 4169, 4169, 4169, 4170, 0, 0, 4170,
4170, 0, 0, 0, 0, 0, 0, 4170, 4171, 4171,
0, 0, 0, 4171, 4171, 4171, 4171, 4171, 4171, 4171,
4171, 4171, 4171, 4171, 4171, 4171, 4172, 4172, 0, 4172,
4172, 0, 4172, 4172, 4172, 4172, 4172, 4172, 4172, 4172,
4172, 4172, 4172, 4173, 4173, 0, 4173, 4173, 0, 4173,
4173, 4173, 4173, 4173, 4173, 4173, 4173, 4173, 4173, 4173,
4174, 4174, 0, 4174, 4174, 4174, 4174, 4174, 4174, 4174,
4174, 4174, 4174, 4174, 4174, 4174, 4174, 4175, 4175, 0,
4175, 4175, 4175, 4175, 4175, 4175, 4175, 4175, 4175, 4175,
4175, 4175, 4175, 4175, 4176, 0, 4176, 0, 4176, 0,
4176, 4176, 4176, 4176, 4177, 4177, 0, 4177, 4177, 0,
4177, 4177, 4177, 4177, 4177, 4177, 4177, 4177, 4177, 4177,
4177, 4178, 4178, 0, 4178, 4178, 0, 4178, 4178, 4178,
4178, 4178, 4178, 4178, 4178, 4178, 4178, 4178, 4179, 4179,
4179, 4179, 4179, 4179, 4179, 4179, 4179, 4179, 4179, 4179,
4179, 4179, 4179, 4179, 4179, 4179, 4180, 0, 4180, 0,
4180, 0, 4180, 4180, 4180, 4180, 4181, 4181, 0, 4181,
4181, 4181, 4181, 4181, 4181, 4181, 4181, 4181, 4181, 4181,
4181, 4181, 4181, 4181, 4182, 4182, 0, 4182, 4182, 0,
4182, 4182, 4182, 4182, 4182, 4182, 4182, 4182, 4182, 4182,
4182, 4183, 4183, 0, 0, 4183, 4183, 4183, 4183, 4183,
0, 4183, 4183, 4183, 4183, 4183, 4183, 4183, 4183, 4184,
4184, 0, 4184, 4184, 0, 4184, 4184, 4184, 4184, 4184,
4184, 4184, 4184, 4184, 4184, 4184, 4185, 0, 0, 0,
0, 0, 4185, 4185, 4185, 0, 4185, 4185, 4185, 4185,
4185, 4185, 4185, 4185, 4186, 0, 0, 0, 0, 0,
4186, 4186, 4186, 0, 4186, 4186, 4186, 4186, 4186, 4186,
4186, 4186, 4187, 0, 0, 4187, 4187, 0, 0, 4187,
0, 4187, 0, 4187, 4187, 4187, 4187, 4188, 4188, 0,
4188, 4188, 0, 4188, 4188, 4188, 4188, 4188, 4188, 4188,
4188, 4188, 4188, 4188, 4189, 0, 0, 0, 0, 0,
4189, 4189, 4189, 0, 4189, 4189, 4189, 4189, 4189, 4189,
4189, 4189, 4190, 0, 4190, 0, 4190, 4190, 4190, 4190,
4191, 4191, 0, 4191, 4191, 0, 4191, 4191, 4191, 4191,
4191, 4191, 4191, 4191, 4191, 4191, 4191, 4192, 4192, 4192,
4192, 4192, 4192, 4192, 4192, 4192, 4192, 4192, 4192, 4192,
4192, 4192, 4192, 4192, 4192, 4193, 4193, 0, 4193, 4193,
0, 4193, 4193, 4193, 4193, 4193, 4193, 4193, 4193, 4193,
4193, 4193, 4194, 4194, 0, 0, 4194, 4194, 4194, 4194,
4194, 0, 4194, 4194, 4194, 4194, 4194, 4194, 4194, 4194,
4195, 4195, 0, 0, 4195, 4195, 4195, 4195, 4195, 0,
4195, 4195, 4195, 4195, 4195, 4195, 4195, 4195, 4196, 4196,
0, 4196, 4196, 0, 4196, 4196, 4196, 4196, 4196, 4196,
4196, 4196, 4196, 4196, 4196, 4197, 4197, 0, 4197, 4197,
0, 4197, 4197, 4197, 4197, 4197, 4197, 4197, 4197, 4197,
4197, 4197, 4198, 4198, 0, 0, 4198, 4198, 4198, 4198,
4198, 0, 4198, 4198, 4198, 4198, 4198, 4198, 4198, 4198,
4199, 4199, 0, 0, 4199, 4199, 4199, 4199, 4199, 0,
4199, 4199, 4199, 4199, 4199, 4199, 4199, 4199, 4200, 0,
4200, 0, 4200, 0, 4200, 4200, 4200, 4200, 4201, 4201,
0, 4201, 4201, 4201, 4201, 4201, 4201, 4201, 4201, 4201,
4201, 4201, 4201, 4201, 4201, 4202, 4202, 0, 4202, 4202,
0, 4202, 4202, 4202, 4202, 4202, 4202, 4202, 4202, 4202,
4202, 4202, 4203, 4203, 0, 4203, 4203, 0, 4203, 4203,
4203, 4203, 4203, 4203, 4203, 4203, 4203, 4203, 4203, 4204,
0, 4204, 0, 4204, 0, 4204, 4204, 4204, 4204, 4205,
0, 0, 0, 0, 0, 4205, 4205, 4205, 0, 4205,
4205, 4205, 4205, 4205, 4205, 4205, 4205, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
3920, 3920, 3920, 3920, 3920
} ;
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
extern int yy_flex_debug;
int yy_flex_debug = 1;
static const flex_int16_t yy_rule_linenum[539] =
{ 0,
504, 505, 506, 507, 508, 509, 510, 511, 512, 513,
514, 515, 516, 517, 518, 519, 520, 521, 522, 523,
524, 525, 527, 528, 529, 530, 531, 532, 533, 534,
535, 536, 537, 538, 539, 540, 541, 542, 543, 544,
545, 546, 547, 548, 549, 550, 551, 552, 553, 554,
555, 556, 557, 558, 559, 560, 562, 563, 566, 567,
568, 569, 570, 571, 572, 574, 575, 576, 577, 578,
579, 580, 581, 582, 583, 584, 585, 586, 587, 588,
589, 590, 591, 592, 593, 594, 595, 596, 597, 598,
599, 600, 601, 602, 603, 604, 605, 606, 607, 608,
609, 610, 612, 613, 614, 615, 616, 620, 625, 626,
631, 632, 633, 638, 639, 640, 645, 650, 651, 652,
657, 658, 662, 663, 664, 668, 669, 673, 674, 678,
679, 680, 684, 685, 689, 690, 695, 696, 697, 701,
705, 706, 714, 719, 720, 725, 726, 727, 736, 739,
740, 741, 742, 743, 744, 745, 746, 747, 748, 749,
750, 751, 752, 753, 754, 755, 756, 757, 758, 759,
760, 761, 762, 765, 766, 767, 768, 769, 770, 771,
772, 774, 775, 776, 777, 778, 779, 780, 781, 782,
783, 784, 785, 786, 787, 788, 789, 790, 791, 792,
793, 794, 795, 796, 797, 798, 799, 800, 801, 802,
803, 804, 805, 806, 807, 808, 809, 810, 811, 812,
813, 814, 815, 816, 817, 818, 819, 820, 821, 822,
823, 824, 825, 826, 827, 828, 829, 830, 831, 832,
833, 834, 835, 836, 837, 838, 839, 840, 841, 842,
843, 844, 845, 846, 847, 848, 849, 851, 852, 853,
855, 856, 857, 858, 859, 860, 861, 862, 863, 864,
867, 871, 872, 873, 874, 875, 879, 880, 881, 882,
883, 884, 888, 889, 890, 891, 896, 897, 898, 899,
900, 901, 902, 903, 904, 905, 906, 907, 908, 909,
910, 911, 912, 913, 914, 915, 916, 917, 918, 919,
920, 921, 922, 923, 924, 925, 926, 927, 928, 929,
930, 931, 932, 933, 934, 935, 936, 937, 938, 939,
940, 941, 942, 943, 944, 945, 946, 947, 948, 949,
950, 951, 952, 953, 954, 955, 956, 957, 958, 959,
960, 961, 962, 963, 964, 965, 966, 967, 968, 969,
970, 971, 972, 973, 974, 975, 976, 977, 978, 979,
980, 981, 982, 983, 984, 985, 986, 987, 988, 989,
990, 991, 992, 993, 994, 995, 996, 997, 998, 999,
1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009,
1010, 1011, 1012, 1013, 1014, 1015, 1016, 1019, 1020, 1021,
1022, 1023, 1024, 1025, 1026, 1027, 1031, 1032, 1033, 1034,
1035, 1036, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048,
1049, 1051, 1052, 1053, 1054, 1055, 1060, 1061, 1062, 1063,
1064, 1065, 1067, 1068, 1070, 1071, 1077, 1078, 1079, 1080,
1081, 1082, 1085, 1086, 1087, 1088, 1089, 1090, 1094, 1095,
1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1105,
1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115,
1116, 1117, 1118, 1119, 1120, 1121, 1122, 1123, 1125, 1126,
1131, 1135, 1139, 1140, 1144, 1145, 1148, 1149, 1153, 1154,
1158, 1159, 1163, 1164, 1169, 1171, 1172, 1173, 1174, 1176,
1177, 1178, 1179, 1181, 1182, 1183, 1184, 1186, 1188, 1189,
1191, 1192, 1193, 1194, 1196, 1201, 1202, 1203, 1207, 1208,
1209, 1214, 1216, 1217, 1218, 1237, 1264, 1294
} ;
/* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed.
*/
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "seclang-scanner.ll"
#line 2 "seclang-scanner.ll"
#include <cerrno>
#include <climits>
#include <cstdlib>
#include <string>
#include "src/parser/driver.h"
#include "src/parser/seclang-parser.hh"
#include "src/utils/https_client.h"
#include "src/utils/string.h"
using modsecurity::Parser::Driver;
using modsecurity::Utils::HttpsClient;
using modsecurity::utils::string::parserSanitizer;
typedef yy::seclang_parser p;
static int state_variable_from = 0;
static std::stack<int> YY_PREVIOUS_STATE;
// Work around an incompatibility in flex (at least versions
// 2.5.31 through 2.5.33): it generates code that does
// not conform to C89. See Debian bug 333231
// <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>.
# undef yywrap
# define yywrap() 1
#define BEGINX(z) { \
YY_PREVIOUS_STATE.push(YY_START); \
BEGIN(z); \
}
#define BEGINX_() { \
YY_PREVIOUS_STATE.push(YY_START); \
if (YY_START == SETVAR_ACTION_NONQUOTED) { \
BEGIN(EXPECTING_VAR_PARAMETER_OR_MACRO_NONQUOTED); \
} else if (YY_START == SETVAR_ACTION_QUOTED) { \
BEGIN(EXPECTING_VAR_PARAMETER_OR_MACRO_QUOTED); \
} else { \
BEGIN(EXPECTING_VAR_PARAMETER); \
} \
}
#define BEGIN_PARAMETER() { if (YY_START == EXPECTING_OPERATOR_ENDS_WITH_SPACE) { BEGIN(TRANSITION_FROM_OP_TO_EXPECTING_PARAMETER_ENDS_WITH_SPACE); } else { BEGIN(TRANSITION_FROM_OP_TO_EXPECTING_PARAMETER_ENDS_WITH_QUOTE); } }
#define BEGIN_NO_OP_INFORMED() { if (YY_START == EXPECTING_OPERATOR_ENDS_WITH_SPACE) { BEGIN(NO_OP_INFORMED_ENDS_WITH_SPACE); } else { BEGIN(NO_OP_INFORMED_ENDS_WITH_QUOTE); } }
#define BEGIN_ACTION_OPERATION() { \
if (YY_START == SETVAR_ACTION_NONQUOTED) { \
BEGIN(SETVAR_ACTION_NONQUOTED_WAITING_OPERATION); \
} else if (YY_START == SETVAR_ACTION_QUOTED) { \
BEGIN(SETVAR_ACTION_QUOTED_WAITING_OPERATION); \
} else if (YY_START == SETVAR_ACTION_NONQUOTED_WAITING_COLLECTION_ELEM) { \
BEGIN(SETVAR_ACTION_NONQUOTED_WAITING_OPERATION); \
} else if (YY_START == SETVAR_ACTION_QUOTED_WAITING_COLLECTION_ELEM) { \
BEGIN(SETVAR_ACTION_QUOTED_WAITING_OPERATION); \
}\
}
#define BEGIN_ACTION_WAITING_CONTENT() { \
if (YY_START == SETVAR_ACTION_NONQUOTED_WAITING_OPERATION) { \
BEGIN(SETVAR_ACTION_NONQUOTED_WAITING_CONTENT); \
} else if (YY_START == SETVAR_ACTION_QUOTED_WAITING_OPERATION) { \
BEGIN(SETVAR_ACTION_QUOTED_WAITING_CONTENT); \
} else if (YY_START == EXPECTING_VAR_PARAMETER_OR_MACRO_QUOTED) { \
BEGIN(SETVAR_ACTION_QUOTED_WAITING_CONTENT); \
} else if (YY_START == EXPECTING_VAR_PARAMETER_OR_MACRO_NONQUOTED) { \
BEGIN(SETVAR_ACTION_NONQUOTED_WAITING_CONTENT); \
} \
}
#define BEGIN_PREVIOUS() { BEGIN(YY_PREVIOUS_STATE.top()); YY_PREVIOUS_STATE.pop(); }
// The location of the current token.
#line 5153 "seclang-scanner.cc"
#define YY_NO_INPUT 1
#line 491 "seclang-scanner.ll"
// Code run each time a pattern is matched.
# define YY_USER_ACTION driver.loc.back()->columns (yyleng);
#line 5160 "seclang-scanner.cc"
#line 5161 "seclang-scanner.cc"
#define INITIAL 0
#define EXPECTING_ACTION_PREDICATE_VARIABLE 1
#define TRANSACTION_TO_VARIABLE 2
#define EXPECTING_VARIABLE 3
#define EXPECTING_OPERATOR_ENDS_WITH_SPACE 4
#define EXPECTING_OPERATOR_ENDS_WITH_QUOTE 5
#define EXPECTING_ACTION_PREDICATE 6
#define ACTION_PREDICATE_ENDS_WITH_QUOTE 7
#define ACTION_PREDICATE_ENDS_WITH_DOUBLE_QUOTE 8
#define ACTION_PREDICATE_ENDS_WITH_COMMA_OR_DOUBLE_QUOTE 9
#define COMMENT 10
#define TRANSITION_FROM_OP_TO_EXPECTING_PARAMETER_ENDS_WITH_QUOTE 11
#define TRANSITION_FROM_OP_TO_EXPECTING_PARAMETER_ENDS_WITH_SPACE 12
#define EXPECTING_VAR_PARAMETER 13
#define EXPECTING_VAR_PARAMETER_OR_MACRO_NONQUOTED 14
#define EXPECTING_VAR_PARAMETER_OR_MACRO_QUOTED 15
#define EXPECTING_PARAMETER_ENDS_WITH_QUOTE 16
#define EXPECTING_PARAMETER_ENDS_WITH_SPACE 17
#define EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE 18
#define EXPECTING_ACTIONS_ONLY_ONE 19
#define TRANSACTION_FROM_OPERATOR_TO_ACTIONS 20
#define TRANSACTION_FROM_OPERATOR_PARAMETERS_TO_ACTIONS 21
#define TRANSACTION_FROM_DIRECTIVE_TO_ACTIONS 22
#define NO_OP_INFORMED_ENDS_WITH_SPACE 23
#define NO_OP_INFORMED_ENDS_WITH_QUOTE 24
#define FINISH_ACTIONS 25
#define LEXING_ERROR 26
#define LEXING_ERROR_ACTION 27
#define LEXING_ERROR_VARIABLE 28
#define SETVAR_ACTION_NONQUOTED 29
#define SETVAR_ACTION_NONQUOTED_WAITING_COLLECTION_ELEM 30
#define SETVAR_ACTION_NONQUOTED_WAITING_OPERATION 31
#define SETVAR_ACTION_NONQUOTED_WAITING_CONTENT 32
#define SETVAR_ACTION_QUOTED 33
#define SETVAR_ACTION_QUOTED_WAITING_COLLECTION_ELEM 34
#define SETVAR_ACTION_QUOTED_WAITING_OPERATION 35
#define SETVAR_ACTION_QUOTED_WAITING_CONTENT 36
#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
* down here because we want the user's section 1 to have been scanned first.
* The user has a chance to override it with an option.
*/
/* %if-c-only */
#include <unistd.h>
/* %endif */
/* %if-c++-only */
/* %endif */
#endif
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
/* %if-c-only Reentrant structure and macros (non-C++). */
/* %if-reentrant */
/* %if-c-only */
static int yy_init_globals ( void );
/* %endif */
/* %if-reentrant */
/* %endif */
/* %endif End reentrant structures and macros. */
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
int yylex_destroy ( void );
int yyget_debug ( void );
void yyset_debug ( int debug_flag );
YY_EXTRA_TYPE yyget_extra ( void );
void yyset_extra ( YY_EXTRA_TYPE user_defined );
FILE *yyget_in ( void );
void yyset_in ( FILE * _in_str );
FILE *yyget_out ( void );
void yyset_out ( FILE * _out_str );
int yyget_leng ( void );
char *yyget_text ( void );
int yyget_lineno ( void );
void yyset_lineno ( int _line_number );
/* %if-bison-bridge */
/* %endif */
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap ( void );
#else
extern int yywrap ( void );
#endif
#endif
/* %not-for-header */
#ifndef YY_NO_UNPUT
#endif
/* %ok-for-header */
/* %endif */
#ifndef yytext_ptr
static void yy_flex_strncpy ( char *, const char *, int );
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen ( const char * );
#endif
#ifndef YY_NO_INPUT
/* %if-c-only Standard (non-C++) definition */
/* %not-for-header */
#ifdef __cplusplus
static int yyinput ( void );
#else
static int input ( void );
#endif
/* %ok-for-header */
/* %endif */
#endif
/* %if-c-only */
/* %endif */
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k */
#define YY_READ_BUF_SIZE 16384
#else
#define YY_READ_BUF_SIZE 8192
#endif /* __ia64__ */
#endif
/* Copy whatever the last rule matched to the standard output. */
#ifndef ECHO
/* %if-c-only Standard (non-C++) definition */
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
/* %endif */
/* %if-c++-only C++ definition */
/* %endif */
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
* is returned in "result".
*/
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
/* %% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \ */\
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
int n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(yyin); \
} \
}\
\
/* %if-c++-only C++ definition \ */\
/* %endif */
#endif
/* No semi-colon after return; correct usage is to write "yyterminate();" -
* we don't want an extra ';' after the "return" because that will cause
* some compilers to complain about unreachable statements.
*/
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
/* %if-c-only */
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
/* %endif */
/* %if-c++-only */
/* %endif */
#endif
/* %if-tables-serialization structures and prototypes */
/* %not-for-header */
/* %ok-for-header */
/* %not-for-header */
/* %tables-yydmap generated elements */
/* %endif */
/* end tables serialization structures and prototypes */
/* %ok-for-header */
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
/* %if-c-only Standard (non-C++) definition */
extern int yylex (void);
#define YY_DECL int yylex (void)
/* %endif */
/* %if-c++-only C++ definition */
/* %endif */
#endif /* !YY_DECL */
/* Code executed at the beginning of each rule, after yytext and yyleng
* have been set up.
*/
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif
/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK /*LINTED*/break;
#endif
/* %% [6.0] YY_RULE_SETUP definition goes here */
#define YY_RULE_SETUP \
YY_USER_ACTION
/* %not-for-header */
/** The main scanner function which does all the work.
*/
YY_DECL
{
yy_state_type yy_current_state;
char *yy_cp, *yy_bp;
int yy_act;
if ( !(yy_init) )
{
(yy_init) = 1;
#ifdef YY_USER_INIT
YY_USER_INIT;
#endif
if ( ! (yy_start) )
(yy_start) = 1; /* first start state */
if ( ! yyin )
/* %if-c-only */
yyin = stdin;
/* %endif */
/* %if-c++-only */
/* %endif */
if ( ! yyout )
/* %if-c-only */
yyout = stdout;
/* %endif */
/* %if-c++-only */
/* %endif */
if ( ! YY_CURRENT_BUFFER ) {
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
yy_create_buffer( yyin, YY_BUF_SIZE );
}
yy_load_buffer_state( );
}
{
/* %% [7.0] user's declarations go here */
#line 496 "seclang-scanner.ll"
#line 500 "seclang-scanner.ll"
// Code run each time yylex is called.
driver.loc.back()->step();
#line 5483 "seclang-scanner.cc"
while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
/* %% [8.0] yymore()-related code goes here */
yy_cp = (yy_c_buf_p);
/* Support of yytext. */
*yy_cp = (yy_hold_char);
/* yy_bp points to the position in yy_ch_buf of the start of
* the current run.
*/
yy_bp = yy_cp;
/* %% [9.0] code to set up and find next match goes here */
yy_current_state = (yy_start);
yy_match:
do
{
YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 3921 )
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
++yy_cp;
}
while ( yy_current_state != 3920 );
yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state);
yy_find_action:
/* %% [10.0] code to find the action number goes here */
yy_act = yy_accept[yy_current_state];
YY_DO_BEFORE_ACTION;
/* %% [11.0] code for yylineno update goes here */
do_action: /* This label is used only to access EOF actions. */
/* %% [12.0] debug code goes here */
if ( yy_flex_debug )
{
if ( yy_act == 0 )
fprintf( stderr, "--scanner backing up\n" );
else if ( yy_act < 539 )
fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n",
(long)yy_rule_linenum[yy_act], yytext );
else if ( yy_act == 539 )
fprintf( stderr, "--accepting default rule (\"%s\")\n",
yytext );
else if ( yy_act == 540 )
fprintf( stderr, "--(end of buffer or a NUL)\n" );
else
fprintf( stderr, "--EOF (start condition %d)\n", YY_START );
}
switch ( yy_act )
{ /* beginning of action switch */
/* %% [13.0] actions go here */
case 0: /* must back up */
/* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = (yy_hold_char);
yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state);
goto yy_find_action;
case 1:
YY_RULE_SETUP
#line 504 "seclang-scanner.ll"
{ return p::make_ACTION_APPEND(yytext, *driver.loc.back()); }
YY_BREAK
case 2:
YY_RULE_SETUP
#line 505 "seclang-scanner.ll"
{ return p::make_ACTION_BLOCK(yytext, *driver.loc.back()); }
YY_BREAK
case 3:
YY_RULE_SETUP
#line 506 "seclang-scanner.ll"
{ return p::make_ACTION_CAPTURE(yytext, *driver.loc.back()); }
YY_BREAK
case 4:
YY_RULE_SETUP
#line 507 "seclang-scanner.ll"
{ return p::make_ACTION_CHAIN(yytext, *driver.loc.back()); }
YY_BREAK
case 5:
YY_RULE_SETUP
#line 508 "seclang-scanner.ll"
{ return p::make_ACTION_DENY(yytext, *driver.loc.back()); }
YY_BREAK
case 6:
YY_RULE_SETUP
#line 509 "seclang-scanner.ll"
{ return p::make_ACTION_DEPRECATE_VAR(yytext, *driver.loc.back()); }
YY_BREAK
case 7:
YY_RULE_SETUP
#line 510 "seclang-scanner.ll"
{ return p::make_ACTION_DROP(yytext, *driver.loc.back()); }
YY_BREAK
case 8:
YY_RULE_SETUP
#line 511 "seclang-scanner.ll"
{ return p::make_ACTION_ID(yytext, *driver.loc.back()); }
YY_BREAK
case 9:
YY_RULE_SETUP
#line 512 "seclang-scanner.ll"
{ return p::make_ACTION_LOG(yytext, *driver.loc.back()); }
YY_BREAK
case 10:
YY_RULE_SETUP
#line 513 "seclang-scanner.ll"
{ return p::make_ACTION_MULTI_MATCH(yytext, *driver.loc.back()); }
YY_BREAK
case 11:
YY_RULE_SETUP
#line 514 "seclang-scanner.ll"
{ return p::make_ACTION_NO_AUDIT_LOG(yytext, *driver.loc.back()); }
YY_BREAK
case 12:
YY_RULE_SETUP
#line 515 "seclang-scanner.ll"
{ return p::make_ACTION_NO_LOG(yytext, *driver.loc.back()); }
YY_BREAK
case 13:
YY_RULE_SETUP
#line 516 "seclang-scanner.ll"
{ return p::make_ACTION_PASS(yytext, *driver.loc.back()); }
YY_BREAK
case 14:
YY_RULE_SETUP
#line 517 "seclang-scanner.ll"
{ return p::make_ACTION_PAUSE(yytext, *driver.loc.back()); }
YY_BREAK
case 15:
YY_RULE_SETUP
#line 518 "seclang-scanner.ll"
{ return p::make_ACTION_PREPEND(yytext, *driver.loc.back()); }
YY_BREAK
case 16:
YY_RULE_SETUP
#line 519 "seclang-scanner.ll"
{ return p::make_ACTION_PROXY(yytext, *driver.loc.back()); }
YY_BREAK
case 17:
YY_RULE_SETUP
#line 520 "seclang-scanner.ll"
{ return p::make_ACTION_SANITISE_ARG(yytext, *driver.loc.back()); }
YY_BREAK
case 18:
YY_RULE_SETUP
#line 521 "seclang-scanner.ll"
{ return p::make_ACTION_SANITISE_MATCHED(yytext, *driver.loc.back()); }
YY_BREAK
case 19:
YY_RULE_SETUP
#line 522 "seclang-scanner.ll"
{ return p::make_ACTION_SANITISE_MATCHED_BYTES(yytext, *driver.loc.back()); }
YY_BREAK
case 20:
YY_RULE_SETUP
#line 523 "seclang-scanner.ll"
{ return p::make_ACTION_SANITISE_REQUEST_HEADER(yytext, *driver.loc.back()); }
YY_BREAK
case 21:
YY_RULE_SETUP
#line 524 "seclang-scanner.ll"
{ return p::make_ACTION_SANITISE_RESPONSE_HEADER(yytext, *driver.loc.back()); }
YY_BREAK
case 22:
YY_RULE_SETUP
#line 525 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTION_PREDICATE); return p::make_ACTION_SETRSC(yytext, *driver.loc.back()); }
YY_BREAK
case 23:
YY_RULE_SETUP
#line 527 "seclang-scanner.ll"
{ return p::make_ACTION_STATUS(yytext, *driver.loc.back()); }
YY_BREAK
case 24:
/* rule 24 can match eol */
YY_RULE_SETUP
#line 528 "seclang-scanner.ll"
{ return p::make_ACTION_ACCURACY(yytext, *driver.loc.back()); }
YY_BREAK
case 25:
/* rule 25 can match eol */
YY_RULE_SETUP
#line 529 "seclang-scanner.ll"
{ return p::make_ACTION_ACCURACY(yytext, *driver.loc.back()); }
YY_BREAK
case 26:
YY_RULE_SETUP
#line 530 "seclang-scanner.ll"
{ return p::make_ACTION_ALLOW(yytext, *driver.loc.back()); }
YY_BREAK
case 27:
YY_RULE_SETUP
#line 531 "seclang-scanner.ll"
{ return p::make_ACTION_AUDIT_LOG(yytext, *driver.loc.back()); }
YY_BREAK
case 28:
YY_RULE_SETUP
#line 532 "seclang-scanner.ll"
{ return p::make_ACTION_CTL_AUDIT_ENGINE(yytext, *driver.loc.back()); }
YY_BREAK
case 29:
YY_RULE_SETUP
#line 533 "seclang-scanner.ll"
{ return p::make_ACTION_CTL_AUDIT_LOG_PARTS(yytext, *driver.loc.back()); }
YY_BREAK
case 30:
YY_RULE_SETUP
#line 534 "seclang-scanner.ll"
{ return p::make_ACTION_CTL_BDY_JSON(yytext, *driver.loc.back()); }
YY_BREAK
case 31:
YY_RULE_SETUP
#line 535 "seclang-scanner.ll"
{ return p::make_ACTION_CTL_BDY_XML(yytext, *driver.loc.back()); }
YY_BREAK
case 32:
YY_RULE_SETUP
#line 536 "seclang-scanner.ll"
{ return p::make_ACTION_CTL_BDY_URLENCODED(yytext, *driver.loc.back()); }
YY_BREAK
case 33:
YY_RULE_SETUP
#line 537 "seclang-scanner.ll"
{ return p::make_ACTION_CTL_FORCE_REQ_BODY_VAR(yytext, *driver.loc.back()); }
YY_BREAK
case 34:
YY_RULE_SETUP
#line 538 "seclang-scanner.ll"
{ return p::make_ACTION_CTL_REQUEST_BODY_ACCESS(yytext, *driver.loc.back()); }
YY_BREAK
case 35:
YY_RULE_SETUP
#line 539 "seclang-scanner.ll"
{ return p::make_ACTION_CTL_RULE_ENGINE(*driver.loc.back()); }
YY_BREAK
case 36:
YY_RULE_SETUP
#line 540 "seclang-scanner.ll"
{ return p::make_ACTION_CTL_RULE_REMOVE_BY_ID(yytext, *driver.loc.back()); }
YY_BREAK
case 37:
YY_RULE_SETUP
#line 541 "seclang-scanner.ll"
{ return p::make_ACTION_CTL_RULE_REMOVE_BY_TAG(yytext, *driver.loc.back()); }
YY_BREAK
case 38:
YY_RULE_SETUP
#line 542 "seclang-scanner.ll"
{ return p::make_ACTION_CTL_RULE_REMOVE_TARGET_BY_ID(yytext, *driver.loc.back()); }
YY_BREAK
case 39:
YY_RULE_SETUP
#line 543 "seclang-scanner.ll"
{ return p::make_ACTION_CTL_RULE_REMOVE_TARGET_BY_TAG(yytext, *driver.loc.back()); }
YY_BREAK
case 40:
/* rule 40 can match eol */
YY_RULE_SETUP
#line 544 "seclang-scanner.ll"
{ return p::make_ACTION_EXEC(yytext, *driver.loc.back()); }
YY_BREAK
case 41:
/* rule 41 can match eol */
YY_RULE_SETUP
#line 545 "seclang-scanner.ll"
{ return p::make_ACTION_EXEC(yytext, *driver.loc.back()); }
YY_BREAK
case 42:
/* rule 42 can match eol */
YY_RULE_SETUP
#line 546 "seclang-scanner.ll"
{ return p::make_ACTION_EXPIRE_VAR(yytext, *driver.loc.back()); }
YY_BREAK
case 43:
/* rule 43 can match eol */
YY_RULE_SETUP
#line 547 "seclang-scanner.ll"
{ return p::make_ACTION_EXPIRE_VAR(yytext, *driver.loc.back()); }
YY_BREAK
case 44:
/* rule 44 can match eol */
YY_RULE_SETUP
#line 548 "seclang-scanner.ll"
{ return p::make_ACTION_EXPIRE_VAR(yytext, *driver.loc.back()); }
YY_BREAK
case 45:
/* rule 45 can match eol */
YY_RULE_SETUP
#line 549 "seclang-scanner.ll"
{ return p::make_ACTION_EXPIRE_VAR(yytext, *driver.loc.back()); }
YY_BREAK
case 46:
YY_RULE_SETUP
#line 550 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTION_PREDICATE); return p::make_ACTION_INITCOL(yytext, *driver.loc.back()); }
YY_BREAK
case 47:
/* rule 47 can match eol */
YY_RULE_SETUP
#line 551 "seclang-scanner.ll"
{ return p::make_ACTION_MATURITY(yytext, *driver.loc.back()); }
YY_BREAK
case 48:
/* rule 48 can match eol */
YY_RULE_SETUP
#line 552 "seclang-scanner.ll"
{ return p::make_ACTION_MATURITY(yytext, *driver.loc.back()); }
YY_BREAK
case 49:
YY_RULE_SETUP
#line 553 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTION_PREDICATE); return p::make_ACTION_MSG(yytext, *driver.loc.back()); }
YY_BREAK
case 50:
YY_RULE_SETUP
#line 554 "seclang-scanner.ll"
{ return p::make_ACTION_PHASE(yytext, *driver.loc.back()); }
YY_BREAK
case 51:
YY_RULE_SETUP
#line 555 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTION_PREDICATE); return p::make_ACTION_REDIRECT(yytext, *driver.loc.back()); }
YY_BREAK
case 52:
/* rule 52 can match eol */
YY_RULE_SETUP
#line 556 "seclang-scanner.ll"
{ return p::make_ACTION_REV(yytext, *driver.loc.back()); }
YY_BREAK
case 53:
/* rule 53 can match eol */
YY_RULE_SETUP
#line 557 "seclang-scanner.ll"
{ return p::make_ACTION_REV(yytext, *driver.loc.back()); }
YY_BREAK
case 54:
YY_RULE_SETUP
#line 558 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTION_PREDICATE); return p::make_ACTION_SETENV(yytext, *driver.loc.back()); }
YY_BREAK
case 55:
YY_RULE_SETUP
#line 559 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTION_PREDICATE); return p::make_ACTION_SETSID(yytext, *driver.loc.back()); }
YY_BREAK
case 56:
YY_RULE_SETUP
#line 560 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTION_PREDICATE); return p::make_ACTION_SETUID(yytext, *driver.loc.back()); }
YY_BREAK
case 57:
YY_RULE_SETUP
#line 562 "seclang-scanner.ll"
{ BEGIN(SETVAR_ACTION_QUOTED); return p::make_ACTION_SETVAR(*driver.loc.back()); }
YY_BREAK
case 58:
YY_RULE_SETUP
#line 563 "seclang-scanner.ll"
{ BEGIN(SETVAR_ACTION_NONQUOTED); return p::make_ACTION_SETVAR(*driver.loc.back()); }
YY_BREAK
case 59:
YY_RULE_SETUP
#line 566 "seclang-scanner.ll"
{ return p::make_ACTION_SEVERITY(yytext, *driver.loc.back()); }
YY_BREAK
case 60:
YY_RULE_SETUP
#line 567 "seclang-scanner.ll"
{ return p::make_ACTION_SEVERITY(yytext, *driver.loc.back()); }
YY_BREAK
case 61:
YY_RULE_SETUP
#line 568 "seclang-scanner.ll"
{ return p::make_ACTION_SKIP_AFTER(yytext, *driver.loc.back()); }
YY_BREAK
case 62:
YY_RULE_SETUP
#line 569 "seclang-scanner.ll"
{ return p::make_ACTION_SKIP(yytext, *driver.loc.back()); }
YY_BREAK
case 63:
YY_RULE_SETUP
#line 570 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTION_PREDICATE); return p::make_ACTION_TAG(yytext, *driver.loc.back()); }
YY_BREAK
case 64:
/* rule 64 can match eol */
YY_RULE_SETUP
#line 571 "seclang-scanner.ll"
{ return p::make_ACTION_VER(yytext, *driver.loc.back()); }
YY_BREAK
case 65:
YY_RULE_SETUP
#line 572 "seclang-scanner.ll"
{ return p::make_ACTION_XMLNS(yytext, *driver.loc.back()); }
YY_BREAK
case 66:
YY_RULE_SETUP
#line 574 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_PARITY_ZERO_7_BIT(yytext, *driver.loc.back()); }
YY_BREAK
case 67:
YY_RULE_SETUP
#line 575 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_PARITY_ODD_7_BIT(yytext, *driver.loc.back()); }
YY_BREAK
case 68:
YY_RULE_SETUP
#line 576 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_PARITY_EVEN_7_BIT(yytext, *driver.loc.back()); }
YY_BREAK
case 69:
YY_RULE_SETUP
#line 577 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_SQL_HEX_DECODE(yytext, *driver.loc.back()); }
YY_BREAK
case 70:
YY_RULE_SETUP
#line 578 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_BASE_64_ENCODE(yytext, *driver.loc.back()); }
YY_BREAK
case 71:
YY_RULE_SETUP
#line 579 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_BASE_64_DECODE(yytext, *driver.loc.back()); }
YY_BREAK
case 72:
YY_RULE_SETUP
#line 580 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_BASE_64_DECODE_EXT(yytext, *driver.loc.back()); }
YY_BREAK
case 73:
YY_RULE_SETUP
#line 581 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_CMD_LINE(yytext, *driver.loc.back()); }
YY_BREAK
case 74:
YY_RULE_SETUP
#line 582 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_SHA1(yytext, *driver.loc.back()); }
YY_BREAK
case 75:
YY_RULE_SETUP
#line 583 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_MD5(yytext, *driver.loc.back()); }
YY_BREAK
case 76:
YY_RULE_SETUP
#line 584 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_ESCAPE_SEQ_DECODE(yytext, *driver.loc.back()); }
YY_BREAK
case 77:
YY_RULE_SETUP
#line 585 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_HEX_ENCODE(yytext, *driver.loc.back()); }
YY_BREAK
case 78:
YY_RULE_SETUP
#line 586 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_HEX_DECODE(yytext, *driver.loc.back()); }
YY_BREAK
case 79:
YY_RULE_SETUP
#line 587 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_LOWERCASE(yytext, *driver.loc.back()); }
YY_BREAK
case 80:
YY_RULE_SETUP
#line 588 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_UPPERCASE(yytext, *driver.loc.back()); }
YY_BREAK
case 81:
YY_RULE_SETUP
#line 589 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_URL_ENCODE(yytext, *driver.loc.back()); }
YY_BREAK
case 82:
YY_RULE_SETUP
#line 590 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_URL_DECODE_UNI(yytext, *driver.loc.back()); }
YY_BREAK
case 83:
YY_RULE_SETUP
#line 591 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_URL_DECODE(yytext, *driver.loc.back()); }
YY_BREAK
case 84:
YY_RULE_SETUP
#line 592 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_NONE(yytext, *driver.loc.back()); }
YY_BREAK
case 85:
YY_RULE_SETUP
#line 593 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_COMPRESS_WHITESPACE(yytext, *driver.loc.back()); }
YY_BREAK
case 86:
YY_RULE_SETUP
#line 594 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_REMOVE_WHITESPACE(yytext, *driver.loc.back()); }
YY_BREAK
case 87:
YY_RULE_SETUP
#line 595 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_REPLACE_NULLS(yytext, *driver.loc.back()); }
YY_BREAK
case 88:
YY_RULE_SETUP
#line 596 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_REMOVE_NULLS(yytext, *driver.loc.back()); }
YY_BREAK
case 89:
YY_RULE_SETUP
#line 597 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_HTML_ENTITY_DECODE(yytext, *driver.loc.back()); }
YY_BREAK
case 90:
YY_RULE_SETUP
#line 598 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_JS_DECODE(yytext, *driver.loc.back()); }
YY_BREAK
case 91:
YY_RULE_SETUP
#line 599 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_CSS_DECODE(yytext, *driver.loc.back()); }
YY_BREAK
case 92:
YY_RULE_SETUP
#line 600 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_TRIM(yytext, *driver.loc.back()); }
YY_BREAK
case 93:
YY_RULE_SETUP
#line 601 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_TRIM_LEFT(yytext, *driver.loc.back()); }
YY_BREAK
case 94:
YY_RULE_SETUP
#line 602 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_TRIM_RIGHT(yytext, *driver.loc.back()); }
YY_BREAK
case 95:
YY_RULE_SETUP
#line 603 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_NORMALISE_PATH_WIN(yytext, *driver.loc.back()); }
YY_BREAK
case 96:
YY_RULE_SETUP
#line 604 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_NORMALISE_PATH(yytext, *driver.loc.back()); }
YY_BREAK
case 97:
YY_RULE_SETUP
#line 605 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_LENGTH(yytext, *driver.loc.back()); }
YY_BREAK
case 98:
YY_RULE_SETUP
#line 606 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_UTF8_TO_UNICODE(yytext, *driver.loc.back()); }
YY_BREAK
case 99:
YY_RULE_SETUP
#line 607 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_REMOVE_COMMENTS_CHAR(yytext, *driver.loc.back()); }
YY_BREAK
case 100:
YY_RULE_SETUP
#line 608 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_REMOVE_COMMENTS(yytext, *driver.loc.back()); }
YY_BREAK
case 101:
YY_RULE_SETUP
#line 609 "seclang-scanner.ll"
{ return p::make_ACTION_TRANSFORMATION_REPLACE_COMMENTS(yytext, *driver.loc.back()); }
YY_BREAK
case 102:
YY_RULE_SETUP
#line 610 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTION_PREDICATE); return p::make_ACTION_LOG_DATA(yytext, *driver.loc.back()); }
YY_BREAK
case 103:
YY_RULE_SETUP
#line 612 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_DETC(yytext, *driver.loc.back()); }
YY_BREAK
case 104:
YY_RULE_SETUP
#line 613 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_OFF(yytext, *driver.loc.back()); }
YY_BREAK
case 105:
YY_RULE_SETUP
#line 614 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_ON(yytext, *driver.loc.back()); }
YY_BREAK
case 106:
/* rule 106 can match eol */
YY_RULE_SETUP
#line 615 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 107:
/* rule 107 can match eol */
YY_RULE_SETUP
#line 616 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 108:
YY_RULE_SETUP
#line 620 "seclang-scanner.ll"
{ return p::make_COMMA(*driver.loc.back()); }
YY_BREAK
case 109:
/* rule 109 can match eol */
YY_RULE_SETUP
#line 625 "seclang-scanner.ll"
{ BEGIN(INITIAL); yyless(yyleng); driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 110:
/* rule 110 can match eol */
YY_RULE_SETUP
#line 626 "seclang-scanner.ll"
{ BEGIN(INITIAL); yyless(yyleng); driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 111:
YY_RULE_SETUP
#line 631 "seclang-scanner.ll"
{ BEGIN(INITIAL); yyless(yyleng); }
YY_BREAK
case 112:
/* rule 112 can match eol */
YY_RULE_SETUP
#line 632 "seclang-scanner.ll"
{ BEGIN(INITIAL); yyless(1); }
YY_BREAK
case 113:
/* rule 113 can match eol */
YY_RULE_SETUP
#line 633 "seclang-scanner.ll"
{ BEGIN(INITIAL); driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 114:
YY_RULE_SETUP
#line 638 "seclang-scanner.ll"
{ BEGIN(INITIAL); yyless(yyleng); p::make_NEW_LINE(*driver.loc.back()); }
YY_BREAK
case 115:
/* rule 115 can match eol */
YY_RULE_SETUP
#line 639 "seclang-scanner.ll"
{ BEGIN(INITIAL); yyless(1); }
YY_BREAK
case 116:
/* rule 116 can match eol */
YY_RULE_SETUP
#line 640 "seclang-scanner.ll"
{ BEGIN(INITIAL); driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 117:
YY_RULE_SETUP
#line 645 "seclang-scanner.ll"
{ BEGIN(LEXING_ERROR_ACTION); yyless(0); }
YY_BREAK
case 118:
YY_RULE_SETUP
#line 650 "seclang-scanner.ll"
{ BEGIN(ACTION_PREDICATE_ENDS_WITH_QUOTE); }
YY_BREAK
case 119:
YY_RULE_SETUP
#line 651 "seclang-scanner.ll"
{ BEGIN(ACTION_PREDICATE_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 120:
YY_RULE_SETUP
#line 652 "seclang-scanner.ll"
{ BEGIN(ACTION_PREDICATE_ENDS_WITH_COMMA_OR_DOUBLE_QUOTE); yyless(0); }
YY_BREAK
case 121:
/* rule 121 can match eol */
YY_RULE_SETUP
#line 657 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 122:
/* rule 122 can match eol */
YY_RULE_SETUP
#line 658 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 123:
YY_RULE_SETUP
#line 662 "seclang-scanner.ll"
{ yyless(1); BEGIN_PREVIOUS(); }
YY_BREAK
case 124:
YY_RULE_SETUP
#line 663 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); }
YY_BREAK
case 125:
YY_RULE_SETUP
#line 664 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); }
YY_BREAK
case 126:
YY_RULE_SETUP
#line 668 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); yyless(yyleng); }
YY_BREAK
case 127:
/* rule 127 can match eol */
YY_RULE_SETUP
#line 669 "seclang-scanner.ll"
{ return p::make_FREE_TEXT_QUOTE_MACRO_EXPANSION(yytext, *driver.loc.back()); }
YY_BREAK
case 128:
YY_RULE_SETUP
#line 673 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); yyless(yyleng); }
YY_BREAK
case 129:
/* rule 129 can match eol */
YY_RULE_SETUP
#line 674 "seclang-scanner.ll"
{ return p::make_FREE_TEXT_QUOTE_MACRO_EXPANSION(yytext, *driver.loc.back()); }
YY_BREAK
case 130:
YY_RULE_SETUP
#line 678 "seclang-scanner.ll"
{ yyless(0); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 131:
YY_RULE_SETUP
#line 679 "seclang-scanner.ll"
{ yyless(0); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE);}
YY_BREAK
case 132:
/* rule 132 can match eol */
YY_RULE_SETUP
#line 680 "seclang-scanner.ll"
{ return p::make_FREE_TEXT_QUOTE_MACRO_EXPANSION(yytext, *driver.loc.back()); }
YY_BREAK
case 133:
YY_RULE_SETUP
#line 684 "seclang-scanner.ll"
{ BEGINX(EXPECTING_ACTION_PREDICATE_VARIABLE); }
YY_BREAK
case 134:
YY_RULE_SETUP
#line 685 "seclang-scanner.ll"
{ BEGIN(LEXING_ERROR_VARIABLE); yyless(0); }
YY_BREAK
case 135:
YY_RULE_SETUP
#line 689 "seclang-scanner.ll"
{ return p::make_NOT(*driver.loc.back()); }
YY_BREAK
case 136:
/* rule 136 can match eol */
YY_RULE_SETUP
#line 690 "seclang-scanner.ll"
{ BEGIN_ACTION_OPERATION(); yyless(0); }
YY_BREAK
case 137:
YY_RULE_SETUP
#line 695 "seclang-scanner.ll"
{ BEGIN_ACTION_WAITING_CONTENT(); return p::make_SETVAR_OPERATION_EQUALS_PLUS(*driver.loc.back()); }
YY_BREAK
case 138:
YY_RULE_SETUP
#line 696 "seclang-scanner.ll"
{ BEGIN_ACTION_WAITING_CONTENT(); return p::make_SETVAR_OPERATION_EQUALS_MINUS(*driver.loc.back()); }
YY_BREAK
case 139:
YY_RULE_SETUP
#line 697 "seclang-scanner.ll"
{ BEGIN_ACTION_WAITING_CONTENT(); return p::make_SETVAR_OPERATION_EQUALS(*driver.loc.back()); }
YY_BREAK
case 140:
/* rule 140 can match eol */
YY_RULE_SETUP
#line 701 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); yyless(0);}
YY_BREAK
case 141:
YY_RULE_SETUP
#line 705 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 142:
/* rule 142 can match eol */
YY_RULE_SETUP
#line 706 "seclang-scanner.ll"
{ BEGIN(LEXING_ERROR_ACTION); yyless(0); }
YY_BREAK
case 143:
YY_RULE_SETUP
#line 714 "seclang-scanner.ll"
{ BEGINX(EXPECTING_ACTION_PREDICATE_VARIABLE); }
YY_BREAK
case 144:
/* rule 144 can match eol */
YY_RULE_SETUP
#line 719 "seclang-scanner.ll"
{ return p::make_FREE_TEXT_QUOTE_MACRO_EXPANSION(yytext, *driver.loc.back()); }
YY_BREAK
case 145:
/* rule 145 can match eol */
YY_RULE_SETUP
#line 720 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); yyless(0); }
YY_BREAK
case 146:
YY_RULE_SETUP
#line 725 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 147:
/* rule 147 can match eol */
YY_RULE_SETUP
#line 726 "seclang-scanner.ll"
{ return p::make_FREE_TEXT_QUOTE_MACRO_EXPANSION(yytext, *driver.loc.back()); }
YY_BREAK
case 148:
/* rule 148 can match eol */
YY_RULE_SETUP
#line 727 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); yyless(0); }
YY_BREAK
case YY_STATE_EOF(FINISH_ACTIONS):
#line 735 "seclang-scanner.ll"
{ BEGIN(INITIAL); yyless(0); p::make_NEW_LINE(*driver.loc.back()); }
YY_BREAK
case 149:
YY_RULE_SETUP
#line 736 "seclang-scanner.ll"
{ BEGIN(INITIAL); }
YY_BREAK
case 150:
/* rule 150 can match eol */
YY_RULE_SETUP
#line 739 "seclang-scanner.ll"
{ return p::make_CONFIG_COMPONENT_SIG(strchr(yytext, ' ') + 2, *driver.loc.back()); }
YY_BREAK
case 151:
/* rule 151 can match eol */
YY_RULE_SETUP
#line 740 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_SERVER_SIG(strchr(yytext, ' ') + 2, *driver.loc.back()); }
YY_BREAK
case 152:
/* rule 152 can match eol */
YY_RULE_SETUP
#line 741 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_WEB_APP_ID(parserSanitizer(strchr(yytext, ' ') + 2), *driver.loc.back()); }
YY_BREAK
case 153:
YY_RULE_SETUP
#line 742 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_WEB_APP_ID(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 154:
YY_RULE_SETUP
#line 743 "seclang-scanner.ll"
{ return p::make_CONFIG_CONTENT_INJECTION(*driver.loc.back()); }
YY_BREAK
case 155:
YY_RULE_SETUP
#line 744 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_DIR_MOD(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 156:
YY_RULE_SETUP
#line 745 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_DIR_MOD(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 157:
YY_RULE_SETUP
#line 746 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_DIR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 158:
YY_RULE_SETUP
#line 747 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_DIR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 159:
YY_RULE_SETUP
#line 748 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_ARGUMENT_SEPARATOR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 160:
YY_RULE_SETUP
#line 749 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_ARGUMENT_SEPARATOR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 161:
YY_RULE_SETUP
#line 750 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_ENG(yytext, *driver.loc.back()); }
YY_BREAK
case 162:
YY_RULE_SETUP
#line 751 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_FLE_MOD(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 163:
YY_RULE_SETUP
#line 752 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_LOG2(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 164:
YY_RULE_SETUP
#line 753 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_LOG_P(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 165:
YY_RULE_SETUP
#line 754 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_LOG_P(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 166:
YY_RULE_SETUP
#line 755 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_LOG(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 167:
YY_RULE_SETUP
#line 756 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_LOG_FMT(*driver.loc.back()); }
YY_BREAK
case 168:
YY_RULE_SETUP
#line 757 "seclang-scanner.ll"
{ return p::make_JSON(*driver.loc.back()); }
YY_BREAK
case 169:
YY_RULE_SETUP
#line 758 "seclang-scanner.ll"
{ return p::make_NATIVE(*driver.loc.back()); }
YY_BREAK
case 170:
YY_RULE_SETUP
#line 759 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_LOG(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 171:
YY_RULE_SETUP
#line 760 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_STS(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 172:
YY_RULE_SETUP
#line 761 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_STS(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 173:
YY_RULE_SETUP
#line 762 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_AUDIT_TPE(yytext, *driver.loc.back()); }
YY_BREAK
case 174:
YY_RULE_SETUP
#line 765 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_DEBUG_LOG(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 175:
YY_RULE_SETUP
#line 766 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_DEBUG_LOG(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 176:
YY_RULE_SETUP
#line 767 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_DEBUG_LVL(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 177:
YY_RULE_SETUP
#line 768 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_GEO_DB(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 178:
YY_RULE_SETUP
#line 769 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_PCRE_MATCH_LIMIT_RECURSION(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 179:
YY_RULE_SETUP
#line 770 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_PCRE_MATCH_LIMIT(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 180:
YY_RULE_SETUP
#line 771 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_ARGS_LIMIT(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 181:
YY_RULE_SETUP
#line 772 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_REQ_BODY_IN_MEMORY_LIMIT(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 182:
YY_RULE_SETUP
#line 774 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_REQ_BODY_LIMIT_ACTION(yytext, *driver.loc.back()); }
YY_BREAK
case 183:
YY_RULE_SETUP
#line 775 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_REQ_BODY_LIMIT(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 184:
YY_RULE_SETUP
#line 776 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_REQ_BODY_NO_FILES_LIMIT(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 185:
YY_RULE_SETUP
#line 777 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_REQ_BODY(yytext, *driver.loc.back()); }
YY_BREAK
case 186:
YY_RULE_SETUP
#line 778 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_RES_BODY_LIMIT_ACTION(yytext, *driver.loc.back()); }
YY_BREAK
case 187:
YY_RULE_SETUP
#line 779 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_RES_BODY_LIMIT(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 188:
YY_RULE_SETUP
#line 780 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_RES_BODY(yytext, *driver.loc.back()); }
YY_BREAK
case 189:
YY_RULE_SETUP
#line 781 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_RULE_ENG(yytext, *driver.loc.back()); }
YY_BREAK
case 190:
YY_RULE_SETUP
#line 782 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_SEC_MARKER(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 191:
YY_RULE_SETUP
#line 783 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_SEC_MARKER(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 192:
YY_RULE_SETUP
#line 784 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_UNICODE_MAP_FILE(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 193:
YY_RULE_SETUP
#line 785 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_RULE_REMOVE_BY_ID(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 194:
YY_RULE_SETUP
#line 786 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_RULE_REMOVE_BY_MSG(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 195:
YY_RULE_SETUP
#line 787 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_RULE_REMOVE_BY_MSG(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 196:
YY_RULE_SETUP
#line 788 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_RULE_REMOVE_BY_TAG(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 197:
YY_RULE_SETUP
#line 789 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_RULE_REMOVE_BY_TAG(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 198:
YY_RULE_SETUP
#line 790 "seclang-scanner.ll"
{ state_variable_from = 1; BEGIN(TRANSACTION_TO_VARIABLE); return p::make_CONFIG_SEC_RULE_UPDATE_TARGET_BY_TAG(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 199:
YY_RULE_SETUP
#line 791 "seclang-scanner.ll"
{ state_variable_from = 1; BEGIN(TRANSACTION_TO_VARIABLE); return p::make_CONFIG_SEC_RULE_UPDATE_TARGET_BY_TAG(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 200:
YY_RULE_SETUP
#line 792 "seclang-scanner.ll"
{ state_variable_from = 1; BEGIN(TRANSACTION_TO_VARIABLE); return p::make_CONFIG_SEC_RULE_UPDATE_TARGET_BY_MSG(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 201:
YY_RULE_SETUP
#line 793 "seclang-scanner.ll"
{ state_variable_from = 1; BEGIN(TRANSACTION_TO_VARIABLE); return p::make_CONFIG_SEC_RULE_UPDATE_TARGET_BY_MSG(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 202:
YY_RULE_SETUP
#line 794 "seclang-scanner.ll"
{ state_variable_from = 1; BEGIN(TRANSACTION_TO_VARIABLE); return p::make_CONFIG_SEC_RULE_UPDATE_TARGET_BY_ID(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 203:
YY_RULE_SETUP
#line 795 "seclang-scanner.ll"
{ state_variable_from = 1; BEGIN(TRANSACTION_TO_VARIABLE); return p::make_CONFIG_SEC_RULE_UPDATE_TARGET_BY_ID(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 204:
YY_RULE_SETUP
#line 796 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_CONFIG_SEC_RULE_UPDATE_ACTION_BY_ID(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 205:
YY_RULE_SETUP
#line 797 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_CONFIG_SEC_RULE_UPDATE_ACTION_BY_ID(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 206:
YY_RULE_SETUP
#line 798 "seclang-scanner.ll"
{ return p::make_CONFIG_UPDLOAD_KEEP_FILES(yytext, *driver.loc.back()); }
YY_BREAK
case 207:
YY_RULE_SETUP
#line 799 "seclang-scanner.ll"
{ return p::make_CONFIG_UPDLOAD_SAVE_TMP_FILES(yytext, *driver.loc.back()); }
YY_BREAK
case 208:
YY_RULE_SETUP
#line 800 "seclang-scanner.ll"
{ return p::make_CONFIG_UPLOAD_DIR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 209:
YY_RULE_SETUP
#line 801 "seclang-scanner.ll"
{ return p::make_CONFIG_UPLOAD_DIR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 210:
YY_RULE_SETUP
#line 802 "seclang-scanner.ll"
{ return p::make_CONFIG_UPLOAD_FILE_LIMIT(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 211:
YY_RULE_SETUP
#line 803 "seclang-scanner.ll"
{ return p::make_CONFIG_UPLOAD_FILE_MODE(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 212:
YY_RULE_SETUP
#line 804 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_ABORT(yytext, *driver.loc.back()); }
YY_BREAK
case 213:
YY_RULE_SETUP
#line 805 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_DETC(yytext, *driver.loc.back()); }
YY_BREAK
case 214:
YY_RULE_SETUP
#line 806 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_HTTPS(yytext, *driver.loc.back()); }
YY_BREAK
case 215:
YY_RULE_SETUP
#line 807 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_OFF(yytext, *driver.loc.back()); }
YY_BREAK
case 216:
YY_RULE_SETUP
#line 808 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_ON(yytext, *driver.loc.back()); }
YY_BREAK
case 217:
YY_RULE_SETUP
#line 809 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_PARALLEL(yytext, *driver.loc.back()); }
YY_BREAK
case 218:
YY_RULE_SETUP
#line 810 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_PROCESS_PARTIAL(yytext, *driver.loc.back()); }
YY_BREAK
case 219:
YY_RULE_SETUP
#line 811 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_REJECT(yytext, *driver.loc.back()); }
YY_BREAK
case 220:
YY_RULE_SETUP
#line 812 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_RELEVANT_ONLY(yytext, *driver.loc.back()); }
YY_BREAK
case 221:
YY_RULE_SETUP
#line 813 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_SERIAL(yytext, *driver.loc.back()); }
YY_BREAK
case 222:
YY_RULE_SETUP
#line 814 "seclang-scanner.ll"
{ return p::make_CONFIG_VALUE_WARN(yytext, *driver.loc.back()); }
YY_BREAK
case 223:
YY_RULE_SETUP
#line 815 "seclang-scanner.ll"
{ return p::make_CONFIG_XML_EXTERNAL_ENTITY(yytext, *driver.loc.back()); }
YY_BREAK
case 224:
YY_RULE_SETUP
#line 816 "seclang-scanner.ll"
{ return p::make_CONGIG_DIR_RESPONSE_BODY_MP(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 225:
YY_RULE_SETUP
#line 817 "seclang-scanner.ll"
{ return p::make_CONGIG_DIR_RESPONSE_BODY_MP_CLEAR(*driver.loc.back()); }
YY_BREAK
case 226:
YY_RULE_SETUP
#line 818 "seclang-scanner.ll"
{ return p::make_CONGIG_DIR_SEC_ARG_SEP(yytext, *driver.loc.back()); }
YY_BREAK
case 227:
YY_RULE_SETUP
#line 819 "seclang-scanner.ll"
{ return p::make_CONGIG_DIR_SEC_COOKIE_FORMAT(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 228:
YY_RULE_SETUP
#line 820 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_COOKIEV0_SEPARATOR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 229:
YY_RULE_SETUP
#line 821 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_COOKIEV0_SEPARATOR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 230:
YY_RULE_SETUP
#line 822 "seclang-scanner.ll"
{ return p::make_CONGIG_DIR_SEC_DATA_DIR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 231:
YY_RULE_SETUP
#line 823 "seclang-scanner.ll"
{ return p::make_CONGIG_DIR_SEC_DATA_DIR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 232:
YY_RULE_SETUP
#line 824 "seclang-scanner.ll"
{ return p::make_CONGIG_DIR_SEC_STATUS_ENGINE(yytext, *driver.loc.back()); }
YY_BREAK
case 233:
YY_RULE_SETUP
#line 825 "seclang-scanner.ll"
{ return p::make_CONGIG_DIR_SEC_TMP_DIR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 234:
YY_RULE_SETUP
#line 826 "seclang-scanner.ll"
{ return p::make_CONGIG_DIR_SEC_TMP_DIR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 235:
YY_RULE_SETUP
#line 827 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_DIRECTIVE_TO_ACTIONS); return p::make_DIRECTIVE_SECRULESCRIPT(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 236:
YY_RULE_SETUP
#line 828 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_DIRECTIVE_TO_ACTIONS); return p::make_DIRECTIVE_SECRULESCRIPT(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 237:
YY_RULE_SETUP
#line 829 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_CACHE_TRANSFORMATIONS(yytext, *driver.loc.back()); }
YY_BREAK
case 238:
YY_RULE_SETUP
#line 830 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_CHROOT_DIR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 239:
YY_RULE_SETUP
#line 831 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_CHROOT_DIR(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 240:
YY_RULE_SETUP
#line 832 "seclang-scanner.ll"
{ return p::make_CONFIG_CONN_ENGINE(yytext, *driver.loc.back()); }
YY_BREAK
case 241:
YY_RULE_SETUP
#line 833 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_HASH_ENGINE(yytext, *driver.loc.back()); }
YY_BREAK
case 242:
YY_RULE_SETUP
#line 834 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_HASH_KEY(yytext, *driver.loc.back()); }
YY_BREAK
case 243:
YY_RULE_SETUP
#line 835 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_HASH_PARAM(yytext, *driver.loc.back()); }
YY_BREAK
case 244:
YY_RULE_SETUP
#line 836 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_HASH_METHOD_RX(yytext, *driver.loc.back()); }
YY_BREAK
case 245:
YY_RULE_SETUP
#line 837 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_HASH_METHOD_PM(yytext, *driver.loc.back()); }
YY_BREAK
case 246:
YY_RULE_SETUP
#line 838 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_GSB_DB(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 247:
YY_RULE_SETUP
#line 839 "seclang-scanner.ll"
{ return p::make_CONFIG_DIR_GSB_DB(parserSanitizer(strchr(yytext, ' ') + 1), *driver.loc.back()); }
YY_BREAK
case 248:
YY_RULE_SETUP
#line 840 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_GUARDIAN_LOG(yytext, *driver.loc.back()); }
YY_BREAK
case 249:
YY_RULE_SETUP
#line 841 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_INTERCEPT_ON_ERROR(yytext, *driver.loc.back()); }
YY_BREAK
case 250:
YY_RULE_SETUP
#line 842 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_CONN_R_STATE_LIMIT(yytext, *driver.loc.back()); }
YY_BREAK
case 251:
YY_RULE_SETUP
#line 843 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_CONN_W_STATE_LIMIT(yytext, *driver.loc.back()); }
YY_BREAK
case 252:
YY_RULE_SETUP
#line 844 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_SENSOR_ID(yytext, *driver.loc.back()); }
YY_BREAK
case 253:
YY_RULE_SETUP
#line 845 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_RULE_INHERITANCE(yytext, *driver.loc.back()); }
YY_BREAK
case 254:
YY_RULE_SETUP
#line 846 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_RULE_PERF_TIME(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 255:
YY_RULE_SETUP
#line 847 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_STREAM_IN_BODY_INSPECTION(yytext, *driver.loc.back()); }
YY_BREAK
case 256:
YY_RULE_SETUP
#line 848 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_STREAM_OUT_BODY_INSPECTION(yytext, *driver.loc.back()); }
YY_BREAK
case 257:
YY_RULE_SETUP
#line 849 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_DISABLE_BACKEND_COMPRESS(yytext, *driver.loc.back()); }
YY_BREAK
case 258:
YY_RULE_SETUP
#line 851 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_TO_VARIABLE); return p::make_DIRECTIVE(yytext, *driver.loc.back()); }
YY_BREAK
case 259:
YY_RULE_SETUP
#line 852 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_DIRECTIVE_TO_ACTIONS); return p::make_CONFIG_DIR_SEC_DEFAULT_ACTION(yytext, *driver.loc.back()); }
YY_BREAK
case 260:
YY_RULE_SETUP
#line 853 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_DIRECTIVE_TO_ACTIONS); return p::make_CONFIG_DIR_SEC_ACTION(yytext, *driver.loc.back()); }
YY_BREAK
case 261:
YY_RULE_SETUP
#line 855 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_REMOTE_RULES_FAIL_ACTION(yytext, *driver.loc.back()); }
YY_BREAK
case 262:
YY_RULE_SETUP
#line 856 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_COLLECTION_TIMEOUT(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 263:
YY_RULE_SETUP
#line 857 "seclang-scanner.ll"
{ return p::make_CONFIG_SEC_HTTP_BLKEY(strchr(yytext, ' ') + 1, *driver.loc.back()); }
YY_BREAK
case 264:
/* rule 264 can match eol */
YY_RULE_SETUP
#line 858 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 265:
/* rule 265 can match eol */
YY_RULE_SETUP
#line 859 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(COMMENT); }
YY_BREAK
case 266:
/* rule 266 can match eol */
YY_RULE_SETUP
#line 860 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(COMMENT); }
YY_BREAK
case 267:
YY_RULE_SETUP
#line 861 "seclang-scanner.ll"
{ driver.loc.back()->step(); /* comment, just ignore. */ }
YY_BREAK
case 268:
YY_RULE_SETUP
#line 862 "seclang-scanner.ll"
{ driver.loc.back()->step(); /* carriage return, just ignore. */}
YY_BREAK
case 269:
YY_RULE_SETUP
#line 863 "seclang-scanner.ll"
{ return p::make_QUOTATION_MARK(yytext, *driver.loc.back()); }
YY_BREAK
case 270:
YY_RULE_SETUP
#line 864 "seclang-scanner.ll"
{ return p::make_COMMA(*driver.loc.back()); }
YY_BREAK
case 271:
YY_RULE_SETUP
#line 867 "seclang-scanner.ll"
{ BEGIN(EXPECTING_VARIABLE); }
YY_BREAK
case 272:
YY_RULE_SETUP
#line 871 "seclang-scanner.ll"
{ return p::make_PIPE(*driver.loc.back()); }
YY_BREAK
case 273:
YY_RULE_SETUP
#line 872 "seclang-scanner.ll"
{ return p::make_PIPE(*driver.loc.back()); }
YY_BREAK
case 274:
YY_RULE_SETUP
#line 873 "seclang-scanner.ll"
{ return p::make_QUOTATION_MARK(yytext, *driver.loc.back()); }
YY_BREAK
case 275:
YY_RULE_SETUP
#line 874 "seclang-scanner.ll"
{ return p::make_VAR_EXCLUSION(*driver.loc.back()); }
YY_BREAK
case 276:
YY_RULE_SETUP
#line 875 "seclang-scanner.ll"
{ return p::make_VAR_COUNT(*driver.loc.back()); }
YY_BREAK
case 277:
YY_RULE_SETUP
#line 879 "seclang-scanner.ll"
{ if (state_variable_from == 0) { BEGIN(EXPECTING_OPERATOR_ENDS_WITH_SPACE); } else { state_variable_from = 0; BEGIN(INITIAL);} }
YY_BREAK
case 278:
YY_RULE_SETUP
#line 880 "seclang-scanner.ll"
{ if (state_variable_from == 0) { BEGIN(EXPECTING_OPERATOR_ENDS_WITH_QUOTE); } else { state_variable_from = 0; BEGIN(INITIAL);} }
YY_BREAK
case 279:
/* rule 279 can match eol */
YY_RULE_SETUP
#line 881 "seclang-scanner.ll"
{ if (state_variable_from == 0) { BEGIN(EXPECTING_OPERATOR_ENDS_WITH_SPACE); } else { state_variable_from = 0; BEGIN(INITIAL);} }
YY_BREAK
case 280:
/* rule 280 can match eol */
YY_RULE_SETUP
#line 882 "seclang-scanner.ll"
{ if (state_variable_from == 0) { BEGIN(EXPECTING_OPERATOR_ENDS_WITH_QUOTE); } else { state_variable_from = 0; BEGIN(INITIAL);} }
YY_BREAK
case 281:
/* rule 281 can match eol */
YY_RULE_SETUP
#line 883 "seclang-scanner.ll"
{ if (state_variable_from == 0) { BEGIN(EXPECTING_OPERATOR_ENDS_WITH_SPACE); } else { state_variable_from = 0; BEGIN(INITIAL);} }
YY_BREAK
case 282:
/* rule 282 can match eol */
YY_RULE_SETUP
#line 884 "seclang-scanner.ll"
{ if (state_variable_from == 0) { BEGIN(EXPECTING_OPERATOR_ENDS_WITH_QUOTE); } else { state_variable_from = 0; BEGIN(INITIAL);} }
YY_BREAK
case 283:
YY_RULE_SETUP
#line 888 "seclang-scanner.ll"
{ }
YY_BREAK
case 284:
YY_RULE_SETUP
#line 889 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 285:
/* rule 285 can match eol */
YY_RULE_SETUP
#line 890 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 286:
/* rule 286 can match eol */
YY_RULE_SETUP
#line 891 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 287:
YY_RULE_SETUP
#line 896 "seclang-scanner.ll"
{ BEGIN(LEXING_ERROR_VARIABLE); yyless(0); }
YY_BREAK
case 288:
YY_RULE_SETUP
#line 897 "seclang-scanner.ll"
{ return p::make_VARIABLE_ARGS_COMBINED_SIZE(*driver.loc.back()); }
YY_BREAK
case 289:
YY_RULE_SETUP
#line 898 "seclang-scanner.ll"
{ return p::make_VARIABLE_ARGS_GET_NAMES(*driver.loc.back()); }
YY_BREAK
case 290:
YY_RULE_SETUP
#line 899 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_ARGS_GET_NAMES(*driver.loc.back()); }
YY_BREAK
case 291:
YY_RULE_SETUP
#line 900 "seclang-scanner.ll"
{ return p::make_VARIABLE_ARGS_NAMES(*driver.loc.back()); }
YY_BREAK
case 292:
YY_RULE_SETUP
#line 901 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_ARGS_NAMES(*driver.loc.back()); }
YY_BREAK
case 293:
YY_RULE_SETUP
#line 902 "seclang-scanner.ll"
{ return p::make_VARIABLE_ARGS_POST_NAMES(*driver.loc.back()); }
YY_BREAK
case 294:
YY_RULE_SETUP
#line 903 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_ARGS_POST_NAMES(*driver.loc.back()); }
YY_BREAK
case 295:
YY_RULE_SETUP
#line 904 "seclang-scanner.ll"
{ return p::make_VARIABLE_AUTH_TYPE(*driver.loc.back()); }
YY_BREAK
case 296:
YY_RULE_SETUP
#line 905 "seclang-scanner.ll"
{ return p::make_VARIABLE_FILES_COMBINED_SIZE(*driver.loc.back()); }
YY_BREAK
case 297:
YY_RULE_SETUP
#line 906 "seclang-scanner.ll"
{ return p::make_VARIABLE_FULL_REQUEST_LENGTH(*driver.loc.back()); }
YY_BREAK
case 298:
YY_RULE_SETUP
#line 907 "seclang-scanner.ll"
{ return p::make_VARIABLE_FULL_REQUEST(*driver.loc.back()); }
YY_BREAK
case 299:
YY_RULE_SETUP
#line 908 "seclang-scanner.ll"
{ return p::make_VARIABLE_INBOUND_DATA_ERROR(*driver.loc.back()); }
YY_BREAK
case 300:
YY_RULE_SETUP
#line 909 "seclang-scanner.ll"
{ return p::make_VARIABLE_MATCHED_VAR_NAME(*driver.loc.back()); }
YY_BREAK
case 301:
YY_RULE_SETUP
#line 910 "seclang-scanner.ll"
{ return p::make_VARIABLE_MATCHED_VAR(*driver.loc.back()); }
YY_BREAK
case 302:
YY_RULE_SETUP
#line 911 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_BOUNDARY_QUOTED(*driver.loc.back()); }
YY_BREAK
case 303:
YY_RULE_SETUP
#line 912 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_BOUNDARY_WHITESPACE(*driver.loc.back()); }
YY_BREAK
case 304:
YY_RULE_SETUP
#line 913 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_CRLF_LF_LINES(*driver.loc.back()); }
YY_BREAK
case 305:
YY_RULE_SETUP
#line 914 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_DATA_AFTER(*driver.loc.back()); }
YY_BREAK
case 306:
YY_RULE_SETUP
#line 915 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_DATA_BEFORE(*driver.loc.back()); }
YY_BREAK
case 307:
YY_RULE_SETUP
#line 916 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_FILE_LIMIT_EXCEEDED(*driver.loc.back()); }
YY_BREAK
case 308:
YY_RULE_SETUP
#line 917 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_MULTIPART_FILENAME(*driver.loc.back()); }
YY_BREAK
case 309:
YY_RULE_SETUP
#line 918 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_FILENAME(*driver.loc.back()); }
YY_BREAK
case 310:
YY_RULE_SETUP
#line 919 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_HEADER_FOLDING(*driver.loc.back()); }
YY_BREAK
case 311:
YY_RULE_SETUP
#line 920 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_HEADER_FOLDING(*driver.loc.back()); }
YY_BREAK
case 312:
YY_RULE_SETUP
#line 921 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_INVALID_HEADER_FOLDING(*driver.loc.back()); }
YY_BREAK
case 313:
YY_RULE_SETUP
#line 922 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_INVALID_PART(*driver.loc.back()); }
YY_BREAK
case 314:
YY_RULE_SETUP
#line 923 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_INVALID_QUOTING(*driver.loc.back()); }
YY_BREAK
case 315:
YY_RULE_SETUP
#line 924 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_LF_LINE(*driver.loc.back()); }
YY_BREAK
case 316:
YY_RULE_SETUP
#line 925 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_MISSING_SEMICOLON(*driver.loc.back()); }
YY_BREAK
case 317:
YY_RULE_SETUP
#line 926 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_SEMICOLON_MISSING(*driver.loc.back()); }
YY_BREAK
case 318:
YY_RULE_SETUP
#line 927 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_MULTIPART_NAME(*driver.loc.back()); }
YY_BREAK
case 319:
YY_RULE_SETUP
#line 928 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_NAME(*driver.loc.back()); }
YY_BREAK
case 320:
YY_RULE_SETUP
#line 929 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_STRICT_ERROR(*driver.loc.back()); }
YY_BREAK
case 321:
YY_RULE_SETUP
#line 930 "seclang-scanner.ll"
{ return p::make_VARIABLE_MULTIPART_UNMATCHED_BOUNDARY(*driver.loc.back()); }
YY_BREAK
case 322:
YY_RULE_SETUP
#line 931 "seclang-scanner.ll"
{ return p::make_VARIABLE_OUTBOUND_DATA_ERROR(*driver.loc.back()); }
YY_BREAK
case 323:
YY_RULE_SETUP
#line 932 "seclang-scanner.ll"
{ return p::make_VARIABLE_PATH_INFO(*driver.loc.back()); }
YY_BREAK
case 324:
YY_RULE_SETUP
#line 933 "seclang-scanner.ll"
{ return p::make_VARIABLE_QUERY_STRING(*driver.loc.back()); }
YY_BREAK
case 325:
YY_RULE_SETUP
#line 934 "seclang-scanner.ll"
{ return p::make_VARIABLE_REMOTE_ADDR(*driver.loc.back()); }
YY_BREAK
case 326:
YY_RULE_SETUP
#line 935 "seclang-scanner.ll"
{ return p::make_VARIABLE_REMOTE_HOST(*driver.loc.back()); }
YY_BREAK
case 327:
YY_RULE_SETUP
#line 936 "seclang-scanner.ll"
{ return p::make_VARIABLE_REMOTE_PORT(*driver.loc.back()); }
YY_BREAK
case 328:
YY_RULE_SETUP
#line 937 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQBODY_ERROR_MSG(*driver.loc.back()); }
YY_BREAK
case 329:
YY_RULE_SETUP
#line 938 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQBODY_ERROR(*driver.loc.back()); }
YY_BREAK
case 330:
YY_RULE_SETUP
#line 939 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQBODY_PROCESSOR_ERROR_MSG(*driver.loc.back()); }
YY_BREAK
case 331:
YY_RULE_SETUP
#line 940 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQBODY_PROCESSOR_ERROR(*driver.loc.back()); }
YY_BREAK
case 332:
YY_RULE_SETUP
#line 941 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQBODY_PROCESSOR(*driver.loc.back()); }
YY_BREAK
case 333:
YY_RULE_SETUP
#line 942 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQUEST_BASENAME(*driver.loc.back()); }
YY_BREAK
case 334:
YY_RULE_SETUP
#line 943 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQUEST_BODY_LENGTH(*driver.loc.back()); }
YY_BREAK
case 335:
YY_RULE_SETUP
#line 944 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQUEST_BODY(*driver.loc.back()); }
YY_BREAK
case 336:
YY_RULE_SETUP
#line 945 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQUEST_FILE_NAME(*driver.loc.back()); }
YY_BREAK
case 337:
YY_RULE_SETUP
#line 946 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQUEST_HEADERS_NAMES(*driver.loc.back()); }
YY_BREAK
case 338:
YY_RULE_SETUP
#line 947 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_REQUEST_HEADERS_NAMES(*driver.loc.back()); }
YY_BREAK
case 339:
YY_RULE_SETUP
#line 948 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQUEST_LINE(*driver.loc.back()); }
YY_BREAK
case 340:
YY_RULE_SETUP
#line 949 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQUEST_METHOD(*driver.loc.back()); }
YY_BREAK
case 341:
YY_RULE_SETUP
#line 950 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQUEST_PROTOCOL(*driver.loc.back()); }
YY_BREAK
case 342:
YY_RULE_SETUP
#line 951 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQUEST_URI_RAW(*driver.loc.back()); }
YY_BREAK
case 343:
YY_RULE_SETUP
#line 952 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQUEST_URI(*driver.loc.back()); }
YY_BREAK
case 344:
YY_RULE_SETUP
#line 953 "seclang-scanner.ll"
{ return p::make_VARIABLE_RESPONSE_BODY(*driver.loc.back()); }
YY_BREAK
case 345:
YY_RULE_SETUP
#line 954 "seclang-scanner.ll"
{ return p::make_VARIABLE_RESPONSE_CONTENT_LENGTH(*driver.loc.back()); }
YY_BREAK
case 346:
YY_RULE_SETUP
#line 955 "seclang-scanner.ll"
{ return p::make_VARIABLE_RESPONSE_CONTENT_TYPE(*driver.loc.back()); }
YY_BREAK
case 347:
YY_RULE_SETUP
#line 956 "seclang-scanner.ll"
{ return p::make_VARIABLE_RESPONSE_HEADERS_NAMES(*driver.loc.back()); }
YY_BREAK
case 348:
YY_RULE_SETUP
#line 957 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_RESPONSE_HEADERS_NAMES(*driver.loc.back()); }
YY_BREAK
case 349:
YY_RULE_SETUP
#line 958 "seclang-scanner.ll"
{ return p::make_VARIABLE_RESPONSE_PROTOCOL(*driver.loc.back()); }
YY_BREAK
case 350:
YY_RULE_SETUP
#line 959 "seclang-scanner.ll"
{ return p::make_VARIABLE_RESPONSE_STATUS(*driver.loc.back()); }
YY_BREAK
case 351:
YY_RULE_SETUP
#line 960 "seclang-scanner.ll"
{ return p::make_VARIABLE_SERVER_ADDR(*driver.loc.back()); }
YY_BREAK
case 352:
YY_RULE_SETUP
#line 961 "seclang-scanner.ll"
{ return p::make_VARIABLE_SERVER_NAME(*driver.loc.back()); }
YY_BREAK
case 353:
YY_RULE_SETUP
#line 962 "seclang-scanner.ll"
{ return p::make_VARIABLE_SERVER_PORT(*driver.loc.back()); }
YY_BREAK
case 354:
YY_RULE_SETUP
#line 963 "seclang-scanner.ll"
{ return p::make_VARIABLE_SESSION_ID(*driver.loc.back()); }
YY_BREAK
case 355:
YY_RULE_SETUP
#line 964 "seclang-scanner.ll"
{ return p::make_VARIABLE_UNIQUE_ID(*driver.loc.back()); }
YY_BREAK
case 356:
YY_RULE_SETUP
#line 965 "seclang-scanner.ll"
{ return p::make_VARIABLE_URL_ENCODED_ERROR(*driver.loc.back()); }
YY_BREAK
case 357:
YY_RULE_SETUP
#line 966 "seclang-scanner.ll"
{ return p::make_VARIABLE_USER_ID(*driver.loc.back()); }
YY_BREAK
case 358:
YY_RULE_SETUP
#line 967 "seclang-scanner.ll"
{ return p::make_VARIABLE_WEB_APP_ID(*driver.loc.back()); }
YY_BREAK
case 359:
YY_RULE_SETUP
#line 968 "seclang-scanner.ll"
{ return p::make_VARIABLE_ARGS(*driver.loc.back()); }
YY_BREAK
case 360:
YY_RULE_SETUP
#line 969 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_ARGS(*driver.loc.back()); }
YY_BREAK
case 361:
YY_RULE_SETUP
#line 970 "seclang-scanner.ll"
{ return p::make_VARIABLE_ARGS_GET(*driver.loc.back()); }
YY_BREAK
case 362:
YY_RULE_SETUP
#line 971 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_ARGS_GET(*driver.loc.back()); }
YY_BREAK
case 363:
YY_RULE_SETUP
#line 972 "seclang-scanner.ll"
{ return p::make_VARIABLE_ARGS_POST(*driver.loc.back()); }
YY_BREAK
case 364:
YY_RULE_SETUP
#line 973 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_ARGS_POST(*driver.loc.back()); }
YY_BREAK
case 365:
YY_RULE_SETUP
#line 974 "seclang-scanner.ll"
{ return p::make_VARIABLE_FILES_SIZES(*driver.loc.back()); }
YY_BREAK
case 366:
YY_RULE_SETUP
#line 975 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_FILES_SIZES(*driver.loc.back()); }
YY_BREAK
case 367:
YY_RULE_SETUP
#line 976 "seclang-scanner.ll"
{ return p::make_VARIABLE_FILES_NAMES(*driver.loc.back()); }
YY_BREAK
case 368:
YY_RULE_SETUP
#line 977 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_FILES_NAMES(*driver.loc.back()); }
YY_BREAK
case 369:
YY_RULE_SETUP
#line 978 "seclang-scanner.ll"
{ return p::make_VARIABLE_FILES_TMP_CONTENT(*driver.loc.back()); }
YY_BREAK
case 370:
YY_RULE_SETUP
#line 979 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_FILES_TMP_CONTENT(*driver.loc.back()); }
YY_BREAK
case 371:
YY_RULE_SETUP
#line 980 "seclang-scanner.ll"
{ return p::make_VARIABLE_MATCHED_VARS_NAMES(*driver.loc.back()); }
YY_BREAK
case 372:
YY_RULE_SETUP
#line 981 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_MATCHED_VARS_NAMES(*driver.loc.back()); }
YY_BREAK
case 373:
YY_RULE_SETUP
#line 982 "seclang-scanner.ll"
{ return p::make_VARIABLE_MATCHED_VARS(*driver.loc.back()); }
YY_BREAK
case 374:
YY_RULE_SETUP
#line 983 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_MATCHED_VARS(*driver.loc.back()); }
YY_BREAK
case 375:
YY_RULE_SETUP
#line 984 "seclang-scanner.ll"
{ return p::make_VARIABLE_FILES(*driver.loc.back()); }
YY_BREAK
case 376:
YY_RULE_SETUP
#line 985 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_FILES(*driver.loc.back()); }
YY_BREAK
case 377:
YY_RULE_SETUP
#line 986 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQUEST_COOKIES(*driver.loc.back()); }
YY_BREAK
case 378:
YY_RULE_SETUP
#line 987 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_REQUEST_COOKIES(*driver.loc.back()); }
YY_BREAK
case 379:
YY_RULE_SETUP
#line 988 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQUEST_HEADERS(*driver.loc.back()); }
YY_BREAK
case 380:
YY_RULE_SETUP
#line 989 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_REQUEST_HEADERS(*driver.loc.back()); }
YY_BREAK
case 381:
YY_RULE_SETUP
#line 990 "seclang-scanner.ll"
{ return p::make_VARIABLE_RESPONSE_HEADERS(*driver.loc.back()); }
YY_BREAK
case 382:
YY_RULE_SETUP
#line 991 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_RESPONSE_HEADERS(*driver.loc.back()); }
YY_BREAK
case 383:
YY_RULE_SETUP
#line 992 "seclang-scanner.ll"
{ return p::make_VARIABLE_GEO(*driver.loc.back()); }
YY_BREAK
case 384:
YY_RULE_SETUP
#line 993 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_GEO(*driver.loc.back()); }
YY_BREAK
case 385:
YY_RULE_SETUP
#line 994 "seclang-scanner.ll"
{ return p::make_VARIABLE_REQUEST_COOKIES_NAMES(*driver.loc.back()); }
YY_BREAK
case 386:
YY_RULE_SETUP
#line 995 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_REQUEST_COOKIES_NAMES(*driver.loc.back()); }
YY_BREAK
case 387:
YY_RULE_SETUP
#line 996 "seclang-scanner.ll"
{ return p::make_VARIABLE_RULE(*driver.loc.back()); }
YY_BREAK
case 388:
YY_RULE_SETUP
#line 997 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_RULE(*driver.loc.back()); }
YY_BREAK
case 389:
YY_RULE_SETUP
#line 998 "seclang-scanner.ll"
{ return p::make_VARIABLE_FILES_TMP_NAMES(*driver.loc.back()); }
YY_BREAK
case 390:
YY_RULE_SETUP
#line 999 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_VARIABLE_FILES_TMP_NAMES(*driver.loc.back()); }
YY_BREAK
case 391:
YY_RULE_SETUP
#line 1000 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_XML(*driver.loc.back()); }
YY_BREAK
case 392:
YY_RULE_SETUP
#line 1001 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_RUN_TIME_VAR_XML(*driver.loc.back()); }
YY_BREAK
case 393:
YY_RULE_SETUP
#line 1002 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_ENV(*driver.loc.back()); }
YY_BREAK
case 394:
YY_RULE_SETUP
#line 1003 "seclang-scanner.ll"
{ BEGINX(EXPECTING_VAR_PARAMETER); return p::make_RUN_TIME_VAR_ENV(*driver.loc.back()); }
YY_BREAK
case 395:
YY_RULE_SETUP
#line 1004 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_BLD(yytext, *driver.loc.back()); }
YY_BREAK
case 396:
YY_RULE_SETUP
#line 1005 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_DUR(yytext, *driver.loc.back()); }
YY_BREAK
case 397:
YY_RULE_SETUP
#line 1006 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_HSV(yytext, *driver.loc.back()); }
YY_BREAK
case 398:
YY_RULE_SETUP
#line 1007 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_REMOTE_USER(yytext, *driver.loc.back()); }
YY_BREAK
case 399:
YY_RULE_SETUP
#line 1008 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_TIME_DAY(yytext, *driver.loc.back()); }
YY_BREAK
case 400:
YY_RULE_SETUP
#line 1009 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_TIME_EPOCH(yytext, *driver.loc.back()); }
YY_BREAK
case 401:
YY_RULE_SETUP
#line 1010 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_TIME_HOUR(yytext, *driver.loc.back()); }
YY_BREAK
case 402:
YY_RULE_SETUP
#line 1011 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_TIME_MIN(yytext, *driver.loc.back()); }
YY_BREAK
case 403:
YY_RULE_SETUP
#line 1012 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_TIME_MON(yytext, *driver.loc.back()); }
YY_BREAK
case 404:
YY_RULE_SETUP
#line 1013 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_TIME_SEC(yytext, *driver.loc.back()); }
YY_BREAK
case 405:
YY_RULE_SETUP
#line 1014 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_TIME_YEAR(yytext, *driver.loc.back()); }
YY_BREAK
case 406:
YY_RULE_SETUP
#line 1015 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_TIME(yytext, *driver.loc.back()); }
YY_BREAK
case 407:
YY_RULE_SETUP
#line 1016 "seclang-scanner.ll"
{ return p::make_RUN_TIME_VAR_TIME_WDAY(yytext, *driver.loc.back()); }
YY_BREAK
case 408:
YY_RULE_SETUP
#line 1019 "seclang-scanner.ll"
{ driver.error (*driver.loc.back(), "Variable VARIABLE_WEBSERVER_ERROR_LOG is not supported by libModSecurity", ""); throw p::syntax_error(*driver.loc.back(), "");}
YY_BREAK
case 409:
YY_RULE_SETUP
#line 1020 "seclang-scanner.ll"
{ return p::make_VARIABLE_GLOBAL(*driver.loc.back()); }
YY_BREAK
case 410:
YY_RULE_SETUP
#line 1021 "seclang-scanner.ll"
{ return p::make_VARIABLE_IP(*driver.loc.back()); }
YY_BREAK
case 411:
YY_RULE_SETUP
#line 1022 "seclang-scanner.ll"
{ return p::make_VARIABLE_RESOURCE(*driver.loc.back()); }
YY_BREAK
case 412:
YY_RULE_SETUP
#line 1023 "seclang-scanner.ll"
{ return p::make_VARIABLE_SESSION(*driver.loc.back()); }
YY_BREAK
case 413:
YY_RULE_SETUP
#line 1024 "seclang-scanner.ll"
{ return p::make_VARIABLE_STATUS(*driver.loc.back()); }
YY_BREAK
case 414:
YY_RULE_SETUP
#line 1025 "seclang-scanner.ll"
{ return p::make_VARIABLE_STATUS_LINE(*driver.loc.back()); }
YY_BREAK
case 415:
YY_RULE_SETUP
#line 1026 "seclang-scanner.ll"
{ return p::make_VARIABLE_TX(*driver.loc.back()); }
YY_BREAK
case 416:
YY_RULE_SETUP
#line 1027 "seclang-scanner.ll"
{ return p::make_VARIABLE_USER(*driver.loc.back()); }
YY_BREAK
case 417:
YY_RULE_SETUP
#line 1031 "seclang-scanner.ll"
{ BEGINX_(); return p::make_VARIABLE_GLOBAL(*driver.loc.back()); }
YY_BREAK
case 418:
YY_RULE_SETUP
#line 1032 "seclang-scanner.ll"
{ BEGINX_(); return p::make_VARIABLE_IP(*driver.loc.back()); }
YY_BREAK
case 419:
YY_RULE_SETUP
#line 1033 "seclang-scanner.ll"
{ BEGINX_(); return p::make_VARIABLE_RESOURCE(*driver.loc.back()); }
YY_BREAK
case 420:
YY_RULE_SETUP
#line 1034 "seclang-scanner.ll"
{ BEGINX_(); return p::make_VARIABLE_SESSION(*driver.loc.back()); }
YY_BREAK
case 421:
YY_RULE_SETUP
#line 1035 "seclang-scanner.ll"
{ BEGINX_(); return p::make_VARIABLE_TX(*driver.loc.back()); }
YY_BREAK
case 422:
YY_RULE_SETUP
#line 1036 "seclang-scanner.ll"
{ BEGINX_(); return p::make_VARIABLE_USER(*driver.loc.back()); }
YY_BREAK
case 423:
YY_RULE_SETUP
#line 1041 "seclang-scanner.ll"
{ BEGIN_ACTION_WAITING_CONTENT(); return p::make_SETVAR_OPERATION_EQUALS_PLUS(*driver.loc.back()); }
YY_BREAK
case 424:
YY_RULE_SETUP
#line 1042 "seclang-scanner.ll"
{ BEGIN_ACTION_WAITING_CONTENT(); return p::make_SETVAR_OPERATION_EQUALS_MINUS(*driver.loc.back()); }
YY_BREAK
case 425:
YY_RULE_SETUP
#line 1043 "seclang-scanner.ll"
{ BEGIN_ACTION_WAITING_CONTENT(); return p::make_SETVAR_OPERATION_EQUALS(*driver.loc.back()); }
YY_BREAK
case 426:
/* rule 426 can match eol */
YY_RULE_SETUP
#line 1044 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(yyleng - 1); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 1, yyleng-2), *driver.loc.back()); }
YY_BREAK
case 427:
/* rule 427 can match eol */
YY_RULE_SETUP
#line 1045 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(yyleng - 1); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 1, yyleng-2), *driver.loc.back()); }
YY_BREAK
case 428:
/* rule 428 can match eol */
YY_RULE_SETUP
#line 1046 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(yyleng - 0); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 2, yyleng-4), *driver.loc.back()); }
YY_BREAK
case 429:
/* rule 429 can match eol */
YY_RULE_SETUP
#line 1047 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(yyleng - 1); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 2, yyleng-4), *driver.loc.back()); }
YY_BREAK
case 430:
/* rule 430 can match eol */
YY_RULE_SETUP
#line 1048 "seclang-scanner.ll"
{ yyless(yyleng - 1); BEGIN_PREVIOUS(); return p::make_FREE_TEXT_QUOTE_MACRO_EXPANSION(yytext, *driver.loc.back()); }
YY_BREAK
case 431:
/* rule 431 can match eol */
YY_RULE_SETUP
#line 1049 "seclang-scanner.ll"
{ return p::make_FREE_TEXT_QUOTE_MACRO_EXPANSION(yytext, *driver.loc.back()); }
YY_BREAK
case 432:
/* rule 432 can match eol */
YY_RULE_SETUP
#line 1051 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(yyleng - 1); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 1, yyleng-2), *driver.loc.back()); }
YY_BREAK
case 433:
/* rule 433 can match eol */
YY_RULE_SETUP
#line 1052 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(yyleng - 1); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 2, yyleng-4), *driver.loc.back()); }
YY_BREAK
case 434:
YY_RULE_SETUP
#line 1053 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(0); }
YY_BREAK
case 435:
YY_RULE_SETUP
#line 1054 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(0); }
YY_BREAK
case 436:
YY_RULE_SETUP
#line 1055 "seclang-scanner.ll"
{ BEGINX(LEXING_ERROR_ACTION); yyless(0); }
YY_BREAK
case 437:
/* rule 437 can match eol */
YY_RULE_SETUP
#line 1060 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(yyleng); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 1, yyleng-2), *driver.loc.back()); }
YY_BREAK
case 438:
/* rule 438 can match eol */
YY_RULE_SETUP
#line 1061 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(yyleng - 1); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 1, yyleng-2), *driver.loc.back()); }
YY_BREAK
case 439:
/* rule 439 can match eol */
YY_RULE_SETUP
#line 1062 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(yyleng - 1); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 1, yyleng-2), *driver.loc.back()); }
YY_BREAK
case 440:
/* rule 440 can match eol */
YY_RULE_SETUP
#line 1063 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(yyleng - 0); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 2, yyleng-4), *driver.loc.back()); }
YY_BREAK
case 441:
/* rule 441 can match eol */
YY_RULE_SETUP
#line 1064 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(yyleng - 1); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 2, yyleng-4), *driver.loc.back()); }
YY_BREAK
case 442:
/* rule 442 can match eol */
YY_RULE_SETUP
#line 1065 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); return p::make_DICT_ELEMENT(yytext, *driver.loc.back()); }
YY_BREAK
case 443:
/* rule 443 can match eol */
YY_RULE_SETUP
#line 1067 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(yyleng - 1); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 1, yyleng-2), *driver.loc.back()); }
YY_BREAK
case 444:
/* rule 444 can match eol */
YY_RULE_SETUP
#line 1068 "seclang-scanner.ll"
{ BEGIN_PREVIOUS(); yyless(yyleng - 1); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 2, yyleng-4), *driver.loc.back()); }
YY_BREAK
case 445:
YY_RULE_SETUP
#line 1070 "seclang-scanner.ll"
{ BEGINX(LEXING_ERROR_ACTION); yyless(0); }
YY_BREAK
case 446:
YY_RULE_SETUP
#line 1071 "seclang-scanner.ll"
{ return p::make_QUOTATION_MARK(yytext, *driver.loc.back()); }
YY_BREAK
case 447:
YY_RULE_SETUP
#line 1077 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_OPERATOR_GEOLOOKUP(*driver.loc.back()); }
YY_BREAK
case 448:
YY_RULE_SETUP
#line 1078 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_OPERATOR_UNCONDITIONAL_MATCH(*driver.loc.back()); }
YY_BREAK
case 449:
YY_RULE_SETUP
#line 1079 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_OPERATOR_DETECT_SQLI(*driver.loc.back()); }
YY_BREAK
case 450:
YY_RULE_SETUP
#line 1080 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_OPERATOR_DETECT_XSS(*driver.loc.back()); }
YY_BREAK
case 451:
YY_RULE_SETUP
#line 1081 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_OPERATOR_VALIDATE_URL_ENCODING(*driver.loc.back()); }
YY_BREAK
case 452:
YY_RULE_SETUP
#line 1082 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_OPERATOR_VALIDATE_UTF8_ENCODING(*driver.loc.back()); }
YY_BREAK
case 453:
YY_RULE_SETUP
#line 1085 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_OPERATOR_GEOLOOKUP(*driver.loc.back()); }
YY_BREAK
case 454:
YY_RULE_SETUP
#line 1086 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_OPERATOR_UNCONDITIONAL_MATCH(*driver.loc.back()); }
YY_BREAK
case 455:
YY_RULE_SETUP
#line 1087 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_OPERATOR_DETECT_SQLI(*driver.loc.back()); }
YY_BREAK
case 456:
YY_RULE_SETUP
#line 1088 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_OPERATOR_DETECT_XSS(*driver.loc.back()); }
YY_BREAK
case 457:
YY_RULE_SETUP
#line 1089 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_OPERATOR_VALIDATE_URL_ENCODING(*driver.loc.back()); }
YY_BREAK
case 458:
YY_RULE_SETUP
#line 1090 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_TO_ACTIONS); return p::make_OPERATOR_VALIDATE_UTF8_ENCODING(*driver.loc.back()); }
YY_BREAK
case 459:
YY_RULE_SETUP
#line 1094 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_WITHIN(*driver.loc.back()); }
YY_BREAK
case 460:
YY_RULE_SETUP
#line 1095 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_CONTAINS_WORD(*driver.loc.back()); }
YY_BREAK
case 461:
YY_RULE_SETUP
#line 1096 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_CONTAINS(*driver.loc.back()); }
YY_BREAK
case 462:
YY_RULE_SETUP
#line 1097 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_ENDS_WITH(*driver.loc.back()); }
YY_BREAK
case 463:
YY_RULE_SETUP
#line 1098 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_EQ(*driver.loc.back()); }
YY_BREAK
case 464:
YY_RULE_SETUP
#line 1099 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_GE(*driver.loc.back()); }
YY_BREAK
case 465:
YY_RULE_SETUP
#line 1100 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_GT(*driver.loc.back()); }
YY_BREAK
case 466:
YY_RULE_SETUP
#line 1101 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_IP_MATCH_FROM_FILE(*driver.loc.back()); }
YY_BREAK
case 467:
YY_RULE_SETUP
#line 1102 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_IP_MATCH(*driver.loc.back()); }
YY_BREAK
case 468:
YY_RULE_SETUP
#line 1103 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_LE(*driver.loc.back()); }
YY_BREAK
case 469:
YY_RULE_SETUP
#line 1104 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_LT(*driver.loc.back()); }
YY_BREAK
case 470:
YY_RULE_SETUP
#line 1105 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_PM_FROM_FILE(*driver.loc.back()); }
YY_BREAK
case 471:
YY_RULE_SETUP
#line 1106 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_PM(*driver.loc.back()); }
YY_BREAK
case 472:
YY_RULE_SETUP
#line 1107 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_RBL( *driver.loc.back()); }
YY_BREAK
case 473:
YY_RULE_SETUP
#line 1108 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_RX(*driver.loc.back()); }
YY_BREAK
case 474:
YY_RULE_SETUP
#line 1109 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_STR_EQ(*driver.loc.back()); }
YY_BREAK
case 475:
YY_RULE_SETUP
#line 1110 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_STR_MATCH(*driver.loc.back()); }
YY_BREAK
case 476:
YY_RULE_SETUP
#line 1111 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_BEGINS_WITH(*driver.loc.back()); }
YY_BREAK
case 477:
YY_RULE_SETUP
#line 1112 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_INSPECT_FILE(*driver.loc.back()); }
YY_BREAK
case 478:
YY_RULE_SETUP
#line 1113 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_FUZZY_HASH(*driver.loc.back()); }
YY_BREAK
case 479:
YY_RULE_SETUP
#line 1114 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_VALIDATE_BYTE_RANGE(*driver.loc.back()); }
YY_BREAK
case 480:
YY_RULE_SETUP
#line 1115 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_VALIDATE_DTD(*driver.loc.back()); }
YY_BREAK
case 481:
YY_RULE_SETUP
#line 1116 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_VALIDATE_HASH(*driver.loc.back()); }
YY_BREAK
case 482:
YY_RULE_SETUP
#line 1117 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_VALIDATE_SCHEMA(*driver.loc.back()); }
YY_BREAK
case 483:
YY_RULE_SETUP
#line 1118 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_VERIFY_CC(*driver.loc.back()); }
YY_BREAK
case 484:
YY_RULE_SETUP
#line 1119 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_VERIFY_CPF(*driver.loc.back()); }
YY_BREAK
case 485:
YY_RULE_SETUP
#line 1120 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_VERIFY_SSN(*driver.loc.back()); }
YY_BREAK
case 486:
YY_RULE_SETUP
#line 1121 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_VERIFY_SVNR(*driver.loc.back()); }
YY_BREAK
case 487:
YY_RULE_SETUP
#line 1122 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_GSB_LOOKUP(*driver.loc.back()); }
YY_BREAK
case 488:
YY_RULE_SETUP
#line 1123 "seclang-scanner.ll"
{ BEGIN_PARAMETER(); return p::make_OPERATOR_RSUB(*driver.loc.back()); }
YY_BREAK
case 489:
YY_RULE_SETUP
#line 1125 "seclang-scanner.ll"
{ return p::make_NOT(*driver.loc.back()); }
YY_BREAK
case 490:
YY_RULE_SETUP
#line 1126 "seclang-scanner.ll"
{ BEGIN_NO_OP_INFORMED(); yyless(0); }
YY_BREAK
case 491:
YY_RULE_SETUP
#line 1131 "seclang-scanner.ll"
{ BEGIN(EXPECTING_PARAMETER_ENDS_WITH_SPACE); }
YY_BREAK
case 492:
YY_RULE_SETUP
#line 1135 "seclang-scanner.ll"
{ BEGIN(EXPECTING_PARAMETER_ENDS_WITH_QUOTE); }
YY_BREAK
case 493:
YY_RULE_SETUP
#line 1139 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_PARAMETERS_TO_ACTIONS); }
YY_BREAK
case 494:
/* rule 494 can match eol */
YY_RULE_SETUP
#line 1140 "seclang-scanner.ll"
{ return p::make_FREE_TEXT_QUOTE_MACRO_EXPANSION(yytext, *driver.loc.back()); }
YY_BREAK
case 495:
YY_RULE_SETUP
#line 1144 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_PARAMETERS_TO_ACTIONS); }
YY_BREAK
case 496:
/* rule 496 can match eol */
YY_RULE_SETUP
#line 1145 "seclang-scanner.ll"
{ return p::make_FREE_TEXT_QUOTE_MACRO_EXPANSION(yytext, *driver.loc.back()); }
YY_BREAK
case 497:
YY_RULE_SETUP
#line 1148 "seclang-scanner.ll"
{ BEGINX(EXPECTING_ACTION_PREDICATE_VARIABLE); }
YY_BREAK
case 498:
YY_RULE_SETUP
#line 1149 "seclang-scanner.ll"
{ BEGIN(LEXING_ERROR); yyless(0); }
YY_BREAK
case 499:
YY_RULE_SETUP
#line 1153 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_PARAMETERS_TO_ACTIONS); }
YY_BREAK
case 500:
/* rule 500 can match eol */
YY_RULE_SETUP
#line 1154 "seclang-scanner.ll"
{ return p::make_FREE_TEXT_QUOTE_MACRO_EXPANSION(yytext, *driver.loc.back()); }
YY_BREAK
case 501:
YY_RULE_SETUP
#line 1158 "seclang-scanner.ll"
{ BEGIN(TRANSACTION_FROM_OPERATOR_PARAMETERS_TO_ACTIONS); }
YY_BREAK
case 502:
/* rule 502 can match eol */
YY_RULE_SETUP
#line 1159 "seclang-scanner.ll"
{ return p::make_FREE_TEXT_QUOTE_MACRO_EXPANSION(yytext, *driver.loc.back()); }
YY_BREAK
case 503:
YY_RULE_SETUP
#line 1163 "seclang-scanner.ll"
{ BEGINX(EXPECTING_ACTION_PREDICATE_VARIABLE); }
YY_BREAK
case 504:
YY_RULE_SETUP
#line 1164 "seclang-scanner.ll"
{ BEGIN(LEXING_ERROR_VARIABLE); yyless(0); }
YY_BREAK
case 505:
YY_RULE_SETUP
#line 1169 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTIONS_ONLY_ONE); }
YY_BREAK
case 506:
/* rule 506 can match eol */
YY_RULE_SETUP
#line 1171 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 507:
/* rule 507 can match eol */
YY_RULE_SETUP
#line 1172 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 508:
/* rule 508 can match eol */
YY_RULE_SETUP
#line 1173 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ONLY_ONE); }
YY_BREAK
case 509:
/* rule 509 can match eol */
YY_RULE_SETUP
#line 1174 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ONLY_ONE); }
YY_BREAK
case 510:
/* rule 510 can match eol */
YY_RULE_SETUP
#line 1176 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 511:
/* rule 511 can match eol */
YY_RULE_SETUP
#line 1177 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 512:
/* rule 512 can match eol */
YY_RULE_SETUP
#line 1178 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 513:
/* rule 513 can match eol */
YY_RULE_SETUP
#line 1179 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 514:
/* rule 514 can match eol */
YY_RULE_SETUP
#line 1181 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ONLY_ONE); }
YY_BREAK
case 515:
/* rule 515 can match eol */
YY_RULE_SETUP
#line 1182 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ONLY_ONE); }
YY_BREAK
case 516:
/* rule 516 can match eol */
YY_RULE_SETUP
#line 1183 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ONLY_ONE); }
YY_BREAK
case 517:
/* rule 517 can match eol */
YY_RULE_SETUP
#line 1184 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ONLY_ONE); }
YY_BREAK
case 518:
YY_RULE_SETUP
#line 1186 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 519:
/* rule 519 can match eol */
YY_RULE_SETUP
#line 1188 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 520:
/* rule 520 can match eol */
YY_RULE_SETUP
#line 1189 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 521:
/* rule 521 can match eol */
YY_RULE_SETUP
#line 1191 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 522:
/* rule 522 can match eol */
YY_RULE_SETUP
#line 1192 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 523:
/* rule 523 can match eol */
YY_RULE_SETUP
#line 1193 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 524:
/* rule 524 can match eol */
YY_RULE_SETUP
#line 1194 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 525:
YY_RULE_SETUP
#line 1196 "seclang-scanner.ll"
{ BEGIN(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE); }
YY_BREAK
case 526:
YY_RULE_SETUP
#line 1201 "seclang-scanner.ll"
{ }
YY_BREAK
case 527:
/* rule 527 can match eol */
YY_RULE_SETUP
#line 1202 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 528:
/* rule 528 can match eol */
YY_RULE_SETUP
#line 1203 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 529:
/* rule 529 can match eol */
YY_RULE_SETUP
#line 1207 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 530:
/* rule 530 can match eol */
YY_RULE_SETUP
#line 1208 "seclang-scanner.ll"
{ driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 531:
/* rule 531 can match eol */
YY_RULE_SETUP
#line 1209 "seclang-scanner.ll"
{ BEGIN(INITIAL); driver.loc.back()->lines(1); driver.loc.back()->step(); }
YY_BREAK
case 532:
YY_RULE_SETUP
#line 1214 "seclang-scanner.ll"
{ BEGIN(LEXING_ERROR); yyless(0); }
YY_BREAK
case 533:
YY_RULE_SETUP
#line 1216 "seclang-scanner.ll"
{ driver.error (*driver.loc.back(), "Invalid input: ", yytext); throw p::syntax_error(*driver.loc.back(), ""); }
YY_BREAK
case 534:
YY_RULE_SETUP
#line 1217 "seclang-scanner.ll"
{ driver.error (*driver.loc.back(), "Expecting an action, got: ", yytext); throw p::syntax_error(*driver.loc.back(), ""); }
YY_BREAK
case 535:
YY_RULE_SETUP
#line 1218 "seclang-scanner.ll"
{ driver.error (*driver.loc.back(), "Expecting a variable, got: : ", yytext); throw p::syntax_error(*driver.loc.back(), ""); }
YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(EXPECTING_ACTION_PREDICATE_VARIABLE):
case YY_STATE_EOF(TRANSACTION_TO_VARIABLE):
case YY_STATE_EOF(EXPECTING_VARIABLE):
case YY_STATE_EOF(EXPECTING_OPERATOR_ENDS_WITH_SPACE):
case YY_STATE_EOF(EXPECTING_OPERATOR_ENDS_WITH_QUOTE):
case YY_STATE_EOF(EXPECTING_ACTION_PREDICATE):
case YY_STATE_EOF(ACTION_PREDICATE_ENDS_WITH_QUOTE):
case YY_STATE_EOF(ACTION_PREDICATE_ENDS_WITH_DOUBLE_QUOTE):
case YY_STATE_EOF(ACTION_PREDICATE_ENDS_WITH_COMMA_OR_DOUBLE_QUOTE):
case YY_STATE_EOF(COMMENT):
case YY_STATE_EOF(TRANSITION_FROM_OP_TO_EXPECTING_PARAMETER_ENDS_WITH_QUOTE):
case YY_STATE_EOF(TRANSITION_FROM_OP_TO_EXPECTING_PARAMETER_ENDS_WITH_SPACE):
case YY_STATE_EOF(EXPECTING_VAR_PARAMETER):
case YY_STATE_EOF(EXPECTING_VAR_PARAMETER_OR_MACRO_NONQUOTED):
case YY_STATE_EOF(EXPECTING_VAR_PARAMETER_OR_MACRO_QUOTED):
case YY_STATE_EOF(EXPECTING_PARAMETER_ENDS_WITH_QUOTE):
case YY_STATE_EOF(EXPECTING_PARAMETER_ENDS_WITH_SPACE):
case YY_STATE_EOF(EXPECTING_ACTIONS_ENDS_WITH_DOUBLE_QUOTE):
case YY_STATE_EOF(EXPECTING_ACTIONS_ONLY_ONE):
case YY_STATE_EOF(TRANSACTION_FROM_OPERATOR_TO_ACTIONS):
case YY_STATE_EOF(TRANSACTION_FROM_OPERATOR_PARAMETERS_TO_ACTIONS):
case YY_STATE_EOF(TRANSACTION_FROM_DIRECTIVE_TO_ACTIONS):
case YY_STATE_EOF(NO_OP_INFORMED_ENDS_WITH_SPACE):
case YY_STATE_EOF(NO_OP_INFORMED_ENDS_WITH_QUOTE):
case YY_STATE_EOF(LEXING_ERROR):
case YY_STATE_EOF(LEXING_ERROR_ACTION):
case YY_STATE_EOF(LEXING_ERROR_VARIABLE):
case YY_STATE_EOF(SETVAR_ACTION_NONQUOTED):
case YY_STATE_EOF(SETVAR_ACTION_NONQUOTED_WAITING_COLLECTION_ELEM):
case YY_STATE_EOF(SETVAR_ACTION_NONQUOTED_WAITING_OPERATION):
case YY_STATE_EOF(SETVAR_ACTION_NONQUOTED_WAITING_CONTENT):
case YY_STATE_EOF(SETVAR_ACTION_QUOTED):
case YY_STATE_EOF(SETVAR_ACTION_QUOTED_WAITING_COLLECTION_ELEM):
case YY_STATE_EOF(SETVAR_ACTION_QUOTED_WAITING_OPERATION):
case YY_STATE_EOF(SETVAR_ACTION_QUOTED_WAITING_CONTENT):
#line 1221 "seclang-scanner.ll"
{
if (yyin) {
fclose(yyin);
}
yypop_buffer_state();
if (!YY_CURRENT_BUFFER) {
return p::make_END(*driver.loc.back());
}
yy::location *l = driver.loc.back();
driver.loc.pop_back();
delete l;
}
YY_BREAK
case 536:
YY_RULE_SETUP
#line 1237 "seclang-scanner.ll"
{
std::string err;
const char *file = strchr(yytext, ' ') + 1;
std::string fi = modsecurity::utils::find_resource(file, *driver.loc.back()->end.filename, &err);
if (fi.empty() == true) {
BEGIN(INITIAL);
driver.error (*driver.loc.back(), "", file + std::string(": Not able to open file. ") + err);
throw p::syntax_error(*driver.loc.back(), "");
}
std::list<std::string> files = modsecurity::utils::expandEnv(fi, 0);
files.reverse();
for (auto& s: files) {
std::string err;
std::string f = modsecurity::utils::find_resource(s, *driver.loc.back()->end.filename, &err);
driver.loc.push_back(new yy::location());
driver.loc.back()->begin.filename = driver.loc.back()->end.filename = new std::string(f);
yyin = fopen(f.c_str(), "r" );
if (!yyin) {
BEGIN(INITIAL);
driver.loc.pop_back();
driver.error (*driver.loc.back(), "", s + std::string(": Not able to open file. ") + err);
throw p::syntax_error(*driver.loc.back(), "");
}
yypush_buffer_state(yy_create_buffer( yyin, YY_BUF_SIZE ));
}
}
YY_BREAK
case 537:
YY_RULE_SETUP
#line 1264 "seclang-scanner.ll"
{
std::string err;
const char *file = strchr(yytext, ' ') + 1;
char *f = strdup(file + 1);
f[strlen(f)-1] = '\0';
std::string fi = modsecurity::utils::find_resource(f, *driver.loc.back()->end.filename, &err);
if (fi.empty() == true) {
BEGIN(INITIAL);
driver.error (*driver.loc.back(), "", file + std::string(": Not able to open file. ") + err);
throw p::syntax_error(*driver.loc.back(), "");
}
std::list<std::string> files = modsecurity::utils::expandEnv(fi, 0);
files.reverse();
for (auto& s: files) {
std::string f = modsecurity::utils::find_resource(s, *driver.loc.back()->end.filename, &err);
driver.loc.push_back(new yy::location());
driver.loc.back()->begin.filename = driver.loc.back()->end.filename = new std::string(f);
yyin = fopen(f.c_str(), "r" );
if (!yyin) {
BEGIN(INITIAL);
driver.loc.pop_back();
driver.error (*driver.loc.back(), "", s + std::string(": Not able to open file. ") + err);
throw p::syntax_error(*driver.loc.back(), "");
}
yypush_buffer_state(yy_create_buffer( yyin, YY_BUF_SIZE ));
}
free(f);
}
YY_BREAK
case 538:
/* rule 538 can match eol */
YY_RULE_SETUP
#line 1294 "seclang-scanner.ll"
{
HttpsClient c;
std::string key;
std::string url;
std::vector<std::string> conf = modsecurity::utils::string::split(yytext, ' ');
if (conf.size() < 2) {
driver.error (*driver.loc.back(), "", "SecRemoteRules demands a key and a URI");
throw p::syntax_error(*driver.loc.back(), "");
}
key = conf[1];
url = conf[2];
c.setKey(key);
driver.loc.push_back(new yy::location());
driver.loc.back()->begin.filename = driver.loc.back()->end.filename = new std::string(url);
YY_BUFFER_STATE temp = YY_CURRENT_BUFFER;
yypush_buffer_state(temp);
bool ret = c.download(url);
if (ret == false) {
BEGIN(INITIAL);
if (driver.m_remoteRulesActionOnFailed == RulesSet::OnFailedRemoteRulesAction::WarnOnFailedRemoteRulesAction) {
/** TODO: Implement the server logging mechanism. */
}
if (driver.m_remoteRulesActionOnFailed == RulesSet::OnFailedRemoteRulesAction::AbortOnFailedRemoteRulesAction) {
driver.error (*driver.loc.back(), "", yytext + std::string(" - Failed to download: ") + c.error);
throw p::syntax_error(*driver.loc.back(), "");
}
}
yy_scan_string(c.content.c_str());
}
YY_BREAK
case 539:
YY_RULE_SETUP
#line 1330 "seclang-scanner.ll"
ECHO;
YY_BREAK
#line 8570 "seclang-scanner.cc"
case YY_END_OF_BUFFER:
{
/* Amount of text matched not including the EOB char. */
int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
/* Undo the effects of YY_DO_BEFORE_ACTION. */
*yy_cp = (yy_hold_char);
YY_RESTORE_YY_MORE_OFFSET
if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
{
/* We're scanning a new file or input source. It's
* possible that this happened because the user
* just pointed yyin at a new source and called
* yylex(). If so, then we have to assure
* consistency between YY_CURRENT_BUFFER and our
* globals. Here is the right place to do so, because
* this is the first action (other than possibly a
* back-up) that will match for the new input source.
*/
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
/* %if-c-only */
YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
/* %endif */
/* %if-c++-only */
/* %endif */
YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
}
/* Note that here we test for yy_c_buf_p "<=" to the position
* of the first EOB in the buffer, since yy_c_buf_p will
* already have been incremented past the NUL character
* (since all states make transitions on EOB to the
* end-of-buffer state). Contrast this with the test
* in input().
*/
if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
{ /* This was really a NUL. */
yy_state_type yy_next_state;
(yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state( );
/* Okay, we're now positioned to make the NUL
* transition. We couldn't have
* yy_get_previous_state() go ahead and do it
* for us because it doesn't know how to deal
* with the possibility of jamming (and we don't
* want to build jamming into it because then it
* will run more slowly).
*/
yy_next_state = yy_try_NUL_trans( yy_current_state );
yy_bp = (yytext_ptr) + YY_MORE_ADJ;
if ( yy_next_state )
{
/* Consume the NUL. */
yy_cp = ++(yy_c_buf_p);
yy_current_state = yy_next_state;
goto yy_match;
}
else
{
/* %% [14.0] code to do back-up for compressed tables and set up yy_cp goes here */
yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state);
goto yy_find_action;
}
}
else switch ( yy_get_next_buffer( ) )
{
case EOB_ACT_END_OF_FILE:
{
(yy_did_buffer_switch_on_eof) = 0;
if ( yywrap( ) )
{
/* Note: because we've taken care in
* yy_get_next_buffer() to have set up
* yytext, we can now set up
* yy_c_buf_p so that if some total
* hoser (like flex itself) wants to
* call the scanner after we return the
* YY_NULL, it'll still work - another
* YY_NULL will get returned.
*/
(yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
yy_act = YY_STATE_EOF(YY_START);
goto do_action;
}
else
{
if ( ! (yy_did_buffer_switch_on_eof) )
YY_NEW_FILE;
}
break;
}
case EOB_ACT_CONTINUE_SCAN:
(yy_c_buf_p) =
(yytext_ptr) + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state( );
yy_cp = (yy_c_buf_p);
yy_bp = (yytext_ptr) + YY_MORE_ADJ;
goto yy_match;
case EOB_ACT_LAST_MATCH:
(yy_c_buf_p) =
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
yy_current_state = yy_get_previous_state( );
yy_cp = (yy_c_buf_p);
yy_bp = (yytext_ptr) + YY_MORE_ADJ;
goto yy_find_action;
}
break;
}
default:
YY_FATAL_ERROR(
"fatal flex scanner internal error--no action found" );
} /* end of action switch */
} /* end of scanning one token */
} /* end of user's declarations */
} /* end of yylex */
/* %ok-for-header */
/* %if-c++-only */
/* %not-for-header */
/* %ok-for-header */
/* %endif */
/* yy_get_next_buffer - try to read in a new buffer
*
* Returns a code representing an action:
* EOB_ACT_LAST_MATCH -
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
* EOB_ACT_END_OF_FILE - end of file
*/
/* %if-c-only */
static int yy_get_next_buffer (void)
/* %endif */
/* %if-c++-only */
/* %endif */
{
char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
char *source = (yytext_ptr);
int number_to_move, i;
int ret_val;
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
YY_FATAL_ERROR(
"fatal flex scanner internal error--end of buffer missed" );
if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
{ /* Don't try to fill the buffer, so this is an EOF. */
if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
{
/* We matched a single character, the EOB, so
* treat this as a final EOF.
*/
return EOB_ACT_END_OF_FILE;
}
else
{
/* We matched some text prior to the EOB, first
* process it.
*/
return EOB_ACT_LAST_MATCH;
}
}
/* Try to read more data. */
/* First move last chars to start of buffer. */
number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
for ( i = 0; i < number_to_move; ++i )
*(dest++) = *(source++);
if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
/* don't do the read, it's not guaranteed to return an EOF,
* just force an EOF
*/
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
else
{
int num_to_read =
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */
/* just a shorter name for the current buffer */
YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
int yy_c_buf_p_offset =
(int) ((yy_c_buf_p) - b->yy_ch_buf);
if ( b->yy_is_our_buffer )
{
int new_size = b->yy_buf_size * 2;
if ( new_size <= 0 )
b->yy_buf_size += b->yy_buf_size / 8;
else
b->yy_buf_size *= 2;
b->yy_ch_buf = (char *)
/* Include room in for 2 EOB chars. */
yyrealloc( (void *) b->yy_ch_buf,
(yy_size_t) (b->yy_buf_size + 2) );
}
else
/* Can't grow it, we don't own it. */
b->yy_ch_buf = NULL;
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR(
"fatal error - scanner input buffer overflow" );
(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
number_to_move - 1;
}
if ( num_to_read > YY_READ_BUF_SIZE )
num_to_read = YY_READ_BUF_SIZE;
/* Read in more data. */
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
(yy_n_chars), num_to_read );
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
if ( (yy_n_chars) == 0 )
{
if ( number_to_move == YY_MORE_ADJ )
{
ret_val = EOB_ACT_END_OF_FILE;
yyrestart( yyin );
}
else
{
ret_val = EOB_ACT_LAST_MATCH;
YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
YY_BUFFER_EOF_PENDING;
}
}
else
ret_val = EOB_ACT_CONTINUE_SCAN;
if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
/* Extend the array by 50%, plus the number we really need. */
int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
/* "- 2" to take care of EOB's */
YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
}
(yy_n_chars) += number_to_move;
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
return ret_val;
}
/* yy_get_previous_state - get the state just before the EOB char was reached */
/* %if-c-only */
/* %not-for-header */
static yy_state_type yy_get_previous_state (void)
/* %endif */
/* %if-c++-only */
/* %endif */
{
yy_state_type yy_current_state;
char *yy_cp;
/* %% [15.0] code to get the start state into yy_current_state goes here */
yy_current_state = (yy_start);
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
{
/* %% [16.0] code to find the next state goes here */
YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 3921 )
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
}
return yy_current_state;
}
/* yy_try_NUL_trans - try to make a transition on the NUL character
*
* synopsis
* next_state = yy_try_NUL_trans( current_state );
*/
/* %if-c-only */
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
/* %endif */
/* %if-c++-only */
/* %endif */
{
int yy_is_jam;
/* %% [17.0] code to find the next state, and perhaps do backing up, goes here */
char *yy_cp = (yy_c_buf_p);
YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 3921 )
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
yy_is_jam = (yy_current_state == 3920);
return yy_is_jam ? 0 : yy_current_state;
}
#ifndef YY_NO_UNPUT
/* %if-c-only */
/* %endif */
#endif
/* %if-c-only */
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (void)
#else
static int input (void)
#endif
/* %endif */
/* %if-c++-only */
/* %endif */
{
int c;
*(yy_c_buf_p) = (yy_hold_char);
if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
{
/* yy_c_buf_p now points to the character we want to return.
* If this occurs *before* the EOB characters, then it's a
* valid NUL; if not, then we've hit the end of the buffer.
*/
if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
/* This was really a NUL. */
*(yy_c_buf_p) = '\0';
else
{ /* need more input */
int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
++(yy_c_buf_p);
switch ( yy_get_next_buffer( ) )
{
case EOB_ACT_LAST_MATCH:
/* This happens because yy_g_n_b()
* sees that we've accumulated a
* token and flags that we need to
* try matching the token before
* proceeding. But for input(),
* there's no matching to consider.
* So convert the EOB_ACT_LAST_MATCH
* to EOB_ACT_END_OF_FILE.
*/
/* Reset buffer status. */
yyrestart( yyin );
/*FALLTHROUGH*/
case EOB_ACT_END_OF_FILE:
{
if ( yywrap( ) )
return 0;
if ( ! (yy_did_buffer_switch_on_eof) )
YY_NEW_FILE;
#ifdef __cplusplus
return yyinput();
#else
return input();
#endif
}
case EOB_ACT_CONTINUE_SCAN:
(yy_c_buf_p) = (yytext_ptr) + offset;
break;
}
}
}
c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
*(yy_c_buf_p) = '\0'; /* preserve yytext */
(yy_hold_char) = *++(yy_c_buf_p);
/* %% [19.0] update BOL and yylineno */
return c;
}
/* %if-c-only */
#endif /* ifndef YY_NO_INPUT */
/* %endif */
/** Immediately switch to a different input stream.
* @param input_file A readable stream.
*
* @note This function does not reset the start condition to @c INITIAL .
*/
/* %if-c-only */
void yyrestart (FILE * input_file )
/* %endif */
/* %if-c++-only */
/* %endif */
{
if ( ! YY_CURRENT_BUFFER ){
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
yy_create_buffer( yyin, YY_BUF_SIZE );
}
yy_init_buffer( YY_CURRENT_BUFFER, input_file );
yy_load_buffer_state( );
}
/* %if-c++-only */
/* %endif */
/** Switch to a different input buffer.
* @param new_buffer The new input buffer.
*
*/
/* %if-c-only */
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
/* %endif */
/* %if-c++-only */
/* %endif */
{
/* TODO. We should be able to replace this entire function body
* with
* yypop_buffer_state();
* yypush_buffer_state(new_buffer);
*/
yyensure_buffer_stack ();
if ( YY_CURRENT_BUFFER == new_buffer )
return;
if ( YY_CURRENT_BUFFER )
{
/* Flush out information for old buffer. */
*(yy_c_buf_p) = (yy_hold_char);
YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
YY_CURRENT_BUFFER_LVALUE = new_buffer;
yy_load_buffer_state( );
/* We don't actually know whether we did this switch during
* EOF (yywrap()) processing, but the only time this flag
* is looked at is after yywrap() is called, so it's safe
* to go ahead and always set it.
*/
(yy_did_buffer_switch_on_eof) = 1;
}
/* %if-c-only */
static void yy_load_buffer_state (void)
/* %endif */
/* %if-c++-only */
/* %endif */
{
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
/* %if-c-only */
yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
/* %endif */
/* %if-c++-only */
/* %endif */
(yy_hold_char) = *(yy_c_buf_p);
}
/** Allocate and initialize an input buffer state.
* @param file A readable stream.
* @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
*
* @return the allocated buffer state.
*/
/* %if-c-only */
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
/* %endif */
/* %if-c++-only */
/* %endif */
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_buf_size = size;
/* yy_ch_buf has to be 2 characters longer than the size given because
* we need to put in 2 end-of-buffer characters.
*/
b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_is_our_buffer = 1;
yy_init_buffer( b, file );
return b;
}
/* %if-c++-only */
/* %endif */
/** Destroy the buffer.
* @param b a buffer created with yy_create_buffer()
*
*/
/* %if-c-only */
void yy_delete_buffer (YY_BUFFER_STATE b )
/* %endif */
/* %if-c++-only */
/* %endif */
{
if ( ! b )
return;
if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
if ( b->yy_is_our_buffer )
yyfree( (void *) b->yy_ch_buf );
yyfree( (void *) b );
}
/* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer,
* such as during a yyrestart() or at EOF.
*/
/* %if-c-only */
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
/* %endif */
/* %if-c++-only */
/* %endif */
{
int oerrno = errno;
yy_flush_buffer( b );
/* %if-c-only */
b->yy_input_file = file;
/* %endif */
/* %if-c++-only */
/* %endif */
b->yy_fill_buffer = 1;
/* If b is the current buffer, then yy_init_buffer was _probably_
* called from yyrestart() or through yy_get_next_buffer.
* In that case, we don't want to reset the lineno or column.
*/
if (b != YY_CURRENT_BUFFER){
b->yy_bs_lineno = 1;
b->yy_bs_column = 0;
}
/* %if-c-only */
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
/* %endif */
/* %if-c++-only */
/* %endif */
errno = oerrno;
}
/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
*
*/
/* %if-c-only */
void yy_flush_buffer (YY_BUFFER_STATE b )
/* %endif */
/* %if-c++-only */
/* %endif */
{
if ( ! b )
return;
b->yy_n_chars = 0;
/* We always need two end-of-buffer characters. The first causes
* a transition to the end-of-buffer state. The second causes
* a jam in that state.
*/
b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
b->yy_buf_pos = &b->yy_ch_buf[0];
b->yy_at_bol = 1;
b->yy_buffer_status = YY_BUFFER_NEW;
if ( b == YY_CURRENT_BUFFER )
yy_load_buffer_state( );
}
/* %if-c-or-c++ */
/** Pushes the new state onto the stack. The new state becomes
* the current state. This function will allocate the stack
* if necessary.
* @param new_buffer The new state.
*
*/
/* %if-c-only */
void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
/* %endif */
/* %if-c++-only */
/* %endif */
{
if (new_buffer == NULL)
return;
yyensure_buffer_stack();
/* This block is copied from yy_switch_to_buffer. */
if ( YY_CURRENT_BUFFER )
{
/* Flush out information for old buffer. */
*(yy_c_buf_p) = (yy_hold_char);
YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
/* Only push if top exists. Otherwise, replace top. */
if (YY_CURRENT_BUFFER)
(yy_buffer_stack_top)++;
YY_CURRENT_BUFFER_LVALUE = new_buffer;
/* copied from yy_switch_to_buffer. */
yy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
/* %endif */
/* %if-c-or-c++ */
/** Removes and deletes the top of the stack, if present.
* The next element becomes the new top.
*
*/
/* %if-c-only */
void yypop_buffer_state (void)
/* %endif */
/* %if-c++-only */
/* %endif */
{
if (!YY_CURRENT_BUFFER)
return;
yy_delete_buffer(YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
if ((yy_buffer_stack_top) > 0)
--(yy_buffer_stack_top);
if (YY_CURRENT_BUFFER) {
yy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
}
/* %endif */
/* %if-c-or-c++ */
/* Allocates the stack if it does not exist.
* Guarantees space for at least one push.
*/
/* %if-c-only */
static void yyensure_buffer_stack (void)
/* %endif */
/* %if-c++-only */
/* %endif */
{
yy_size_t num_to_alloc;
if (!(yy_buffer_stack)) {
/* First allocation is just for 2 elements, since we don't know if this
* scanner will even need a stack. We use 2 instead of 1 to avoid an
* immediate realloc on the next call.
*/
num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
(num_to_alloc * sizeof(struct yy_buffer_state*)
);
if ( ! (yy_buffer_stack) )
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
(yy_buffer_stack_max) = num_to_alloc;
(yy_buffer_stack_top) = 0;
return;
}
if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
/* Increase the buffer to prepare for a possible push. */
yy_size_t grow_size = 8 /* arbitrary grow size */;
num_to_alloc = (yy_buffer_stack_max) + grow_size;
(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
((yy_buffer_stack),
num_to_alloc * sizeof(struct yy_buffer_state*)
);
if ( ! (yy_buffer_stack) )
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
/* zero only the new slots.*/
memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
(yy_buffer_stack_max) = num_to_alloc;
}
}
/* %endif */
/* %if-c-only */
/** Setup the input buffer state to scan directly from a user-specified character buffer.
* @param base the character buffer
* @param size the size in bytes of the character buffer
*
* @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
{
YY_BUFFER_STATE b;
if ( size < 2 ||
base[size-2] != YY_END_OF_BUFFER_CHAR ||
base[size-1] != YY_END_OF_BUFFER_CHAR )
/* They forgot to leave room for the EOB's. */
return NULL;
b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
b->yy_buf_pos = b->yy_ch_buf = base;
b->yy_is_our_buffer = 0;
b->yy_input_file = NULL;
b->yy_n_chars = b->yy_buf_size;
b->yy_is_interactive = 0;
b->yy_at_bol = 1;
b->yy_fill_buffer = 0;
b->yy_buffer_status = YY_BUFFER_NEW;
yy_switch_to_buffer( b );
return b;
}
/* %endif */
/* %if-c-only */
/** Setup the input buffer state to scan a string. The next call to yylex() will
* scan from a @e copy of @a str.
* @param yystr a NUL-terminated string to scan
*
* @return the newly allocated buffer state object.
* @note If you want to scan bytes that may contain NUL values, then use
* yy_scan_bytes() instead.
*/
YY_BUFFER_STATE yy_scan_string (const char * yystr )
{
return yy_scan_bytes( yystr, (int) strlen(yystr) );
}
/* %endif */
/* %if-c-only */
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
* scan from a @e copy of @a bytes.
* @param yybytes the byte buffer to scan
* @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
*
* @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
int i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = (yy_size_t) (_yybytes_len + 2);
buf = (char *) yyalloc( n );
if ( ! buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
for ( i = 0; i < _yybytes_len; ++i )
buf[i] = yybytes[i];
buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
b = yy_scan_buffer( buf, n );
if ( ! b )
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
/* It's okay to grow etc. this buffer, and we should throw it
* away when we're done.
*/
b->yy_is_our_buffer = 1;
return b;
}
/* %endif */
#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif
/* %if-c-only */
static void yynoreturn yy_fatal_error (const char* msg )
{
fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
}
/* %endif */
/* %if-c++-only */
/* %endif */
/* Redefine yyless() so it works in section 3 code. */
#undef yyless
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
yytext[yyleng] = (yy_hold_char); \
(yy_c_buf_p) = yytext + yyless_macro_arg; \
(yy_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
yyleng = yyless_macro_arg; \
} \
while ( 0 )
/* Accessor methods (get/set functions) to struct members. */
/* %if-c-only */
/* %if-reentrant */
/* %endif */
/** Get the current line number.
*
*/
int yyget_lineno (void)
{
return yylineno;
}
/** Get the input stream.
*
*/
FILE *yyget_in (void)
{
return yyin;
}
/** Get the output stream.
*
*/
FILE *yyget_out (void)
{
return yyout;
}
/** Get the length of the current token.
*
*/
int yyget_leng (void)
{
return yyleng;
}
/** Get the current token.
*
*/
char *yyget_text (void)
{
return yytext;
}
/* %if-reentrant */
/* %endif */
/** Set the current line number.
* @param _line_number line number
*
*/
void yyset_lineno (int _line_number )
{
yylineno = _line_number;
}
/** Set the input stream. This does not discard the current
* input buffer.
* @param _in_str A readable stream.
*
* @see yy_switch_to_buffer
*/
void yyset_in (FILE * _in_str )
{
yyin = _in_str ;
}
void yyset_out (FILE * _out_str )
{
yyout = _out_str ;
}
int yyget_debug (void)
{
return yy_flex_debug;
}
void yyset_debug (int _bdebug )
{
yy_flex_debug = _bdebug ;
}
/* %endif */
/* %if-reentrant */
/* %if-bison-bridge */
/* %endif */
/* %endif if-c-only */
/* %if-c-only */
static int yy_init_globals (void)
{
/* Initialization is the same as for the non-reentrant scanner.
* This function is called from yylex_destroy(), so don't allocate here.
*/
(yy_buffer_stack) = NULL;
(yy_buffer_stack_top) = 0;
(yy_buffer_stack_max) = 0;
(yy_c_buf_p) = NULL;
(yy_init) = 0;
(yy_start) = 0;
/* Defined in main.c */
#ifdef YY_STDINIT
yyin = stdin;
yyout = stdout;
#else
yyin = NULL;
yyout = NULL;
#endif
/* For future reference: Set errno on error, since we are called by
* yylex_init()
*/
return 0;
}
/* %endif */
/* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
int yylex_destroy (void)
{
/* Pop the buffer stack, destroying each element. */
while(YY_CURRENT_BUFFER){
yy_delete_buffer( YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
yypop_buffer_state();
}
/* Destroy the stack itself. */
yyfree((yy_buffer_stack) );
(yy_buffer_stack) = NULL;
/* Reset the globals. This is important in a non-reentrant scanner so the next time
* yylex() is called, initialization will occur. */
yy_init_globals( );
/* %if-reentrant */
/* %endif */
return 0;
}
/* %endif */
/*
* Internal utility routines.
*/
#ifndef yytext_ptr
static void yy_flex_strncpy (char* s1, const char * s2, int n )
{
int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (const char * s )
{
int n;
for ( n = 0; s[n]; ++n )
;
return n;
}
#endif
void *yyalloc (yy_size_t size )
{
return malloc(size);
}
void *yyrealloc (void * ptr, yy_size_t size )
{
/* The cast to (char *) in the following accommodates both
* implementations that use char* generic pointers, and those
* that use void* generic pointers. It works with the latter
* because both ANSI C and C++ allow castless assignment from
* any pointer type to void*, and deal with argument conversions
* as though doing an assignment.
*/
return realloc(ptr, size);
}
void yyfree (void * ptr )
{
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
}
/* %if-tables-serialization definitions */
/* %define-yytables The name for this specific scanner's tables. */
#define YYTABLES_NAME "yytables"
/* %endif */
/* %ok-for-header */
#line 1330 "seclang-scanner.ll"
namespace modsecurity {
bool Driver::scan_begin () {
yy_flex_debug = trace_scanning;
if (buffer.empty() == false) {
yy_scan_string(buffer.c_str());
return true;
}
return false;
}
void Driver::scan_end () {
yylex_destroy();
BEGIN(INITIAL);
}
}
| 42.245205 | 226 | 0.597941 | [
"object",
"vector"
] |
1ec4ee74ec694b39bc42a1acaa54c5dc26be4636 | 7,416 | hpp | C++ | include/operon/core/pset.hpp | ivor-dd/operon | 57775816304b5df7a2f64e1505693a1fdf17a2fe | [
"MIT"
] | 3 | 2019-10-29T09:36:18.000Z | 2020-08-17T08:31:37.000Z | include/operon/core/pset.hpp | ivor-dd/operon | 57775816304b5df7a2f64e1505693a1fdf17a2fe | [
"MIT"
] | 3 | 2020-04-24T20:02:56.000Z | 2020-10-14T10:07:18.000Z | include/operon/core/pset.hpp | ivor-dd/operon | 57775816304b5df7a2f64e1505693a1fdf17a2fe | [
"MIT"
] | 3 | 2020-01-29T05:36:03.000Z | 2020-05-31T06:48:52.000Z | // SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright 2019-2022 Heal Research
#ifndef OPERON_PSET_HPP
#define OPERON_PSET_HPP
#include <robin_hood.h>
#include "contracts.hpp"
#include "node.hpp"
namespace Operon {
class PrimitiveSet {
using Primitive = std::tuple<
Node,
size_t, // 1: frequency
size_t, // 2: min arity
size_t // 3: max arity
>;
enum { NODE = 0, FREQUENCY = 1, MINARITY = 2, MAXARITY = 3}; // for accessing tuple elements more easily
robin_hood::unordered_flat_map<Operon::Hash, Primitive> pset_;
[[nodiscard]] auto GetPrimitive(Operon::Hash hash) const -> Primitive const& {
auto it = pset_.find(hash);
if (it == pset_.end()) {
throw std::runtime_error(fmt::format("Unknown node hash {}\n", hash));
}
return it->second;
}
auto GetPrimitive(Operon::Hash hash) -> Primitive& {
return const_cast<Primitive&>(const_cast<PrimitiveSet const*>(this)->GetPrimitive(hash)); // NOLINT
}
public:
static constexpr PrimitiveSetConfig Arithmetic = NodeType::Constant | NodeType::Variable | NodeType::Add | NodeType::Sub | NodeType::Mul | NodeType::Div;
static constexpr PrimitiveSetConfig TypeCoherent = Arithmetic | NodeType::Pow | NodeType::Exp | NodeType::Log | NodeType::Sin | NodeType::Cos | NodeType::Square;
static constexpr PrimitiveSetConfig Full = TypeCoherent | NodeType::Aq | NodeType::Tan | NodeType::Tanh | NodeType::Sqrt | NodeType::Cbrt;
PrimitiveSet() = default;
explicit PrimitiveSet(PrimitiveSetConfig config)
{
SetConfig(config);
}
[[nodiscard]] auto Primitives() const -> decltype(pset_) const& { return pset_; }
auto AddPrimitive(Operon::Node node, size_t frequency, size_t minArity, size_t maxArity) -> bool
{
auto [_, ok] = pset_.insert({ node.HashValue, Primitive { node, frequency, minArity, maxArity } });
return ok;
}
void RemovePrimitive(Operon::Node node) { pset_.erase(node.HashValue); }
void RemovePrimitive(Operon::Hash hash) { pset_.erase(hash); }
void SetConfig(PrimitiveSetConfig config)
{
pset_.clear();
for (size_t i = 0; i < Operon::NodeTypes::Count; ++i) {
auto t = static_cast<Operon::NodeType>(1U << i);
Operon::Node n(t);
if (((1U << i) & static_cast<uint32_t>(config)) != 0U) {
pset_[n.HashValue] = { n, 1, n.Arity, n.Arity };
}
}
}
[[nodiscard]] auto EnabledPrimitives() const -> std::vector<Node> {
std::vector<Node> nodes;
for (auto const& [k, v] : pset_) {
auto [node, freq, min_arity, max_arity] = v;
if (node.IsEnabled && freq > 0) {
nodes.push_back(node);
}
}
return nodes;
}
[[nodiscard]] auto Config() const -> PrimitiveSetConfig
{
PrimitiveSetConfig conf { static_cast<PrimitiveSetConfig>(0) };
for (auto [k, v] : pset_) {
auto const& [node, freq, min_arity, max_arity] = v;
if (node.IsEnabled && freq > 0) {
conf |= node.Type;
}
}
return conf;
}
[[nodiscard]] auto Frequency(Operon::Hash hash) const -> size_t
{
auto const& p = GetPrimitive(hash);
return std::get<FREQUENCY>(p);
}
void SetFrequency(Operon::Hash hash, size_t frequency)
{
auto& p = GetPrimitive(hash);
std::get<FREQUENCY>(p) = frequency;
}
[[nodiscard]] auto Contains(Operon::Hash hash) const -> bool { return pset_.contains(hash); }
[[nodiscard]] auto IsEnabled(Operon::Hash hash) const -> bool
{
auto const& p = GetPrimitive(hash);
return std::get<NODE>(p).IsEnabled;
}
void SetEnabled(Operon::Hash hash, bool enabled)
{
auto& p = GetPrimitive(hash);
std::get<NODE>(p).IsEnabled = enabled;
}
void Enable(Operon::Hash hash)
{
SetEnabled(hash, /*enabled=*/true);
}
void Disable(Operon::Hash hash)
{
SetEnabled(hash, /*enabled=*/false);
}
[[nodiscard]] auto FunctionArityLimits() const -> std::pair<size_t, size_t>
{
auto minArity = std::numeric_limits<size_t>::max();
auto maxArity = std::numeric_limits<size_t>::min();
for (auto const& [key, val] : pset_) {
minArity = std::min(minArity, std::get<MINARITY>(val));
maxArity = std::max(maxArity, std::get<MAXARITY>(val));
}
return { minArity, maxArity };
}
OPERON_EXPORT auto SampleRandomSymbol(Operon::RandomGenerator& random, size_t minArity, size_t maxArity) const -> Operon::Node;
void SetMinimumArity(Operon::Hash hash, size_t minArity)
{
EXPECT(minArity <= MaximumArity(hash));
auto& p = GetPrimitive(hash);
std::get<MINARITY>(p) = minArity;
}
[[nodiscard]] auto MinimumArity(Operon::Hash hash) const -> size_t
{
auto const& p = GetPrimitive(hash);
return std::get<MINARITY>(p);
}
void SetMaximumArity(Operon::Hash hash, size_t maxArity)
{
EXPECT(maxArity >= MinimumArity(hash));
auto& p = GetPrimitive(hash);
std::get<MAXARITY>(p) = maxArity;
}
[[nodiscard]] auto MaximumArity(Operon::Hash hash) const -> size_t
{
auto const& p = GetPrimitive(hash);
return std::get<MAXARITY>(p);
}
[[nodiscard]] auto MinMaxArity(Operon::Hash hash) const -> std::tuple<size_t, size_t>
{
auto const& p = GetPrimitive(hash);
return { std::get<MINARITY>(p), std::get<MAXARITY>(p) };
}
void SetMinMaxArity(Operon::Hash hash, size_t minArity, size_t maxArity)
{
EXPECT(maxArity >= minArity);
auto& p = GetPrimitive(hash);
std::get<MINARITY>(p) = minArity;
std::get<MAXARITY>(p) = maxArity;
}
// convenience overloads
void SetFrequency(Operon::Node node, size_t frequency) { SetFrequency(node.HashValue, frequency); }
[[nodiscard]] auto Frequency(Operon::Node node) const -> size_t { return Frequency(node.HashValue); }
[[nodiscard]] auto Contains(Operon::Node node) const -> bool { return Contains(node.HashValue); }
[[nodiscard]] auto IsEnabled(Operon::Node node) const -> bool { return IsEnabled(node.HashValue); }
void SetEnabled(Operon::Node node, bool enabled) { SetEnabled(node.HashValue, enabled); }
void Enable(Operon::Node node) { SetEnabled(node, /*enabled=*/true); }
void Disable(Operon::Node node) { SetEnabled(node, /*enabled=*/false); }
void SetMinimumArity(Operon::Node node, size_t minArity)
{
SetMinimumArity(node.HashValue, minArity);
}
[[nodiscard]] auto MinimumArity(Operon::Node node) const -> size_t { return MinimumArity(node.HashValue); }
void SetMaximumArity(Operon::Node node, size_t maxArity)
{
SetMaximumArity(node.HashValue, maxArity);
}
[[nodiscard]] auto MaximumArity(Operon::Node node) const -> size_t { return MaximumArity(node.HashValue); }
[[nodiscard]] auto MinMaxArity(Operon::Node node) const -> std::tuple<size_t, size_t>
{
return MinMaxArity(node.HashValue);
}
void SetMinMaxArity(Operon::Node node, size_t minArity, size_t maxArity)
{
SetMinMaxArity(node.HashValue, minArity, maxArity);
}
};
} // namespace Operon
#endif
| 33.863014 | 165 | 0.618528 | [
"vector"
] |
1ec5f02a3b5f20c2db34564571475f82029916c2 | 3,226 | cpp | C++ | src/Engine/PieceTypes/TenjikuShogi/FreeEagle.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | 4 | 2015-12-24T04:52:48.000Z | 2021-11-09T11:31:36.000Z | src/Engine/PieceTypes/TenjikuShogi/FreeEagle.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | null | null | null | src/Engine/PieceTypes/TenjikuShogi/FreeEagle.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
// Name: FreeEagle.cpp
// Description: Implementation for a class that represents a free eagle
// Created: 08/31/2004 09:47:55 Eastern Daylight Time
// Last Updated: $Date: 2004/09/18 22:23:06 $
// Revision: $Revision: 1.1 $
// Author: John Weathers
// Email: hotanguish@hotmail.com
// Copyright: (c) 2004 John Weathers
////////////////////////////////////////////////////////////////////////////
// mShogi header files
#include "FreeEagle.hpp"
#include "Piece.hpp"
#include "Move.hpp"
#include "Board.hpp"
using std::vector;
using std::string;
//--------------------------------------------------------------------------
// Class: FreeEagle
// Method: FreeEagle
// Description: Constructs an instance of a free eagle
//--------------------------------------------------------------------------
FreeEagle::FreeEagle(Board* board, int value, int typevalue)
{
mpBoard = board;
mValue = value;
mTypeValue = typevalue;
mSize = mpBoard->GetSize();
mNotation = "FEg";
mNames[0] = "Free Eagle"; mNames[1] = "Honju";
mDescription =
"Moves like a free king or may jump to the second square in any orthogonal direction";
// Set the size of the directions vector
mDirections.resize(DIRECTION_COUNT);
// Set up the directional method pointers
mDirections[NORTHWEST] = &Board::NorthWest;
mDirections[NORTH] = &Board::North;
mDirections[NORTHEAST] = &Board::NorthEast;
mDirections[WEST] = &Board::West;
mDirections[EAST] = &Board::East;
mDirections[SOUTHWEST] = &Board::SouthWest;
mDirections[SOUTH] = &Board::South;
mDirections[SOUTHEAST] = &Board::SouthEast;
// Initialize free eagle's static attack patterns
mStaticAttackBitboards = new Bitboard [mSize];
int square, nextsquare;
for (square = 0; square < mSize; square++) {
mStaticAttackBitboards[square].resize(mSize);
// north jump
nextsquare = mpBoard->North(0, square);
if (nextsquare != Board::OFF_BOARD) {
nextsquare = mpBoard->North(0, nextsquare);
if (nextsquare != Board::OFF_BOARD) {
mStaticAttackBitboards[square].set(nextsquare);
}
}
// west jump
nextsquare = mpBoard->West(0, square);
if (nextsquare != Board::OFF_BOARD) {
nextsquare = mpBoard->West(0, nextsquare);
if (nextsquare != Board::OFF_BOARD) {
mStaticAttackBitboards[square].set(nextsquare);
}
}
// east jump
nextsquare = mpBoard->East(0, square);
if (nextsquare != Board::OFF_BOARD) {
nextsquare = mpBoard->East(0, nextsquare);
if (nextsquare != Board::OFF_BOARD) {
mStaticAttackBitboards[square].set(nextsquare);
}
}
// south jump
nextsquare = mpBoard->South(0, square);
if (nextsquare != Board::OFF_BOARD) {
nextsquare = mpBoard->South(0, nextsquare);
if (nextsquare != Board::OFF_BOARD) {
mStaticAttackBitboards[square].set(nextsquare);
}
}
}
// Initialize free eagle's dynamic attack patterns
InitAttackPatterns();
}
| 33.957895 | 92 | 0.571296 | [
"vector"
] |
1ec8a8e84cd5ee1ec3c9681e43409fdb7dd7695e | 1,308 | hh | C++ | source/blender/blenkernel/BKE_volume_to_mesh.hh | raksa/blender | 9929eab67430ca4d291651f0f8bdd47fbce8c5d0 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 365 | 2015-02-10T15:10:55.000Z | 2022-03-03T15:50:51.000Z | source/blender/blenkernel/BKE_volume_to_mesh.hh | raksa/blender | 9929eab67430ca4d291651f0f8bdd47fbce8c5d0 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 45 | 2015-01-09T15:34:20.000Z | 2021-10-05T14:44:23.000Z | source/blender/blenkernel/BKE_volume_to_mesh.hh | raksa/blender | 9929eab67430ca4d291651f0f8bdd47fbce8c5d0 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 172 | 2015-01-25T15:16:53.000Z | 2022-01-31T08:25:36.000Z | /*
* 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 "DNA_modifier_types.h"
#ifdef WITH_OPENVDB
# include <openvdb/openvdb.h>
#endif
struct Mesh;
struct VolumeGrid;
namespace blender::bke {
struct VolumeToMeshResolution {
VolumeToMeshResolutionMode mode;
union {
float voxel_size;
float voxel_amount;
} settings;
};
#ifdef WITH_OPENVDB
struct Mesh *volume_to_mesh(const openvdb::GridBase &grid,
const VolumeToMeshResolution &resolution,
const float threshold,
const float adaptivity);
#endif
} // namespace blender::bke
| 29.727273 | 74 | 0.707951 | [
"mesh"
] |
1ed988ee348b57c1d16e9f19fab4e96777de7652 | 4,014 | cpp | C++ | fdbcli/LockCommand.actor.cpp | akashhansda/foundationdb | ad98d6479992d2fcf1f89ff59d20945479a54cf1 | [
"Apache-2.0"
] | 1 | 2022-02-23T07:17:32.000Z | 2022-02-23T07:17:32.000Z | fdbcli/LockCommand.actor.cpp | akashhansda/foundationdb | ad98d6479992d2fcf1f89ff59d20945479a54cf1 | [
"Apache-2.0"
] | null | null | null | fdbcli/LockCommand.actor.cpp | akashhansda/foundationdb | ad98d6479992d2fcf1f89ff59d20945479a54cf1 | [
"Apache-2.0"
] | 1 | 2022-03-01T12:28:03.000Z | 2022-03-01T12:28:03.000Z | /*
* LockCommand.actor.cpp
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2022 Apple Inc. and the FoundationDB project authors
*
* 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 "fdbcli/fdbcli.actor.h"
#include "fdbclient/FDBOptions.g.h"
#include "fdbclient/IClientApi.h"
#include "fdbclient/Knobs.h"
#include "fdbclient/Schemas.h"
#include "flow/Arena.h"
#include "flow/FastRef.h"
#include "flow/ThreadHelper.actor.h"
#include "flow/actorcompiler.h" // This must be the last #include.
namespace {
ACTOR Future<bool> lockDatabase(Reference<IDatabase> db, UID id) {
state Reference<ITransaction> tr = db->createTransaction();
loop {
tr->setOption(FDBTransactionOptions::SPECIAL_KEY_SPACE_ENABLE_WRITES);
try {
tr->set(fdb_cli::lockSpecialKey, id.toString());
wait(safeThreadFutureToFuture(tr->commit()));
printf("Database locked.\n");
return true;
} catch (Error& e) {
state Error err(e);
if (e.code() == error_code_database_locked)
throw e;
else if (e.code() == error_code_special_keys_api_failure) {
std::string errorMsgStr = wait(fdb_cli::getSpecialKeysFailureErrorMessage(tr));
fprintf(stderr, "%s\n", errorMsgStr.c_str());
return false;
}
wait(safeThreadFutureToFuture(tr->onError(err)));
}
}
}
} // namespace
namespace fdb_cli {
const KeyRef lockSpecialKey = LiteralStringRef("\xff\xff/management/db_locked");
ACTOR Future<bool> lockCommandActor(Reference<IDatabase> db, std::vector<StringRef> tokens) {
if (tokens.size() != 1) {
printUsage(tokens[0]);
return false;
} else {
state UID lockUID = deterministicRandom()->randomUniqueID();
printf("Locking database with lockUID: %s\n", lockUID.toString().c_str());
bool result = wait((lockDatabase(db, lockUID)));
return result;
}
}
ACTOR Future<bool> unlockDatabaseActor(Reference<IDatabase> db, UID uid) {
state Reference<ITransaction> tr = db->createTransaction();
loop {
tr->setOption(FDBTransactionOptions::SPECIAL_KEY_SPACE_ENABLE_WRITES);
try {
state ThreadFuture<Optional<Value>> valF = tr->get(fdb_cli::lockSpecialKey);
Optional<Value> val = wait(safeThreadFutureToFuture(valF));
if (!val.present())
return true;
if (val.present() && UID::fromString(val.get().toString()) != uid) {
printf("Unable to unlock database. Make sure to unlock with the correct lock UID.\n");
return false;
}
tr->clear(fdb_cli::lockSpecialKey);
wait(safeThreadFutureToFuture(tr->commit()));
printf("Database unlocked.\n");
return true;
} catch (Error& e) {
state Error err(e);
if (e.code() == error_code_special_keys_api_failure) {
std::string errorMsgStr = wait(fdb_cli::getSpecialKeysFailureErrorMessage(tr));
fprintf(stderr, "%s\n", errorMsgStr.c_str());
return false;
}
wait(safeThreadFutureToFuture(tr->onError(err)));
}
}
}
CommandFactory lockFactory(
"lock",
CommandHelp("lock",
"lock the database with a randomly generated lockUID",
"Randomly generates a lockUID, prints this lockUID, and then uses the lockUID to lock the database."));
CommandFactory unlockFactory(
"unlock",
CommandHelp("unlock <UID>",
"unlock the database with the provided lockUID",
"Unlocks the database with the provided lockUID. This is a potentially dangerous operation, so the "
"user will be asked to enter a passphrase to confirm their intent."));
} // namespace fdb_cli
| 33.173554 | 119 | 0.70578 | [
"vector"
] |
1edb7d3f0a41c908319a9e1bcb68c97dc1c4f445 | 788,571 | cpp | C++ | SampleProject/Builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs115.cpp | frenchmajorcsminor/MapsSDK-Unity | 0b3c0713d63279bd9fa62837fa7559d7f3cbd439 | [
"MIT"
] | null | null | null | SampleProject/Builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs115.cpp | frenchmajorcsminor/MapsSDK-Unity | 0b3c0713d63279bd9fa62837fa7559d7f3cbd439 | [
"MIT"
] | null | null | null | SampleProject/Builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs115.cpp | frenchmajorcsminor/MapsSDK-Unity | 0b3c0713d63279bd9fa62837fa7559d7f3cbd439 | [
"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<System.UInt32,Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputSource>
struct Dictionary_2_t91414FC2761547DED5F389B4438E5AD96FED6573;
// System.Collections.Generic.Dictionary`2<System.UInt32,Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerMediator>
struct Dictionary_2_tC83B76260EEF373CC567182B5BA04BC0BB714FFB;
// System.Collections.Generic.Dictionary`2<System.UInt32,System.Int32>
struct Dictionary_2_t613970F5DB840DE525998C9C40E993772B7B7F60;
// System.Collections.Generic.Dictionary`2<System.UInt32,TMPro.TMP_Character>
struct Dictionary_2_t6BB43D0F158FE3B19E71F6F48A84283B5250E1B4;
// System.Collections.Generic.Dictionary`2<System.UInt32,TMPro.TMP_GlyphPairAdjustmentRecord>
struct Dictionary_2_t0583F646DAE1361FD64601FB5FBF7B4C57DDBDF4;
// System.Collections.Generic.Dictionary`2<System.UInt32,TMPro.TMP_SpriteCharacter>
struct Dictionary_2_tEC101901EE680E17704967FA8AF17B1E6CD618B8;
// System.Collections.Generic.Dictionary`2<System.UInt32,TMPro.TMP_SpriteGlyph>
struct Dictionary_2_tF17132A004B24571E82B3F37E944651A0E72799F;
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.Vector3>
struct Dictionary_2_t256F7457C5391AFF33E0176E25A35BB9E7DC0656;
// System.Collections.Generic.Dictionary`2<System.UInt32,Microsoft.MixedReality.Toolkit.Input.FocusProvider/PointerData>
struct Dictionary_2_t53BEDDE14FD5A4890CA209C6A5C92ED36C826DB0;
// System.Collections.Generic.Dictionary`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.HandInteractionPanZoom/HandPanData>
struct Dictionary_2_t48018686F13B76C29F0989BD541F34F9CB12F3F8;
// System.Collections.Generic.Dictionary`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ManipulationHandler/PointerData>
struct Dictionary_2_tB410B020392B19B66A784A65229616D69A5E4FD8;
// System.Collections.Generic.Dictionary`2<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>
struct Dictionary_2_t10C3034FFC4E11D4F31BC015D0EBCA88CD91652B;
// System.Collections.Generic.Dictionary`2<System.UInt64,System.String>
struct Dictionary_2_t61E97B9B29E45DF3EE7BBE7DAA593B5A7986C3BC;
// System.Collections.Generic.Dictionary`2<UnityEngine.Vector3,System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.Int32,UnityEngine.Vector3>>>
struct Dictionary_2_tA58E268BB31F8DB55A1453FC647D9862D1713E14;
// System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose/GestureId,Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose>
struct Dictionary_2_t688DB5E80AA0191F205A4D3AAA6E72BDDC71C7B1;
// System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose/GestureId,System.String>
struct Dictionary_2_t4573A3DB083B94743ED198D3CFEE9EAC6AB84934;
// System.Collections.Generic.Dictionary`2<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,UnityEngine.Terrain>
struct Dictionary_2_t4990FF96A726883A9DEEF78473DD04BB3125158C;
// System.Collections.Generic.Dictionary`2<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>
struct Dictionary_2_t0986F9D82B8D09D448B013D5071D700FA1CF22C8;
// System.Func`2<System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>,System.Boolean>
struct Func_2_t5465DBA1549FD6575F5C50A8E3923F09B5AB69E8;
// System.Func`2<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>,System.Boolean>
struct Func_2_t331B7A61198027D82A5AA304299CC078653778E2;
// System.Func`2<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>,System.String>
struct Func_2_tFF01F12184D6365033ADFCBAAEC76D80FDEE8C20;
// System.Func`2<System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>,System.Boolean>
struct Func_2_t9B340FBBE1EA9B8502B6F8225A4F9B2BB59EE9CB;
// System.Func`2<System.Collections.Generic.KeyValuePair`2<Microsoft.Geospatial.TileId,=a4d=>,=a4d=>
struct Func_2_tB0BC9612492FC670A6D0E0B71AC1F69BE2500051;
// System.Func`2<System.Collections.Generic.KeyValuePair`2<Microsoft.Geospatial.TileId,=a4d=>,System.Boolean>
struct Func_2_t37A045BED9D450396CB63015B10FF8EA8DF6AB28;
// System.Func`2<System.Collections.Generic.KeyValuePair`2<Microsoft.Geospatial.TileId,=a4d=>,Microsoft.Geospatial.TileId>
struct Func_2_t2E51BC99A135348025411D98AB63659320B469D5;
// System.Func`2<System.Tuple`2<System.Int32,System.String>,System.Boolean>
struct Func_2_t94818DDB7BF65411470F10370EB9A77633648286;
// System.Func`2<=a0B=,System.Tuple`2<System.Int32,System.String>>
struct Func_2_t7C7BFD2E714C7A0DF506FA891E94C2D2FDB7E2CD;
// System.Func`2<=a0B=,System.Boolean>
struct Func_2_tD83C5414254AD83B951F8D83A7F01B025626260C;
// System.Func`2<=a0a=,System.Tuple`2<System.Int32,System.String>>
struct Func_2_t34DA3F00647B27D73BC6AA995A54E820F7452A13;
// System.Func`2<=a0a=,System.Boolean>
struct Func_2_tE86E0BC61CCC39DA41E3B3DD6B342310FD1BE6BF;
// System.Func`2<=a2E=,=aad0=>
struct Func_2_t276B4F1373BB8F5A01BEABD4CEF588B6FAE4CC06;
// System.Func`2<=a2E=,System.Boolean>
struct Func_2_t9D4CD574759423A01DF6D2F12C25F2A6431DA2F7;
// System.Func`2<=a2F=,=aadF=>
struct Func_2_tBED871D770E72D279E93FAD791338187A8AD0F10;
// System.Func`2<=a2F=,System.Boolean>
struct Func_2_tDC3ED62D242DDA3A8CAA6DAF214488BDB610970A;
// System.Func`2<=a2e=,=aadf=>
struct Func_2_tB707B09490A7D8B6DB6A1F44DE09B21515585C31;
// System.Func`2<=a2e=,System.Boolean>
struct Func_2_t0F88EEF23FCB0C1C9D0FC0CA7C7B41CEC57EA8D2;
// System.Func`2<=a4d=,System.Boolean>
struct Func_2_tE958C708B72C3C94798998F03F9060CD0E8047D9;
// System.Func`2<=a67=,System.Boolean>
struct Func_2_t43C1856B2C92D2088C91640ECC7B002BF9AA35CA;
// System.Func`2<=a67=,Microsoft.Geospatial.VectorMath.Vector3D>
struct Func_2_t8BCFD1DDA8A0F3FA3AD67E38F5132A79F4258B5D;
// System.Func`2<=aaBE=,System.Boolean>
struct Func_2_t5CFAB67CCB6EA2BB6BCEF652B10FA9C084B42FAC;
// System.Func`2<=aad0=,System.Boolean>
struct Func_2_t62056BAEC48BE274E1A41A3041C3BF891AE50040;
// System.Func`2<=aadF=,System.Boolean>
struct Func_2_t4570CA656D2E5A0A08AA8475F2E0B31917D4F4EB;
// System.Func`2<=aadf=,System.Boolean>
struct Func_2_tA857D2E1F43EA0DE4E0B93FB53F4ABE4D86633DB;
// System.Func`2<=ac6=,System.Boolean>
struct Func_2_tFD20F0294529179B393ECA34B01D639F090EBBD4;
// System.Func`2<=ac6=,Microsoft.Geospatial.LatLon>
struct Func_2_t7D2203DE063442981326A71F1D5E1989ABB0C3E9;
// System.Func`2<=ac7=,System.Boolean>
struct Func_2_tDB32A2FBABF31B175442B0E9B4A86C428279F7E4;
// System.Func`2<=ac7=,System.Int32>
struct Func_2_t18A08A8B3BE8065F3DE32E224D19F92F34DE3EBB;
// System.Func`2<=afC=,System.Boolean>
struct Func_2_t6516F301A00266DC9081C41D623BE153CFF553FB;
// System.Func`2<=afC=,System.Int32>
struct Func_2_t8CFF46A9AE0B82EE505420E5DABC228793CFF34E;
// System.Func`2<=afD=,System.Boolean>
struct Func_2_t6E3F40E2D8F109C7A1309B63A5DD6A7585FE65FB;
// System.Func`2<=afD=,System.Int32>
struct Func_2_t7CAEC4D1862B410801FCB85265461F2AED1E59AB;
// System.Func`2<=afE=,System.Boolean>
struct Func_2_t092C4F7A262610F5FD527AD59500D8F804B2E202;
// System.Func`2<=afE=,System.Int32>
struct Func_2_tE3EA81669839B5C165E132B6AA31E7883CDF650B;
// System.Func`2<System.Byte,System.Boolean>
struct Func_2_tC801BC5CCF689A4C07A1A655BBFE80597F30B0DC;
// System.Func`2<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,System.Boolean>
struct Func_2_t756EAF50FD670354E22728B1DE8496991F588D85;
// System.Func`2<System.Int16,System.Boolean>
struct Func_2_t8662C7F1465292E8962EEA48D3B09DF7BB5A1A77;
// System.Func`2<System.Int32,System.Boolean>
struct Func_2_t2EBF98B0BA555D9F0633C9BCCBE3DF332B9C1274;
// System.Func`2<Microsoft.Geospatial.LatLon,System.Boolean>
struct Func_2_tB3FD614704F718012E68CCCF10908E88784BF775;
// System.Func`2<UnityEngine.Ray,System.Boolean>
struct Func_2_t5B1D2029A13E6CA909EEFC25E8A0F4529B313AFC;
// System.Func`2<System.String,System.Boolean>
struct Func_2_t8B45BBA625F1F9197CEB4999F9B2A963FCE4B92D;
// System.Func`2<Microsoft.Geospatial.TileId,System.Boolean>
struct Func_2_tCB27F98BE6E66155DD7AB5457EED4C019FCF0185;
// System.Func`2<UnityEngine.UI.Toggle,System.Boolean>
struct Func_2_tCE3CE3D7F67C20FF5576ED2A6E74518A0756E2DE;
// System.Func`2<System.Type,System.Boolean>
struct Func_2_tDA1CD28AB1DD1EC817F9902B752EB3751BE154B5;
// System.Func`2<System.UInt16,System.Boolean>
struct Func_2_tE5EC24D560780816A793D66A79200F82985F58F3;
// System.Func`2<System.UInt32,System.Boolean>
struct Func_2_tD78F5C1D7551598E92A0A0C8CFA1867C08C7581C;
// System.Func`2<System.UInt64,System.Boolean>
struct Func_2_tF82956116C0C427C91BE064EA9F2CF7DFF11FAE9;
// System.Func`2<Microsoft.Geospatial.VectorMath.Vector3D,System.Boolean>
struct Func_2_t7AD4236AE6469F5731328294E13F20B4E0ADE367;
// System.Func`2<Windows.Media.SpeechSynthesis.VoiceInformation,System.Boolean>
struct Func_2_t94D24DEAAB9E90481B81A93DA47A65FDADAC7D86;
// System.Func`2<UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers,System.Boolean>
struct Func_2_t5F8D0CE7FEC1909F009FDD63706CECBB1BD5D5A8;
// System.Collections.Generic.HashSet`1<System.Int32>
struct HashSet_1_tF187707BD5564B6808CE30721FBC083F00B385E5;
// System.Collections.Generic.ICollection`1<System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.Int32,UnityEngine.Vector3>>>
struct ICollection_1_t4674B1FF0F90D732C3865A5601DCA8CF1534506E;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose>
struct ICollection_1_tE597916204A118BA4604E23A9D3573F1C0ADFDEE;
// System.Collections.Generic.ICollection`1<UnityEngine.TextCore.Glyph>
struct ICollection_1_t80528D5EF0D5862246619E7D36903249588881BF;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputSource>
struct ICollection_1_t5828367CFB8CCB401B7CC45C54F7C4D205B0F826;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerMediator>
struct ICollection_1_tEEE9383707F56032891D3D99C328C0CAAE5B379D;
// System.Collections.Generic.ICollection`1<System.Int32>
struct ICollection_1_t1C0C51B19916511E9D525272F055515334C93525;
// System.Collections.Generic.ICollection`1<System.String>
struct ICollection_1_t286AA3BBFF7FCE401FEFF57AEEC4FDAABA9F95B1;
// System.Collections.Generic.ICollection`1<TMPro.TMP_Character>
struct ICollection_1_t73C8AB7C92F21937B1F116E9CC541D72DF40A3EA;
// System.Collections.Generic.ICollection`1<TMPro.TMP_GlyphPairAdjustmentRecord>
struct ICollection_1_t13E02315C3CE3BD23FA61B65FCD547A9403F9B50;
// System.Collections.Generic.ICollection`1<TMPro.TMP_SpriteCharacter>
struct ICollection_1_tB74DAD9B1C29987BA788FF7602175DCC206996F2;
// System.Collections.Generic.ICollection`1<TMPro.TMP_SpriteGlyph>
struct ICollection_1_t9F71DF20C4D9057DB57C5747DC80A98F9694BABD;
// System.Collections.Generic.ICollection`1<UnityEngine.Terrain>
struct ICollection_1_t37816BD0ECD72ADAB531BA3106DA5CF8F4A34141;
// System.Collections.Generic.ICollection`1<UnityEngine.Vector3>
struct ICollection_1_t1EFFD31D0AA9459887F8D8ADAF922325265AF4B5;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.Input.FocusProvider/PointerData>
struct ICollection_1_t0712F0C5CB8D25E36D03A3D45EBEEE6B0EB8C5AC;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.UI.HandInteractionPanZoom/HandPanData>
struct ICollection_1_t7E464CBA0759B5CE2CA6DE4D6A0B102185C1266C;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.UI.ManipulationHandler/PointerData>
struct ICollection_1_t6D536870DB7D1CD7CBEA7230D0B0A4871EF68277;
// System.Collections.Generic.ICollection`1<Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>
struct ICollection_1_t762FBFF1CF9646351689673CFBBC018BE879AD43;
// System.Collections.Generic.ICollection`1<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>
struct ICollection_1_tFCA43548AA3F09499E92A7A1C23FE2DA29F7BD7E;
// System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>>
struct IEnumerable_1_t9639ED57899F2B06DA794405A72FB19BB2872528;
// System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>>
struct IEnumerable_1_t08CBDE01A1A6260E6A4C27CDD0C0612012D6C235;
// System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>>
struct IEnumerable_1_tCE58AC2A1AFFFFDF76FE774D7A4D39C756B2BBF7;
// System.Collections.Generic.IEnumerable`1<System.Tuple`2<System.Int32,System.String>>
struct IEnumerable_1_t70423C3260D1DAF33533FA2AD4EEE6449EC34701;
// System.Collections.Generic.IEnumerable`1<=a4d=>
struct IEnumerable_1_t3FE620B178E127E7617065D4B1F24FD4DE072074;
// System.Collections.Generic.IEnumerable`1<=aaBE=>
struct IEnumerable_1_t44F7B3BBA37B58EF606FA13F0185268996E98CFA;
// System.Collections.Generic.IEnumerable`1<=aad0=>
struct IEnumerable_1_t0B894DB11FFF45CFFD85EA2ABAAFDDD0262134B1;
// System.Collections.Generic.IEnumerable`1<=aadF=>
struct IEnumerable_1_t0FA87D0C8ED3175109E85A61515BF664DF4D2110;
// System.Collections.Generic.IEnumerable`1<=aadf=>
struct IEnumerable_1_t0BE793A7C5EEF80DB488435D9C03029341B653C0;
// System.Collections.Generic.IEnumerable`1<System.Byte>
struct IEnumerable_1_t87C38B0EE9F1DE9AFC8F366EEAE5D497C061B4E1;
// System.Collections.Generic.IEnumerable`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer>
struct IEnumerable_1_tBB7511295ACDA45A4CC88725F9EC9A4DA768FAAB;
// System.Collections.Generic.IEnumerable`1<System.Int16>
struct IEnumerable_1_tC4EACC3E0D106CC7E4C3E81A78B0F8B77DA55EDC;
// System.Collections.Generic.IEnumerable`1<System.Int32>
struct IEnumerable_1_t60929E1AA80B46746F987B99A4EBD004FD72D370;
// System.Collections.Generic.IEnumerable`1<Microsoft.Geospatial.LatLon>
struct IEnumerable_1_t94B53ECBB90DAEFD356B9C4BCB785D9EE6D3AF08;
// System.Collections.Generic.IEnumerable`1<UnityEngine.Ray>
struct IEnumerable_1_tFC203F1B50EB899B704643D95596D6346007FF80;
// System.Collections.Generic.IEnumerable`1<System.String>
struct IEnumerable_1_tBD60400523D840591A17E4CBBACC79397F68FAA2;
// System.Collections.Generic.IEnumerable`1<Microsoft.Geospatial.TileId>
struct IEnumerable_1_tF241B028F01B6D13A4F7AB61F9C1C8FD6F28D16B;
// System.Collections.Generic.IEnumerable`1<UnityEngine.UI.Toggle>
struct IEnumerable_1_t35B960AD9F3A85AB26EDDA29F4C5BD40824232AA;
// System.Collections.Generic.IEnumerable`1<System.Type>
struct IEnumerable_1_tA2CFC624CD7D291A0E486D1A5FC78BF6425F9428;
// System.Collections.Generic.IEnumerable`1<System.UInt16>
struct IEnumerable_1_t184E92D6D949817DA939C9B8A0BDB8EEB48C9B94;
// System.Collections.Generic.IEnumerable`1<System.UInt32>
struct IEnumerable_1_tAEB8533A43D70EC27436BC8F8DB790700C4C9B09;
// System.Collections.Generic.IEnumerable`1<System.UInt64>
struct IEnumerable_1_t9F53E48CAC857B095C8071AC65B3FB45AB42CE12;
// System.Collections.Generic.IEnumerable`1<Microsoft.Geospatial.VectorMath.Vector3D>
struct IEnumerable_1_t87FA794420B102098607AF28789AFE3D39012B25;
// System.Collections.Generic.IEnumerable`1<Windows.Media.SpeechSynthesis.VoiceInformation>
struct IEnumerable_1_t01F6403DB41E68D9B142BD07C35EE577024E8712;
// System.Collections.Generic.IEnumerable`1<UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers>
struct IEnumerable_1_tA93DCE7610FC32373CFBADA9500AF0B516EBDF60;
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>>
struct IEnumerator_1_t70A470A84B3C8A45E2020652F8384F3B8E98C529;
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>>
struct IEnumerator_1_tC939FE0653D901861B5AEE6A20F989A5B3D2F264;
// System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>>
struct IEnumerator_1_t225E4E4CB65DA222AFFB5B7853AD7E8CD9801B2D;
// System.Collections.Generic.IEnumerator`1<System.Tuple`2<System.Int32,System.String>>
struct IEnumerator_1_t292AECF045E74DD6599AA20241887C6E3A288B3A;
// System.Collections.Generic.IEnumerator`1<=a4d=>
struct IEnumerator_1_tEF5A678A5EFCD6471D3CBB40F01CF89634786F25;
// System.Collections.Generic.IEnumerator`1<=aaBE=>
struct IEnumerator_1_t41E456913F2C15489C6267431BB1088EBB5D6840;
// System.Collections.Generic.IEnumerator`1<=aad0=>
struct IEnumerator_1_t1A7A2380039827AEF396344C98E69FCA0127C1E7;
// System.Collections.Generic.IEnumerator`1<=aadF=>
struct IEnumerator_1_t1434CA94ED556F88865D28E760F1F30484160A6F;
// System.Collections.Generic.IEnumerator`1<=aadf=>
struct IEnumerator_1_t8976E75602D4008F53A68C9D94EA310C2ADE9BA3;
// System.Collections.Generic.IEnumerator`1<System.Byte>
struct IEnumerator_1_t9C161AD4E982EC01062A5E052662E7862A7874F4;
// System.Collections.Generic.IEnumerator`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer>
struct IEnumerator_1_tC9FA14D796332E73D1660C2B2626F21D7EC4389E;
// System.Collections.Generic.IEnumerator`1<System.Int16>
struct IEnumerator_1_t4D850EE545DDCA6BA70730002CC9549C6863CD35;
// System.Collections.Generic.IEnumerator`1<System.Int32>
struct IEnumerator_1_t72AB4B40AF5290B386215B0BFADC8919D394DCAB;
// System.Collections.Generic.IEnumerator`1<Microsoft.Geospatial.LatLon>
struct IEnumerator_1_t94E8BEFE13F54A01EDD11CB3F860A2AB661F0E3F;
// System.Collections.Generic.IEnumerator`1<UnityEngine.Ray>
struct IEnumerator_1_t0DF712A4DA4107E91C4774B6D7922EACDE8CD823;
// System.Collections.Generic.IEnumerator`1<System.String>
struct IEnumerator_1_t0DE5AA701B682A891412350E63D3E441F98F205C;
// System.Collections.Generic.IEnumerator`1<Microsoft.Geospatial.TileId>
struct IEnumerator_1_t32E875364A9403892CDE7DBEB5F3957766E5828E;
// System.Collections.Generic.IEnumerator`1<UnityEngine.UI.Toggle>
struct IEnumerator_1_t99BED1701ABFF66DF1E86A5ADECC06542CD91690;
// System.Collections.Generic.IEnumerator`1<System.Type>
struct IEnumerator_1_t5C4FADAE1CD0985640B2EDB887FE74A475EDEEDB;
// System.Collections.Generic.IEnumerator`1<System.UInt16>
struct IEnumerator_1_t8676B7A2F2C1FB08F948399B0F2CFBEB6D0F534E;
// System.Collections.Generic.IEnumerator`1<System.UInt32>
struct IEnumerator_1_tBB2C204E95FBEFF1BA00A711757C51B749D5FADC;
// System.Collections.Generic.IEnumerator`1<System.UInt64>
struct IEnumerator_1_tAA9B44CC45F33B48C92D07A20AAECD95E2344973;
// System.Collections.Generic.IEnumerator`1<Microsoft.Geospatial.VectorMath.Vector3D>
struct IEnumerator_1_t6A59F10F1ACCE06F499BF6C33AE6612666615834;
// System.Collections.Generic.IEnumerator`1<Windows.Media.SpeechSynthesis.VoiceInformation>
struct IEnumerator_1_t901598FC94EA4CE9F3909F58A3D0891AA85FC3F2;
// System.Collections.Generic.IEnumerator`1<UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers>
struct IEnumerator_1_t87987B4E06FCDD3CB264EEB3ED17B42C9F31EFAB;
// System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>>
struct List_1_tA3DE714A1EA1E963BFCD876AAF2D98AB182B15E4;
// System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>>
struct List_1_tF369DE22A8D9E61DDAF76E8E6A20394A444302D9;
// System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>>
struct List_1_tBA45D580BE3704A3AE24604C6F866C8EFD179562;
// System.Collections.Generic.List`1<=aaBE=>
struct List_1_t653082024DCE75206AA6BBFEB5AC2A0980289206;
// System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer>
struct List_1_t70D278A9C53871EE6A077AEE68BF749546B5B347;
// System.Collections.Generic.List`1<UnityEngine.Ray>
struct List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B;
// System.Collections.Generic.List`1<System.String>
struct List_1_t6C9F81EDBF0F4A31A9B0DA372D2EF34BDA3A1AF3;
// System.Collections.Generic.List`1<UnityEngine.UI.Toggle>
struct List_1_tECEEA56321275CFF8DECB929786CE364F743B07D;
// System.Collections.Generic.List`1<System.Type>
struct List_1_t7CFD5FCE8366620F593F2C9DAC3A870E5D6506D7;
// System.Collections.Generic.List`1<Windows.Media.SpeechSynthesis.VoiceInformation>
struct List_1_t274FDF00BE3592692AB3755E028D8DCBDE654885;
// System.Collections.Generic.List`1<UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers>
struct List_1_t842D0C636A38CB2DC974F9A4CFD45C93CBEE352E;
// System.Tuple`2<System.Int32,System.String>
struct Tuple_2_tCD9DC99626B26DF4AC282D644B1B9780AA0E757E;
// System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>[]
struct KeyValuePair_2U5BU5D_tD648AFDF8AC051DBD13180882B6FE4C8B451147B;
// System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>[]
struct KeyValuePair_2U5BU5D_tD9BBFE2A4C3E0269F23A278D66D1D62160E7CD64;
// System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>[]
struct KeyValuePair_2U5BU5D_t609D8E2310DE99AD465B7D8C66167D9223466915;
// System.Collections.Generic.KeyValuePair`2<Microsoft.Geospatial.TileId,=a4d=>[]
struct KeyValuePair_2U5BU5D_t54F10ED446755B19E80A902ECEE2865AA5DD5D6D;
// =a0B=[]
struct U3Da0BU3DU5BU5D_tAB5D5035F1360590AE7A8FA9BCB734AB45D04D72;
// =a0a=[]
struct U3Da0aU3DU5BU5D_tEAF7F7CD1BA9D836C590E63C373022E5D42F717E;
// =a2E=[]
struct U3Da2EU3DU5BU5D_t80B1F8EB98919E27B1BD33BAD3875B469CB4625A;
// =a2F=[]
struct U3Da2FU3DU5BU5D_t30406A72076B4C69ECE5FD3322F9568F584D1BA9;
// =a2e=[]
struct U3Da2eU3DU5BU5D_t4B15B03DCCF826BA2AC1255A28C835A249B2D25F;
// =a67=[]
struct U3Da67U3DU5BU5D_t2D26275F2EB6CDB4C6D11907A345C3E3D4FD3182;
// =aaBE=[]
struct U3DaaBEU3DU5BU5D_tDCE14B8A22EBFDEB82E525F3EBFEF0F97FFE882B;
// =ac6=[]
struct U3Dac6U3DU5BU5D_t12CF5AD2A6EF6B1C5F8851127616A63875566046;
// =ac7=[]
struct U3Dac7U3DU5BU5D_tA53AE046D24C41B9946FFD030BE5E203CF22857B;
// =afC=[]
struct U3DafCU3DU5BU5D_t0B386C8A5B9345435A2EEAFFEC063ADC31E7CC27;
// =afD=[]
struct U3DafDU3DU5BU5D_tE393294F95735D997E43B697937989F69D132F23;
// =afE=[]
struct U3DafEU3DU5BU5D_tA958B4C78669AE28B8D42CBF2FB8E3B375ADB529;
// Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer[]
struct IMixedRealityPointerU5BU5D_t878EB1C38193E537833123AD7BCBE635AA402AF9;
// UnityEngine.Ray[]
struct RayU5BU5D_tC03BD44087BE910F83A479B1E35BC7C9528432B8;
// System.String[]
struct StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A;
// UnityEngine.UI.Toggle[]
struct ToggleU5BU5D_tA5358751F4D3BE44D4C7C9C8CA0E6FCCC78767CF;
// System.Type[]
struct TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755;
// Windows.Media.SpeechSynthesis.VoiceInformation[]
struct VoiceInformationU5BU5D_tC834DF216D23E7CD700B0C2DDEEEE95B5422E5C0;
// UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers[]
struct MessageTypeSubscribersU5BU5D_t22089BC97FCAC7EB77905E033710F94252F0D5A0;
// =a8B=
struct U3Da8BU3D_t0AE61074FAD903E8A4BD78C9B8F6EBA7B60B0D8C;
// =aaBE=
struct U3DaaBEU3D_t0DA2FDACF09EEB7BDBD605B9A5958603FD8924AD;
// =aad0=
struct U3Daad0U3D_t31C8CF61F6EC74331E5C7937476577F6902130C1;
// =aadF=
struct U3DaadFU3D_t29228B3007777334EEC77895FE3B933FD0EE468F;
// =aadf=
struct U3DaadfU3D_t6258A306E2142DAAFD3A5A8DDE58ACE8592883D2;
// Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer
struct IMixedRealityPointer_t822DC75FC5FE312C7B336AD3EEE3A2C624A5EA0A;
// Microsoft.Maps.Unity.MapLabel
struct MapLabel_t956C0647026C125A0E123A58E050022388C51C87;
// System.String
struct String_t;
// UnityEngine.UI.Toggle
struct Toggle_t68F5A84CDD2BBAEA866F42EB4E0C9F2B431D612E;
// System.Type
struct Type_t;
// Windows.Media.SpeechSynthesis.VoiceInformation
struct VoiceInformation_tC62902AA10C37822040544FB2D38B50C0267E18D;
// UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers
struct MessageTypeSubscribers_t7A69A1D132BF9A354D94F9E490E148BBB81A508F;
struct IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB;
struct IIterator_1_t02EF47EA9332525716D2B15E0CD8B7211669E493;
struct IIterator_1_t125F1266580B29D637CD7546CA3812EB7C0B0D9D;
struct IIterator_1_t2CFACF402D9A2D616023D5DA34FDF5739B123E32;
struct IIterator_1_t6A46A7244E5AAD0AE4F2A07AF43DA5052D55F4A4;
struct IIterator_1_t6A965FDCA7EF0FD28DFA23C03C7491D6F48B19FC;
struct IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267;
struct IIterator_1_t77754FBD9492B03AC4E17184F2DAA6B37722F19D;
struct IIterator_1_t96623136C825715A1CCA7A3B43E30C723BD302E8;
struct IIterator_1_t966CEB5AF294B82E90C669B54974D432637938CF;
struct IIterator_1_t9B59C65AF91E97002623682A0C306DEBB34D8DE1;
struct IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C;
struct IIterator_1_tC66AB251038F529F8EA4926CBFFB3A97C323B58D;
struct IIterator_1_tF941128240BC6C3E896AB7E0412646421E13B289;
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.Byte>
struct NOVTABLE IIterable_1_tD0597EBCA288E19261E4CD889A045D4DED68F0D5 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mFB95F2845D73300049FCB9B21FE7ACC3473E5E66(IIterator_1_t6A965FDCA7EF0FD28DFA23C03C7491D6F48B19FC** 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<Windows.Media.SpeechSynthesis.IVoiceInformation>
struct NOVTABLE IIterable_1_tFE9B4AE0363012FD6084B7E123056D8A880615C5 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m9B11168E2CAB948C15960C1E3E93397CF555B879(IIterator_1_t02EF47EA9332525716D2B15E0CD8B7211669E493** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IIterable`1<System.Int16>
struct NOVTABLE IIterable_1_tFF30A9E323D222B8189CEBCAC40464562B38A0C8 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m3B459B11C7ABAED5258B394614E5D1C20BEE5F93(IIterator_1_t9B59C65AF91E97002623682A0C306DEBB34D8DE1** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IIterable`1<System.Int32>
struct NOVTABLE IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5(IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IIterable`1<System.Object>
struct NOVTABLE IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619(IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue) = 0;
};
// Windows.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.Type>
struct NOVTABLE IIterable_1_t4D7C58066842A44A0C48B4D670B58E08F5C98872 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_mD436D926611E89172F9CCDB96214C201E7E6AE67(IIterator_1_t2CFACF402D9A2D616023D5DA34FDF5739B123E32** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IIterable`1<System.UInt16>
struct NOVTABLE IIterable_1_t0FFEA449A5FB48BF7695F277FD277D7159E9F452 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m71D30C8522D86FA59BF041E5B3CE17F4CA7B5B92(IIterator_1_t77754FBD9492B03AC4E17184F2DAA6B37722F19D** 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.Foundation.Collections.IIterable`1<System.UInt64>
struct NOVTABLE IIterable_1_t6CF1C488C9FB0FC49AC91A3B9DBDAC6AF0CB03A9 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m49E620FFB18F057B9A92B006135C6AA317D3DAA9(IIterator_1_t96623136C825715A1CCA7A3B43E30C723BD302E8** comReturnValue) = 0;
};
// Windows.Foundation.Collections.IIterable`1<Windows.Media.SpeechSynthesis.VoiceInformation>
struct NOVTABLE IIterable_1_t79FED2A3133E3073B027845FF86E8DEED763AB0C : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IIterable_1_First_m39CB76FBFCA2D147455FD84777B331E7A9E99E7C(IIterator_1_tF941128240BC6C3E896AB7E0412646421E13B289** comReturnValue) = 0;
};
// Windows.UI.Xaml.Interop.IBindableIterable
struct NOVTABLE IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) = 0;
};
// Windows.Foundation.IClosable
struct NOVTABLE IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953 : Il2CppIInspectable
{
static const Il2CppGuid IID;
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() = 0;
};
// System.Object
// System.Linq.Enumerable/Iterator`1<System.Tuple`2<System.Int32,System.String>>
struct Iterator_1_tEF36E4959898D4C196202843FD9160B38CA51E80 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
Tuple_2_tCD9DC99626B26DF4AC282D644B1B9780AA0E757E * ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tEF36E4959898D4C196202843FD9160B38CA51E80, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tEF36E4959898D4C196202843FD9160B38CA51E80, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tEF36E4959898D4C196202843FD9160B38CA51E80, ___current_2)); }
inline Tuple_2_tCD9DC99626B26DF4AC282D644B1B9780AA0E757E * get_current_2() const { return ___current_2; }
inline Tuple_2_tCD9DC99626B26DF4AC282D644B1B9780AA0E757E ** get_address_of_current_2() { return &___current_2; }
inline void set_current_2(Tuple_2_tCD9DC99626B26DF4AC282D644B1B9780AA0E757E * value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_2), (void*)value);
}
};
// System.Linq.Enumerable/Iterator`1<=aaBE=>
struct Iterator_1_tDEB5F21FCAC087A22DD0F7E89AEB09BC1E8FE0C7 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
U3DaaBEU3D_t0DA2FDACF09EEB7BDBD605B9A5958603FD8924AD * ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tDEB5F21FCAC087A22DD0F7E89AEB09BC1E8FE0C7, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tDEB5F21FCAC087A22DD0F7E89AEB09BC1E8FE0C7, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tDEB5F21FCAC087A22DD0F7E89AEB09BC1E8FE0C7, ___current_2)); }
inline U3DaaBEU3D_t0DA2FDACF09EEB7BDBD605B9A5958603FD8924AD * get_current_2() const { return ___current_2; }
inline U3DaaBEU3D_t0DA2FDACF09EEB7BDBD605B9A5958603FD8924AD ** get_address_of_current_2() { return &___current_2; }
inline void set_current_2(U3DaaBEU3D_t0DA2FDACF09EEB7BDBD605B9A5958603FD8924AD * value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_2), (void*)value);
}
};
// System.Linq.Enumerable/Iterator`1<=aad0=>
struct Iterator_1_t3D487F2B2CF0A36486A847C02ED3E3120F435A81 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
U3Daad0U3D_t31C8CF61F6EC74331E5C7937476577F6902130C1 * ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_t3D487F2B2CF0A36486A847C02ED3E3120F435A81, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_t3D487F2B2CF0A36486A847C02ED3E3120F435A81, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_t3D487F2B2CF0A36486A847C02ED3E3120F435A81, ___current_2)); }
inline U3Daad0U3D_t31C8CF61F6EC74331E5C7937476577F6902130C1 * get_current_2() const { return ___current_2; }
inline U3Daad0U3D_t31C8CF61F6EC74331E5C7937476577F6902130C1 ** get_address_of_current_2() { return &___current_2; }
inline void set_current_2(U3Daad0U3D_t31C8CF61F6EC74331E5C7937476577F6902130C1 * value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_2), (void*)value);
}
};
// System.Linq.Enumerable/Iterator`1<=aadF=>
struct Iterator_1_tEB2177C55CA4ECF3AE888CF17BC2677A5B4B8E52 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
U3DaadFU3D_t29228B3007777334EEC77895FE3B933FD0EE468F * ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tEB2177C55CA4ECF3AE888CF17BC2677A5B4B8E52, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tEB2177C55CA4ECF3AE888CF17BC2677A5B4B8E52, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tEB2177C55CA4ECF3AE888CF17BC2677A5B4B8E52, ___current_2)); }
inline U3DaadFU3D_t29228B3007777334EEC77895FE3B933FD0EE468F * get_current_2() const { return ___current_2; }
inline U3DaadFU3D_t29228B3007777334EEC77895FE3B933FD0EE468F ** get_address_of_current_2() { return &___current_2; }
inline void set_current_2(U3DaadFU3D_t29228B3007777334EEC77895FE3B933FD0EE468F * value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_2), (void*)value);
}
};
// System.Linq.Enumerable/Iterator`1<=aadf=>
struct Iterator_1_tDCFEE4E579503586AB36E1BAB03C2B1A0633F67F : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
U3DaadfU3D_t6258A306E2142DAAFD3A5A8DDE58ACE8592883D2 * ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tDCFEE4E579503586AB36E1BAB03C2B1A0633F67F, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tDCFEE4E579503586AB36E1BAB03C2B1A0633F67F, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tDCFEE4E579503586AB36E1BAB03C2B1A0633F67F, ___current_2)); }
inline U3DaadfU3D_t6258A306E2142DAAFD3A5A8DDE58ACE8592883D2 * get_current_2() const { return ___current_2; }
inline U3DaadfU3D_t6258A306E2142DAAFD3A5A8DDE58ACE8592883D2 ** get_address_of_current_2() { return &___current_2; }
inline void set_current_2(U3DaadfU3D_t6258A306E2142DAAFD3A5A8DDE58ACE8592883D2 * value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_2), (void*)value);
}
};
// System.Linq.Enumerable/Iterator`1<System.Byte>
struct Iterator_1_tB977E16E9E77F59102756D7F0798F3C3810C5238 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
uint8_t ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tB977E16E9E77F59102756D7F0798F3C3810C5238, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tB977E16E9E77F59102756D7F0798F3C3810C5238, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tB977E16E9E77F59102756D7F0798F3C3810C5238, ___current_2)); }
inline uint8_t get_current_2() const { return ___current_2; }
inline uint8_t* get_address_of_current_2() { return &___current_2; }
inline void set_current_2(uint8_t value)
{
___current_2 = value;
}
};
// System.Linq.Enumerable/Iterator`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer>
struct Iterator_1_t6D6B4E260D0624DD10409BDD7D4655EDF882A5C6 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
RuntimeObject* ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_t6D6B4E260D0624DD10409BDD7D4655EDF882A5C6, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_t6D6B4E260D0624DD10409BDD7D4655EDF882A5C6, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_t6D6B4E260D0624DD10409BDD7D4655EDF882A5C6, ___current_2)); }
inline RuntimeObject* get_current_2() const { return ___current_2; }
inline RuntimeObject** get_address_of_current_2() { return &___current_2; }
inline void set_current_2(RuntimeObject* value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_2), (void*)value);
}
};
// System.Linq.Enumerable/Iterator`1<System.Int16>
struct Iterator_1_tD6B7A6D20ADB45FD90693506286A5D9EBBE9B53B : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
int16_t ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tD6B7A6D20ADB45FD90693506286A5D9EBBE9B53B, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tD6B7A6D20ADB45FD90693506286A5D9EBBE9B53B, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tD6B7A6D20ADB45FD90693506286A5D9EBBE9B53B, ___current_2)); }
inline int16_t get_current_2() const { return ___current_2; }
inline int16_t* get_address_of_current_2() { return &___current_2; }
inline void set_current_2(int16_t value)
{
___current_2 = value;
}
};
// System.Linq.Enumerable/Iterator`1<System.Int32>
struct Iterator_1_tCFFC952B03DBE4E956DE317DB9704D936AEA2379 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
int32_t ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tCFFC952B03DBE4E956DE317DB9704D936AEA2379, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tCFFC952B03DBE4E956DE317DB9704D936AEA2379, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tCFFC952B03DBE4E956DE317DB9704D936AEA2379, ___current_2)); }
inline int32_t get_current_2() const { return ___current_2; }
inline int32_t* get_address_of_current_2() { return &___current_2; }
inline void set_current_2(int32_t value)
{
___current_2 = value;
}
};
// System.Linq.Enumerable/Iterator`1<System.String>
struct Iterator_1_t518A3450AAA6AD81E50F0974825C669A78940F57 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
String_t* ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_t518A3450AAA6AD81E50F0974825C669A78940F57, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_t518A3450AAA6AD81E50F0974825C669A78940F57, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_t518A3450AAA6AD81E50F0974825C669A78940F57, ___current_2)); }
inline String_t* get_current_2() const { return ___current_2; }
inline String_t** get_address_of_current_2() { return &___current_2; }
inline void set_current_2(String_t* value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_2), (void*)value);
}
};
// System.Linq.Enumerable/Iterator`1<UnityEngine.UI.Toggle>
struct Iterator_1_tA93D90FAF12703A03EF0DEEC272917FC445640B9 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
Toggle_t68F5A84CDD2BBAEA866F42EB4E0C9F2B431D612E * ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tA93D90FAF12703A03EF0DEEC272917FC445640B9, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tA93D90FAF12703A03EF0DEEC272917FC445640B9, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tA93D90FAF12703A03EF0DEEC272917FC445640B9, ___current_2)); }
inline Toggle_t68F5A84CDD2BBAEA866F42EB4E0C9F2B431D612E * get_current_2() const { return ___current_2; }
inline Toggle_t68F5A84CDD2BBAEA866F42EB4E0C9F2B431D612E ** get_address_of_current_2() { return &___current_2; }
inline void set_current_2(Toggle_t68F5A84CDD2BBAEA866F42EB4E0C9F2B431D612E * value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_2), (void*)value);
}
};
// System.Linq.Enumerable/Iterator`1<System.Type>
struct Iterator_1_t24BA32DB41E3722DEAFD07D0C5EBBD773CB732DC : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
Type_t * ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_t24BA32DB41E3722DEAFD07D0C5EBBD773CB732DC, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_t24BA32DB41E3722DEAFD07D0C5EBBD773CB732DC, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_t24BA32DB41E3722DEAFD07D0C5EBBD773CB732DC, ___current_2)); }
inline Type_t * get_current_2() const { return ___current_2; }
inline Type_t ** get_address_of_current_2() { return &___current_2; }
inline void set_current_2(Type_t * value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_2), (void*)value);
}
};
// System.Linq.Enumerable/Iterator`1<System.UInt16>
struct Iterator_1_tA6A92A296F1ED793BA6074DB7BDA4B3E47F1ACE7 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
uint16_t ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tA6A92A296F1ED793BA6074DB7BDA4B3E47F1ACE7, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tA6A92A296F1ED793BA6074DB7BDA4B3E47F1ACE7, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tA6A92A296F1ED793BA6074DB7BDA4B3E47F1ACE7, ___current_2)); }
inline uint16_t get_current_2() const { return ___current_2; }
inline uint16_t* get_address_of_current_2() { return &___current_2; }
inline void set_current_2(uint16_t value)
{
___current_2 = value;
}
};
// System.Linq.Enumerable/Iterator`1<System.UInt32>
struct Iterator_1_tC451A4AE8E691201572546508C454CABB2954539 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
uint32_t ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tC451A4AE8E691201572546508C454CABB2954539, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tC451A4AE8E691201572546508C454CABB2954539, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tC451A4AE8E691201572546508C454CABB2954539, ___current_2)); }
inline uint32_t get_current_2() const { return ___current_2; }
inline uint32_t* get_address_of_current_2() { return &___current_2; }
inline void set_current_2(uint32_t value)
{
___current_2 = value;
}
};
// System.Linq.Enumerable/Iterator`1<System.UInt64>
struct Iterator_1_t240D25EDB1A8FFDD10B93A394440D64451DE1AB1 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
uint64_t ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_t240D25EDB1A8FFDD10B93A394440D64451DE1AB1, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_t240D25EDB1A8FFDD10B93A394440D64451DE1AB1, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_t240D25EDB1A8FFDD10B93A394440D64451DE1AB1, ___current_2)); }
inline uint64_t get_current_2() const { return ___current_2; }
inline uint64_t* get_address_of_current_2() { return &___current_2; }
inline void set_current_2(uint64_t value)
{
___current_2 = value;
}
};
// System.Linq.Enumerable/Iterator`1<Windows.Media.SpeechSynthesis.VoiceInformation>
struct Iterator_1_tA2ABCE36619A3B2FF69B51FC70679A7EDBF24925 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
VoiceInformation_tC62902AA10C37822040544FB2D38B50C0267E18D * ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tA2ABCE36619A3B2FF69B51FC70679A7EDBF24925, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tA2ABCE36619A3B2FF69B51FC70679A7EDBF24925, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tA2ABCE36619A3B2FF69B51FC70679A7EDBF24925, ___current_2)); }
inline VoiceInformation_tC62902AA10C37822040544FB2D38B50C0267E18D * get_current_2() const { return ___current_2; }
inline VoiceInformation_tC62902AA10C37822040544FB2D38B50C0267E18D ** get_address_of_current_2() { return &___current_2; }
inline void set_current_2(VoiceInformation_tC62902AA10C37822040544FB2D38B50C0267E18D * value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_2), (void*)value);
}
};
// System.Linq.Enumerable/Iterator`1<UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers>
struct Iterator_1_t66252DF8A45F10F17B22A06C3DC3BBA6DD8BA03D : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
MessageTypeSubscribers_t7A69A1D132BF9A354D94F9E490E148BBB81A508F * ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_t66252DF8A45F10F17B22A06C3DC3BBA6DD8BA03D, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_t66252DF8A45F10F17B22A06C3DC3BBA6DD8BA03D, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_t66252DF8A45F10F17B22A06C3DC3BBA6DD8BA03D, ___current_2)); }
inline MessageTypeSubscribers_t7A69A1D132BF9A354D94F9E490E148BBB81A508F * get_current_2() const { return ___current_2; }
inline MessageTypeSubscribers_t7A69A1D132BF9A354D94F9E490E148BBB81A508F ** get_address_of_current_2() { return &___current_2; }
inline void set_current_2(MessageTypeSubscribers_t7A69A1D132BF9A354D94F9E490E148BBB81A508F * value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_2), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,UnityEngine.TextCore.Glyph>
struct ValueCollection_t64D007C459D9245CB1CE63DED03581998E0E003E : 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_t64D007C459D9245CB1CE63DED03581998E0E003E, ___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_t64D007C459D9245CB1CE63DED03581998E0E003E, ___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.UInt32,Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputSource>
struct ValueCollection_tD9694D60747FC3BB35B507B29C6DC514135267B5 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t91414FC2761547DED5F389B4438E5AD96FED6573 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tD9694D60747FC3BB35B507B29C6DC514135267B5, ___dictionary_0)); }
inline Dictionary_2_t91414FC2761547DED5F389B4438E5AD96FED6573 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t91414FC2761547DED5F389B4438E5AD96FED6573 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t91414FC2761547DED5F389B4438E5AD96FED6573 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputSource>
struct ValueCollection_tF9D7B75716BF1B349262E37AC74FD68B3704F815 : 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_tF9D7B75716BF1B349262E37AC74FD68B3704F815, ___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_tF9D7B75716BF1B349262E37AC74FD68B3704F815, ___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.UInt32,Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerMediator>
struct ValueCollection_tF27A67C482F76CFE4C384A8CC362098AA87E8130 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tC83B76260EEF373CC567182B5BA04BC0BB714FFB * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tF27A67C482F76CFE4C384A8CC362098AA87E8130, ___dictionary_0)); }
inline Dictionary_2_tC83B76260EEF373CC567182B5BA04BC0BB714FFB * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tC83B76260EEF373CC567182B5BA04BC0BB714FFB ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tC83B76260EEF373CC567182B5BA04BC0BB714FFB * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerMediator>
struct ValueCollection_tE49833E424DE8713456EA2611791C8FD0F88D7DF : 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_tE49833E424DE8713456EA2611791C8FD0F88D7DF, ___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_tE49833E424DE8713456EA2611791C8FD0F88D7DF, ___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.UInt32,System.Int32>
struct ValueCollection_t5021005DA85ABB38062E53F64AC0587152FDBBDB : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t613970F5DB840DE525998C9C40E993772B7B7F60 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t5021005DA85ABB38062E53F64AC0587152FDBBDB, ___dictionary_0)); }
inline Dictionary_2_t613970F5DB840DE525998C9C40E993772B7B7F60 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t613970F5DB840DE525998C9C40E993772B7B7F60 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t613970F5DB840DE525998C9C40E993772B7B7F60 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,System.Int32>
struct ValueCollection_t727B80D5ADB9A8F25F15F4B7B565145DBE52E5C8 : 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_t727B80D5ADB9A8F25F15F4B7B565145DBE52E5C8, ___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_t727B80D5ADB9A8F25F15F4B7B565145DBE52E5C8, ___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.UInt32,TMPro.TMP_Character>
struct ValueCollection_t26781662F3B517C49F6523DD6BE7954D4EDE8CC6 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t6BB43D0F158FE3B19E71F6F48A84283B5250E1B4 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t26781662F3B517C49F6523DD6BE7954D4EDE8CC6, ___dictionary_0)); }
inline Dictionary_2_t6BB43D0F158FE3B19E71F6F48A84283B5250E1B4 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t6BB43D0F158FE3B19E71F6F48A84283B5250E1B4 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t6BB43D0F158FE3B19E71F6F48A84283B5250E1B4 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,TMPro.TMP_Character>
struct ValueCollection_t3656713F9AD0FD9A64850F17C02DCB652254BEBA : 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_t3656713F9AD0FD9A64850F17C02DCB652254BEBA, ___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_t3656713F9AD0FD9A64850F17C02DCB652254BEBA, ___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.UInt32,TMPro.TMP_GlyphPairAdjustmentRecord>
struct ValueCollection_tA0BA28017BC956C749773968709DDA31226156B3 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t0583F646DAE1361FD64601FB5FBF7B4C57DDBDF4 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tA0BA28017BC956C749773968709DDA31226156B3, ___dictionary_0)); }
inline Dictionary_2_t0583F646DAE1361FD64601FB5FBF7B4C57DDBDF4 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t0583F646DAE1361FD64601FB5FBF7B4C57DDBDF4 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t0583F646DAE1361FD64601FB5FBF7B4C57DDBDF4 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,TMPro.TMP_GlyphPairAdjustmentRecord>
struct ValueCollection_t48D21E190DB44DD2D33C642E565D43B1B40A7D31 : 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_t48D21E190DB44DD2D33C642E565D43B1B40A7D31, ___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_t48D21E190DB44DD2D33C642E565D43B1B40A7D31, ___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.UInt32,TMPro.TMP_SpriteCharacter>
struct ValueCollection_t87E40163F777395B84663882E0FD5DEB3C624C50 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tEC101901EE680E17704967FA8AF17B1E6CD618B8 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t87E40163F777395B84663882E0FD5DEB3C624C50, ___dictionary_0)); }
inline Dictionary_2_tEC101901EE680E17704967FA8AF17B1E6CD618B8 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tEC101901EE680E17704967FA8AF17B1E6CD618B8 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tEC101901EE680E17704967FA8AF17B1E6CD618B8 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,TMPro.TMP_SpriteCharacter>
struct ValueCollection_tB4BBE80046443E5F9508F17B13DD273F5B3DB9F4 : 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_tB4BBE80046443E5F9508F17B13DD273F5B3DB9F4, ___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_tB4BBE80046443E5F9508F17B13DD273F5B3DB9F4, ___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.UInt32,TMPro.TMP_SpriteGlyph>
struct ValueCollection_t94BB350A9E80F0F92298B2AAA875C6CE7BE6BF3E : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tF17132A004B24571E82B3F37E944651A0E72799F * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t94BB350A9E80F0F92298B2AAA875C6CE7BE6BF3E, ___dictionary_0)); }
inline Dictionary_2_tF17132A004B24571E82B3F37E944651A0E72799F * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tF17132A004B24571E82B3F37E944651A0E72799F ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tF17132A004B24571E82B3F37E944651A0E72799F * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,TMPro.TMP_SpriteGlyph>
struct ValueCollection_t18EF4EB3EDDA186F53BDA5AEFCCA52DB03BA4038 : 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_t18EF4EB3EDDA186F53BDA5AEFCCA52DB03BA4038, ___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_t18EF4EB3EDDA186F53BDA5AEFCCA52DB03BA4038, ___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.UInt32,UnityEngine.Vector3>
struct ValueCollection_t5955D5A3C134093B1999460BDFCF24C96D5D2A07 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t256F7457C5391AFF33E0176E25A35BB9E7DC0656 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t5955D5A3C134093B1999460BDFCF24C96D5D2A07, ___dictionary_0)); }
inline Dictionary_2_t256F7457C5391AFF33E0176E25A35BB9E7DC0656 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t256F7457C5391AFF33E0176E25A35BB9E7DC0656 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t256F7457C5391AFF33E0176E25A35BB9E7DC0656 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,UnityEngine.Vector3>
struct ValueCollection_tA279FBE0E3F74DCEB493B9DC51D68A2AB8B5B806 : 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_tA279FBE0E3F74DCEB493B9DC51D68A2AB8B5B806, ___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_tA279FBE0E3F74DCEB493B9DC51D68A2AB8B5B806, ___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.UInt32,Microsoft.MixedReality.Toolkit.Input.FocusProvider/PointerData>
struct ValueCollection_t330B018AC6F61C92F6956FD20121640660C3DC94 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t53BEDDE14FD5A4890CA209C6A5C92ED36C826DB0 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t330B018AC6F61C92F6956FD20121640660C3DC94, ___dictionary_0)); }
inline Dictionary_2_t53BEDDE14FD5A4890CA209C6A5C92ED36C826DB0 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t53BEDDE14FD5A4890CA209C6A5C92ED36C826DB0 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t53BEDDE14FD5A4890CA209C6A5C92ED36C826DB0 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.Input.FocusProvider/PointerData>
struct ValueCollection_t6B995C7C46C0C9A3D82511E53B62ED6F4B6D8CFF : 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_t6B995C7C46C0C9A3D82511E53B62ED6F4B6D8CFF, ___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_t6B995C7C46C0C9A3D82511E53B62ED6F4B6D8CFF, ___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.UInt32,Microsoft.MixedReality.Toolkit.UI.HandInteractionPanZoom/HandPanData>
struct ValueCollection_t60FE881C39D0EE2148864C5F043C440BF0B9A3BD : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t48018686F13B76C29F0989BD541F34F9CB12F3F8 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t60FE881C39D0EE2148864C5F043C440BF0B9A3BD, ___dictionary_0)); }
inline Dictionary_2_t48018686F13B76C29F0989BD541F34F9CB12F3F8 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t48018686F13B76C29F0989BD541F34F9CB12F3F8 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t48018686F13B76C29F0989BD541F34F9CB12F3F8 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.UI.HandInteractionPanZoom/HandPanData>
struct ValueCollection_t7CF0A6900A3970214CC62D487D4E21BABBEB6424 : 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_t7CF0A6900A3970214CC62D487D4E21BABBEB6424, ___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_t7CF0A6900A3970214CC62D487D4E21BABBEB6424, ___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.UInt32,Microsoft.MixedReality.Toolkit.UI.ManipulationHandler/PointerData>
struct ValueCollection_t91755740CE10F8285DF69267195F913EC19329D2 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tB410B020392B19B66A784A65229616D69A5E4FD8 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t91755740CE10F8285DF69267195F913EC19329D2, ___dictionary_0)); }
inline Dictionary_2_tB410B020392B19B66A784A65229616D69A5E4FD8 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tB410B020392B19B66A784A65229616D69A5E4FD8 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tB410B020392B19B66A784A65229616D69A5E4FD8 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ManipulationHandler/PointerData>
struct ValueCollection_t5AED78ADF0D1B275856AF66AAAAEB6F023459CE1 : 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_t5AED78ADF0D1B275856AF66AAAAEB6F023459CE1, ___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_t5AED78ADF0D1B275856AF66AAAAEB6F023459CE1, ___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.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>
struct ValueCollection_tE3BD5B483679001B8832AE08DAAF0BB342A4B61A : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t10C3034FFC4E11D4F31BC015D0EBCA88CD91652B * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tE3BD5B483679001B8832AE08DAAF0BB342A4B61A, ___dictionary_0)); }
inline Dictionary_2_t10C3034FFC4E11D4F31BC015D0EBCA88CD91652B * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t10C3034FFC4E11D4F31BC015D0EBCA88CD91652B ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t10C3034FFC4E11D4F31BC015D0EBCA88CD91652B * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>
struct ValueCollection_t3B0EAC9662E321339A90A1BB26F8D9A1B387264B : 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_t3B0EAC9662E321339A90A1BB26F8D9A1B387264B, ___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_t3B0EAC9662E321339A90A1BB26F8D9A1B387264B, ___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.UInt64,System.String>
struct ValueCollection_t605DD6D0F69244327069841A80F7B478CA395611 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t61E97B9B29E45DF3EE7BBE7DAA593B5A7986C3BC * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t605DD6D0F69244327069841A80F7B478CA395611, ___dictionary_0)); }
inline Dictionary_2_t61E97B9B29E45DF3EE7BBE7DAA593B5A7986C3BC * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t61E97B9B29E45DF3EE7BBE7DAA593B5A7986C3BC ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t61E97B9B29E45DF3EE7BBE7DAA593B5A7986C3BC * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt64,System.String>
struct ValueCollection_tEED3B6CEB0CBBA63976EFAF65A830DC4AFAE9044 : 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_tEED3B6CEB0CBBA63976EFAF65A830DC4AFAE9044, ___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_tEED3B6CEB0CBBA63976EFAF65A830DC4AFAE9044, ___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.Vector3,System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.Int32,UnityEngine.Vector3>>>
struct ValueCollection_t41590D8A9B3917F4E2FC8CE198763C676DD1E941 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_tA58E268BB31F8DB55A1453FC647D9862D1713E14 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t41590D8A9B3917F4E2FC8CE198763C676DD1E941, ___dictionary_0)); }
inline Dictionary_2_tA58E268BB31F8DB55A1453FC647D9862D1713E14 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_tA58E268BB31F8DB55A1453FC647D9862D1713E14 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_tA58E268BB31F8DB55A1453FC647D9862D1713E14 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.Vector3,System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.Int32,UnityEngine.Vector3>>>
struct ValueCollection_t8EADE58A39AD7CAF64B686B4A89599C485F93334 : 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_t8EADE58A39AD7CAF64B686B4A89599C485F93334, ___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_t8EADE58A39AD7CAF64B686B4A89599C485F93334, ___m_syncRoot_1)); }
inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; }
inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; }
inline void set_m_syncRoot_1(RuntimeObject * value)
{
___m_syncRoot_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value);
}
};
// System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose/GestureId,Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose>
struct ValueCollection_t947EE00CEBC4E5E73D64863B6911ED19D30A35A2 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t688DB5E80AA0191F205A4D3AAA6E72BDDC71C7B1 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t947EE00CEBC4E5E73D64863B6911ED19D30A35A2, ___dictionary_0)); }
inline Dictionary_2_t688DB5E80AA0191F205A4D3AAA6E72BDDC71C7B1 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t688DB5E80AA0191F205A4D3AAA6E72BDDC71C7B1 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t688DB5E80AA0191F205A4D3AAA6E72BDDC71C7B1 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose/GestureId,Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose>
struct ValueCollection_t732C51F4EA3D728D21B3F97669B2027CFBFC97B8 : 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_t732C51F4EA3D728D21B3F97669B2027CFBFC97B8, ___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_t732C51F4EA3D728D21B3F97669B2027CFBFC97B8, ___m_syncRoot_1)); }
inline RuntimeObject * get_m_syncRoot_1() const { return ___m_syncRoot_1; }
inline RuntimeObject ** get_address_of_m_syncRoot_1() { return &___m_syncRoot_1; }
inline void set_m_syncRoot_1(RuntimeObject * value)
{
___m_syncRoot_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_syncRoot_1), (void*)value);
}
};
// System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose/GestureId,System.String>
struct ValueCollection_t77FE8C81F7FA9D24528AA67AE0E9234454B4E277 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t4573A3DB083B94743ED198D3CFEE9EAC6AB84934 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_t77FE8C81F7FA9D24528AA67AE0E9234454B4E277, ___dictionary_0)); }
inline Dictionary_2_t4573A3DB083B94743ED198D3CFEE9EAC6AB84934 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t4573A3DB083B94743ED198D3CFEE9EAC6AB84934 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t4573A3DB083B94743ED198D3CFEE9EAC6AB84934 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose/GestureId,System.String>
struct ValueCollection_t6EA461BA272F3A526B4E493B0DCD9A452D7D77BF : 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_t6EA461BA272F3A526B4E493B0DCD9A452D7D77BF, ___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_t6EA461BA272F3A526B4E493B0DCD9A452D7D77BF, ___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.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,UnityEngine.Terrain>
struct ValueCollection_tA937879944B4CC06877A7FDB0FD1D2B941D9221B : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t4990FF96A726883A9DEEF78473DD04BB3125158C * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tA937879944B4CC06877A7FDB0FD1D2B941D9221B, ___dictionary_0)); }
inline Dictionary_2_t4990FF96A726883A9DEEF78473DD04BB3125158C * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t4990FF96A726883A9DEEF78473DD04BB3125158C ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t4990FF96A726883A9DEEF78473DD04BB3125158C * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,UnityEngine.Terrain>
struct ValueCollection_t2AEB3A1C69112442A6D921E04C4D143DF405BEA8 : 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_t2AEB3A1C69112442A6D921E04C4D143DF405BEA8, ___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_t2AEB3A1C69112442A6D921E04C4D143DF405BEA8, ___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.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>
struct ValueCollection_tDA9C3CF0F1B2413AABEC563511728419196CDD32 : public RuntimeObject
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2/ValueCollection::dictionary
Dictionary_2_t0986F9D82B8D09D448B013D5071D700FA1CF22C8 * ___dictionary_0;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(ValueCollection_tDA9C3CF0F1B2413AABEC563511728419196CDD32, ___dictionary_0)); }
inline Dictionary_2_t0986F9D82B8D09D448B013D5071D700FA1CF22C8 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t0986F9D82B8D09D448B013D5071D700FA1CF22C8 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t0986F9D82B8D09D448B013D5071D700FA1CF22C8 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
};
// System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>
struct ValueCollection_t7D92672F7282AD68A0C029BCDA6AF66001E9EB42 : 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_t7D92672F7282AD68A0C029BCDA6AF66001E9EB42, ___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_t7D92672F7282AD68A0C029BCDA6AF66001E9EB42, ___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.ValueType
struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 : public RuntimeObject
{
public:
public:
};
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_com
{
};
// System.Collections.Generic.List`1/Enumerator<=aaBE=>
struct Enumerator_tD6A77346FEE2460DEAA8272351D66E797A3BE9A7
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1/Enumerator::list
List_1_t653082024DCE75206AA6BBFEB5AC2A0980289206 * ___list_0;
// System.Int32 System.Collections.Generic.List`1/Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1/Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1/Enumerator::current
U3DaaBEU3D_t0DA2FDACF09EEB7BDBD605B9A5958603FD8924AD * ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_tD6A77346FEE2460DEAA8272351D66E797A3BE9A7, ___list_0)); }
inline List_1_t653082024DCE75206AA6BBFEB5AC2A0980289206 * get_list_0() const { return ___list_0; }
inline List_1_t653082024DCE75206AA6BBFEB5AC2A0980289206 ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_t653082024DCE75206AA6BBFEB5AC2A0980289206 * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_tD6A77346FEE2460DEAA8272351D66E797A3BE9A7, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_tD6A77346FEE2460DEAA8272351D66E797A3BE9A7, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_tD6A77346FEE2460DEAA8272351D66E797A3BE9A7, ___current_3)); }
inline U3DaaBEU3D_t0DA2FDACF09EEB7BDBD605B9A5958603FD8924AD * get_current_3() const { return ___current_3; }
inline U3DaaBEU3D_t0DA2FDACF09EEB7BDBD605B9A5958603FD8924AD ** get_address_of_current_3() { return &___current_3; }
inline void set_current_3(U3DaaBEU3D_t0DA2FDACF09EEB7BDBD605B9A5958603FD8924AD * value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_3), (void*)value);
}
};
// System.Collections.Generic.List`1/Enumerator<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer>
struct Enumerator_t646EDB508B4DBEB5C321378C3B26DB11ED302986
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1/Enumerator::list
List_1_t70D278A9C53871EE6A077AEE68BF749546B5B347 * ___list_0;
// System.Int32 System.Collections.Generic.List`1/Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1/Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1/Enumerator::current
RuntimeObject* ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_t646EDB508B4DBEB5C321378C3B26DB11ED302986, ___list_0)); }
inline List_1_t70D278A9C53871EE6A077AEE68BF749546B5B347 * get_list_0() const { return ___list_0; }
inline List_1_t70D278A9C53871EE6A077AEE68BF749546B5B347 ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_t70D278A9C53871EE6A077AEE68BF749546B5B347 * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_t646EDB508B4DBEB5C321378C3B26DB11ED302986, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_t646EDB508B4DBEB5C321378C3B26DB11ED302986, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t646EDB508B4DBEB5C321378C3B26DB11ED302986, ___current_3)); }
inline RuntimeObject* get_current_3() const { return ___current_3; }
inline RuntimeObject** get_address_of_current_3() { return &___current_3; }
inline void set_current_3(RuntimeObject* value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_3), (void*)value);
}
};
// System.Collections.Generic.List`1/Enumerator<System.String>
struct Enumerator_tCDCE241581BD00D8EDB03C9DC4133A65ADABF67B
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1/Enumerator::list
List_1_t6C9F81EDBF0F4A31A9B0DA372D2EF34BDA3A1AF3 * ___list_0;
// System.Int32 System.Collections.Generic.List`1/Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1/Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1/Enumerator::current
String_t* ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_tCDCE241581BD00D8EDB03C9DC4133A65ADABF67B, ___list_0)); }
inline List_1_t6C9F81EDBF0F4A31A9B0DA372D2EF34BDA3A1AF3 * get_list_0() const { return ___list_0; }
inline List_1_t6C9F81EDBF0F4A31A9B0DA372D2EF34BDA3A1AF3 ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_t6C9F81EDBF0F4A31A9B0DA372D2EF34BDA3A1AF3 * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_tCDCE241581BD00D8EDB03C9DC4133A65ADABF67B, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_tCDCE241581BD00D8EDB03C9DC4133A65ADABF67B, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_tCDCE241581BD00D8EDB03C9DC4133A65ADABF67B, ___current_3)); }
inline String_t* get_current_3() const { return ___current_3; }
inline String_t** get_address_of_current_3() { return &___current_3; }
inline void set_current_3(String_t* value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_3), (void*)value);
}
};
// System.Collections.Generic.List`1/Enumerator<UnityEngine.UI.Toggle>
struct Enumerator_t31AFCE097784B793D1AFD1CC12A4BE8AED3AE5D7
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1/Enumerator::list
List_1_tECEEA56321275CFF8DECB929786CE364F743B07D * ___list_0;
// System.Int32 System.Collections.Generic.List`1/Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1/Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1/Enumerator::current
Toggle_t68F5A84CDD2BBAEA866F42EB4E0C9F2B431D612E * ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_t31AFCE097784B793D1AFD1CC12A4BE8AED3AE5D7, ___list_0)); }
inline List_1_tECEEA56321275CFF8DECB929786CE364F743B07D * get_list_0() const { return ___list_0; }
inline List_1_tECEEA56321275CFF8DECB929786CE364F743B07D ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_tECEEA56321275CFF8DECB929786CE364F743B07D * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_t31AFCE097784B793D1AFD1CC12A4BE8AED3AE5D7, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_t31AFCE097784B793D1AFD1CC12A4BE8AED3AE5D7, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t31AFCE097784B793D1AFD1CC12A4BE8AED3AE5D7, ___current_3)); }
inline Toggle_t68F5A84CDD2BBAEA866F42EB4E0C9F2B431D612E * get_current_3() const { return ___current_3; }
inline Toggle_t68F5A84CDD2BBAEA866F42EB4E0C9F2B431D612E ** get_address_of_current_3() { return &___current_3; }
inline void set_current_3(Toggle_t68F5A84CDD2BBAEA866F42EB4E0C9F2B431D612E * value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_3), (void*)value);
}
};
// System.Collections.Generic.List`1/Enumerator<System.Type>
struct Enumerator_tF4C0DAA7296AA2D9882BDBBBA6058B423BD2A4BC
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1/Enumerator::list
List_1_t7CFD5FCE8366620F593F2C9DAC3A870E5D6506D7 * ___list_0;
// System.Int32 System.Collections.Generic.List`1/Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1/Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1/Enumerator::current
Type_t * ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_tF4C0DAA7296AA2D9882BDBBBA6058B423BD2A4BC, ___list_0)); }
inline List_1_t7CFD5FCE8366620F593F2C9DAC3A870E5D6506D7 * get_list_0() const { return ___list_0; }
inline List_1_t7CFD5FCE8366620F593F2C9DAC3A870E5D6506D7 ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_t7CFD5FCE8366620F593F2C9DAC3A870E5D6506D7 * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_tF4C0DAA7296AA2D9882BDBBBA6058B423BD2A4BC, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_tF4C0DAA7296AA2D9882BDBBBA6058B423BD2A4BC, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_tF4C0DAA7296AA2D9882BDBBBA6058B423BD2A4BC, ___current_3)); }
inline Type_t * get_current_3() const { return ___current_3; }
inline Type_t ** get_address_of_current_3() { return &___current_3; }
inline void set_current_3(Type_t * value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_3), (void*)value);
}
};
// System.Collections.Generic.List`1/Enumerator<Windows.Media.SpeechSynthesis.VoiceInformation>
struct Enumerator_t41D1F553F15F7D1C15541B3A49BCE7798DC1EFDD
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1/Enumerator::list
List_1_t274FDF00BE3592692AB3755E028D8DCBDE654885 * ___list_0;
// System.Int32 System.Collections.Generic.List`1/Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1/Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1/Enumerator::current
VoiceInformation_tC62902AA10C37822040544FB2D38B50C0267E18D * ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_t41D1F553F15F7D1C15541B3A49BCE7798DC1EFDD, ___list_0)); }
inline List_1_t274FDF00BE3592692AB3755E028D8DCBDE654885 * get_list_0() const { return ___list_0; }
inline List_1_t274FDF00BE3592692AB3755E028D8DCBDE654885 ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_t274FDF00BE3592692AB3755E028D8DCBDE654885 * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_t41D1F553F15F7D1C15541B3A49BCE7798DC1EFDD, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_t41D1F553F15F7D1C15541B3A49BCE7798DC1EFDD, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t41D1F553F15F7D1C15541B3A49BCE7798DC1EFDD, ___current_3)); }
inline VoiceInformation_tC62902AA10C37822040544FB2D38B50C0267E18D * get_current_3() const { return ___current_3; }
inline VoiceInformation_tC62902AA10C37822040544FB2D38B50C0267E18D ** get_address_of_current_3() { return &___current_3; }
inline void set_current_3(VoiceInformation_tC62902AA10C37822040544FB2D38B50C0267E18D * value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_3), (void*)value);
}
};
// System.Collections.Generic.List`1/Enumerator<UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers>
struct Enumerator_t44D7D2F459EE8B12D589CF49B92DFBDAA55F809B
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1/Enumerator::list
List_1_t842D0C636A38CB2DC974F9A4CFD45C93CBEE352E * ___list_0;
// System.Int32 System.Collections.Generic.List`1/Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1/Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1/Enumerator::current
MessageTypeSubscribers_t7A69A1D132BF9A354D94F9E490E148BBB81A508F * ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_t44D7D2F459EE8B12D589CF49B92DFBDAA55F809B, ___list_0)); }
inline List_1_t842D0C636A38CB2DC974F9A4CFD45C93CBEE352E * get_list_0() const { return ___list_0; }
inline List_1_t842D0C636A38CB2DC974F9A4CFD45C93CBEE352E ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_t842D0C636A38CB2DC974F9A4CFD45C93CBEE352E * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_t44D7D2F459EE8B12D589CF49B92DFBDAA55F809B, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_t44D7D2F459EE8B12D589CF49B92DFBDAA55F809B, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t44D7D2F459EE8B12D589CF49B92DFBDAA55F809B, ___current_3)); }
inline MessageTypeSubscribers_t7A69A1D132BF9A354D94F9E490E148BBB81A508F * get_current_3() const { return ___current_3; }
inline MessageTypeSubscribers_t7A69A1D132BF9A354D94F9E490E148BBB81A508F ** get_address_of_current_3() { return &___current_3; }
inline void set_current_3(MessageTypeSubscribers_t7A69A1D132BF9A354D94F9E490E148BBB81A508F * value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_3), (void*)value);
}
};
// System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>
struct KeyValuePair_2_t4F16D7881F1F9003EEB204F45B28257F1D66DD7C
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
int32_t ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
HashSet_1_tF187707BD5564B6808CE30721FBC083F00B385E5 * ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t4F16D7881F1F9003EEB204F45B28257F1D66DD7C, ___key_0)); }
inline int32_t get_key_0() const { return ___key_0; }
inline int32_t* get_address_of_key_0() { return &___key_0; }
inline void set_key_0(int32_t value)
{
___key_0 = value;
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t4F16D7881F1F9003EEB204F45B28257F1D66DD7C, ___value_1)); }
inline HashSet_1_tF187707BD5564B6808CE30721FBC083F00B385E5 * get_value_1() const { return ___value_1; }
inline HashSet_1_tF187707BD5564B6808CE30721FBC083F00B385E5 ** get_address_of_value_1() { return &___value_1; }
inline void set_value_1(HashSet_1_tF187707BD5564B6808CE30721FBC083F00B385E5 * value)
{
___value_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value);
}
};
// System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>
struct KeyValuePair_2_t1A02A92F19CB8BC0B946A7021B58318555A213B2
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
String_t* ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
U3Da8BU3D_t0AE61074FAD903E8A4BD78C9B8F6EBA7B60B0D8C * ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t1A02A92F19CB8BC0B946A7021B58318555A213B2, ___key_0)); }
inline String_t* get_key_0() const { return ___key_0; }
inline String_t** get_address_of_key_0() { return &___key_0; }
inline void set_key_0(String_t* value)
{
___key_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___key_0), (void*)value);
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t1A02A92F19CB8BC0B946A7021B58318555A213B2, ___value_1)); }
inline U3Da8BU3D_t0AE61074FAD903E8A4BD78C9B8F6EBA7B60B0D8C * get_value_1() const { return ___value_1; }
inline U3Da8BU3D_t0AE61074FAD903E8A4BD78C9B8F6EBA7B60B0D8C ** get_address_of_value_1() { return &___value_1; }
inline void set_value_1(U3Da8BU3D_t0AE61074FAD903E8A4BD78C9B8F6EBA7B60B0D8C * value)
{
___value_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value);
}
};
// System.Linq.Enumerable/WhereArrayIterator`1<=aaBE=>
struct WhereArrayIterator_1_t1F58A5ED0CB4FA7B01299202D5AA1666BD914A9B : public Iterator_1_tDEB5F21FCAC087A22DD0F7E89AEB09BC1E8FE0C7
{
public:
// TSource[] System.Linq.Enumerable/WhereArrayIterator`1::source
U3DaaBEU3DU5BU5D_tDCE14B8A22EBFDEB82E525F3EBFEF0F97FFE882B* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereArrayIterator`1::predicate
Func_2_t5CFAB67CCB6EA2BB6BCEF652B10FA9C084B42FAC * ___predicate_4;
// System.Int32 System.Linq.Enumerable/WhereArrayIterator`1::index
int32_t ___index_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t1F58A5ED0CB4FA7B01299202D5AA1666BD914A9B, ___source_3)); }
inline U3DaaBEU3DU5BU5D_tDCE14B8A22EBFDEB82E525F3EBFEF0F97FFE882B* get_source_3() const { return ___source_3; }
inline U3DaaBEU3DU5BU5D_tDCE14B8A22EBFDEB82E525F3EBFEF0F97FFE882B** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(U3DaaBEU3DU5BU5D_tDCE14B8A22EBFDEB82E525F3EBFEF0F97FFE882B* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t1F58A5ED0CB4FA7B01299202D5AA1666BD914A9B, ___predicate_4)); }
inline Func_2_t5CFAB67CCB6EA2BB6BCEF652B10FA9C084B42FAC * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t5CFAB67CCB6EA2BB6BCEF652B10FA9C084B42FAC ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t5CFAB67CCB6EA2BB6BCEF652B10FA9C084B42FAC * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_index_5() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t1F58A5ED0CB4FA7B01299202D5AA1666BD914A9B, ___index_5)); }
inline int32_t get_index_5() const { return ___index_5; }
inline int32_t* get_address_of_index_5() { return &___index_5; }
inline void set_index_5(int32_t value)
{
___index_5 = value;
}
};
// System.Linq.Enumerable/WhereArrayIterator`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer>
struct WhereArrayIterator_1_t67584466FB0FCE46D52989D118AEAEDE51BEDC08 : public Iterator_1_t6D6B4E260D0624DD10409BDD7D4655EDF882A5C6
{
public:
// TSource[] System.Linq.Enumerable/WhereArrayIterator`1::source
IMixedRealityPointerU5BU5D_t878EB1C38193E537833123AD7BCBE635AA402AF9* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereArrayIterator`1::predicate
Func_2_t756EAF50FD670354E22728B1DE8496991F588D85 * ___predicate_4;
// System.Int32 System.Linq.Enumerable/WhereArrayIterator`1::index
int32_t ___index_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t67584466FB0FCE46D52989D118AEAEDE51BEDC08, ___source_3)); }
inline IMixedRealityPointerU5BU5D_t878EB1C38193E537833123AD7BCBE635AA402AF9* get_source_3() const { return ___source_3; }
inline IMixedRealityPointerU5BU5D_t878EB1C38193E537833123AD7BCBE635AA402AF9** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(IMixedRealityPointerU5BU5D_t878EB1C38193E537833123AD7BCBE635AA402AF9* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t67584466FB0FCE46D52989D118AEAEDE51BEDC08, ___predicate_4)); }
inline Func_2_t756EAF50FD670354E22728B1DE8496991F588D85 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t756EAF50FD670354E22728B1DE8496991F588D85 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t756EAF50FD670354E22728B1DE8496991F588D85 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_index_5() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t67584466FB0FCE46D52989D118AEAEDE51BEDC08, ___index_5)); }
inline int32_t get_index_5() const { return ___index_5; }
inline int32_t* get_address_of_index_5() { return &___index_5; }
inline void set_index_5(int32_t value)
{
___index_5 = value;
}
};
// System.Linq.Enumerable/WhereArrayIterator`1<System.String>
struct WhereArrayIterator_1_t7081EE3EA18758FC43E21EC169898670BF18AF76 : public Iterator_1_t518A3450AAA6AD81E50F0974825C669A78940F57
{
public:
// TSource[] System.Linq.Enumerable/WhereArrayIterator`1::source
StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereArrayIterator`1::predicate
Func_2_t8B45BBA625F1F9197CEB4999F9B2A963FCE4B92D * ___predicate_4;
// System.Int32 System.Linq.Enumerable/WhereArrayIterator`1::index
int32_t ___index_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t7081EE3EA18758FC43E21EC169898670BF18AF76, ___source_3)); }
inline StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* get_source_3() const { return ___source_3; }
inline StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t7081EE3EA18758FC43E21EC169898670BF18AF76, ___predicate_4)); }
inline Func_2_t8B45BBA625F1F9197CEB4999F9B2A963FCE4B92D * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t8B45BBA625F1F9197CEB4999F9B2A963FCE4B92D ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t8B45BBA625F1F9197CEB4999F9B2A963FCE4B92D * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_index_5() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t7081EE3EA18758FC43E21EC169898670BF18AF76, ___index_5)); }
inline int32_t get_index_5() const { return ___index_5; }
inline int32_t* get_address_of_index_5() { return &___index_5; }
inline void set_index_5(int32_t value)
{
___index_5 = value;
}
};
// System.Linq.Enumerable/WhereArrayIterator`1<UnityEngine.UI.Toggle>
struct WhereArrayIterator_1_tF2CB27C2D3A811BF0E4D3D3D0522EB4CC183A128 : public Iterator_1_tA93D90FAF12703A03EF0DEEC272917FC445640B9
{
public:
// TSource[] System.Linq.Enumerable/WhereArrayIterator`1::source
ToggleU5BU5D_tA5358751F4D3BE44D4C7C9C8CA0E6FCCC78767CF* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereArrayIterator`1::predicate
Func_2_tCE3CE3D7F67C20FF5576ED2A6E74518A0756E2DE * ___predicate_4;
// System.Int32 System.Linq.Enumerable/WhereArrayIterator`1::index
int32_t ___index_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_tF2CB27C2D3A811BF0E4D3D3D0522EB4CC183A128, ___source_3)); }
inline ToggleU5BU5D_tA5358751F4D3BE44D4C7C9C8CA0E6FCCC78767CF* get_source_3() const { return ___source_3; }
inline ToggleU5BU5D_tA5358751F4D3BE44D4C7C9C8CA0E6FCCC78767CF** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(ToggleU5BU5D_tA5358751F4D3BE44D4C7C9C8CA0E6FCCC78767CF* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_tF2CB27C2D3A811BF0E4D3D3D0522EB4CC183A128, ___predicate_4)); }
inline Func_2_tCE3CE3D7F67C20FF5576ED2A6E74518A0756E2DE * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tCE3CE3D7F67C20FF5576ED2A6E74518A0756E2DE ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tCE3CE3D7F67C20FF5576ED2A6E74518A0756E2DE * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_index_5() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_tF2CB27C2D3A811BF0E4D3D3D0522EB4CC183A128, ___index_5)); }
inline int32_t get_index_5() const { return ___index_5; }
inline int32_t* get_address_of_index_5() { return &___index_5; }
inline void set_index_5(int32_t value)
{
___index_5 = value;
}
};
// System.Linq.Enumerable/WhereArrayIterator`1<System.Type>
struct WhereArrayIterator_1_t77274D35118AFC42D55438E024FEA17A4ABD2F6E : public Iterator_1_t24BA32DB41E3722DEAFD07D0C5EBBD773CB732DC
{
public:
// TSource[] System.Linq.Enumerable/WhereArrayIterator`1::source
TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereArrayIterator`1::predicate
Func_2_tDA1CD28AB1DD1EC817F9902B752EB3751BE154B5 * ___predicate_4;
// System.Int32 System.Linq.Enumerable/WhereArrayIterator`1::index
int32_t ___index_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t77274D35118AFC42D55438E024FEA17A4ABD2F6E, ___source_3)); }
inline TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755* get_source_3() const { return ___source_3; }
inline TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t77274D35118AFC42D55438E024FEA17A4ABD2F6E, ___predicate_4)); }
inline Func_2_tDA1CD28AB1DD1EC817F9902B752EB3751BE154B5 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tDA1CD28AB1DD1EC817F9902B752EB3751BE154B5 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tDA1CD28AB1DD1EC817F9902B752EB3751BE154B5 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_index_5() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t77274D35118AFC42D55438E024FEA17A4ABD2F6E, ___index_5)); }
inline int32_t get_index_5() const { return ___index_5; }
inline int32_t* get_address_of_index_5() { return &___index_5; }
inline void set_index_5(int32_t value)
{
___index_5 = value;
}
};
// System.Linq.Enumerable/WhereArrayIterator`1<Windows.Media.SpeechSynthesis.VoiceInformation>
struct WhereArrayIterator_1_t80B804D2A05A956E9DBEC18A9CC9BAE099693EAE : public Iterator_1_tA2ABCE36619A3B2FF69B51FC70679A7EDBF24925
{
public:
// TSource[] System.Linq.Enumerable/WhereArrayIterator`1::source
VoiceInformationU5BU5D_tC834DF216D23E7CD700B0C2DDEEEE95B5422E5C0* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereArrayIterator`1::predicate
Func_2_t94D24DEAAB9E90481B81A93DA47A65FDADAC7D86 * ___predicate_4;
// System.Int32 System.Linq.Enumerable/WhereArrayIterator`1::index
int32_t ___index_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t80B804D2A05A956E9DBEC18A9CC9BAE099693EAE, ___source_3)); }
inline VoiceInformationU5BU5D_tC834DF216D23E7CD700B0C2DDEEEE95B5422E5C0* get_source_3() const { return ___source_3; }
inline VoiceInformationU5BU5D_tC834DF216D23E7CD700B0C2DDEEEE95B5422E5C0** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(VoiceInformationU5BU5D_tC834DF216D23E7CD700B0C2DDEEEE95B5422E5C0* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t80B804D2A05A956E9DBEC18A9CC9BAE099693EAE, ___predicate_4)); }
inline Func_2_t94D24DEAAB9E90481B81A93DA47A65FDADAC7D86 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t94D24DEAAB9E90481B81A93DA47A65FDADAC7D86 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t94D24DEAAB9E90481B81A93DA47A65FDADAC7D86 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_index_5() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t80B804D2A05A956E9DBEC18A9CC9BAE099693EAE, ___index_5)); }
inline int32_t get_index_5() const { return ___index_5; }
inline int32_t* get_address_of_index_5() { return &___index_5; }
inline void set_index_5(int32_t value)
{
___index_5 = value;
}
};
// System.Linq.Enumerable/WhereArrayIterator`1<UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers>
struct WhereArrayIterator_1_t7D221626D18117E1A32B14DD69D4F114FCFA1047 : public Iterator_1_t66252DF8A45F10F17B22A06C3DC3BBA6DD8BA03D
{
public:
// TSource[] System.Linq.Enumerable/WhereArrayIterator`1::source
MessageTypeSubscribersU5BU5D_t22089BC97FCAC7EB77905E033710F94252F0D5A0* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereArrayIterator`1::predicate
Func_2_t5F8D0CE7FEC1909F009FDD63706CECBB1BD5D5A8 * ___predicate_4;
// System.Int32 System.Linq.Enumerable/WhereArrayIterator`1::index
int32_t ___index_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t7D221626D18117E1A32B14DD69D4F114FCFA1047, ___source_3)); }
inline MessageTypeSubscribersU5BU5D_t22089BC97FCAC7EB77905E033710F94252F0D5A0* get_source_3() const { return ___source_3; }
inline MessageTypeSubscribersU5BU5D_t22089BC97FCAC7EB77905E033710F94252F0D5A0** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(MessageTypeSubscribersU5BU5D_t22089BC97FCAC7EB77905E033710F94252F0D5A0* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t7D221626D18117E1A32B14DD69D4F114FCFA1047, ___predicate_4)); }
inline Func_2_t5F8D0CE7FEC1909F009FDD63706CECBB1BD5D5A8 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t5F8D0CE7FEC1909F009FDD63706CECBB1BD5D5A8 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t5F8D0CE7FEC1909F009FDD63706CECBB1BD5D5A8 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_index_5() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t7D221626D18117E1A32B14DD69D4F114FCFA1047, ___index_5)); }
inline int32_t get_index_5() const { return ___index_5; }
inline int32_t* get_address_of_index_5() { return &___index_5; }
inline void set_index_5(int32_t value)
{
___index_5 = value;
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<System.Tuple`2<System.Int32,System.String>>
struct WhereEnumerableIterator_1_t87260942AD1233F234796DAC3C7D0031092F78B2 : public Iterator_1_tEF36E4959898D4C196202843FD9160B38CA51E80
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t94818DDB7BF65411470F10370EB9A77633648286 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t87260942AD1233F234796DAC3C7D0031092F78B2, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t87260942AD1233F234796DAC3C7D0031092F78B2, ___predicate_4)); }
inline Func_2_t94818DDB7BF65411470F10370EB9A77633648286 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t94818DDB7BF65411470F10370EB9A77633648286 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t94818DDB7BF65411470F10370EB9A77633648286 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t87260942AD1233F234796DAC3C7D0031092F78B2, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<=aaBE=>
struct WhereEnumerableIterator_1_t3DAB0A5133E93DA464BADBC9C0B3604578E36D74 : public Iterator_1_tDEB5F21FCAC087A22DD0F7E89AEB09BC1E8FE0C7
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t5CFAB67CCB6EA2BB6BCEF652B10FA9C084B42FAC * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t3DAB0A5133E93DA464BADBC9C0B3604578E36D74, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t3DAB0A5133E93DA464BADBC9C0B3604578E36D74, ___predicate_4)); }
inline Func_2_t5CFAB67CCB6EA2BB6BCEF652B10FA9C084B42FAC * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t5CFAB67CCB6EA2BB6BCEF652B10FA9C084B42FAC ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t5CFAB67CCB6EA2BB6BCEF652B10FA9C084B42FAC * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t3DAB0A5133E93DA464BADBC9C0B3604578E36D74, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<=aad0=>
struct WhereEnumerableIterator_1_tD79F3B6C8A052190A7C5338970E9962AECAD6ED6 : public Iterator_1_t3D487F2B2CF0A36486A847C02ED3E3120F435A81
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t62056BAEC48BE274E1A41A3041C3BF891AE50040 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tD79F3B6C8A052190A7C5338970E9962AECAD6ED6, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tD79F3B6C8A052190A7C5338970E9962AECAD6ED6, ___predicate_4)); }
inline Func_2_t62056BAEC48BE274E1A41A3041C3BF891AE50040 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t62056BAEC48BE274E1A41A3041C3BF891AE50040 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t62056BAEC48BE274E1A41A3041C3BF891AE50040 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tD79F3B6C8A052190A7C5338970E9962AECAD6ED6, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<=aadF=>
struct WhereEnumerableIterator_1_t89A34B42467C157805558838261A5079DBD8CE08 : public Iterator_1_tEB2177C55CA4ECF3AE888CF17BC2677A5B4B8E52
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t4570CA656D2E5A0A08AA8475F2E0B31917D4F4EB * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t89A34B42467C157805558838261A5079DBD8CE08, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t89A34B42467C157805558838261A5079DBD8CE08, ___predicate_4)); }
inline Func_2_t4570CA656D2E5A0A08AA8475F2E0B31917D4F4EB * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t4570CA656D2E5A0A08AA8475F2E0B31917D4F4EB ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t4570CA656D2E5A0A08AA8475F2E0B31917D4F4EB * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t89A34B42467C157805558838261A5079DBD8CE08, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<=aadf=>
struct WhereEnumerableIterator_1_tA9598E3EA5D3C7E56496A2DE6634AF1C9D45ECE3 : public Iterator_1_tDCFEE4E579503586AB36E1BAB03C2B1A0633F67F
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_tA857D2E1F43EA0DE4E0B93FB53F4ABE4D86633DB * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tA9598E3EA5D3C7E56496A2DE6634AF1C9D45ECE3, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tA9598E3EA5D3C7E56496A2DE6634AF1C9D45ECE3, ___predicate_4)); }
inline Func_2_tA857D2E1F43EA0DE4E0B93FB53F4ABE4D86633DB * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tA857D2E1F43EA0DE4E0B93FB53F4ABE4D86633DB ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tA857D2E1F43EA0DE4E0B93FB53F4ABE4D86633DB * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tA9598E3EA5D3C7E56496A2DE6634AF1C9D45ECE3, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<System.Byte>
struct WhereEnumerableIterator_1_t25F9C751F771483441E0C0FCDD617316B17F4086 : public Iterator_1_tB977E16E9E77F59102756D7F0798F3C3810C5238
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_tC801BC5CCF689A4C07A1A655BBFE80597F30B0DC * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t25F9C751F771483441E0C0FCDD617316B17F4086, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t25F9C751F771483441E0C0FCDD617316B17F4086, ___predicate_4)); }
inline Func_2_tC801BC5CCF689A4C07A1A655BBFE80597F30B0DC * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tC801BC5CCF689A4C07A1A655BBFE80597F30B0DC ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tC801BC5CCF689A4C07A1A655BBFE80597F30B0DC * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t25F9C751F771483441E0C0FCDD617316B17F4086, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer>
struct WhereEnumerableIterator_1_t02C8A9FA6A0E67C5646E24C196F13B4DAA29A8B2 : public Iterator_1_t6D6B4E260D0624DD10409BDD7D4655EDF882A5C6
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t756EAF50FD670354E22728B1DE8496991F588D85 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t02C8A9FA6A0E67C5646E24C196F13B4DAA29A8B2, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t02C8A9FA6A0E67C5646E24C196F13B4DAA29A8B2, ___predicate_4)); }
inline Func_2_t756EAF50FD670354E22728B1DE8496991F588D85 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t756EAF50FD670354E22728B1DE8496991F588D85 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t756EAF50FD670354E22728B1DE8496991F588D85 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t02C8A9FA6A0E67C5646E24C196F13B4DAA29A8B2, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<System.Int16>
struct WhereEnumerableIterator_1_tCA508E67A7F0F9D88916DAA9C6CDE55E4AA6F666 : public Iterator_1_tD6B7A6D20ADB45FD90693506286A5D9EBBE9B53B
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t8662C7F1465292E8962EEA48D3B09DF7BB5A1A77 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tCA508E67A7F0F9D88916DAA9C6CDE55E4AA6F666, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tCA508E67A7F0F9D88916DAA9C6CDE55E4AA6F666, ___predicate_4)); }
inline Func_2_t8662C7F1465292E8962EEA48D3B09DF7BB5A1A77 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t8662C7F1465292E8962EEA48D3B09DF7BB5A1A77 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t8662C7F1465292E8962EEA48D3B09DF7BB5A1A77 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tCA508E67A7F0F9D88916DAA9C6CDE55E4AA6F666, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<System.Int32>
struct WhereEnumerableIterator_1_t9F4DDC70173BABD72AEC7AA00D62F4FAE2613CEA : public Iterator_1_tCFFC952B03DBE4E956DE317DB9704D936AEA2379
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t2EBF98B0BA555D9F0633C9BCCBE3DF332B9C1274 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t9F4DDC70173BABD72AEC7AA00D62F4FAE2613CEA, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t9F4DDC70173BABD72AEC7AA00D62F4FAE2613CEA, ___predicate_4)); }
inline Func_2_t2EBF98B0BA555D9F0633C9BCCBE3DF332B9C1274 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t2EBF98B0BA555D9F0633C9BCCBE3DF332B9C1274 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t2EBF98B0BA555D9F0633C9BCCBE3DF332B9C1274 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t9F4DDC70173BABD72AEC7AA00D62F4FAE2613CEA, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<System.String>
struct WhereEnumerableIterator_1_tC960A1A6C9E651CE6EACEBF304D90B748ED7607F : public Iterator_1_t518A3450AAA6AD81E50F0974825C669A78940F57
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t8B45BBA625F1F9197CEB4999F9B2A963FCE4B92D * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tC960A1A6C9E651CE6EACEBF304D90B748ED7607F, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tC960A1A6C9E651CE6EACEBF304D90B748ED7607F, ___predicate_4)); }
inline Func_2_t8B45BBA625F1F9197CEB4999F9B2A963FCE4B92D * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t8B45BBA625F1F9197CEB4999F9B2A963FCE4B92D ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t8B45BBA625F1F9197CEB4999F9B2A963FCE4B92D * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tC960A1A6C9E651CE6EACEBF304D90B748ED7607F, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<UnityEngine.UI.Toggle>
struct WhereEnumerableIterator_1_t1EC9BAD19AA0A6B596B7C8D9B82EC0EC8B47A1F8 : public Iterator_1_tA93D90FAF12703A03EF0DEEC272917FC445640B9
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_tCE3CE3D7F67C20FF5576ED2A6E74518A0756E2DE * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t1EC9BAD19AA0A6B596B7C8D9B82EC0EC8B47A1F8, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t1EC9BAD19AA0A6B596B7C8D9B82EC0EC8B47A1F8, ___predicate_4)); }
inline Func_2_tCE3CE3D7F67C20FF5576ED2A6E74518A0756E2DE * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tCE3CE3D7F67C20FF5576ED2A6E74518A0756E2DE ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tCE3CE3D7F67C20FF5576ED2A6E74518A0756E2DE * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t1EC9BAD19AA0A6B596B7C8D9B82EC0EC8B47A1F8, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<System.Type>
struct WhereEnumerableIterator_1_t04988C329C850409506F441B813DD7A4A98BC3C2 : public Iterator_1_t24BA32DB41E3722DEAFD07D0C5EBBD773CB732DC
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_tDA1CD28AB1DD1EC817F9902B752EB3751BE154B5 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t04988C329C850409506F441B813DD7A4A98BC3C2, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t04988C329C850409506F441B813DD7A4A98BC3C2, ___predicate_4)); }
inline Func_2_tDA1CD28AB1DD1EC817F9902B752EB3751BE154B5 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tDA1CD28AB1DD1EC817F9902B752EB3751BE154B5 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tDA1CD28AB1DD1EC817F9902B752EB3751BE154B5 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t04988C329C850409506F441B813DD7A4A98BC3C2, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<System.UInt16>
struct WhereEnumerableIterator_1_tA923EA87192C35B8D253A6F73C314A05328B481C : public Iterator_1_tA6A92A296F1ED793BA6074DB7BDA4B3E47F1ACE7
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_tE5EC24D560780816A793D66A79200F82985F58F3 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tA923EA87192C35B8D253A6F73C314A05328B481C, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tA923EA87192C35B8D253A6F73C314A05328B481C, ___predicate_4)); }
inline Func_2_tE5EC24D560780816A793D66A79200F82985F58F3 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tE5EC24D560780816A793D66A79200F82985F58F3 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tE5EC24D560780816A793D66A79200F82985F58F3 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tA923EA87192C35B8D253A6F73C314A05328B481C, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<System.UInt32>
struct WhereEnumerableIterator_1_tB4E91E741D67261CA75C85CC5BBDA67D2BCA1146 : public Iterator_1_tC451A4AE8E691201572546508C454CABB2954539
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_tD78F5C1D7551598E92A0A0C8CFA1867C08C7581C * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tB4E91E741D67261CA75C85CC5BBDA67D2BCA1146, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tB4E91E741D67261CA75C85CC5BBDA67D2BCA1146, ___predicate_4)); }
inline Func_2_tD78F5C1D7551598E92A0A0C8CFA1867C08C7581C * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tD78F5C1D7551598E92A0A0C8CFA1867C08C7581C ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tD78F5C1D7551598E92A0A0C8CFA1867C08C7581C * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tB4E91E741D67261CA75C85CC5BBDA67D2BCA1146, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<System.UInt64>
struct WhereEnumerableIterator_1_tB18663A27442D63867CE940C6A5E142811DF0317 : public Iterator_1_t240D25EDB1A8FFDD10B93A394440D64451DE1AB1
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_tF82956116C0C427C91BE064EA9F2CF7DFF11FAE9 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tB18663A27442D63867CE940C6A5E142811DF0317, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tB18663A27442D63867CE940C6A5E142811DF0317, ___predicate_4)); }
inline Func_2_tF82956116C0C427C91BE064EA9F2CF7DFF11FAE9 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tF82956116C0C427C91BE064EA9F2CF7DFF11FAE9 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tF82956116C0C427C91BE064EA9F2CF7DFF11FAE9 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tB18663A27442D63867CE940C6A5E142811DF0317, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<Windows.Media.SpeechSynthesis.VoiceInformation>
struct WhereEnumerableIterator_1_tB722EB961FDA2C5AAE712FB5E8BA5C3B133FCB04 : public Iterator_1_tA2ABCE36619A3B2FF69B51FC70679A7EDBF24925
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t94D24DEAAB9E90481B81A93DA47A65FDADAC7D86 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tB722EB961FDA2C5AAE712FB5E8BA5C3B133FCB04, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tB722EB961FDA2C5AAE712FB5E8BA5C3B133FCB04, ___predicate_4)); }
inline Func_2_t94D24DEAAB9E90481B81A93DA47A65FDADAC7D86 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t94D24DEAAB9E90481B81A93DA47A65FDADAC7D86 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t94D24DEAAB9E90481B81A93DA47A65FDADAC7D86 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tB722EB961FDA2C5AAE712FB5E8BA5C3B133FCB04, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers>
struct WhereEnumerableIterator_1_t2913CABE6BA526443A5B0DAE51ECF4105F2D8E6E : public Iterator_1_t66252DF8A45F10F17B22A06C3DC3BBA6DD8BA03D
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t5F8D0CE7FEC1909F009FDD63706CECBB1BD5D5A8 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t2913CABE6BA526443A5B0DAE51ECF4105F2D8E6E, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t2913CABE6BA526443A5B0DAE51ECF4105F2D8E6E, ___predicate_4)); }
inline Func_2_t5F8D0CE7FEC1909F009FDD63706CECBB1BD5D5A8 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t5F8D0CE7FEC1909F009FDD63706CECBB1BD5D5A8 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t5F8D0CE7FEC1909F009FDD63706CECBB1BD5D5A8 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t2913CABE6BA526443A5B0DAE51ECF4105F2D8E6E, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>,System.String>
struct WhereSelectArrayIterator_2_t06AF255DC075C94F47A4EB82FE997D1866BAA7D9 : public Iterator_1_t518A3450AAA6AD81E50F0974825C669A78940F57
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
KeyValuePair_2U5BU5D_tD9BBFE2A4C3E0269F23A278D66D1D62160E7CD64* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_t331B7A61198027D82A5AA304299CC078653778E2 * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_tFF01F12184D6365033ADFCBAAEC76D80FDEE8C20 * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t06AF255DC075C94F47A4EB82FE997D1866BAA7D9, ___source_3)); }
inline KeyValuePair_2U5BU5D_tD9BBFE2A4C3E0269F23A278D66D1D62160E7CD64* get_source_3() const { return ___source_3; }
inline KeyValuePair_2U5BU5D_tD9BBFE2A4C3E0269F23A278D66D1D62160E7CD64** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(KeyValuePair_2U5BU5D_tD9BBFE2A4C3E0269F23A278D66D1D62160E7CD64* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t06AF255DC075C94F47A4EB82FE997D1866BAA7D9, ___predicate_4)); }
inline Func_2_t331B7A61198027D82A5AA304299CC078653778E2 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t331B7A61198027D82A5AA304299CC078653778E2 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t331B7A61198027D82A5AA304299CC078653778E2 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t06AF255DC075C94F47A4EB82FE997D1866BAA7D9, ___selector_5)); }
inline Func_2_tFF01F12184D6365033ADFCBAAEC76D80FDEE8C20 * get_selector_5() const { return ___selector_5; }
inline Func_2_tFF01F12184D6365033ADFCBAAEC76D80FDEE8C20 ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_tFF01F12184D6365033ADFCBAAEC76D80FDEE8C20 * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t06AF255DC075C94F47A4EB82FE997D1866BAA7D9, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<=a0B=,System.Tuple`2<System.Int32,System.String>>
struct WhereSelectArrayIterator_2_tAFF441D8F3DD3F2324A7493E86E689F5E49D8AAC : public Iterator_1_tEF36E4959898D4C196202843FD9160B38CA51E80
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
U3Da0BU3DU5BU5D_tAB5D5035F1360590AE7A8FA9BCB734AB45D04D72* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_tD83C5414254AD83B951F8D83A7F01B025626260C * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_t7C7BFD2E714C7A0DF506FA891E94C2D2FDB7E2CD * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tAFF441D8F3DD3F2324A7493E86E689F5E49D8AAC, ___source_3)); }
inline U3Da0BU3DU5BU5D_tAB5D5035F1360590AE7A8FA9BCB734AB45D04D72* get_source_3() const { return ___source_3; }
inline U3Da0BU3DU5BU5D_tAB5D5035F1360590AE7A8FA9BCB734AB45D04D72** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(U3Da0BU3DU5BU5D_tAB5D5035F1360590AE7A8FA9BCB734AB45D04D72* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tAFF441D8F3DD3F2324A7493E86E689F5E49D8AAC, ___predicate_4)); }
inline Func_2_tD83C5414254AD83B951F8D83A7F01B025626260C * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tD83C5414254AD83B951F8D83A7F01B025626260C ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tD83C5414254AD83B951F8D83A7F01B025626260C * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tAFF441D8F3DD3F2324A7493E86E689F5E49D8AAC, ___selector_5)); }
inline Func_2_t7C7BFD2E714C7A0DF506FA891E94C2D2FDB7E2CD * get_selector_5() const { return ___selector_5; }
inline Func_2_t7C7BFD2E714C7A0DF506FA891E94C2D2FDB7E2CD ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_t7C7BFD2E714C7A0DF506FA891E94C2D2FDB7E2CD * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tAFF441D8F3DD3F2324A7493E86E689F5E49D8AAC, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<=a0a=,System.Tuple`2<System.Int32,System.String>>
struct WhereSelectArrayIterator_2_t0F919E71CEA79932350F25C8226FBAE0A6CE8E10 : public Iterator_1_tEF36E4959898D4C196202843FD9160B38CA51E80
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
U3Da0aU3DU5BU5D_tEAF7F7CD1BA9D836C590E63C373022E5D42F717E* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_tE86E0BC61CCC39DA41E3B3DD6B342310FD1BE6BF * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_t34DA3F00647B27D73BC6AA995A54E820F7452A13 * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t0F919E71CEA79932350F25C8226FBAE0A6CE8E10, ___source_3)); }
inline U3Da0aU3DU5BU5D_tEAF7F7CD1BA9D836C590E63C373022E5D42F717E* get_source_3() const { return ___source_3; }
inline U3Da0aU3DU5BU5D_tEAF7F7CD1BA9D836C590E63C373022E5D42F717E** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(U3Da0aU3DU5BU5D_tEAF7F7CD1BA9D836C590E63C373022E5D42F717E* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t0F919E71CEA79932350F25C8226FBAE0A6CE8E10, ___predicate_4)); }
inline Func_2_tE86E0BC61CCC39DA41E3B3DD6B342310FD1BE6BF * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tE86E0BC61CCC39DA41E3B3DD6B342310FD1BE6BF ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tE86E0BC61CCC39DA41E3B3DD6B342310FD1BE6BF * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t0F919E71CEA79932350F25C8226FBAE0A6CE8E10, ___selector_5)); }
inline Func_2_t34DA3F00647B27D73BC6AA995A54E820F7452A13 * get_selector_5() const { return ___selector_5; }
inline Func_2_t34DA3F00647B27D73BC6AA995A54E820F7452A13 ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_t34DA3F00647B27D73BC6AA995A54E820F7452A13 * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t0F919E71CEA79932350F25C8226FBAE0A6CE8E10, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<=a2E=,=aad0=>
struct WhereSelectArrayIterator_2_tC37AA277CFB0601168E4F65B256779FF476B9128 : public Iterator_1_t3D487F2B2CF0A36486A847C02ED3E3120F435A81
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
U3Da2EU3DU5BU5D_t80B1F8EB98919E27B1BD33BAD3875B469CB4625A* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_t9D4CD574759423A01DF6D2F12C25F2A6431DA2F7 * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_t276B4F1373BB8F5A01BEABD4CEF588B6FAE4CC06 * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tC37AA277CFB0601168E4F65B256779FF476B9128, ___source_3)); }
inline U3Da2EU3DU5BU5D_t80B1F8EB98919E27B1BD33BAD3875B469CB4625A* get_source_3() const { return ___source_3; }
inline U3Da2EU3DU5BU5D_t80B1F8EB98919E27B1BD33BAD3875B469CB4625A** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(U3Da2EU3DU5BU5D_t80B1F8EB98919E27B1BD33BAD3875B469CB4625A* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tC37AA277CFB0601168E4F65B256779FF476B9128, ___predicate_4)); }
inline Func_2_t9D4CD574759423A01DF6D2F12C25F2A6431DA2F7 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t9D4CD574759423A01DF6D2F12C25F2A6431DA2F7 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t9D4CD574759423A01DF6D2F12C25F2A6431DA2F7 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tC37AA277CFB0601168E4F65B256779FF476B9128, ___selector_5)); }
inline Func_2_t276B4F1373BB8F5A01BEABD4CEF588B6FAE4CC06 * get_selector_5() const { return ___selector_5; }
inline Func_2_t276B4F1373BB8F5A01BEABD4CEF588B6FAE4CC06 ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_t276B4F1373BB8F5A01BEABD4CEF588B6FAE4CC06 * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tC37AA277CFB0601168E4F65B256779FF476B9128, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<=a2F=,=aadF=>
struct WhereSelectArrayIterator_2_t4F97311B39AF60FAC01BAAFC1F4F1BEDDD9F72BC : public Iterator_1_tEB2177C55CA4ECF3AE888CF17BC2677A5B4B8E52
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
U3Da2FU3DU5BU5D_t30406A72076B4C69ECE5FD3322F9568F584D1BA9* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_tDC3ED62D242DDA3A8CAA6DAF214488BDB610970A * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_tBED871D770E72D279E93FAD791338187A8AD0F10 * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t4F97311B39AF60FAC01BAAFC1F4F1BEDDD9F72BC, ___source_3)); }
inline U3Da2FU3DU5BU5D_t30406A72076B4C69ECE5FD3322F9568F584D1BA9* get_source_3() const { return ___source_3; }
inline U3Da2FU3DU5BU5D_t30406A72076B4C69ECE5FD3322F9568F584D1BA9** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(U3Da2FU3DU5BU5D_t30406A72076B4C69ECE5FD3322F9568F584D1BA9* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t4F97311B39AF60FAC01BAAFC1F4F1BEDDD9F72BC, ___predicate_4)); }
inline Func_2_tDC3ED62D242DDA3A8CAA6DAF214488BDB610970A * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tDC3ED62D242DDA3A8CAA6DAF214488BDB610970A ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tDC3ED62D242DDA3A8CAA6DAF214488BDB610970A * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t4F97311B39AF60FAC01BAAFC1F4F1BEDDD9F72BC, ___selector_5)); }
inline Func_2_tBED871D770E72D279E93FAD791338187A8AD0F10 * get_selector_5() const { return ___selector_5; }
inline Func_2_tBED871D770E72D279E93FAD791338187A8AD0F10 ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_tBED871D770E72D279E93FAD791338187A8AD0F10 * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t4F97311B39AF60FAC01BAAFC1F4F1BEDDD9F72BC, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<=a2e=,=aadf=>
struct WhereSelectArrayIterator_2_t37F3A9E5C1E7A941AD31A6AFEDAD12E61E82301F : public Iterator_1_tDCFEE4E579503586AB36E1BAB03C2B1A0633F67F
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
U3Da2eU3DU5BU5D_t4B15B03DCCF826BA2AC1255A28C835A249B2D25F* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_t0F88EEF23FCB0C1C9D0FC0CA7C7B41CEC57EA8D2 * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_tB707B09490A7D8B6DB6A1F44DE09B21515585C31 * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t37F3A9E5C1E7A941AD31A6AFEDAD12E61E82301F, ___source_3)); }
inline U3Da2eU3DU5BU5D_t4B15B03DCCF826BA2AC1255A28C835A249B2D25F* get_source_3() const { return ___source_3; }
inline U3Da2eU3DU5BU5D_t4B15B03DCCF826BA2AC1255A28C835A249B2D25F** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(U3Da2eU3DU5BU5D_t4B15B03DCCF826BA2AC1255A28C835A249B2D25F* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t37F3A9E5C1E7A941AD31A6AFEDAD12E61E82301F, ___predicate_4)); }
inline Func_2_t0F88EEF23FCB0C1C9D0FC0CA7C7B41CEC57EA8D2 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t0F88EEF23FCB0C1C9D0FC0CA7C7B41CEC57EA8D2 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t0F88EEF23FCB0C1C9D0FC0CA7C7B41CEC57EA8D2 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t37F3A9E5C1E7A941AD31A6AFEDAD12E61E82301F, ___selector_5)); }
inline Func_2_tB707B09490A7D8B6DB6A1F44DE09B21515585C31 * get_selector_5() const { return ___selector_5; }
inline Func_2_tB707B09490A7D8B6DB6A1F44DE09B21515585C31 ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_tB707B09490A7D8B6DB6A1F44DE09B21515585C31 * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t37F3A9E5C1E7A941AD31A6AFEDAD12E61E82301F, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<=ac7=,System.Int32>
struct WhereSelectArrayIterator_2_tF8CE6DE810CE0B48C7CF2DB3A9ABEB39CE6535A3 : public Iterator_1_tCFFC952B03DBE4E956DE317DB9704D936AEA2379
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
U3Dac7U3DU5BU5D_tA53AE046D24C41B9946FFD030BE5E203CF22857B* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_tDB32A2FBABF31B175442B0E9B4A86C428279F7E4 * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_t18A08A8B3BE8065F3DE32E224D19F92F34DE3EBB * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tF8CE6DE810CE0B48C7CF2DB3A9ABEB39CE6535A3, ___source_3)); }
inline U3Dac7U3DU5BU5D_tA53AE046D24C41B9946FFD030BE5E203CF22857B* get_source_3() const { return ___source_3; }
inline U3Dac7U3DU5BU5D_tA53AE046D24C41B9946FFD030BE5E203CF22857B** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(U3Dac7U3DU5BU5D_tA53AE046D24C41B9946FFD030BE5E203CF22857B* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tF8CE6DE810CE0B48C7CF2DB3A9ABEB39CE6535A3, ___predicate_4)); }
inline Func_2_tDB32A2FBABF31B175442B0E9B4A86C428279F7E4 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tDB32A2FBABF31B175442B0E9B4A86C428279F7E4 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tDB32A2FBABF31B175442B0E9B4A86C428279F7E4 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tF8CE6DE810CE0B48C7CF2DB3A9ABEB39CE6535A3, ___selector_5)); }
inline Func_2_t18A08A8B3BE8065F3DE32E224D19F92F34DE3EBB * get_selector_5() const { return ___selector_5; }
inline Func_2_t18A08A8B3BE8065F3DE32E224D19F92F34DE3EBB ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_t18A08A8B3BE8065F3DE32E224D19F92F34DE3EBB * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tF8CE6DE810CE0B48C7CF2DB3A9ABEB39CE6535A3, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<=afC=,System.Int32>
struct WhereSelectArrayIterator_2_t2908CB789356C0AF9EEF8350CE84BE4150CF3C18 : public Iterator_1_tCFFC952B03DBE4E956DE317DB9704D936AEA2379
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
U3DafCU3DU5BU5D_t0B386C8A5B9345435A2EEAFFEC063ADC31E7CC27* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_t6516F301A00266DC9081C41D623BE153CFF553FB * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_t8CFF46A9AE0B82EE505420E5DABC228793CFF34E * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t2908CB789356C0AF9EEF8350CE84BE4150CF3C18, ___source_3)); }
inline U3DafCU3DU5BU5D_t0B386C8A5B9345435A2EEAFFEC063ADC31E7CC27* get_source_3() const { return ___source_3; }
inline U3DafCU3DU5BU5D_t0B386C8A5B9345435A2EEAFFEC063ADC31E7CC27** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(U3DafCU3DU5BU5D_t0B386C8A5B9345435A2EEAFFEC063ADC31E7CC27* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t2908CB789356C0AF9EEF8350CE84BE4150CF3C18, ___predicate_4)); }
inline Func_2_t6516F301A00266DC9081C41D623BE153CFF553FB * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t6516F301A00266DC9081C41D623BE153CFF553FB ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t6516F301A00266DC9081C41D623BE153CFF553FB * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t2908CB789356C0AF9EEF8350CE84BE4150CF3C18, ___selector_5)); }
inline Func_2_t8CFF46A9AE0B82EE505420E5DABC228793CFF34E * get_selector_5() const { return ___selector_5; }
inline Func_2_t8CFF46A9AE0B82EE505420E5DABC228793CFF34E ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_t8CFF46A9AE0B82EE505420E5DABC228793CFF34E * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t2908CB789356C0AF9EEF8350CE84BE4150CF3C18, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<=afD=,System.Int32>
struct WhereSelectArrayIterator_2_tF5DDFDC9015554F53DED975A5DAF6621A5F0A9F6 : public Iterator_1_tCFFC952B03DBE4E956DE317DB9704D936AEA2379
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
U3DafDU3DU5BU5D_tE393294F95735D997E43B697937989F69D132F23* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_t6E3F40E2D8F109C7A1309B63A5DD6A7585FE65FB * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_t7CAEC4D1862B410801FCB85265461F2AED1E59AB * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tF5DDFDC9015554F53DED975A5DAF6621A5F0A9F6, ___source_3)); }
inline U3DafDU3DU5BU5D_tE393294F95735D997E43B697937989F69D132F23* get_source_3() const { return ___source_3; }
inline U3DafDU3DU5BU5D_tE393294F95735D997E43B697937989F69D132F23** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(U3DafDU3DU5BU5D_tE393294F95735D997E43B697937989F69D132F23* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tF5DDFDC9015554F53DED975A5DAF6621A5F0A9F6, ___predicate_4)); }
inline Func_2_t6E3F40E2D8F109C7A1309B63A5DD6A7585FE65FB * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t6E3F40E2D8F109C7A1309B63A5DD6A7585FE65FB ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t6E3F40E2D8F109C7A1309B63A5DD6A7585FE65FB * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tF5DDFDC9015554F53DED975A5DAF6621A5F0A9F6, ___selector_5)); }
inline Func_2_t7CAEC4D1862B410801FCB85265461F2AED1E59AB * get_selector_5() const { return ___selector_5; }
inline Func_2_t7CAEC4D1862B410801FCB85265461F2AED1E59AB ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_t7CAEC4D1862B410801FCB85265461F2AED1E59AB * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tF5DDFDC9015554F53DED975A5DAF6621A5F0A9F6, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<=afE=,System.Int32>
struct WhereSelectArrayIterator_2_tEFD906C68864A5C5C6F2D0AF36CA5F4FDE4471CA : public Iterator_1_tCFFC952B03DBE4E956DE317DB9704D936AEA2379
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
U3DafEU3DU5BU5D_tA958B4C78669AE28B8D42CBF2FB8E3B375ADB529* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_t092C4F7A262610F5FD527AD59500D8F804B2E202 * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_tE3EA81669839B5C165E132B6AA31E7883CDF650B * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tEFD906C68864A5C5C6F2D0AF36CA5F4FDE4471CA, ___source_3)); }
inline U3DafEU3DU5BU5D_tA958B4C78669AE28B8D42CBF2FB8E3B375ADB529* get_source_3() const { return ___source_3; }
inline U3DafEU3DU5BU5D_tA958B4C78669AE28B8D42CBF2FB8E3B375ADB529** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(U3DafEU3DU5BU5D_tA958B4C78669AE28B8D42CBF2FB8E3B375ADB529* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tEFD906C68864A5C5C6F2D0AF36CA5F4FDE4471CA, ___predicate_4)); }
inline Func_2_t092C4F7A262610F5FD527AD59500D8F804B2E202 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t092C4F7A262610F5FD527AD59500D8F804B2E202 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t092C4F7A262610F5FD527AD59500D8F804B2E202 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tEFD906C68864A5C5C6F2D0AF36CA5F4FDE4471CA, ___selector_5)); }
inline Func_2_tE3EA81669839B5C165E132B6AA31E7883CDF650B * get_selector_5() const { return ___selector_5; }
inline Func_2_tE3EA81669839B5C165E132B6AA31E7883CDF650B ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_tE3EA81669839B5C165E132B6AA31E7883CDF650B * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tEFD906C68864A5C5C6F2D0AF36CA5F4FDE4471CA, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// =a4d=
struct U3Da4dU3D_t264F71960A5CC2BAEC4EEDEF545898887B445555
{
public:
// System.Single =a4d=::=dd54=
float ___U3Ddd54U3D_0;
// System.Single =a4d=::=dd55=
float ___U3Ddd55U3D_1;
// System.Single =a4d=::=dd56=
float ___U3Ddd56U3D_2;
public:
inline static int32_t get_offset_of_U3Ddd54U3D_0() { return static_cast<int32_t>(offsetof(U3Da4dU3D_t264F71960A5CC2BAEC4EEDEF545898887B445555, ___U3Ddd54U3D_0)); }
inline float get_U3Ddd54U3D_0() const { return ___U3Ddd54U3D_0; }
inline float* get_address_of_U3Ddd54U3D_0() { return &___U3Ddd54U3D_0; }
inline void set_U3Ddd54U3D_0(float value)
{
___U3Ddd54U3D_0 = value;
}
inline static int32_t get_offset_of_U3Ddd55U3D_1() { return static_cast<int32_t>(offsetof(U3Da4dU3D_t264F71960A5CC2BAEC4EEDEF545898887B445555, ___U3Ddd55U3D_1)); }
inline float get_U3Ddd55U3D_1() const { return ___U3Ddd55U3D_1; }
inline float* get_address_of_U3Ddd55U3D_1() { return &___U3Ddd55U3D_1; }
inline void set_U3Ddd55U3D_1(float value)
{
___U3Ddd55U3D_1 = value;
}
inline static int32_t get_offset_of_U3Ddd56U3D_2() { return static_cast<int32_t>(offsetof(U3Da4dU3D_t264F71960A5CC2BAEC4EEDEF545898887B445555, ___U3Ddd56U3D_2)); }
inline float get_U3Ddd56U3D_2() const { return ___U3Ddd56U3D_2; }
inline float* get_address_of_U3Ddd56U3D_2() { return &___U3Ddd56U3D_2; }
inline void set_U3Ddd56U3D_2(float value)
{
___U3Ddd56U3D_2 = value;
}
};
// =aba=
struct U3DabaU3D_t9FC55E453A47D4D3FD689055393E8AEAE740F371
{
public:
// System.Int64 =aba=::=ddD0=
int64_t ___U3DddD0U3D_0;
public:
inline static int32_t get_offset_of_U3DddD0U3D_0() { return static_cast<int32_t>(offsetof(U3DabaU3D_t9FC55E453A47D4D3FD689055393E8AEAE740F371, ___U3DddD0U3D_0)); }
inline int64_t get_U3DddD0U3D_0() const { return ___U3DddD0U3D_0; }
inline int64_t* get_address_of_U3DddD0U3D_0() { return &___U3DddD0U3D_0; }
inline void set_U3DddD0U3D_0(int64_t value)
{
___U3DddD0U3D_0 = value;
}
};
// Microsoft.Geospatial.LatLon
struct LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7
{
public:
// System.Double Microsoft.Geospatial.LatLon::<LongitudeInDegrees>k__BackingField
double ___U3CLongitudeInDegreesU3Ek__BackingField_8;
// System.Double Microsoft.Geospatial.LatLon::<LatitudeInDegrees>k__BackingField
double ___U3CLatitudeInDegreesU3Ek__BackingField_9;
public:
inline static int32_t get_offset_of_U3CLongitudeInDegreesU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7, ___U3CLongitudeInDegreesU3Ek__BackingField_8)); }
inline double get_U3CLongitudeInDegreesU3Ek__BackingField_8() const { return ___U3CLongitudeInDegreesU3Ek__BackingField_8; }
inline double* get_address_of_U3CLongitudeInDegreesU3Ek__BackingField_8() { return &___U3CLongitudeInDegreesU3Ek__BackingField_8; }
inline void set_U3CLongitudeInDegreesU3Ek__BackingField_8(double value)
{
___U3CLongitudeInDegreesU3Ek__BackingField_8 = value;
}
inline static int32_t get_offset_of_U3CLatitudeInDegreesU3Ek__BackingField_9() { return static_cast<int32_t>(offsetof(LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7, ___U3CLatitudeInDegreesU3Ek__BackingField_9)); }
inline double get_U3CLatitudeInDegreesU3Ek__BackingField_9() const { return ___U3CLatitudeInDegreesU3Ek__BackingField_9; }
inline double* get_address_of_U3CLatitudeInDegreesU3Ek__BackingField_9() { return &___U3CLatitudeInDegreesU3Ek__BackingField_9; }
inline void set_U3CLatitudeInDegreesU3Ek__BackingField_9(double value)
{
___U3CLatitudeInDegreesU3Ek__BackingField_9 = value;
}
};
struct LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7_StaticFields
{
public:
// Microsoft.Geospatial.LatLon Microsoft.Geospatial.LatLon::MinValue
LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 ___MinValue_4;
// Microsoft.Geospatial.LatLon Microsoft.Geospatial.LatLon::MaxValue
LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 ___MaxValue_5;
// Microsoft.Geospatial.LatLon Microsoft.Geospatial.LatLon::Origin
LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 ___Origin_7;
public:
inline static int32_t get_offset_of_MinValue_4() { return static_cast<int32_t>(offsetof(LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7_StaticFields, ___MinValue_4)); }
inline LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 get_MinValue_4() const { return ___MinValue_4; }
inline LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 * get_address_of_MinValue_4() { return &___MinValue_4; }
inline void set_MinValue_4(LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 value)
{
___MinValue_4 = value;
}
inline static int32_t get_offset_of_MaxValue_5() { return static_cast<int32_t>(offsetof(LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7_StaticFields, ___MaxValue_5)); }
inline LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 get_MaxValue_5() const { return ___MaxValue_5; }
inline LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 * get_address_of_MaxValue_5() { return &___MaxValue_5; }
inline void set_MaxValue_5(LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 value)
{
___MaxValue_5 = value;
}
inline static int32_t get_offset_of_Origin_7() { return static_cast<int32_t>(offsetof(LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7_StaticFields, ___Origin_7)); }
inline LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 get_Origin_7() const { return ___Origin_7; }
inline LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 * get_address_of_Origin_7() { return &___Origin_7; }
inline void set_Origin_7(LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 value)
{
___Origin_7 = value;
}
};
// Microsoft.Geospatial.TileId
struct TileId_tC1BBD074BC1D92C2E403D8175AB001DE73201A2E
{
public:
// System.Int64 Microsoft.Geospatial.TileId::=dbDf=
int64_t ___U3DdbDfU3D_1;
public:
inline static int32_t get_offset_of_U3DdbDfU3D_1() { return static_cast<int32_t>(offsetof(TileId_tC1BBD074BC1D92C2E403D8175AB001DE73201A2E, ___U3DdbDfU3D_1)); }
inline int64_t get_U3DdbDfU3D_1() const { return ___U3DdbDfU3D_1; }
inline int64_t* get_address_of_U3DdbDfU3D_1() { return &___U3DdbDfU3D_1; }
inline void set_U3DdbDfU3D_1(int64_t value)
{
___U3DdbDfU3D_1 = value;
}
};
struct TileId_tC1BBD074BC1D92C2E403D8175AB001DE73201A2E_StaticFields
{
public:
// Microsoft.Geospatial.TileId Microsoft.Geospatial.TileId::Null
TileId_tC1BBD074BC1D92C2E403D8175AB001DE73201A2E ___Null_0;
public:
inline static int32_t get_offset_of_Null_0() { return static_cast<int32_t>(offsetof(TileId_tC1BBD074BC1D92C2E403D8175AB001DE73201A2E_StaticFields, ___Null_0)); }
inline TileId_tC1BBD074BC1D92C2E403D8175AB001DE73201A2E get_Null_0() const { return ___Null_0; }
inline TileId_tC1BBD074BC1D92C2E403D8175AB001DE73201A2E * get_address_of_Null_0() { return &___Null_0; }
inline void set_Null_0(TileId_tC1BBD074BC1D92C2E403D8175AB001DE73201A2E value)
{
___Null_0 = value;
}
};
// UnityEngine.Vector3
struct Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E
{
public:
// System.Single UnityEngine.Vector3::x
float ___x_2;
// System.Single UnityEngine.Vector3::y
float ___y_3;
// System.Single UnityEngine.Vector3::z
float ___z_4;
public:
inline static int32_t get_offset_of_x_2() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___x_2)); }
inline float get_x_2() const { return ___x_2; }
inline float* get_address_of_x_2() { return &___x_2; }
inline void set_x_2(float value)
{
___x_2 = value;
}
inline static int32_t get_offset_of_y_3() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___y_3)); }
inline float get_y_3() const { return ___y_3; }
inline float* get_address_of_y_3() { return &___y_3; }
inline void set_y_3(float value)
{
___y_3 = value;
}
inline static int32_t get_offset_of_z_4() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___z_4)); }
inline float get_z_4() const { return ___z_4; }
inline float* get_address_of_z_4() { return &___z_4; }
inline void set_z_4(float value)
{
___z_4 = value;
}
};
struct Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields
{
public:
// UnityEngine.Vector3 UnityEngine.Vector3::zeroVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___zeroVector_5;
// UnityEngine.Vector3 UnityEngine.Vector3::oneVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___oneVector_6;
// UnityEngine.Vector3 UnityEngine.Vector3::upVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___upVector_7;
// UnityEngine.Vector3 UnityEngine.Vector3::downVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___downVector_8;
// UnityEngine.Vector3 UnityEngine.Vector3::leftVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___leftVector_9;
// UnityEngine.Vector3 UnityEngine.Vector3::rightVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___rightVector_10;
// UnityEngine.Vector3 UnityEngine.Vector3::forwardVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___forwardVector_11;
// UnityEngine.Vector3 UnityEngine.Vector3::backVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___backVector_12;
// UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___positiveInfinityVector_13;
// UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___negativeInfinityVector_14;
public:
inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___zeroVector_5)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_zeroVector_5() const { return ___zeroVector_5; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_zeroVector_5() { return &___zeroVector_5; }
inline void set_zeroVector_5(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___zeroVector_5 = value;
}
inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___oneVector_6)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_oneVector_6() const { return ___oneVector_6; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_oneVector_6() { return &___oneVector_6; }
inline void set_oneVector_6(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___oneVector_6 = value;
}
inline static int32_t get_offset_of_upVector_7() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___upVector_7)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_upVector_7() const { return ___upVector_7; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_upVector_7() { return &___upVector_7; }
inline void set_upVector_7(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___upVector_7 = value;
}
inline static int32_t get_offset_of_downVector_8() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___downVector_8)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_downVector_8() const { return ___downVector_8; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_downVector_8() { return &___downVector_8; }
inline void set_downVector_8(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___downVector_8 = value;
}
inline static int32_t get_offset_of_leftVector_9() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___leftVector_9)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_leftVector_9() const { return ___leftVector_9; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_leftVector_9() { return &___leftVector_9; }
inline void set_leftVector_9(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___leftVector_9 = value;
}
inline static int32_t get_offset_of_rightVector_10() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___rightVector_10)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_rightVector_10() const { return ___rightVector_10; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_rightVector_10() { return &___rightVector_10; }
inline void set_rightVector_10(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___rightVector_10 = value;
}
inline static int32_t get_offset_of_forwardVector_11() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___forwardVector_11)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_forwardVector_11() const { return ___forwardVector_11; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_forwardVector_11() { return &___forwardVector_11; }
inline void set_forwardVector_11(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___forwardVector_11 = value;
}
inline static int32_t get_offset_of_backVector_12() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___backVector_12)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_backVector_12() const { return ___backVector_12; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_backVector_12() { return &___backVector_12; }
inline void set_backVector_12(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___backVector_12 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___positiveInfinityVector_13)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_positiveInfinityVector_13() const { return ___positiveInfinityVector_13; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_positiveInfinityVector_13() { return &___positiveInfinityVector_13; }
inline void set_positiveInfinityVector_13(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___positiveInfinityVector_13 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_14() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___negativeInfinityVector_14)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_negativeInfinityVector_14() const { return ___negativeInfinityVector_14; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_negativeInfinityVector_14() { return &___negativeInfinityVector_14; }
inline void set_negativeInfinityVector_14(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___negativeInfinityVector_14 = value;
}
};
// Microsoft.Geospatial.VectorMath.Vector3D
struct Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C
{
public:
// System.Double Microsoft.Geospatial.VectorMath.Vector3D::X
double ___X_7;
// System.Double Microsoft.Geospatial.VectorMath.Vector3D::Y
double ___Y_8;
// System.Double Microsoft.Geospatial.VectorMath.Vector3D::Z
double ___Z_9;
public:
inline static int32_t get_offset_of_X_7() { return static_cast<int32_t>(offsetof(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C, ___X_7)); }
inline double get_X_7() const { return ___X_7; }
inline double* get_address_of_X_7() { return &___X_7; }
inline void set_X_7(double value)
{
___X_7 = value;
}
inline static int32_t get_offset_of_Y_8() { return static_cast<int32_t>(offsetof(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C, ___Y_8)); }
inline double get_Y_8() const { return ___Y_8; }
inline double* get_address_of_Y_8() { return &___Y_8; }
inline void set_Y_8(double value)
{
___Y_8 = value;
}
inline static int32_t get_offset_of_Z_9() { return static_cast<int32_t>(offsetof(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C, ___Z_9)); }
inline double get_Z_9() const { return ___Z_9; }
inline double* get_address_of_Z_9() { return &___Z_9; }
inline void set_Z_9(double value)
{
___Z_9 = value;
}
};
struct Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C_StaticFields
{
public:
// Microsoft.Geospatial.VectorMath.Vector3D Microsoft.Geospatial.VectorMath.Vector3D::Zero
Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C ___Zero_0;
// Microsoft.Geospatial.VectorMath.Vector3D Microsoft.Geospatial.VectorMath.Vector3D::Empty
Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C ___Empty_1;
// Microsoft.Geospatial.VectorMath.Vector3D Microsoft.Geospatial.VectorMath.Vector3D::UnitX
Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C ___UnitX_2;
// Microsoft.Geospatial.VectorMath.Vector3D Microsoft.Geospatial.VectorMath.Vector3D::UnitY
Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C ___UnitY_3;
// Microsoft.Geospatial.VectorMath.Vector3D Microsoft.Geospatial.VectorMath.Vector3D::UnitZ
Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C ___UnitZ_4;
// Microsoft.Geospatial.VectorMath.Vector3D Microsoft.Geospatial.VectorMath.Vector3D::MaxValue
Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C ___MaxValue_5;
// Microsoft.Geospatial.VectorMath.Vector3D Microsoft.Geospatial.VectorMath.Vector3D::MinValue
Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C ___MinValue_6;
public:
inline static int32_t get_offset_of_Zero_0() { return static_cast<int32_t>(offsetof(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C_StaticFields, ___Zero_0)); }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C get_Zero_0() const { return ___Zero_0; }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C * get_address_of_Zero_0() { return &___Zero_0; }
inline void set_Zero_0(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C value)
{
___Zero_0 = value;
}
inline static int32_t get_offset_of_Empty_1() { return static_cast<int32_t>(offsetof(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C_StaticFields, ___Empty_1)); }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C get_Empty_1() const { return ___Empty_1; }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C * get_address_of_Empty_1() { return &___Empty_1; }
inline void set_Empty_1(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C value)
{
___Empty_1 = value;
}
inline static int32_t get_offset_of_UnitX_2() { return static_cast<int32_t>(offsetof(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C_StaticFields, ___UnitX_2)); }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C get_UnitX_2() const { return ___UnitX_2; }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C * get_address_of_UnitX_2() { return &___UnitX_2; }
inline void set_UnitX_2(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C value)
{
___UnitX_2 = value;
}
inline static int32_t get_offset_of_UnitY_3() { return static_cast<int32_t>(offsetof(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C_StaticFields, ___UnitY_3)); }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C get_UnitY_3() const { return ___UnitY_3; }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C * get_address_of_UnitY_3() { return &___UnitY_3; }
inline void set_UnitY_3(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C value)
{
___UnitY_3 = value;
}
inline static int32_t get_offset_of_UnitZ_4() { return static_cast<int32_t>(offsetof(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C_StaticFields, ___UnitZ_4)); }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C get_UnitZ_4() const { return ___UnitZ_4; }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C * get_address_of_UnitZ_4() { return &___UnitZ_4; }
inline void set_UnitZ_4(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C value)
{
___UnitZ_4 = value;
}
inline static int32_t get_offset_of_MaxValue_5() { return static_cast<int32_t>(offsetof(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C_StaticFields, ___MaxValue_5)); }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C get_MaxValue_5() const { return ___MaxValue_5; }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C * get_address_of_MaxValue_5() { return &___MaxValue_5; }
inline void set_MaxValue_5(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C value)
{
___MaxValue_5 = value;
}
inline static int32_t get_offset_of_MinValue_6() { return static_cast<int32_t>(offsetof(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C_StaticFields, ___MinValue_6)); }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C get_MinValue_6() const { return ___MinValue_6; }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C * get_address_of_MinValue_6() { return &___MinValue_6; }
inline void set_MinValue_6(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C value)
{
___MinValue_6 = value;
}
};
// System.Collections.Generic.List`1/Enumerator<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>>
struct Enumerator_tF8F8651EC68D278D4E3603F068745C75DBBB9556
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1/Enumerator::list
List_1_tF369DE22A8D9E61DDAF76E8E6A20394A444302D9 * ___list_0;
// System.Int32 System.Collections.Generic.List`1/Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1/Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1/Enumerator::current
KeyValuePair_2_t4F16D7881F1F9003EEB204F45B28257F1D66DD7C ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_tF8F8651EC68D278D4E3603F068745C75DBBB9556, ___list_0)); }
inline List_1_tF369DE22A8D9E61DDAF76E8E6A20394A444302D9 * get_list_0() const { return ___list_0; }
inline List_1_tF369DE22A8D9E61DDAF76E8E6A20394A444302D9 ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_tF369DE22A8D9E61DDAF76E8E6A20394A444302D9 * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_tF8F8651EC68D278D4E3603F068745C75DBBB9556, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_tF8F8651EC68D278D4E3603F068745C75DBBB9556, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_tF8F8651EC68D278D4E3603F068745C75DBBB9556, ___current_3)); }
inline KeyValuePair_2_t4F16D7881F1F9003EEB204F45B28257F1D66DD7C get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t4F16D7881F1F9003EEB204F45B28257F1D66DD7C * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t4F16D7881F1F9003EEB204F45B28257F1D66DD7C value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___value_1), (void*)NULL);
}
};
// System.Collections.Generic.List`1/Enumerator<System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>>
struct Enumerator_t42E12BFE518E3A6260DCE478E446B8C10E77C959
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1/Enumerator::list
List_1_tBA45D580BE3704A3AE24604C6F866C8EFD179562 * ___list_0;
// System.Int32 System.Collections.Generic.List`1/Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1/Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1/Enumerator::current
KeyValuePair_2_t1A02A92F19CB8BC0B946A7021B58318555A213B2 ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_t42E12BFE518E3A6260DCE478E446B8C10E77C959, ___list_0)); }
inline List_1_tBA45D580BE3704A3AE24604C6F866C8EFD179562 * get_list_0() const { return ___list_0; }
inline List_1_tBA45D580BE3704A3AE24604C6F866C8EFD179562 ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_tBA45D580BE3704A3AE24604C6F866C8EFD179562 * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_t42E12BFE518E3A6260DCE478E446B8C10E77C959, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_t42E12BFE518E3A6260DCE478E446B8C10E77C959, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t42E12BFE518E3A6260DCE478E446B8C10E77C959, ___current_3)); }
inline KeyValuePair_2_t1A02A92F19CB8BC0B946A7021B58318555A213B2 get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t1A02A92F19CB8BC0B946A7021B58318555A213B2 * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t1A02A92F19CB8BC0B946A7021B58318555A213B2 value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___key_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___value_1), (void*)NULL);
#endif
}
};
// System.Linq.Enumerable/Iterator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>>
struct Iterator_1_t69E70CE29811E05D6F844891FD20E3923CF61A35 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
KeyValuePair_2_t4F16D7881F1F9003EEB204F45B28257F1D66DD7C ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_t69E70CE29811E05D6F844891FD20E3923CF61A35, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_t69E70CE29811E05D6F844891FD20E3923CF61A35, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_t69E70CE29811E05D6F844891FD20E3923CF61A35, ___current_2)); }
inline KeyValuePair_2_t4F16D7881F1F9003EEB204F45B28257F1D66DD7C get_current_2() const { return ___current_2; }
inline KeyValuePair_2_t4F16D7881F1F9003EEB204F45B28257F1D66DD7C * get_address_of_current_2() { return &___current_2; }
inline void set_current_2(KeyValuePair_2_t4F16D7881F1F9003EEB204F45B28257F1D66DD7C value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___current_2))->___value_1), (void*)NULL);
}
};
// System.Linq.Enumerable/Iterator`1<System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>>
struct Iterator_1_tA4AC6B997DE50C3369CAAA3F7D8693D87CA823EF : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
KeyValuePair_2_t1A02A92F19CB8BC0B946A7021B58318555A213B2 ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tA4AC6B997DE50C3369CAAA3F7D8693D87CA823EF, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tA4AC6B997DE50C3369CAAA3F7D8693D87CA823EF, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tA4AC6B997DE50C3369CAAA3F7D8693D87CA823EF, ___current_2)); }
inline KeyValuePair_2_t1A02A92F19CB8BC0B946A7021B58318555A213B2 get_current_2() const { return ___current_2; }
inline KeyValuePair_2_t1A02A92F19CB8BC0B946A7021B58318555A213B2 * get_address_of_current_2() { return &___current_2; }
inline void set_current_2(KeyValuePair_2_t1A02A92F19CB8BC0B946A7021B58318555A213B2 value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___current_2))->___key_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___current_2))->___value_1), (void*)NULL);
#endif
}
};
// System.Linq.Enumerable/Iterator`1<=a4d=>
struct Iterator_1_tC928A0B8F09AA616BB610A51B51C4C9F0B49B530 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
U3Da4dU3D_t264F71960A5CC2BAEC4EEDEF545898887B445555 ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tC928A0B8F09AA616BB610A51B51C4C9F0B49B530, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tC928A0B8F09AA616BB610A51B51C4C9F0B49B530, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tC928A0B8F09AA616BB610A51B51C4C9F0B49B530, ___current_2)); }
inline U3Da4dU3D_t264F71960A5CC2BAEC4EEDEF545898887B445555 get_current_2() const { return ___current_2; }
inline U3Da4dU3D_t264F71960A5CC2BAEC4EEDEF545898887B445555 * get_address_of_current_2() { return &___current_2; }
inline void set_current_2(U3Da4dU3D_t264F71960A5CC2BAEC4EEDEF545898887B445555 value)
{
___current_2 = value;
}
};
// System.Linq.Enumerable/Iterator`1<Microsoft.Geospatial.LatLon>
struct Iterator_1_t296CC9305A5B9B961E2C69ED717B0BE68CDD1105 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_t296CC9305A5B9B961E2C69ED717B0BE68CDD1105, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_t296CC9305A5B9B961E2C69ED717B0BE68CDD1105, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_t296CC9305A5B9B961E2C69ED717B0BE68CDD1105, ___current_2)); }
inline LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 get_current_2() const { return ___current_2; }
inline LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 * get_address_of_current_2() { return &___current_2; }
inline void set_current_2(LatLon_tECF15D90E4E87498D78719F86409FE8482A00FF7 value)
{
___current_2 = value;
}
};
// System.Linq.Enumerable/Iterator`1<Microsoft.Geospatial.TileId>
struct Iterator_1_t2A295C77A21FD46A9E93E750F6044B9E21792A9E : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
TileId_tC1BBD074BC1D92C2E403D8175AB001DE73201A2E ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_t2A295C77A21FD46A9E93E750F6044B9E21792A9E, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_t2A295C77A21FD46A9E93E750F6044B9E21792A9E, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_t2A295C77A21FD46A9E93E750F6044B9E21792A9E, ___current_2)); }
inline TileId_tC1BBD074BC1D92C2E403D8175AB001DE73201A2E get_current_2() const { return ___current_2; }
inline TileId_tC1BBD074BC1D92C2E403D8175AB001DE73201A2E * get_address_of_current_2() { return &___current_2; }
inline void set_current_2(TileId_tC1BBD074BC1D92C2E403D8175AB001DE73201A2E value)
{
___current_2 = value;
}
};
// System.Linq.Enumerable/Iterator`1<Microsoft.Geospatial.VectorMath.Vector3D>
struct Iterator_1_t2B8F3260AE37016DA076F368A9E0204313124549 : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_t2B8F3260AE37016DA076F368A9E0204313124549, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_t2B8F3260AE37016DA076F368A9E0204313124549, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_t2B8F3260AE37016DA076F368A9E0204313124549, ___current_2)); }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C get_current_2() const { return ___current_2; }
inline Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C * get_address_of_current_2() { return &___current_2; }
inline void set_current_2(Vector3D_tD365AF3F4C0FE86F6FDC02B6363E79BC2C94413C value)
{
___current_2 = value;
}
};
// System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>
struct KeyValuePair_2_t4EF6CB2C51BBBE27D8EFCACE115AE58352E3176E
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
U3DabaU3D_t9FC55E453A47D4D3FD689055393E8AEAE740F371 ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
MapLabel_t956C0647026C125A0E123A58E050022388C51C87 * ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t4EF6CB2C51BBBE27D8EFCACE115AE58352E3176E, ___key_0)); }
inline U3DabaU3D_t9FC55E453A47D4D3FD689055393E8AEAE740F371 get_key_0() const { return ___key_0; }
inline U3DabaU3D_t9FC55E453A47D4D3FD689055393E8AEAE740F371 * get_address_of_key_0() { return &___key_0; }
inline void set_key_0(U3DabaU3D_t9FC55E453A47D4D3FD689055393E8AEAE740F371 value)
{
___key_0 = value;
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t4EF6CB2C51BBBE27D8EFCACE115AE58352E3176E, ___value_1)); }
inline MapLabel_t956C0647026C125A0E123A58E050022388C51C87 * get_value_1() const { return ___value_1; }
inline MapLabel_t956C0647026C125A0E123A58E050022388C51C87 ** get_address_of_value_1() { return &___value_1; }
inline void set_value_1(MapLabel_t956C0647026C125A0E123A58E050022388C51C87 * value)
{
___value_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value);
}
};
// System.Linq.Enumerable/WhereListIterator`1<=aaBE=>
struct WhereListIterator_1_tD1704F71CA37F2A0453CB51CAA74022B88FB5101 : public Iterator_1_tDEB5F21FCAC087A22DD0F7E89AEB09BC1E8FE0C7
{
public:
// System.Collections.Generic.List`1<TSource> System.Linq.Enumerable/WhereListIterator`1::source
List_1_t653082024DCE75206AA6BBFEB5AC2A0980289206 * ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereListIterator`1::predicate
Func_2_t5CFAB67CCB6EA2BB6BCEF652B10FA9C084B42FAC * ___predicate_4;
// System.Collections.Generic.List`1/Enumerator<TSource> System.Linq.Enumerable/WhereListIterator`1::enumerator
Enumerator_tD6A77346FEE2460DEAA8272351D66E797A3BE9A7 ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereListIterator_1_tD1704F71CA37F2A0453CB51CAA74022B88FB5101, ___source_3)); }
inline List_1_t653082024DCE75206AA6BBFEB5AC2A0980289206 * get_source_3() const { return ___source_3; }
inline List_1_t653082024DCE75206AA6BBFEB5AC2A0980289206 ** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(List_1_t653082024DCE75206AA6BBFEB5AC2A0980289206 * value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereListIterator_1_tD1704F71CA37F2A0453CB51CAA74022B88FB5101, ___predicate_4)); }
inline Func_2_t5CFAB67CCB6EA2BB6BCEF652B10FA9C084B42FAC * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t5CFAB67CCB6EA2BB6BCEF652B10FA9C084B42FAC ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t5CFAB67CCB6EA2BB6BCEF652B10FA9C084B42FAC * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereListIterator_1_tD1704F71CA37F2A0453CB51CAA74022B88FB5101, ___enumerator_5)); }
inline Enumerator_tD6A77346FEE2460DEAA8272351D66E797A3BE9A7 get_enumerator_5() const { return ___enumerator_5; }
inline Enumerator_tD6A77346FEE2460DEAA8272351D66E797A3BE9A7 * get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(Enumerator_tD6A77346FEE2460DEAA8272351D66E797A3BE9A7 value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___list_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___current_3), (void*)NULL);
#endif
}
};
// System.Linq.Enumerable/WhereListIterator`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer>
struct WhereListIterator_1_tD7A84BF7F095C3136DB221A158B6642FDFA8E348 : public Iterator_1_t6D6B4E260D0624DD10409BDD7D4655EDF882A5C6
{
public:
// System.Collections.Generic.List`1<TSource> System.Linq.Enumerable/WhereListIterator`1::source
List_1_t70D278A9C53871EE6A077AEE68BF749546B5B347 * ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereListIterator`1::predicate
Func_2_t756EAF50FD670354E22728B1DE8496991F588D85 * ___predicate_4;
// System.Collections.Generic.List`1/Enumerator<TSource> System.Linq.Enumerable/WhereListIterator`1::enumerator
Enumerator_t646EDB508B4DBEB5C321378C3B26DB11ED302986 ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereListIterator_1_tD7A84BF7F095C3136DB221A158B6642FDFA8E348, ___source_3)); }
inline List_1_t70D278A9C53871EE6A077AEE68BF749546B5B347 * get_source_3() const { return ___source_3; }
inline List_1_t70D278A9C53871EE6A077AEE68BF749546B5B347 ** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(List_1_t70D278A9C53871EE6A077AEE68BF749546B5B347 * value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereListIterator_1_tD7A84BF7F095C3136DB221A158B6642FDFA8E348, ___predicate_4)); }
inline Func_2_t756EAF50FD670354E22728B1DE8496991F588D85 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t756EAF50FD670354E22728B1DE8496991F588D85 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t756EAF50FD670354E22728B1DE8496991F588D85 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereListIterator_1_tD7A84BF7F095C3136DB221A158B6642FDFA8E348, ___enumerator_5)); }
inline Enumerator_t646EDB508B4DBEB5C321378C3B26DB11ED302986 get_enumerator_5() const { return ___enumerator_5; }
inline Enumerator_t646EDB508B4DBEB5C321378C3B26DB11ED302986 * get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(Enumerator_t646EDB508B4DBEB5C321378C3B26DB11ED302986 value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___list_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___current_3), (void*)NULL);
#endif
}
};
// System.Linq.Enumerable/WhereListIterator`1<System.String>
struct WhereListIterator_1_tBFBBF71A53E829A85EDABB4C39256E45C8D693F6 : public Iterator_1_t518A3450AAA6AD81E50F0974825C669A78940F57
{
public:
// System.Collections.Generic.List`1<TSource> System.Linq.Enumerable/WhereListIterator`1::source
List_1_t6C9F81EDBF0F4A31A9B0DA372D2EF34BDA3A1AF3 * ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereListIterator`1::predicate
Func_2_t8B45BBA625F1F9197CEB4999F9B2A963FCE4B92D * ___predicate_4;
// System.Collections.Generic.List`1/Enumerator<TSource> System.Linq.Enumerable/WhereListIterator`1::enumerator
Enumerator_tCDCE241581BD00D8EDB03C9DC4133A65ADABF67B ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereListIterator_1_tBFBBF71A53E829A85EDABB4C39256E45C8D693F6, ___source_3)); }
inline List_1_t6C9F81EDBF0F4A31A9B0DA372D2EF34BDA3A1AF3 * get_source_3() const { return ___source_3; }
inline List_1_t6C9F81EDBF0F4A31A9B0DA372D2EF34BDA3A1AF3 ** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(List_1_t6C9F81EDBF0F4A31A9B0DA372D2EF34BDA3A1AF3 * value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereListIterator_1_tBFBBF71A53E829A85EDABB4C39256E45C8D693F6, ___predicate_4)); }
inline Func_2_t8B45BBA625F1F9197CEB4999F9B2A963FCE4B92D * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t8B45BBA625F1F9197CEB4999F9B2A963FCE4B92D ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t8B45BBA625F1F9197CEB4999F9B2A963FCE4B92D * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereListIterator_1_tBFBBF71A53E829A85EDABB4C39256E45C8D693F6, ___enumerator_5)); }
inline Enumerator_tCDCE241581BD00D8EDB03C9DC4133A65ADABF67B get_enumerator_5() const { return ___enumerator_5; }
inline Enumerator_tCDCE241581BD00D8EDB03C9DC4133A65ADABF67B * get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(Enumerator_tCDCE241581BD00D8EDB03C9DC4133A65ADABF67B value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___list_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___current_3), (void*)NULL);
#endif
}
};
// System.Linq.Enumerable/WhereListIterator`1<UnityEngine.UI.Toggle>
struct WhereListIterator_1_t915FEE5B8BE28810D5403174865EF534B08C922C : public Iterator_1_tA93D90FAF12703A03EF0DEEC272917FC445640B9
{
public:
// System.Collections.Generic.List`1<TSource> System.Linq.Enumerable/WhereListIterator`1::source
List_1_tECEEA56321275CFF8DECB929786CE364F743B07D * ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereListIterator`1::predicate
Func_2_tCE3CE3D7F67C20FF5576ED2A6E74518A0756E2DE * ___predicate_4;
// System.Collections.Generic.List`1/Enumerator<TSource> System.Linq.Enumerable/WhereListIterator`1::enumerator
Enumerator_t31AFCE097784B793D1AFD1CC12A4BE8AED3AE5D7 ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t915FEE5B8BE28810D5403174865EF534B08C922C, ___source_3)); }
inline List_1_tECEEA56321275CFF8DECB929786CE364F743B07D * get_source_3() const { return ___source_3; }
inline List_1_tECEEA56321275CFF8DECB929786CE364F743B07D ** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(List_1_tECEEA56321275CFF8DECB929786CE364F743B07D * value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t915FEE5B8BE28810D5403174865EF534B08C922C, ___predicate_4)); }
inline Func_2_tCE3CE3D7F67C20FF5576ED2A6E74518A0756E2DE * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tCE3CE3D7F67C20FF5576ED2A6E74518A0756E2DE ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tCE3CE3D7F67C20FF5576ED2A6E74518A0756E2DE * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t915FEE5B8BE28810D5403174865EF534B08C922C, ___enumerator_5)); }
inline Enumerator_t31AFCE097784B793D1AFD1CC12A4BE8AED3AE5D7 get_enumerator_5() const { return ___enumerator_5; }
inline Enumerator_t31AFCE097784B793D1AFD1CC12A4BE8AED3AE5D7 * get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(Enumerator_t31AFCE097784B793D1AFD1CC12A4BE8AED3AE5D7 value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___list_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___current_3), (void*)NULL);
#endif
}
};
// System.Linq.Enumerable/WhereListIterator`1<System.Type>
struct WhereListIterator_1_t95AF2B81888956C8B661983FE99AEF1080D07FA1 : public Iterator_1_t24BA32DB41E3722DEAFD07D0C5EBBD773CB732DC
{
public:
// System.Collections.Generic.List`1<TSource> System.Linq.Enumerable/WhereListIterator`1::source
List_1_t7CFD5FCE8366620F593F2C9DAC3A870E5D6506D7 * ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereListIterator`1::predicate
Func_2_tDA1CD28AB1DD1EC817F9902B752EB3751BE154B5 * ___predicate_4;
// System.Collections.Generic.List`1/Enumerator<TSource> System.Linq.Enumerable/WhereListIterator`1::enumerator
Enumerator_tF4C0DAA7296AA2D9882BDBBBA6058B423BD2A4BC ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t95AF2B81888956C8B661983FE99AEF1080D07FA1, ___source_3)); }
inline List_1_t7CFD5FCE8366620F593F2C9DAC3A870E5D6506D7 * get_source_3() const { return ___source_3; }
inline List_1_t7CFD5FCE8366620F593F2C9DAC3A870E5D6506D7 ** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(List_1_t7CFD5FCE8366620F593F2C9DAC3A870E5D6506D7 * value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t95AF2B81888956C8B661983FE99AEF1080D07FA1, ___predicate_4)); }
inline Func_2_tDA1CD28AB1DD1EC817F9902B752EB3751BE154B5 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tDA1CD28AB1DD1EC817F9902B752EB3751BE154B5 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tDA1CD28AB1DD1EC817F9902B752EB3751BE154B5 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t95AF2B81888956C8B661983FE99AEF1080D07FA1, ___enumerator_5)); }
inline Enumerator_tF4C0DAA7296AA2D9882BDBBBA6058B423BD2A4BC get_enumerator_5() const { return ___enumerator_5; }
inline Enumerator_tF4C0DAA7296AA2D9882BDBBBA6058B423BD2A4BC * get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(Enumerator_tF4C0DAA7296AA2D9882BDBBBA6058B423BD2A4BC value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___list_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___current_3), (void*)NULL);
#endif
}
};
// System.Linq.Enumerable/WhereListIterator`1<Windows.Media.SpeechSynthesis.VoiceInformation>
struct WhereListIterator_1_t69104B9964E27FF32829C7F5CFDDDE66F8A4AF6B : public Iterator_1_tA2ABCE36619A3B2FF69B51FC70679A7EDBF24925
{
public:
// System.Collections.Generic.List`1<TSource> System.Linq.Enumerable/WhereListIterator`1::source
List_1_t274FDF00BE3592692AB3755E028D8DCBDE654885 * ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereListIterator`1::predicate
Func_2_t94D24DEAAB9E90481B81A93DA47A65FDADAC7D86 * ___predicate_4;
// System.Collections.Generic.List`1/Enumerator<TSource> System.Linq.Enumerable/WhereListIterator`1::enumerator
Enumerator_t41D1F553F15F7D1C15541B3A49BCE7798DC1EFDD ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t69104B9964E27FF32829C7F5CFDDDE66F8A4AF6B, ___source_3)); }
inline List_1_t274FDF00BE3592692AB3755E028D8DCBDE654885 * get_source_3() const { return ___source_3; }
inline List_1_t274FDF00BE3592692AB3755E028D8DCBDE654885 ** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(List_1_t274FDF00BE3592692AB3755E028D8DCBDE654885 * value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t69104B9964E27FF32829C7F5CFDDDE66F8A4AF6B, ___predicate_4)); }
inline Func_2_t94D24DEAAB9E90481B81A93DA47A65FDADAC7D86 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t94D24DEAAB9E90481B81A93DA47A65FDADAC7D86 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t94D24DEAAB9E90481B81A93DA47A65FDADAC7D86 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t69104B9964E27FF32829C7F5CFDDDE66F8A4AF6B, ___enumerator_5)); }
inline Enumerator_t41D1F553F15F7D1C15541B3A49BCE7798DC1EFDD get_enumerator_5() const { return ___enumerator_5; }
inline Enumerator_t41D1F553F15F7D1C15541B3A49BCE7798DC1EFDD * get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(Enumerator_t41D1F553F15F7D1C15541B3A49BCE7798DC1EFDD value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___list_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___current_3), (void*)NULL);
#endif
}
};
// System.Linq.Enumerable/WhereListIterator`1<UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers>
struct WhereListIterator_1_t8B25767640ADA9A198B4A89B0513668FCC9D201F : public Iterator_1_t66252DF8A45F10F17B22A06C3DC3BBA6DD8BA03D
{
public:
// System.Collections.Generic.List`1<TSource> System.Linq.Enumerable/WhereListIterator`1::source
List_1_t842D0C636A38CB2DC974F9A4CFD45C93CBEE352E * ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereListIterator`1::predicate
Func_2_t5F8D0CE7FEC1909F009FDD63706CECBB1BD5D5A8 * ___predicate_4;
// System.Collections.Generic.List`1/Enumerator<TSource> System.Linq.Enumerable/WhereListIterator`1::enumerator
Enumerator_t44D7D2F459EE8B12D589CF49B92DFBDAA55F809B ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t8B25767640ADA9A198B4A89B0513668FCC9D201F, ___source_3)); }
inline List_1_t842D0C636A38CB2DC974F9A4CFD45C93CBEE352E * get_source_3() const { return ___source_3; }
inline List_1_t842D0C636A38CB2DC974F9A4CFD45C93CBEE352E ** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(List_1_t842D0C636A38CB2DC974F9A4CFD45C93CBEE352E * value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t8B25767640ADA9A198B4A89B0513668FCC9D201F, ___predicate_4)); }
inline Func_2_t5F8D0CE7FEC1909F009FDD63706CECBB1BD5D5A8 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t5F8D0CE7FEC1909F009FDD63706CECBB1BD5D5A8 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t5F8D0CE7FEC1909F009FDD63706CECBB1BD5D5A8 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t8B25767640ADA9A198B4A89B0513668FCC9D201F, ___enumerator_5)); }
inline Enumerator_t44D7D2F459EE8B12D589CF49B92DFBDAA55F809B get_enumerator_5() const { return ___enumerator_5; }
inline Enumerator_t44D7D2F459EE8B12D589CF49B92DFBDAA55F809B * get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(Enumerator_t44D7D2F459EE8B12D589CF49B92DFBDAA55F809B value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___list_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___current_3), (void*)NULL);
#endif
}
};
// UnityEngine.Ray
struct Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6
{
public:
// UnityEngine.Vector3 UnityEngine.Ray::m_Origin
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___m_Origin_0;
// UnityEngine.Vector3 UnityEngine.Ray::m_Direction
Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___m_Direction_1;
public:
inline static int32_t get_offset_of_m_Origin_0() { return static_cast<int32_t>(offsetof(Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6, ___m_Origin_0)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_m_Origin_0() const { return ___m_Origin_0; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_m_Origin_0() { return &___m_Origin_0; }
inline void set_m_Origin_0(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___m_Origin_0 = value;
}
inline static int32_t get_offset_of_m_Direction_1() { return static_cast<int32_t>(offsetof(Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6, ___m_Direction_1)); }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_m_Direction_1() const { return ___m_Direction_1; }
inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_m_Direction_1() { return &___m_Direction_1; }
inline void set_m_Direction_1(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value)
{
___m_Direction_1 = value;
}
};
// System.Collections.Generic.List`1/Enumerator<System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>>
struct Enumerator_t62ADD887A6A618F2D832EE66D6621DF4AA784C9F
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1/Enumerator::list
List_1_tA3DE714A1EA1E963BFCD876AAF2D98AB182B15E4 * ___list_0;
// System.Int32 System.Collections.Generic.List`1/Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1/Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1/Enumerator::current
KeyValuePair_2_t4EF6CB2C51BBBE27D8EFCACE115AE58352E3176E ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_t62ADD887A6A618F2D832EE66D6621DF4AA784C9F, ___list_0)); }
inline List_1_tA3DE714A1EA1E963BFCD876AAF2D98AB182B15E4 * get_list_0() const { return ___list_0; }
inline List_1_tA3DE714A1EA1E963BFCD876AAF2D98AB182B15E4 ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_tA3DE714A1EA1E963BFCD876AAF2D98AB182B15E4 * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_t62ADD887A6A618F2D832EE66D6621DF4AA784C9F, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_t62ADD887A6A618F2D832EE66D6621DF4AA784C9F, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t62ADD887A6A618F2D832EE66D6621DF4AA784C9F, ___current_3)); }
inline KeyValuePair_2_t4EF6CB2C51BBBE27D8EFCACE115AE58352E3176E get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t4EF6CB2C51BBBE27D8EFCACE115AE58352E3176E * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t4EF6CB2C51BBBE27D8EFCACE115AE58352E3176E value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___value_1), (void*)NULL);
}
};
// System.Collections.Generic.List`1/Enumerator<UnityEngine.Ray>
struct Enumerator_t559B6D6D3113FF8834FF99E540A765371AFFE657
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1/Enumerator::list
List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B * ___list_0;
// System.Int32 System.Collections.Generic.List`1/Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1/Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1/Enumerator::current
Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_t559B6D6D3113FF8834FF99E540A765371AFFE657, ___list_0)); }
inline List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B * get_list_0() const { return ___list_0; }
inline List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_t559B6D6D3113FF8834FF99E540A765371AFFE657, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_t559B6D6D3113FF8834FF99E540A765371AFFE657, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t559B6D6D3113FF8834FF99E540A765371AFFE657, ___current_3)); }
inline Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 get_current_3() const { return ___current_3; }
inline Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 value)
{
___current_3 = value;
}
};
// System.Linq.Enumerable/Iterator`1<System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>>
struct Iterator_1_tD1D62118E3932E621238F06CC7776173455D5AAC : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
KeyValuePair_2_t4EF6CB2C51BBBE27D8EFCACE115AE58352E3176E ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_tD1D62118E3932E621238F06CC7776173455D5AAC, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_tD1D62118E3932E621238F06CC7776173455D5AAC, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_tD1D62118E3932E621238F06CC7776173455D5AAC, ___current_2)); }
inline KeyValuePair_2_t4EF6CB2C51BBBE27D8EFCACE115AE58352E3176E get_current_2() const { return ___current_2; }
inline KeyValuePair_2_t4EF6CB2C51BBBE27D8EFCACE115AE58352E3176E * get_address_of_current_2() { return &___current_2; }
inline void set_current_2(KeyValuePair_2_t4EF6CB2C51BBBE27D8EFCACE115AE58352E3176E value)
{
___current_2 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___current_2))->___value_1), (void*)NULL);
}
};
// System.Linq.Enumerable/Iterator`1<UnityEngine.Ray>
struct Iterator_1_t4749C64072721BCF3A2200DB52C4CD281CD62F2F : public RuntimeObject
{
public:
// System.Int32 System.Linq.Enumerable/Iterator`1::threadId
int32_t ___threadId_0;
// System.Int32 System.Linq.Enumerable/Iterator`1::state
int32_t ___state_1;
// TSource System.Linq.Enumerable/Iterator`1::current
Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 ___current_2;
public:
inline static int32_t get_offset_of_threadId_0() { return static_cast<int32_t>(offsetof(Iterator_1_t4749C64072721BCF3A2200DB52C4CD281CD62F2F, ___threadId_0)); }
inline int32_t get_threadId_0() const { return ___threadId_0; }
inline int32_t* get_address_of_threadId_0() { return &___threadId_0; }
inline void set_threadId_0(int32_t value)
{
___threadId_0 = value;
}
inline static int32_t get_offset_of_state_1() { return static_cast<int32_t>(offsetof(Iterator_1_t4749C64072721BCF3A2200DB52C4CD281CD62F2F, ___state_1)); }
inline int32_t get_state_1() const { return ___state_1; }
inline int32_t* get_address_of_state_1() { return &___state_1; }
inline void set_state_1(int32_t value)
{
___state_1 = value;
}
inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(Iterator_1_t4749C64072721BCF3A2200DB52C4CD281CD62F2F, ___current_2)); }
inline Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 get_current_2() const { return ___current_2; }
inline Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 * get_address_of_current_2() { return &___current_2; }
inline void set_current_2(Ray_t2E9E67CC8B03EE6ED2BBF3D2C9C96DDF70E1D5E6 value)
{
___current_2 = value;
}
};
// System.Linq.Enumerable/WhereArrayIterator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>>
struct WhereArrayIterator_1_t02CF8CBADC6B437274837AAB2196EACAA6753397 : public Iterator_1_t69E70CE29811E05D6F844891FD20E3923CF61A35
{
public:
// TSource[] System.Linq.Enumerable/WhereArrayIterator`1::source
KeyValuePair_2U5BU5D_tD9BBFE2A4C3E0269F23A278D66D1D62160E7CD64* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereArrayIterator`1::predicate
Func_2_t331B7A61198027D82A5AA304299CC078653778E2 * ___predicate_4;
// System.Int32 System.Linq.Enumerable/WhereArrayIterator`1::index
int32_t ___index_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t02CF8CBADC6B437274837AAB2196EACAA6753397, ___source_3)); }
inline KeyValuePair_2U5BU5D_tD9BBFE2A4C3E0269F23A278D66D1D62160E7CD64* get_source_3() const { return ___source_3; }
inline KeyValuePair_2U5BU5D_tD9BBFE2A4C3E0269F23A278D66D1D62160E7CD64** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(KeyValuePair_2U5BU5D_tD9BBFE2A4C3E0269F23A278D66D1D62160E7CD64* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t02CF8CBADC6B437274837AAB2196EACAA6753397, ___predicate_4)); }
inline Func_2_t331B7A61198027D82A5AA304299CC078653778E2 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t331B7A61198027D82A5AA304299CC078653778E2 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t331B7A61198027D82A5AA304299CC078653778E2 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_index_5() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t02CF8CBADC6B437274837AAB2196EACAA6753397, ___index_5)); }
inline int32_t get_index_5() const { return ___index_5; }
inline int32_t* get_address_of_index_5() { return &___index_5; }
inline void set_index_5(int32_t value)
{
___index_5 = value;
}
};
// System.Linq.Enumerable/WhereArrayIterator`1<System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>>
struct WhereArrayIterator_1_t630987FEF0538E2DBD885A53C4E524BDD9CDD1CF : public Iterator_1_tA4AC6B997DE50C3369CAAA3F7D8693D87CA823EF
{
public:
// TSource[] System.Linq.Enumerable/WhereArrayIterator`1::source
KeyValuePair_2U5BU5D_t609D8E2310DE99AD465B7D8C66167D9223466915* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereArrayIterator`1::predicate
Func_2_t9B340FBBE1EA9B8502B6F8225A4F9B2BB59EE9CB * ___predicate_4;
// System.Int32 System.Linq.Enumerable/WhereArrayIterator`1::index
int32_t ___index_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t630987FEF0538E2DBD885A53C4E524BDD9CDD1CF, ___source_3)); }
inline KeyValuePair_2U5BU5D_t609D8E2310DE99AD465B7D8C66167D9223466915* get_source_3() const { return ___source_3; }
inline KeyValuePair_2U5BU5D_t609D8E2310DE99AD465B7D8C66167D9223466915** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(KeyValuePair_2U5BU5D_t609D8E2310DE99AD465B7D8C66167D9223466915* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t630987FEF0538E2DBD885A53C4E524BDD9CDD1CF, ___predicate_4)); }
inline Func_2_t9B340FBBE1EA9B8502B6F8225A4F9B2BB59EE9CB * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t9B340FBBE1EA9B8502B6F8225A4F9B2BB59EE9CB ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t9B340FBBE1EA9B8502B6F8225A4F9B2BB59EE9CB * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_index_5() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t630987FEF0538E2DBD885A53C4E524BDD9CDD1CF, ___index_5)); }
inline int32_t get_index_5() const { return ___index_5; }
inline int32_t* get_address_of_index_5() { return &___index_5; }
inline void set_index_5(int32_t value)
{
___index_5 = value;
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>>
struct WhereEnumerableIterator_1_t5B4AAC74DB9422489074A653BE9D1E00C6378758 : public Iterator_1_t69E70CE29811E05D6F844891FD20E3923CF61A35
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t331B7A61198027D82A5AA304299CC078653778E2 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t5B4AAC74DB9422489074A653BE9D1E00C6378758, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t5B4AAC74DB9422489074A653BE9D1E00C6378758, ___predicate_4)); }
inline Func_2_t331B7A61198027D82A5AA304299CC078653778E2 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t331B7A61198027D82A5AA304299CC078653778E2 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t331B7A61198027D82A5AA304299CC078653778E2 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t5B4AAC74DB9422489074A653BE9D1E00C6378758, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>>
struct WhereEnumerableIterator_1_t6812C7E842321161751049F692E4D2F9D1BDF8E6 : public Iterator_1_tA4AC6B997DE50C3369CAAA3F7D8693D87CA823EF
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t9B340FBBE1EA9B8502B6F8225A4F9B2BB59EE9CB * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t6812C7E842321161751049F692E4D2F9D1BDF8E6, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t6812C7E842321161751049F692E4D2F9D1BDF8E6, ___predicate_4)); }
inline Func_2_t9B340FBBE1EA9B8502B6F8225A4F9B2BB59EE9CB * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t9B340FBBE1EA9B8502B6F8225A4F9B2BB59EE9CB ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t9B340FBBE1EA9B8502B6F8225A4F9B2BB59EE9CB * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t6812C7E842321161751049F692E4D2F9D1BDF8E6, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<=a4d=>
struct WhereEnumerableIterator_1_t36702FBEF242C7E3175FC98E66A3DEB0C8347E6B : public Iterator_1_tC928A0B8F09AA616BB610A51B51C4C9F0B49B530
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_tE958C708B72C3C94798998F03F9060CD0E8047D9 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t36702FBEF242C7E3175FC98E66A3DEB0C8347E6B, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t36702FBEF242C7E3175FC98E66A3DEB0C8347E6B, ___predicate_4)); }
inline Func_2_tE958C708B72C3C94798998F03F9060CD0E8047D9 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tE958C708B72C3C94798998F03F9060CD0E8047D9 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tE958C708B72C3C94798998F03F9060CD0E8047D9 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t36702FBEF242C7E3175FC98E66A3DEB0C8347E6B, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<Microsoft.Geospatial.LatLon>
struct WhereEnumerableIterator_1_t0EE8AAC7A26B8AAA749A70D93F1144655C028E4D : public Iterator_1_t296CC9305A5B9B961E2C69ED717B0BE68CDD1105
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_tB3FD614704F718012E68CCCF10908E88784BF775 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t0EE8AAC7A26B8AAA749A70D93F1144655C028E4D, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t0EE8AAC7A26B8AAA749A70D93F1144655C028E4D, ___predicate_4)); }
inline Func_2_tB3FD614704F718012E68CCCF10908E88784BF775 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tB3FD614704F718012E68CCCF10908E88784BF775 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tB3FD614704F718012E68CCCF10908E88784BF775 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t0EE8AAC7A26B8AAA749A70D93F1144655C028E4D, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<Microsoft.Geospatial.TileId>
struct WhereEnumerableIterator_1_tD142716C3DFEDB9E61444FC44DD519E488CE4ABE : public Iterator_1_t2A295C77A21FD46A9E93E750F6044B9E21792A9E
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_tCB27F98BE6E66155DD7AB5457EED4C019FCF0185 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tD142716C3DFEDB9E61444FC44DD519E488CE4ABE, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tD142716C3DFEDB9E61444FC44DD519E488CE4ABE, ___predicate_4)); }
inline Func_2_tCB27F98BE6E66155DD7AB5457EED4C019FCF0185 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tCB27F98BE6E66155DD7AB5457EED4C019FCF0185 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tCB27F98BE6E66155DD7AB5457EED4C019FCF0185 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tD142716C3DFEDB9E61444FC44DD519E488CE4ABE, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<Microsoft.Geospatial.VectorMath.Vector3D>
struct WhereEnumerableIterator_1_tC55DF6A399A4D5A56953F8D0377B7A2B59A710B2 : public Iterator_1_t2B8F3260AE37016DA076F368A9E0204313124549
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t7AD4236AE6469F5731328294E13F20B4E0ADE367 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tC55DF6A399A4D5A56953F8D0377B7A2B59A710B2, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tC55DF6A399A4D5A56953F8D0377B7A2B59A710B2, ___predicate_4)); }
inline Func_2_t7AD4236AE6469F5731328294E13F20B4E0ADE367 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t7AD4236AE6469F5731328294E13F20B4E0ADE367 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t7AD4236AE6469F5731328294E13F20B4E0ADE367 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tC55DF6A399A4D5A56953F8D0377B7A2B59A710B2, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereListIterator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>>
struct WhereListIterator_1_t0960A4EDA2BAA3FB84F51FD844E6C68A2436E8E7 : public Iterator_1_t69E70CE29811E05D6F844891FD20E3923CF61A35
{
public:
// System.Collections.Generic.List`1<TSource> System.Linq.Enumerable/WhereListIterator`1::source
List_1_tF369DE22A8D9E61DDAF76E8E6A20394A444302D9 * ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereListIterator`1::predicate
Func_2_t331B7A61198027D82A5AA304299CC078653778E2 * ___predicate_4;
// System.Collections.Generic.List`1/Enumerator<TSource> System.Linq.Enumerable/WhereListIterator`1::enumerator
Enumerator_tF8F8651EC68D278D4E3603F068745C75DBBB9556 ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t0960A4EDA2BAA3FB84F51FD844E6C68A2436E8E7, ___source_3)); }
inline List_1_tF369DE22A8D9E61DDAF76E8E6A20394A444302D9 * get_source_3() const { return ___source_3; }
inline List_1_tF369DE22A8D9E61DDAF76E8E6A20394A444302D9 ** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(List_1_tF369DE22A8D9E61DDAF76E8E6A20394A444302D9 * value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t0960A4EDA2BAA3FB84F51FD844E6C68A2436E8E7, ___predicate_4)); }
inline Func_2_t331B7A61198027D82A5AA304299CC078653778E2 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t331B7A61198027D82A5AA304299CC078653778E2 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t331B7A61198027D82A5AA304299CC078653778E2 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t0960A4EDA2BAA3FB84F51FD844E6C68A2436E8E7, ___enumerator_5)); }
inline Enumerator_tF8F8651EC68D278D4E3603F068745C75DBBB9556 get_enumerator_5() const { return ___enumerator_5; }
inline Enumerator_tF8F8651EC68D278D4E3603F068745C75DBBB9556 * get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(Enumerator_tF8F8651EC68D278D4E3603F068745C75DBBB9556 value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___list_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___enumerator_5))->___current_3))->___value_1), (void*)NULL);
#endif
}
};
// System.Linq.Enumerable/WhereListIterator`1<System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>>
struct WhereListIterator_1_t8658D16BEC3E20EC35413D6D8D373C6DFD225D59 : public Iterator_1_tA4AC6B997DE50C3369CAAA3F7D8693D87CA823EF
{
public:
// System.Collections.Generic.List`1<TSource> System.Linq.Enumerable/WhereListIterator`1::source
List_1_tBA45D580BE3704A3AE24604C6F866C8EFD179562 * ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereListIterator`1::predicate
Func_2_t9B340FBBE1EA9B8502B6F8225A4F9B2BB59EE9CB * ___predicate_4;
// System.Collections.Generic.List`1/Enumerator<TSource> System.Linq.Enumerable/WhereListIterator`1::enumerator
Enumerator_t42E12BFE518E3A6260DCE478E446B8C10E77C959 ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t8658D16BEC3E20EC35413D6D8D373C6DFD225D59, ___source_3)); }
inline List_1_tBA45D580BE3704A3AE24604C6F866C8EFD179562 * get_source_3() const { return ___source_3; }
inline List_1_tBA45D580BE3704A3AE24604C6F866C8EFD179562 ** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(List_1_tBA45D580BE3704A3AE24604C6F866C8EFD179562 * value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t8658D16BEC3E20EC35413D6D8D373C6DFD225D59, ___predicate_4)); }
inline Func_2_t9B340FBBE1EA9B8502B6F8225A4F9B2BB59EE9CB * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t9B340FBBE1EA9B8502B6F8225A4F9B2BB59EE9CB ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t9B340FBBE1EA9B8502B6F8225A4F9B2BB59EE9CB * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t8658D16BEC3E20EC35413D6D8D373C6DFD225D59, ___enumerator_5)); }
inline Enumerator_t42E12BFE518E3A6260DCE478E446B8C10E77C959 get_enumerator_5() const { return ___enumerator_5; }
inline Enumerator_t42E12BFE518E3A6260DCE478E446B8C10E77C959 * get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(Enumerator_t42E12BFE518E3A6260DCE478E446B8C10E77C959 value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___list_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___enumerator_5))->___current_3))->___key_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___enumerator_5))->___current_3))->___value_1), (void*)NULL);
#endif
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<System.Collections.Generic.KeyValuePair`2<Microsoft.Geospatial.TileId,=a4d=>,=a4d=>
struct WhereSelectArrayIterator_2_t29E3D429E8438FC276399E2CB40BCD526C6E9927 : public Iterator_1_tC928A0B8F09AA616BB610A51B51C4C9F0B49B530
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
KeyValuePair_2U5BU5D_t54F10ED446755B19E80A902ECEE2865AA5DD5D6D* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_t37A045BED9D450396CB63015B10FF8EA8DF6AB28 * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_tB0BC9612492FC670A6D0E0B71AC1F69BE2500051 * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t29E3D429E8438FC276399E2CB40BCD526C6E9927, ___source_3)); }
inline KeyValuePair_2U5BU5D_t54F10ED446755B19E80A902ECEE2865AA5DD5D6D* get_source_3() const { return ___source_3; }
inline KeyValuePair_2U5BU5D_t54F10ED446755B19E80A902ECEE2865AA5DD5D6D** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(KeyValuePair_2U5BU5D_t54F10ED446755B19E80A902ECEE2865AA5DD5D6D* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t29E3D429E8438FC276399E2CB40BCD526C6E9927, ___predicate_4)); }
inline Func_2_t37A045BED9D450396CB63015B10FF8EA8DF6AB28 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t37A045BED9D450396CB63015B10FF8EA8DF6AB28 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t37A045BED9D450396CB63015B10FF8EA8DF6AB28 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t29E3D429E8438FC276399E2CB40BCD526C6E9927, ___selector_5)); }
inline Func_2_tB0BC9612492FC670A6D0E0B71AC1F69BE2500051 * get_selector_5() const { return ___selector_5; }
inline Func_2_tB0BC9612492FC670A6D0E0B71AC1F69BE2500051 ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_tB0BC9612492FC670A6D0E0B71AC1F69BE2500051 * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t29E3D429E8438FC276399E2CB40BCD526C6E9927, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<System.Collections.Generic.KeyValuePair`2<Microsoft.Geospatial.TileId,=a4d=>,Microsoft.Geospatial.TileId>
struct WhereSelectArrayIterator_2_t72076DE6998E0009517C16688724B90DBE17E776 : public Iterator_1_t2A295C77A21FD46A9E93E750F6044B9E21792A9E
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
KeyValuePair_2U5BU5D_t54F10ED446755B19E80A902ECEE2865AA5DD5D6D* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_t37A045BED9D450396CB63015B10FF8EA8DF6AB28 * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_t2E51BC99A135348025411D98AB63659320B469D5 * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t72076DE6998E0009517C16688724B90DBE17E776, ___source_3)); }
inline KeyValuePair_2U5BU5D_t54F10ED446755B19E80A902ECEE2865AA5DD5D6D* get_source_3() const { return ___source_3; }
inline KeyValuePair_2U5BU5D_t54F10ED446755B19E80A902ECEE2865AA5DD5D6D** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(KeyValuePair_2U5BU5D_t54F10ED446755B19E80A902ECEE2865AA5DD5D6D* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t72076DE6998E0009517C16688724B90DBE17E776, ___predicate_4)); }
inline Func_2_t37A045BED9D450396CB63015B10FF8EA8DF6AB28 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t37A045BED9D450396CB63015B10FF8EA8DF6AB28 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t37A045BED9D450396CB63015B10FF8EA8DF6AB28 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t72076DE6998E0009517C16688724B90DBE17E776, ___selector_5)); }
inline Func_2_t2E51BC99A135348025411D98AB63659320B469D5 * get_selector_5() const { return ___selector_5; }
inline Func_2_t2E51BC99A135348025411D98AB63659320B469D5 ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_t2E51BC99A135348025411D98AB63659320B469D5 * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_t72076DE6998E0009517C16688724B90DBE17E776, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<=a67=,Microsoft.Geospatial.VectorMath.Vector3D>
struct WhereSelectArrayIterator_2_tE878EAC4B17EBE5F45EABCB734275A9CB4ADB10F : public Iterator_1_t2B8F3260AE37016DA076F368A9E0204313124549
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
U3Da67U3DU5BU5D_t2D26275F2EB6CDB4C6D11907A345C3E3D4FD3182* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_t43C1856B2C92D2088C91640ECC7B002BF9AA35CA * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_t8BCFD1DDA8A0F3FA3AD67E38F5132A79F4258B5D * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tE878EAC4B17EBE5F45EABCB734275A9CB4ADB10F, ___source_3)); }
inline U3Da67U3DU5BU5D_t2D26275F2EB6CDB4C6D11907A345C3E3D4FD3182* get_source_3() const { return ___source_3; }
inline U3Da67U3DU5BU5D_t2D26275F2EB6CDB4C6D11907A345C3E3D4FD3182** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(U3Da67U3DU5BU5D_t2D26275F2EB6CDB4C6D11907A345C3E3D4FD3182* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tE878EAC4B17EBE5F45EABCB734275A9CB4ADB10F, ___predicate_4)); }
inline Func_2_t43C1856B2C92D2088C91640ECC7B002BF9AA35CA * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t43C1856B2C92D2088C91640ECC7B002BF9AA35CA ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t43C1856B2C92D2088C91640ECC7B002BF9AA35CA * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tE878EAC4B17EBE5F45EABCB734275A9CB4ADB10F, ___selector_5)); }
inline Func_2_t8BCFD1DDA8A0F3FA3AD67E38F5132A79F4258B5D * get_selector_5() const { return ___selector_5; }
inline Func_2_t8BCFD1DDA8A0F3FA3AD67E38F5132A79F4258B5D ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_t8BCFD1DDA8A0F3FA3AD67E38F5132A79F4258B5D * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tE878EAC4B17EBE5F45EABCB734275A9CB4ADB10F, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// System.Linq.Enumerable/WhereSelectArrayIterator`2<=ac6=,Microsoft.Geospatial.LatLon>
struct WhereSelectArrayIterator_2_tEB89C4AC92BDB1714088C46E33091192DEE15FC7 : public Iterator_1_t296CC9305A5B9B961E2C69ED717B0BE68CDD1105
{
public:
// TSource[] System.Linq.Enumerable/WhereSelectArrayIterator`2::source
U3Dac6U3DU5BU5D_t12CF5AD2A6EF6B1C5F8851127616A63875566046* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereSelectArrayIterator`2::predicate
Func_2_tFD20F0294529179B393ECA34B01D639F090EBBD4 * ___predicate_4;
// System.Func`2<TSource,TResult> System.Linq.Enumerable/WhereSelectArrayIterator`2::selector
Func_2_t7D2203DE063442981326A71F1D5E1989ABB0C3E9 * ___selector_5;
// System.Int32 System.Linq.Enumerable/WhereSelectArrayIterator`2::index
int32_t ___index_6;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tEB89C4AC92BDB1714088C46E33091192DEE15FC7, ___source_3)); }
inline U3Dac6U3DU5BU5D_t12CF5AD2A6EF6B1C5F8851127616A63875566046* get_source_3() const { return ___source_3; }
inline U3Dac6U3DU5BU5D_t12CF5AD2A6EF6B1C5F8851127616A63875566046** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(U3Dac6U3DU5BU5D_t12CF5AD2A6EF6B1C5F8851127616A63875566046* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tEB89C4AC92BDB1714088C46E33091192DEE15FC7, ___predicate_4)); }
inline Func_2_tFD20F0294529179B393ECA34B01D639F090EBBD4 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_tFD20F0294529179B393ECA34B01D639F090EBBD4 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_tFD20F0294529179B393ECA34B01D639F090EBBD4 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_selector_5() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tEB89C4AC92BDB1714088C46E33091192DEE15FC7, ___selector_5)); }
inline Func_2_t7D2203DE063442981326A71F1D5E1989ABB0C3E9 * get_selector_5() const { return ___selector_5; }
inline Func_2_t7D2203DE063442981326A71F1D5E1989ABB0C3E9 ** get_address_of_selector_5() { return &___selector_5; }
inline void set_selector_5(Func_2_t7D2203DE063442981326A71F1D5E1989ABB0C3E9 * value)
{
___selector_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___selector_5), (void*)value);
}
inline static int32_t get_offset_of_index_6() { return static_cast<int32_t>(offsetof(WhereSelectArrayIterator_2_tEB89C4AC92BDB1714088C46E33091192DEE15FC7, ___index_6)); }
inline int32_t get_index_6() const { return ___index_6; }
inline int32_t* get_address_of_index_6() { return &___index_6; }
inline void set_index_6(int32_t value)
{
___index_6 = value;
}
};
// System.Linq.Enumerable/WhereArrayIterator`1<System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>>
struct WhereArrayIterator_1_tF536C7B831D2FEAFEE4A013BE6F01D7E69DEDFE0 : public Iterator_1_tD1D62118E3932E621238F06CC7776173455D5AAC
{
public:
// TSource[] System.Linq.Enumerable/WhereArrayIterator`1::source
KeyValuePair_2U5BU5D_tD648AFDF8AC051DBD13180882B6FE4C8B451147B* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereArrayIterator`1::predicate
Func_2_t5465DBA1549FD6575F5C50A8E3923F09B5AB69E8 * ___predicate_4;
// System.Int32 System.Linq.Enumerable/WhereArrayIterator`1::index
int32_t ___index_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_tF536C7B831D2FEAFEE4A013BE6F01D7E69DEDFE0, ___source_3)); }
inline KeyValuePair_2U5BU5D_tD648AFDF8AC051DBD13180882B6FE4C8B451147B* get_source_3() const { return ___source_3; }
inline KeyValuePair_2U5BU5D_tD648AFDF8AC051DBD13180882B6FE4C8B451147B** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(KeyValuePair_2U5BU5D_tD648AFDF8AC051DBD13180882B6FE4C8B451147B* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_tF536C7B831D2FEAFEE4A013BE6F01D7E69DEDFE0, ___predicate_4)); }
inline Func_2_t5465DBA1549FD6575F5C50A8E3923F09B5AB69E8 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t5465DBA1549FD6575F5C50A8E3923F09B5AB69E8 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t5465DBA1549FD6575F5C50A8E3923F09B5AB69E8 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_index_5() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_tF536C7B831D2FEAFEE4A013BE6F01D7E69DEDFE0, ___index_5)); }
inline int32_t get_index_5() const { return ___index_5; }
inline int32_t* get_address_of_index_5() { return &___index_5; }
inline void set_index_5(int32_t value)
{
___index_5 = value;
}
};
// System.Linq.Enumerable/WhereArrayIterator`1<UnityEngine.Ray>
struct WhereArrayIterator_1_t449AE37537E08A0DF5D1F9E009B5F76F3123EFF8 : public Iterator_1_t4749C64072721BCF3A2200DB52C4CD281CD62F2F
{
public:
// TSource[] System.Linq.Enumerable/WhereArrayIterator`1::source
RayU5BU5D_tC03BD44087BE910F83A479B1E35BC7C9528432B8* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereArrayIterator`1::predicate
Func_2_t5B1D2029A13E6CA909EEFC25E8A0F4529B313AFC * ___predicate_4;
// System.Int32 System.Linq.Enumerable/WhereArrayIterator`1::index
int32_t ___index_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t449AE37537E08A0DF5D1F9E009B5F76F3123EFF8, ___source_3)); }
inline RayU5BU5D_tC03BD44087BE910F83A479B1E35BC7C9528432B8* get_source_3() const { return ___source_3; }
inline RayU5BU5D_tC03BD44087BE910F83A479B1E35BC7C9528432B8** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RayU5BU5D_tC03BD44087BE910F83A479B1E35BC7C9528432B8* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t449AE37537E08A0DF5D1F9E009B5F76F3123EFF8, ___predicate_4)); }
inline Func_2_t5B1D2029A13E6CA909EEFC25E8A0F4529B313AFC * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t5B1D2029A13E6CA909EEFC25E8A0F4529B313AFC ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t5B1D2029A13E6CA909EEFC25E8A0F4529B313AFC * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_index_5() { return static_cast<int32_t>(offsetof(WhereArrayIterator_1_t449AE37537E08A0DF5D1F9E009B5F76F3123EFF8, ___index_5)); }
inline int32_t get_index_5() const { return ___index_5; }
inline int32_t* get_address_of_index_5() { return &___index_5; }
inline void set_index_5(int32_t value)
{
___index_5 = value;
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>>
struct WhereEnumerableIterator_1_tE292CC58F5B6CBC9EF0ACF9F557AF706979E7393 : public Iterator_1_tD1D62118E3932E621238F06CC7776173455D5AAC
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t5465DBA1549FD6575F5C50A8E3923F09B5AB69E8 * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tE292CC58F5B6CBC9EF0ACF9F557AF706979E7393, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tE292CC58F5B6CBC9EF0ACF9F557AF706979E7393, ___predicate_4)); }
inline Func_2_t5465DBA1549FD6575F5C50A8E3923F09B5AB69E8 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t5465DBA1549FD6575F5C50A8E3923F09B5AB69E8 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t5465DBA1549FD6575F5C50A8E3923F09B5AB69E8 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_tE292CC58F5B6CBC9EF0ACF9F557AF706979E7393, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereEnumerableIterator`1<UnityEngine.Ray>
struct WhereEnumerableIterator_1_t9DC872DA0E20FD9215938840EFD2F047C60C10A4 : public Iterator_1_t4749C64072721BCF3A2200DB52C4CD281CD62F2F
{
public:
// System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::source
RuntimeObject* ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereEnumerableIterator`1::predicate
Func_2_t5B1D2029A13E6CA909EEFC25E8A0F4529B313AFC * ___predicate_4;
// System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/WhereEnumerableIterator`1::enumerator
RuntimeObject* ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t9DC872DA0E20FD9215938840EFD2F047C60C10A4, ___source_3)); }
inline RuntimeObject* get_source_3() const { return ___source_3; }
inline RuntimeObject** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(RuntimeObject* value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t9DC872DA0E20FD9215938840EFD2F047C60C10A4, ___predicate_4)); }
inline Func_2_t5B1D2029A13E6CA909EEFC25E8A0F4529B313AFC * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t5B1D2029A13E6CA909EEFC25E8A0F4529B313AFC ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t5B1D2029A13E6CA909EEFC25E8A0F4529B313AFC * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereEnumerableIterator_1_t9DC872DA0E20FD9215938840EFD2F047C60C10A4, ___enumerator_5)); }
inline RuntimeObject* get_enumerator_5() const { return ___enumerator_5; }
inline RuntimeObject** get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(RuntimeObject* value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumerator_5), (void*)value);
}
};
// System.Linq.Enumerable/WhereListIterator`1<System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>>
struct WhereListIterator_1_tAC42A62B6C9CAA556A905F7DE22D2702774D8B14 : public Iterator_1_tD1D62118E3932E621238F06CC7776173455D5AAC
{
public:
// System.Collections.Generic.List`1<TSource> System.Linq.Enumerable/WhereListIterator`1::source
List_1_tA3DE714A1EA1E963BFCD876AAF2D98AB182B15E4 * ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereListIterator`1::predicate
Func_2_t5465DBA1549FD6575F5C50A8E3923F09B5AB69E8 * ___predicate_4;
// System.Collections.Generic.List`1/Enumerator<TSource> System.Linq.Enumerable/WhereListIterator`1::enumerator
Enumerator_t62ADD887A6A618F2D832EE66D6621DF4AA784C9F ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereListIterator_1_tAC42A62B6C9CAA556A905F7DE22D2702774D8B14, ___source_3)); }
inline List_1_tA3DE714A1EA1E963BFCD876AAF2D98AB182B15E4 * get_source_3() const { return ___source_3; }
inline List_1_tA3DE714A1EA1E963BFCD876AAF2D98AB182B15E4 ** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(List_1_tA3DE714A1EA1E963BFCD876AAF2D98AB182B15E4 * value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereListIterator_1_tAC42A62B6C9CAA556A905F7DE22D2702774D8B14, ___predicate_4)); }
inline Func_2_t5465DBA1549FD6575F5C50A8E3923F09B5AB69E8 * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t5465DBA1549FD6575F5C50A8E3923F09B5AB69E8 ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t5465DBA1549FD6575F5C50A8E3923F09B5AB69E8 * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereListIterator_1_tAC42A62B6C9CAA556A905F7DE22D2702774D8B14, ___enumerator_5)); }
inline Enumerator_t62ADD887A6A618F2D832EE66D6621DF4AA784C9F get_enumerator_5() const { return ___enumerator_5; }
inline Enumerator_t62ADD887A6A618F2D832EE66D6621DF4AA784C9F * get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(Enumerator_t62ADD887A6A618F2D832EE66D6621DF4AA784C9F value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___list_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___enumerator_5))->___current_3))->___value_1), (void*)NULL);
#endif
}
};
// System.Linq.Enumerable/WhereListIterator`1<UnityEngine.Ray>
struct WhereListIterator_1_t59BDE8EC71D10887E7CA957F025BBC225317DEF5 : public Iterator_1_t4749C64072721BCF3A2200DB52C4CD281CD62F2F
{
public:
// System.Collections.Generic.List`1<TSource> System.Linq.Enumerable/WhereListIterator`1::source
List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B * ___source_3;
// System.Func`2<TSource,System.Boolean> System.Linq.Enumerable/WhereListIterator`1::predicate
Func_2_t5B1D2029A13E6CA909EEFC25E8A0F4529B313AFC * ___predicate_4;
// System.Collections.Generic.List`1/Enumerator<TSource> System.Linq.Enumerable/WhereListIterator`1::enumerator
Enumerator_t559B6D6D3113FF8834FF99E540A765371AFFE657 ___enumerator_5;
public:
inline static int32_t get_offset_of_source_3() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t59BDE8EC71D10887E7CA957F025BBC225317DEF5, ___source_3)); }
inline List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B * get_source_3() const { return ___source_3; }
inline List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B ** get_address_of_source_3() { return &___source_3; }
inline void set_source_3(List_1_tDBBF8003D7BAC756EE5262C1DF03096EB730DF2B * value)
{
___source_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___source_3), (void*)value);
}
inline static int32_t get_offset_of_predicate_4() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t59BDE8EC71D10887E7CA957F025BBC225317DEF5, ___predicate_4)); }
inline Func_2_t5B1D2029A13E6CA909EEFC25E8A0F4529B313AFC * get_predicate_4() const { return ___predicate_4; }
inline Func_2_t5B1D2029A13E6CA909EEFC25E8A0F4529B313AFC ** get_address_of_predicate_4() { return &___predicate_4; }
inline void set_predicate_4(Func_2_t5B1D2029A13E6CA909EEFC25E8A0F4529B313AFC * value)
{
___predicate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___predicate_4), (void*)value);
}
inline static int32_t get_offset_of_enumerator_5() { return static_cast<int32_t>(offsetof(WhereListIterator_1_t59BDE8EC71D10887E7CA957F025BBC225317DEF5, ___enumerator_5)); }
inline Enumerator_t559B6D6D3113FF8834FF99E540A765371AFFE657 get_enumerator_5() const { return ___enumerator_5; }
inline Enumerator_t559B6D6D3113FF8834FF99E540A765371AFFE657 * get_address_of_enumerator_5() { return &___enumerator_5; }
inline void set_enumerator_5(Enumerator_t559B6D6D3113FF8834FF99E540A765371AFFE657 value)
{
___enumerator_5 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___enumerator_5))->___list_0), (void*)NULL);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
il2cpp_hresult_t IIterable_1_First_m54AC7E778E98ED35C6B7AD98C35C325B8A3DF619_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tB1AB5AB497E87D6A397AA084D3D3D6B8D211022C** comReturnValue);
il2cpp_hresult_t IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue);
il2cpp_hresult_t IIterable_1_First_mC1E90957AD904E68CE3F84D1EF22D5EFACE8C2D5_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tFF647CAD19D34FD0606CDD3425C431F82B94589C** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m03F765E1BD333E4E315525DE80BF54183A4D54D7_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t125F1266580B29D637CD7546CA3812EB7C0B0D9D** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m512126C71D7E9D1C31B56F64455F33E9FEEC89F8_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t6A46A7244E5AAD0AE4F2A07AF43DA5052D55F4A4** comReturnValue);
il2cpp_hresult_t IIterable_1_First_mD8D790F1EED3414261E3D73A15AA6B40BD8B4A87_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t966CEB5AF294B82E90C669B54974D432637938CF** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m5AA74545514CBE1B8F27A3AD8AB35879FA66F2BB_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t76B4F2A2B99659B935148C20E12CDDF5018A3267** comReturnValue);
il2cpp_hresult_t IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(RuntimeObject* __this);
il2cpp_hresult_t IIterable_1_First_mD436D926611E89172F9CCDB96214C201E7E6AE67_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t2CFACF402D9A2D616023D5DA34FDF5739B123E32** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m39CB76FBFCA2D147455FD84777B331E7A9E99E7C_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tF941128240BC6C3E896AB7E0412646421E13B289** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m9B11168E2CAB948C15960C1E3E93397CF555B879_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t02EF47EA9332525716D2B15E0CD8B7211669E493** comReturnValue);
il2cpp_hresult_t IIterable_1_First_mFB95F2845D73300049FCB9B21FE7ACC3473E5E66_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t6A965FDCA7EF0FD28DFA23C03C7491D6F48B19FC** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m3B459B11C7ABAED5258B394614E5D1C20BEE5F93_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t9B59C65AF91E97002623682A0C306DEBB34D8DE1** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m71D30C8522D86FA59BF041E5B3CE17F4CA7B5B92_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t77754FBD9492B03AC4E17184F2DAA6B37722F19D** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m4E590558B8FE1D4FA427F8F876803D1F68F7D100_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_tC66AB251038F529F8EA4926CBFFB3A97C323B58D** comReturnValue);
il2cpp_hresult_t IIterable_1_First_m49E620FFB18F057B9A92B006135C6AA317D3DAA9_ComCallableWrapperProjectedMethod(RuntimeObject* __this, IIterator_1_t96623136C825715A1CCA7A3B43E30C723BD302E8** comReturnValue);
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,UnityEngine.TextCore.Glyph>
struct ValueCollection_t64D007C459D9245CB1CE63DED03581998E0E003E_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t64D007C459D9245CB1CE63DED03581998E0E003E_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t64D007C459D9245CB1CE63DED03581998E0E003E_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t64D007C459D9245CB1CE63DED03581998E0E003E_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_t64D007C459D9245CB1CE63DED03581998E0E003E(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t64D007C459D9245CB1CE63DED03581998E0E003E_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t64D007C459D9245CB1CE63DED03581998E0E003E_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputSource>
struct ValueCollection_tD9694D60747FC3BB35B507B29C6DC514135267B5_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tD9694D60747FC3BB35B507B29C6DC514135267B5_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tD9694D60747FC3BB35B507B29C6DC514135267B5_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tD9694D60747FC3BB35B507B29C6DC514135267B5_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_tD9694D60747FC3BB35B507B29C6DC514135267B5(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tD9694D60747FC3BB35B507B29C6DC514135267B5_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tD9694D60747FC3BB35B507B29C6DC514135267B5_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputSource>
struct ValueCollection_tF9D7B75716BF1B349262E37AC74FD68B3704F815_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tF9D7B75716BF1B349262E37AC74FD68B3704F815_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tF9D7B75716BF1B349262E37AC74FD68B3704F815_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tF9D7B75716BF1B349262E37AC74FD68B3704F815_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_tF9D7B75716BF1B349262E37AC74FD68B3704F815(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tF9D7B75716BF1B349262E37AC74FD68B3704F815_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tF9D7B75716BF1B349262E37AC74FD68B3704F815_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerMediator>
struct ValueCollection_tF27A67C482F76CFE4C384A8CC362098AA87E8130_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tF27A67C482F76CFE4C384A8CC362098AA87E8130_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tF27A67C482F76CFE4C384A8CC362098AA87E8130_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tF27A67C482F76CFE4C384A8CC362098AA87E8130_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_tF27A67C482F76CFE4C384A8CC362098AA87E8130(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tF27A67C482F76CFE4C384A8CC362098AA87E8130_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tF27A67C482F76CFE4C384A8CC362098AA87E8130_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerMediator>
struct ValueCollection_tE49833E424DE8713456EA2611791C8FD0F88D7DF_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tE49833E424DE8713456EA2611791C8FD0F88D7DF_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tE49833E424DE8713456EA2611791C8FD0F88D7DF_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tE49833E424DE8713456EA2611791C8FD0F88D7DF_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_tE49833E424DE8713456EA2611791C8FD0F88D7DF(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tE49833E424DE8713456EA2611791C8FD0F88D7DF_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tE49833E424DE8713456EA2611791C8FD0F88D7DF_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,System.Int32>
struct ValueCollection_t5021005DA85ABB38062E53F64AC0587152FDBBDB_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t5021005DA85ABB38062E53F64AC0587152FDBBDB_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t5021005DA85ABB38062E53F64AC0587152FDBBDB_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t5021005DA85ABB38062E53F64AC0587152FDBBDB_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_t5021005DA85ABB38062E53F64AC0587152FDBBDB(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t5021005DA85ABB38062E53F64AC0587152FDBBDB_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t5021005DA85ABB38062E53F64AC0587152FDBBDB_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,System.Int32>
struct ValueCollection_t727B80D5ADB9A8F25F15F4B7B565145DBE52E5C8_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t727B80D5ADB9A8F25F15F4B7B565145DBE52E5C8_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t727B80D5ADB9A8F25F15F4B7B565145DBE52E5C8_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t727B80D5ADB9A8F25F15F4B7B565145DBE52E5C8_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_t727B80D5ADB9A8F25F15F4B7B565145DBE52E5C8(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t727B80D5ADB9A8F25F15F4B7B565145DBE52E5C8_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t727B80D5ADB9A8F25F15F4B7B565145DBE52E5C8_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,TMPro.TMP_Character>
struct ValueCollection_t26781662F3B517C49F6523DD6BE7954D4EDE8CC6_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t26781662F3B517C49F6523DD6BE7954D4EDE8CC6_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t26781662F3B517C49F6523DD6BE7954D4EDE8CC6_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t26781662F3B517C49F6523DD6BE7954D4EDE8CC6_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_t26781662F3B517C49F6523DD6BE7954D4EDE8CC6(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t26781662F3B517C49F6523DD6BE7954D4EDE8CC6_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t26781662F3B517C49F6523DD6BE7954D4EDE8CC6_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,TMPro.TMP_Character>
struct ValueCollection_t3656713F9AD0FD9A64850F17C02DCB652254BEBA_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t3656713F9AD0FD9A64850F17C02DCB652254BEBA_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t3656713F9AD0FD9A64850F17C02DCB652254BEBA_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t3656713F9AD0FD9A64850F17C02DCB652254BEBA_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_t3656713F9AD0FD9A64850F17C02DCB652254BEBA(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t3656713F9AD0FD9A64850F17C02DCB652254BEBA_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t3656713F9AD0FD9A64850F17C02DCB652254BEBA_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,TMPro.TMP_GlyphPairAdjustmentRecord>
struct ValueCollection_tA0BA28017BC956C749773968709DDA31226156B3_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tA0BA28017BC956C749773968709DDA31226156B3_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tA0BA28017BC956C749773968709DDA31226156B3_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tA0BA28017BC956C749773968709DDA31226156B3_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_tA0BA28017BC956C749773968709DDA31226156B3(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tA0BA28017BC956C749773968709DDA31226156B3_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tA0BA28017BC956C749773968709DDA31226156B3_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,TMPro.TMP_GlyphPairAdjustmentRecord>
struct ValueCollection_t48D21E190DB44DD2D33C642E565D43B1B40A7D31_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t48D21E190DB44DD2D33C642E565D43B1B40A7D31_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t48D21E190DB44DD2D33C642E565D43B1B40A7D31_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t48D21E190DB44DD2D33C642E565D43B1B40A7D31_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_t48D21E190DB44DD2D33C642E565D43B1B40A7D31(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t48D21E190DB44DD2D33C642E565D43B1B40A7D31_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t48D21E190DB44DD2D33C642E565D43B1B40A7D31_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,TMPro.TMP_SpriteCharacter>
struct ValueCollection_t87E40163F777395B84663882E0FD5DEB3C624C50_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t87E40163F777395B84663882E0FD5DEB3C624C50_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t87E40163F777395B84663882E0FD5DEB3C624C50_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t87E40163F777395B84663882E0FD5DEB3C624C50_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_t87E40163F777395B84663882E0FD5DEB3C624C50(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t87E40163F777395B84663882E0FD5DEB3C624C50_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t87E40163F777395B84663882E0FD5DEB3C624C50_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,TMPro.TMP_SpriteCharacter>
struct ValueCollection_tB4BBE80046443E5F9508F17B13DD273F5B3DB9F4_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tB4BBE80046443E5F9508F17B13DD273F5B3DB9F4_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tB4BBE80046443E5F9508F17B13DD273F5B3DB9F4_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tB4BBE80046443E5F9508F17B13DD273F5B3DB9F4_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_tB4BBE80046443E5F9508F17B13DD273F5B3DB9F4(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tB4BBE80046443E5F9508F17B13DD273F5B3DB9F4_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tB4BBE80046443E5F9508F17B13DD273F5B3DB9F4_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,TMPro.TMP_SpriteGlyph>
struct ValueCollection_t94BB350A9E80F0F92298B2AAA875C6CE7BE6BF3E_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t94BB350A9E80F0F92298B2AAA875C6CE7BE6BF3E_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t94BB350A9E80F0F92298B2AAA875C6CE7BE6BF3E_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t94BB350A9E80F0F92298B2AAA875C6CE7BE6BF3E_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_t94BB350A9E80F0F92298B2AAA875C6CE7BE6BF3E(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t94BB350A9E80F0F92298B2AAA875C6CE7BE6BF3E_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t94BB350A9E80F0F92298B2AAA875C6CE7BE6BF3E_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,TMPro.TMP_SpriteGlyph>
struct ValueCollection_t18EF4EB3EDDA186F53BDA5AEFCCA52DB03BA4038_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t18EF4EB3EDDA186F53BDA5AEFCCA52DB03BA4038_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t18EF4EB3EDDA186F53BDA5AEFCCA52DB03BA4038_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t18EF4EB3EDDA186F53BDA5AEFCCA52DB03BA4038_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_t18EF4EB3EDDA186F53BDA5AEFCCA52DB03BA4038(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t18EF4EB3EDDA186F53BDA5AEFCCA52DB03BA4038_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t18EF4EB3EDDA186F53BDA5AEFCCA52DB03BA4038_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,UnityEngine.Vector3>
struct ValueCollection_t5955D5A3C134093B1999460BDFCF24C96D5D2A07_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t5955D5A3C134093B1999460BDFCF24C96D5D2A07_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t5955D5A3C134093B1999460BDFCF24C96D5D2A07_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t5955D5A3C134093B1999460BDFCF24C96D5D2A07_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_t5955D5A3C134093B1999460BDFCF24C96D5D2A07(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t5955D5A3C134093B1999460BDFCF24C96D5D2A07_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t5955D5A3C134093B1999460BDFCF24C96D5D2A07_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,UnityEngine.Vector3>
struct ValueCollection_tA279FBE0E3F74DCEB493B9DC51D68A2AB8B5B806_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tA279FBE0E3F74DCEB493B9DC51D68A2AB8B5B806_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tA279FBE0E3F74DCEB493B9DC51D68A2AB8B5B806_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tA279FBE0E3F74DCEB493B9DC51D68A2AB8B5B806_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_tA279FBE0E3F74DCEB493B9DC51D68A2AB8B5B806(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tA279FBE0E3F74DCEB493B9DC51D68A2AB8B5B806_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tA279FBE0E3F74DCEB493B9DC51D68A2AB8B5B806_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.Input.FocusProvider/PointerData>
struct ValueCollection_t330B018AC6F61C92F6956FD20121640660C3DC94_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t330B018AC6F61C92F6956FD20121640660C3DC94_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t330B018AC6F61C92F6956FD20121640660C3DC94_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t330B018AC6F61C92F6956FD20121640660C3DC94_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_t330B018AC6F61C92F6956FD20121640660C3DC94(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t330B018AC6F61C92F6956FD20121640660C3DC94_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t330B018AC6F61C92F6956FD20121640660C3DC94_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.Input.FocusProvider/PointerData>
struct ValueCollection_t6B995C7C46C0C9A3D82511E53B62ED6F4B6D8CFF_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t6B995C7C46C0C9A3D82511E53B62ED6F4B6D8CFF_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t6B995C7C46C0C9A3D82511E53B62ED6F4B6D8CFF_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t6B995C7C46C0C9A3D82511E53B62ED6F4B6D8CFF_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_t6B995C7C46C0C9A3D82511E53B62ED6F4B6D8CFF(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t6B995C7C46C0C9A3D82511E53B62ED6F4B6D8CFF_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t6B995C7C46C0C9A3D82511E53B62ED6F4B6D8CFF_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.UI.HandInteractionPanZoom/HandPanData>
struct ValueCollection_t60FE881C39D0EE2148864C5F043C440BF0B9A3BD_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t60FE881C39D0EE2148864C5F043C440BF0B9A3BD_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t60FE881C39D0EE2148864C5F043C440BF0B9A3BD_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t60FE881C39D0EE2148864C5F043C440BF0B9A3BD_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_t60FE881C39D0EE2148864C5F043C440BF0B9A3BD(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t60FE881C39D0EE2148864C5F043C440BF0B9A3BD_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t60FE881C39D0EE2148864C5F043C440BF0B9A3BD_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.UI.HandInteractionPanZoom/HandPanData>
struct ValueCollection_t7CF0A6900A3970214CC62D487D4E21BABBEB6424_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t7CF0A6900A3970214CC62D487D4E21BABBEB6424_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t7CF0A6900A3970214CC62D487D4E21BABBEB6424_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t7CF0A6900A3970214CC62D487D4E21BABBEB6424_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_t7CF0A6900A3970214CC62D487D4E21BABBEB6424(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t7CF0A6900A3970214CC62D487D4E21BABBEB6424_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t7CF0A6900A3970214CC62D487D4E21BABBEB6424_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ManipulationHandler/PointerData>
struct ValueCollection_t91755740CE10F8285DF69267195F913EC19329D2_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t91755740CE10F8285DF69267195F913EC19329D2_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t91755740CE10F8285DF69267195F913EC19329D2_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t91755740CE10F8285DF69267195F913EC19329D2_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_t91755740CE10F8285DF69267195F913EC19329D2(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t91755740CE10F8285DF69267195F913EC19329D2_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t91755740CE10F8285DF69267195F913EC19329D2_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ManipulationHandler/PointerData>
struct ValueCollection_t5AED78ADF0D1B275856AF66AAAAEB6F023459CE1_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t5AED78ADF0D1B275856AF66AAAAEB6F023459CE1_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t5AED78ADF0D1B275856AF66AAAAEB6F023459CE1_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t5AED78ADF0D1B275856AF66AAAAEB6F023459CE1_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_t5AED78ADF0D1B275856AF66AAAAEB6F023459CE1(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t5AED78ADF0D1B275856AF66AAAAEB6F023459CE1_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t5AED78ADF0D1B275856AF66AAAAEB6F023459CE1_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>
struct ValueCollection_tE3BD5B483679001B8832AE08DAAF0BB342A4B61A_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tE3BD5B483679001B8832AE08DAAF0BB342A4B61A_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tE3BD5B483679001B8832AE08DAAF0BB342A4B61A_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tE3BD5B483679001B8832AE08DAAF0BB342A4B61A_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_tE3BD5B483679001B8832AE08DAAF0BB342A4B61A(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tE3BD5B483679001B8832AE08DAAF0BB342A4B61A_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tE3BD5B483679001B8832AE08DAAF0BB342A4B61A_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt32,Microsoft.MixedReality.Toolkit.UI.ObjectManipulator/PointerData>
struct ValueCollection_t3B0EAC9662E321339A90A1BB26F8D9A1B387264B_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t3B0EAC9662E321339A90A1BB26F8D9A1B387264B_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t3B0EAC9662E321339A90A1BB26F8D9A1B387264B_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t3B0EAC9662E321339A90A1BB26F8D9A1B387264B_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_t3B0EAC9662E321339A90A1BB26F8D9A1B387264B(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t3B0EAC9662E321339A90A1BB26F8D9A1B387264B_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t3B0EAC9662E321339A90A1BB26F8D9A1B387264B_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt64,System.String>
struct ValueCollection_t605DD6D0F69244327069841A80F7B478CA395611_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t605DD6D0F69244327069841A80F7B478CA395611_ComCallableWrapper>, IIterable_1_t94592E586C395F026290ACC676E74C560595CC26, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t605DD6D0F69244327069841A80F7B478CA395611_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t605DD6D0F69244327069841A80F7B478CA395611_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_t605DD6D0F69244327069841A80F7B478CA395611(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t605DD6D0F69244327069841A80F7B478CA395611_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t605DD6D0F69244327069841A80F7B478CA395611_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.UInt64,System.String>
struct ValueCollection_tEED3B6CEB0CBBA63976EFAF65A830DC4AFAE9044_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tEED3B6CEB0CBBA63976EFAF65A830DC4AFAE9044_ComCallableWrapper>, IIterable_1_t94592E586C395F026290ACC676E74C560595CC26, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tEED3B6CEB0CBBA63976EFAF65A830DC4AFAE9044_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tEED3B6CEB0CBBA63976EFAF65A830DC4AFAE9044_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_tEED3B6CEB0CBBA63976EFAF65A830DC4AFAE9044(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tEED3B6CEB0CBBA63976EFAF65A830DC4AFAE9044_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tEED3B6CEB0CBBA63976EFAF65A830DC4AFAE9044_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.Vector3,System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.Int32,UnityEngine.Vector3>>>
struct ValueCollection_t41590D8A9B3917F4E2FC8CE198763C676DD1E941_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t41590D8A9B3917F4E2FC8CE198763C676DD1E941_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t41590D8A9B3917F4E2FC8CE198763C676DD1E941_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t41590D8A9B3917F4E2FC8CE198763C676DD1E941_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, &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>(4);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[2] = IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::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_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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t41590D8A9B3917F4E2FC8CE198763C676DD1E941(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t41590D8A9B3917F4E2FC8CE198763C676DD1E941_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t41590D8A9B3917F4E2FC8CE198763C676DD1E941_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.Vector3,System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.Int32,UnityEngine.Vector3>>>
struct ValueCollection_t8EADE58A39AD7CAF64B686B4A89599C485F93334_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t8EADE58A39AD7CAF64B686B4A89599C485F93334_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t8EADE58A39AD7CAF64B686B4A89599C485F93334_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t8EADE58A39AD7CAF64B686B4A89599C485F93334_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, &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>(4);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824::IID;
interfaceIds[2] = IIterable_1_tDA0D1077EFCD7389A5AD5BF4D598F22A450175CD::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_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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_ValueCollection_t8EADE58A39AD7CAF64B686B4A89599C485F93334(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t8EADE58A39AD7CAF64B686B4A89599C485F93334_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t8EADE58A39AD7CAF64B686B4A89599C485F93334_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose/GestureId,Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose>
struct ValueCollection_t947EE00CEBC4E5E73D64863B6911ED19D30A35A2_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t947EE00CEBC4E5E73D64863B6911ED19D30A35A2_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t947EE00CEBC4E5E73D64863B6911ED19D30A35A2_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t947EE00CEBC4E5E73D64863B6911ED19D30A35A2_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_t947EE00CEBC4E5E73D64863B6911ED19D30A35A2(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t947EE00CEBC4E5E73D64863B6911ED19D30A35A2_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t947EE00CEBC4E5E73D64863B6911ED19D30A35A2_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose/GestureId,Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose>
struct ValueCollection_t732C51F4EA3D728D21B3F97669B2027CFBFC97B8_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t732C51F4EA3D728D21B3F97669B2027CFBFC97B8_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t732C51F4EA3D728D21B3F97669B2027CFBFC97B8_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t732C51F4EA3D728D21B3F97669B2027CFBFC97B8_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_t732C51F4EA3D728D21B3F97669B2027CFBFC97B8(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t732C51F4EA3D728D21B3F97669B2027CFBFC97B8_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t732C51F4EA3D728D21B3F97669B2027CFBFC97B8_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose/GestureId,System.String>
struct ValueCollection_t77FE8C81F7FA9D24528AA67AE0E9234454B4E277_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t77FE8C81F7FA9D24528AA67AE0E9234454B4E277_ComCallableWrapper>, IIterable_1_t94592E586C395F026290ACC676E74C560595CC26, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t77FE8C81F7FA9D24528AA67AE0E9234454B4E277_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t77FE8C81F7FA9D24528AA67AE0E9234454B4E277_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_t77FE8C81F7FA9D24528AA67AE0E9234454B4E277(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t77FE8C81F7FA9D24528AA67AE0E9234454B4E277_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t77FE8C81F7FA9D24528AA67AE0E9234454B4E277_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose/GestureId,System.String>
struct ValueCollection_t6EA461BA272F3A526B4E493B0DCD9A452D7D77BF_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t6EA461BA272F3A526B4E493B0DCD9A452D7D77BF_ComCallableWrapper>, IIterable_1_t94592E586C395F026290ACC676E74C560595CC26, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t6EA461BA272F3A526B4E493B0DCD9A452D7D77BF_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t6EA461BA272F3A526B4E493B0DCD9A452D7D77BF_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_t6EA461BA272F3A526B4E493B0DCD9A452D7D77BF(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t6EA461BA272F3A526B4E493B0DCD9A452D7D77BF_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t6EA461BA272F3A526B4E493B0DCD9A452D7D77BF_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,UnityEngine.Terrain>
struct ValueCollection_tA937879944B4CC06877A7FDB0FD1D2B941D9221B_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tA937879944B4CC06877A7FDB0FD1D2B941D9221B_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tA937879944B4CC06877A7FDB0FD1D2B941D9221B_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tA937879944B4CC06877A7FDB0FD1D2B941D9221B_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_tA937879944B4CC06877A7FDB0FD1D2B941D9221B(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tA937879944B4CC06877A7FDB0FD1D2B941D9221B_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tA937879944B4CC06877A7FDB0FD1D2B941D9221B_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<UnityEngine.Experimental.TerrainAPI.TerrainUtility/TerrainMap/TileCoord,UnityEngine.Terrain>
struct ValueCollection_t2AEB3A1C69112442A6D921E04C4D143DF405BEA8_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t2AEB3A1C69112442A6D921E04C4D143DF405BEA8_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t2AEB3A1C69112442A6D921E04C4D143DF405BEA8_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t2AEB3A1C69112442A6D921E04C4D143DF405BEA8_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_t2AEB3A1C69112442A6D921E04C4D143DF405BEA8(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t2AEB3A1C69112442A6D921E04C4D143DF405BEA8_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t2AEB3A1C69112442A6D921E04C4D143DF405BEA8_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.Generic.Dictionary`2/ValueCollection<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>
struct ValueCollection_tDA9C3CF0F1B2413AABEC563511728419196CDD32_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_tDA9C3CF0F1B2413AABEC563511728419196CDD32_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_tDA9C3CF0F1B2413AABEC563511728419196CDD32_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_tDA9C3CF0F1B2413AABEC563511728419196CDD32_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_tDA9C3CF0F1B2413AABEC563511728419196CDD32(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_tDA9C3CF0F1B2413AABEC563511728419196CDD32_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_tDA9C3CF0F1B2413AABEC563511728419196CDD32_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Collections.ObjectModel.ReadOnlyDictionary`2/ValueCollection<System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheKey,System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal/NativeOrStaticEventRegistrationImpl/EventCacheEntry>
struct ValueCollection_t7D92672F7282AD68A0C029BCDA6AF66001E9EB42_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<ValueCollection_t7D92672F7282AD68A0C029BCDA6AF66001E9EB42_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8
{
inline ValueCollection_t7D92672F7282AD68A0C029BCDA6AF66001E9EB42_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<ValueCollection_t7D92672F7282AD68A0C029BCDA6AF66001E9EB42_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_t7D92672F7282AD68A0C029BCDA6AF66001E9EB42(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(ValueCollection_t7D92672F7282AD68A0C029BCDA6AF66001E9EB42_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) ValueCollection_t7D92672F7282AD68A0C029BCDA6AF66001E9EB42_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereArrayIterator`1<System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>>
struct WhereArrayIterator_1_tF536C7B831D2FEAFEE4A013BE6F01D7E69DEDFE0_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_tF536C7B831D2FEAFEE4A013BE6F01D7E69DEDFE0_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereArrayIterator_1_tF536C7B831D2FEAFEE4A013BE6F01D7E69DEDFE0_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_tF536C7B831D2FEAFEE4A013BE6F01D7E69DEDFE0_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereArrayIterator_1_tF536C7B831D2FEAFEE4A013BE6F01D7E69DEDFE0(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereArrayIterator_1_tF536C7B831D2FEAFEE4A013BE6F01D7E69DEDFE0_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereArrayIterator_1_tF536C7B831D2FEAFEE4A013BE6F01D7E69DEDFE0_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereArrayIterator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>>
struct WhereArrayIterator_1_t02CF8CBADC6B437274837AAB2196EACAA6753397_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t02CF8CBADC6B437274837AAB2196EACAA6753397_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereArrayIterator_1_t02CF8CBADC6B437274837AAB2196EACAA6753397_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t02CF8CBADC6B437274837AAB2196EACAA6753397_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereArrayIterator_1_t02CF8CBADC6B437274837AAB2196EACAA6753397(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereArrayIterator_1_t02CF8CBADC6B437274837AAB2196EACAA6753397_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereArrayIterator_1_t02CF8CBADC6B437274837AAB2196EACAA6753397_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereArrayIterator`1<System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>>
struct WhereArrayIterator_1_t630987FEF0538E2DBD885A53C4E524BDD9CDD1CF_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t630987FEF0538E2DBD885A53C4E524BDD9CDD1CF_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereArrayIterator_1_t630987FEF0538E2DBD885A53C4E524BDD9CDD1CF_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t630987FEF0538E2DBD885A53C4E524BDD9CDD1CF_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereArrayIterator_1_t630987FEF0538E2DBD885A53C4E524BDD9CDD1CF(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereArrayIterator_1_t630987FEF0538E2DBD885A53C4E524BDD9CDD1CF_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereArrayIterator_1_t630987FEF0538E2DBD885A53C4E524BDD9CDD1CF_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereArrayIterator`1<=aaBE=>
struct WhereArrayIterator_1_t1F58A5ED0CB4FA7B01299202D5AA1666BD914A9B_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t1F58A5ED0CB4FA7B01299202D5AA1666BD914A9B_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereArrayIterator_1_t1F58A5ED0CB4FA7B01299202D5AA1666BD914A9B_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t1F58A5ED0CB4FA7B01299202D5AA1666BD914A9B_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereArrayIterator_1_t1F58A5ED0CB4FA7B01299202D5AA1666BD914A9B(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereArrayIterator_1_t1F58A5ED0CB4FA7B01299202D5AA1666BD914A9B_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereArrayIterator_1_t1F58A5ED0CB4FA7B01299202D5AA1666BD914A9B_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereArrayIterator`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer>
struct WhereArrayIterator_1_t67584466FB0FCE46D52989D118AEAEDE51BEDC08_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t67584466FB0FCE46D52989D118AEAEDE51BEDC08_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereArrayIterator_1_t67584466FB0FCE46D52989D118AEAEDE51BEDC08_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t67584466FB0FCE46D52989D118AEAEDE51BEDC08_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereArrayIterator_1_t67584466FB0FCE46D52989D118AEAEDE51BEDC08(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereArrayIterator_1_t67584466FB0FCE46D52989D118AEAEDE51BEDC08_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereArrayIterator_1_t67584466FB0FCE46D52989D118AEAEDE51BEDC08_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereArrayIterator`1<UnityEngine.Ray>
struct WhereArrayIterator_1_t449AE37537E08A0DF5D1F9E009B5F76F3123EFF8_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t449AE37537E08A0DF5D1F9E009B5F76F3123EFF8_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereArrayIterator_1_t449AE37537E08A0DF5D1F9E009B5F76F3123EFF8_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t449AE37537E08A0DF5D1F9E009B5F76F3123EFF8_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereArrayIterator_1_t449AE37537E08A0DF5D1F9E009B5F76F3123EFF8(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereArrayIterator_1_t449AE37537E08A0DF5D1F9E009B5F76F3123EFF8_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereArrayIterator_1_t449AE37537E08A0DF5D1F9E009B5F76F3123EFF8_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereArrayIterator`1<System.String>
struct WhereArrayIterator_1_t7081EE3EA18758FC43E21EC169898670BF18AF76_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t7081EE3EA18758FC43E21EC169898670BF18AF76_ComCallableWrapper>, IIterable_1_t94592E586C395F026290ACC676E74C560595CC26, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereArrayIterator_1_t7081EE3EA18758FC43E21EC169898670BF18AF76_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t7081EE3EA18758FC43E21EC169898670BF18AF76_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(6);
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;
interfaceIds[5] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_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);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereArrayIterator_1_t7081EE3EA18758FC43E21EC169898670BF18AF76(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereArrayIterator_1_t7081EE3EA18758FC43E21EC169898670BF18AF76_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereArrayIterator_1_t7081EE3EA18758FC43E21EC169898670BF18AF76_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereArrayIterator`1<UnityEngine.UI.Toggle>
struct WhereArrayIterator_1_tF2CB27C2D3A811BF0E4D3D3D0522EB4CC183A128_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_tF2CB27C2D3A811BF0E4D3D3D0522EB4CC183A128_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereArrayIterator_1_tF2CB27C2D3A811BF0E4D3D3D0522EB4CC183A128_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_tF2CB27C2D3A811BF0E4D3D3D0522EB4CC183A128_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereArrayIterator_1_tF2CB27C2D3A811BF0E4D3D3D0522EB4CC183A128(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereArrayIterator_1_tF2CB27C2D3A811BF0E4D3D3D0522EB4CC183A128_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereArrayIterator_1_tF2CB27C2D3A811BF0E4D3D3D0522EB4CC183A128_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereArrayIterator`1<System.Type>
struct WhereArrayIterator_1_t77274D35118AFC42D55438E024FEA17A4ABD2F6E_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t77274D35118AFC42D55438E024FEA17A4ABD2F6E_ComCallableWrapper>, IIterable_1_t4D7C58066842A44A0C48B4D670B58E08F5C98872, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereArrayIterator_1_t77274D35118AFC42D55438E024FEA17A4ABD2F6E_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t77274D35118AFC42D55438E024FEA17A4ABD2F6E_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_t4D7C58066842A44A0C48B4D670B58E08F5C98872::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t4D7C58066842A44A0C48B4D670B58E08F5C98872*>(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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4);
interfaceIds[0] = IIterable_1_t4D7C58066842A44A0C48B4D670B58E08F5C98872::IID;
interfaceIds[1] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[2] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[3] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_mD436D926611E89172F9CCDB96214C201E7E6AE67(IIterator_1_t2CFACF402D9A2D616023D5DA34FDF5739B123E32** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mD436D926611E89172F9CCDB96214C201E7E6AE67_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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereArrayIterator_1_t77274D35118AFC42D55438E024FEA17A4ABD2F6E(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereArrayIterator_1_t77274D35118AFC42D55438E024FEA17A4ABD2F6E_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereArrayIterator_1_t77274D35118AFC42D55438E024FEA17A4ABD2F6E_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereArrayIterator`1<Windows.Media.SpeechSynthesis.VoiceInformation>
struct WhereArrayIterator_1_t80B804D2A05A956E9DBEC18A9CC9BAE099693EAE_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t80B804D2A05A956E9DBEC18A9CC9BAE099693EAE_ComCallableWrapper>, IIterable_1_t79FED2A3133E3073B027845FF86E8DEED763AB0C, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tFE9B4AE0363012FD6084B7E123056D8A880615C5, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereArrayIterator_1_t80B804D2A05A956E9DBEC18A9CC9BAE099693EAE_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t80B804D2A05A956E9DBEC18A9CC9BAE099693EAE_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_t79FED2A3133E3073B027845FF86E8DEED763AB0C::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t79FED2A3133E3073B027845FF86E8DEED763AB0C*>(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_tFE9B4AE0363012FD6084B7E123056D8A880615C5::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tFE9B4AE0363012FD6084B7E123056D8A880615C5*>(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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(5);
interfaceIds[0] = IIterable_1_t79FED2A3133E3073B027845FF86E8DEED763AB0C::IID;
interfaceIds[1] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[2] = IIterable_1_tFE9B4AE0363012FD6084B7E123056D8A880615C5::IID;
interfaceIds[3] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[4] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_m39CB76FBFCA2D147455FD84777B331E7A9E99E7C(IIterator_1_tF941128240BC6C3E896AB7E0412646421E13B289** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m39CB76FBFCA2D147455FD84777B331E7A9E99E7C_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_m9B11168E2CAB948C15960C1E3E93397CF555B879(IIterator_1_t02EF47EA9332525716D2B15E0CD8B7211669E493** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m9B11168E2CAB948C15960C1E3E93397CF555B879_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereArrayIterator_1_t80B804D2A05A956E9DBEC18A9CC9BAE099693EAE(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereArrayIterator_1_t80B804D2A05A956E9DBEC18A9CC9BAE099693EAE_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereArrayIterator_1_t80B804D2A05A956E9DBEC18A9CC9BAE099693EAE_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereArrayIterator`1<UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers>
struct WhereArrayIterator_1_t7D221626D18117E1A32B14DD69D4F114FCFA1047_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t7D221626D18117E1A32B14DD69D4F114FCFA1047_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereArrayIterator_1_t7D221626D18117E1A32B14DD69D4F114FCFA1047_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereArrayIterator_1_t7D221626D18117E1A32B14DD69D4F114FCFA1047_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereArrayIterator_1_t7D221626D18117E1A32B14DD69D4F114FCFA1047(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereArrayIterator_1_t7D221626D18117E1A32B14DD69D4F114FCFA1047_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereArrayIterator_1_t7D221626D18117E1A32B14DD69D4F114FCFA1047_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>>
struct WhereEnumerableIterator_1_tE292CC58F5B6CBC9EF0ACF9F557AF706979E7393_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tE292CC58F5B6CBC9EF0ACF9F557AF706979E7393_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_tE292CC58F5B6CBC9EF0ACF9F557AF706979E7393_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tE292CC58F5B6CBC9EF0ACF9F557AF706979E7393_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_tE292CC58F5B6CBC9EF0ACF9F557AF706979E7393(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_tE292CC58F5B6CBC9EF0ACF9F557AF706979E7393_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_tE292CC58F5B6CBC9EF0ACF9F557AF706979E7393_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>>
struct WhereEnumerableIterator_1_t5B4AAC74DB9422489074A653BE9D1E00C6378758_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t5B4AAC74DB9422489074A653BE9D1E00C6378758_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t5B4AAC74DB9422489074A653BE9D1E00C6378758_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t5B4AAC74DB9422489074A653BE9D1E00C6378758_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t5B4AAC74DB9422489074A653BE9D1E00C6378758(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t5B4AAC74DB9422489074A653BE9D1E00C6378758_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t5B4AAC74DB9422489074A653BE9D1E00C6378758_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>>
struct WhereEnumerableIterator_1_t6812C7E842321161751049F692E4D2F9D1BDF8E6_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t6812C7E842321161751049F692E4D2F9D1BDF8E6_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t6812C7E842321161751049F692E4D2F9D1BDF8E6_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t6812C7E842321161751049F692E4D2F9D1BDF8E6_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t6812C7E842321161751049F692E4D2F9D1BDF8E6(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t6812C7E842321161751049F692E4D2F9D1BDF8E6_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t6812C7E842321161751049F692E4D2F9D1BDF8E6_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<System.Tuple`2<System.Int32,System.String>>
struct WhereEnumerableIterator_1_t87260942AD1233F234796DAC3C7D0031092F78B2_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t87260942AD1233F234796DAC3C7D0031092F78B2_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t87260942AD1233F234796DAC3C7D0031092F78B2_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t87260942AD1233F234796DAC3C7D0031092F78B2_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t87260942AD1233F234796DAC3C7D0031092F78B2(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t87260942AD1233F234796DAC3C7D0031092F78B2_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t87260942AD1233F234796DAC3C7D0031092F78B2_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<=a4d=>
struct WhereEnumerableIterator_1_t36702FBEF242C7E3175FC98E66A3DEB0C8347E6B_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t36702FBEF242C7E3175FC98E66A3DEB0C8347E6B_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t36702FBEF242C7E3175FC98E66A3DEB0C8347E6B_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t36702FBEF242C7E3175FC98E66A3DEB0C8347E6B_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t36702FBEF242C7E3175FC98E66A3DEB0C8347E6B(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t36702FBEF242C7E3175FC98E66A3DEB0C8347E6B_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t36702FBEF242C7E3175FC98E66A3DEB0C8347E6B_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<=aaBE=>
struct WhereEnumerableIterator_1_t3DAB0A5133E93DA464BADBC9C0B3604578E36D74_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t3DAB0A5133E93DA464BADBC9C0B3604578E36D74_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t3DAB0A5133E93DA464BADBC9C0B3604578E36D74_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t3DAB0A5133E93DA464BADBC9C0B3604578E36D74_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t3DAB0A5133E93DA464BADBC9C0B3604578E36D74(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t3DAB0A5133E93DA464BADBC9C0B3604578E36D74_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t3DAB0A5133E93DA464BADBC9C0B3604578E36D74_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<=aad0=>
struct WhereEnumerableIterator_1_tD79F3B6C8A052190A7C5338970E9962AECAD6ED6_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tD79F3B6C8A052190A7C5338970E9962AECAD6ED6_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_tD79F3B6C8A052190A7C5338970E9962AECAD6ED6_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tD79F3B6C8A052190A7C5338970E9962AECAD6ED6_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_tD79F3B6C8A052190A7C5338970E9962AECAD6ED6(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_tD79F3B6C8A052190A7C5338970E9962AECAD6ED6_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_tD79F3B6C8A052190A7C5338970E9962AECAD6ED6_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<=aadF=>
struct WhereEnumerableIterator_1_t89A34B42467C157805558838261A5079DBD8CE08_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t89A34B42467C157805558838261A5079DBD8CE08_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t89A34B42467C157805558838261A5079DBD8CE08_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t89A34B42467C157805558838261A5079DBD8CE08_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t89A34B42467C157805558838261A5079DBD8CE08(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t89A34B42467C157805558838261A5079DBD8CE08_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t89A34B42467C157805558838261A5079DBD8CE08_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<=aadf=>
struct WhereEnumerableIterator_1_tA9598E3EA5D3C7E56496A2DE6634AF1C9D45ECE3_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tA9598E3EA5D3C7E56496A2DE6634AF1C9D45ECE3_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_tA9598E3EA5D3C7E56496A2DE6634AF1C9D45ECE3_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tA9598E3EA5D3C7E56496A2DE6634AF1C9D45ECE3_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_tA9598E3EA5D3C7E56496A2DE6634AF1C9D45ECE3(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_tA9598E3EA5D3C7E56496A2DE6634AF1C9D45ECE3_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_tA9598E3EA5D3C7E56496A2DE6634AF1C9D45ECE3_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<System.Byte>
struct WhereEnumerableIterator_1_t25F9C751F771483441E0C0FCDD617316B17F4086_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t25F9C751F771483441E0C0FCDD617316B17F4086_ComCallableWrapper>, IIterable_1_tD0597EBCA288E19261E4CD889A045D4DED68F0D5, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t25F9C751F771483441E0C0FCDD617316B17F4086_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t25F9C751F771483441E0C0FCDD617316B17F4086_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_tD0597EBCA288E19261E4CD889A045D4DED68F0D5::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tD0597EBCA288E19261E4CD889A045D4DED68F0D5*>(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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_tD0597EBCA288E19261E4CD889A045D4DED68F0D5::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_mFB95F2845D73300049FCB9B21FE7ACC3473E5E66(IIterator_1_t6A965FDCA7EF0FD28DFA23C03C7491D6F48B19FC** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mFB95F2845D73300049FCB9B21FE7ACC3473E5E66_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t25F9C751F771483441E0C0FCDD617316B17F4086(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t25F9C751F771483441E0C0FCDD617316B17F4086_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t25F9C751F771483441E0C0FCDD617316B17F4086_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer>
struct WhereEnumerableIterator_1_t02C8A9FA6A0E67C5646E24C196F13B4DAA29A8B2_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t02C8A9FA6A0E67C5646E24C196F13B4DAA29A8B2_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t02C8A9FA6A0E67C5646E24C196F13B4DAA29A8B2_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t02C8A9FA6A0E67C5646E24C196F13B4DAA29A8B2_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t02C8A9FA6A0E67C5646E24C196F13B4DAA29A8B2(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t02C8A9FA6A0E67C5646E24C196F13B4DAA29A8B2_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t02C8A9FA6A0E67C5646E24C196F13B4DAA29A8B2_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<System.Int16>
struct WhereEnumerableIterator_1_tCA508E67A7F0F9D88916DAA9C6CDE55E4AA6F666_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tCA508E67A7F0F9D88916DAA9C6CDE55E4AA6F666_ComCallableWrapper>, IIterable_1_tFF30A9E323D222B8189CEBCAC40464562B38A0C8, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_tCA508E67A7F0F9D88916DAA9C6CDE55E4AA6F666_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tCA508E67A7F0F9D88916DAA9C6CDE55E4AA6F666_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_tFF30A9E323D222B8189CEBCAC40464562B38A0C8::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tFF30A9E323D222B8189CEBCAC40464562B38A0C8*>(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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_tFF30A9E323D222B8189CEBCAC40464562B38A0C8::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_m3B459B11C7ABAED5258B394614E5D1C20BEE5F93(IIterator_1_t9B59C65AF91E97002623682A0C306DEBB34D8DE1** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m3B459B11C7ABAED5258B394614E5D1C20BEE5F93_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_tCA508E67A7F0F9D88916DAA9C6CDE55E4AA6F666(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_tCA508E67A7F0F9D88916DAA9C6CDE55E4AA6F666_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_tCA508E67A7F0F9D88916DAA9C6CDE55E4AA6F666_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<System.Int32>
struct WhereEnumerableIterator_1_t9F4DDC70173BABD72AEC7AA00D62F4FAE2613CEA_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t9F4DDC70173BABD72AEC7AA00D62F4FAE2613CEA_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t9F4DDC70173BABD72AEC7AA00D62F4FAE2613CEA_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t9F4DDC70173BABD72AEC7AA00D62F4FAE2613CEA_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_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);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t9F4DDC70173BABD72AEC7AA00D62F4FAE2613CEA(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t9F4DDC70173BABD72AEC7AA00D62F4FAE2613CEA_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t9F4DDC70173BABD72AEC7AA00D62F4FAE2613CEA_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<Microsoft.Geospatial.LatLon>
struct WhereEnumerableIterator_1_t0EE8AAC7A26B8AAA749A70D93F1144655C028E4D_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t0EE8AAC7A26B8AAA749A70D93F1144655C028E4D_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t0EE8AAC7A26B8AAA749A70D93F1144655C028E4D_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t0EE8AAC7A26B8AAA749A70D93F1144655C028E4D_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t0EE8AAC7A26B8AAA749A70D93F1144655C028E4D(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t0EE8AAC7A26B8AAA749A70D93F1144655C028E4D_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t0EE8AAC7A26B8AAA749A70D93F1144655C028E4D_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<UnityEngine.Ray>
struct WhereEnumerableIterator_1_t9DC872DA0E20FD9215938840EFD2F047C60C10A4_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t9DC872DA0E20FD9215938840EFD2F047C60C10A4_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t9DC872DA0E20FD9215938840EFD2F047C60C10A4_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t9DC872DA0E20FD9215938840EFD2F047C60C10A4_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t9DC872DA0E20FD9215938840EFD2F047C60C10A4(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t9DC872DA0E20FD9215938840EFD2F047C60C10A4_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t9DC872DA0E20FD9215938840EFD2F047C60C10A4_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<System.String>
struct WhereEnumerableIterator_1_tC960A1A6C9E651CE6EACEBF304D90B748ED7607F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tC960A1A6C9E651CE6EACEBF304D90B748ED7607F_ComCallableWrapper>, IIterable_1_t94592E586C395F026290ACC676E74C560595CC26, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_tC960A1A6C9E651CE6EACEBF304D90B748ED7607F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tC960A1A6C9E651CE6EACEBF304D90B748ED7607F_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(6);
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;
interfaceIds[5] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_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);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_tC960A1A6C9E651CE6EACEBF304D90B748ED7607F(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_tC960A1A6C9E651CE6EACEBF304D90B748ED7607F_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_tC960A1A6C9E651CE6EACEBF304D90B748ED7607F_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<Microsoft.Geospatial.TileId>
struct WhereEnumerableIterator_1_tD142716C3DFEDB9E61444FC44DD519E488CE4ABE_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tD142716C3DFEDB9E61444FC44DD519E488CE4ABE_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_tD142716C3DFEDB9E61444FC44DD519E488CE4ABE_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tD142716C3DFEDB9E61444FC44DD519E488CE4ABE_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_tD142716C3DFEDB9E61444FC44DD519E488CE4ABE(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_tD142716C3DFEDB9E61444FC44DD519E488CE4ABE_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_tD142716C3DFEDB9E61444FC44DD519E488CE4ABE_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<UnityEngine.UI.Toggle>
struct WhereEnumerableIterator_1_t1EC9BAD19AA0A6B596B7C8D9B82EC0EC8B47A1F8_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t1EC9BAD19AA0A6B596B7C8D9B82EC0EC8B47A1F8_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t1EC9BAD19AA0A6B596B7C8D9B82EC0EC8B47A1F8_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t1EC9BAD19AA0A6B596B7C8D9B82EC0EC8B47A1F8_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t1EC9BAD19AA0A6B596B7C8D9B82EC0EC8B47A1F8(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t1EC9BAD19AA0A6B596B7C8D9B82EC0EC8B47A1F8_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t1EC9BAD19AA0A6B596B7C8D9B82EC0EC8B47A1F8_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<System.Type>
struct WhereEnumerableIterator_1_t04988C329C850409506F441B813DD7A4A98BC3C2_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t04988C329C850409506F441B813DD7A4A98BC3C2_ComCallableWrapper>, IIterable_1_t4D7C58066842A44A0C48B4D670B58E08F5C98872, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t04988C329C850409506F441B813DD7A4A98BC3C2_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t04988C329C850409506F441B813DD7A4A98BC3C2_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_t4D7C58066842A44A0C48B4D670B58E08F5C98872::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t4D7C58066842A44A0C48B4D670B58E08F5C98872*>(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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4);
interfaceIds[0] = IIterable_1_t4D7C58066842A44A0C48B4D670B58E08F5C98872::IID;
interfaceIds[1] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[2] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[3] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_mD436D926611E89172F9CCDB96214C201E7E6AE67(IIterator_1_t2CFACF402D9A2D616023D5DA34FDF5739B123E32** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mD436D926611E89172F9CCDB96214C201E7E6AE67_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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t04988C329C850409506F441B813DD7A4A98BC3C2(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t04988C329C850409506F441B813DD7A4A98BC3C2_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t04988C329C850409506F441B813DD7A4A98BC3C2_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<System.UInt16>
struct WhereEnumerableIterator_1_tA923EA87192C35B8D253A6F73C314A05328B481C_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tA923EA87192C35B8D253A6F73C314A05328B481C_ComCallableWrapper>, IIterable_1_t0FFEA449A5FB48BF7695F277FD277D7159E9F452, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_tA923EA87192C35B8D253A6F73C314A05328B481C_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tA923EA87192C35B8D253A6F73C314A05328B481C_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_t0FFEA449A5FB48BF7695F277FD277D7159E9F452::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t0FFEA449A5FB48BF7695F277FD277D7159E9F452*>(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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t0FFEA449A5FB48BF7695F277FD277D7159E9F452::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_m71D30C8522D86FA59BF041E5B3CE17F4CA7B5B92(IIterator_1_t77754FBD9492B03AC4E17184F2DAA6B37722F19D** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m71D30C8522D86FA59BF041E5B3CE17F4CA7B5B92_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_tA923EA87192C35B8D253A6F73C314A05328B481C(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_tA923EA87192C35B8D253A6F73C314A05328B481C_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_tA923EA87192C35B8D253A6F73C314A05328B481C_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<System.UInt32>
struct WhereEnumerableIterator_1_tB4E91E741D67261CA75C85CC5BBDA67D2BCA1146_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tB4E91E741D67261CA75C85CC5BBDA67D2BCA1146_ComCallableWrapper>, IIterable_1_t2765EC2E965992FAB9B7FDB2DB5E7FFA10D61BAB, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_tB4E91E741D67261CA75C85CC5BBDA67D2BCA1146_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tB4E91E741D67261CA75C85CC5BBDA67D2BCA1146_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t2765EC2E965992FAB9B7FDB2DB5E7FFA10D61BAB::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_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);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_tB4E91E741D67261CA75C85CC5BBDA67D2BCA1146(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_tB4E91E741D67261CA75C85CC5BBDA67D2BCA1146_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_tB4E91E741D67261CA75C85CC5BBDA67D2BCA1146_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<System.UInt64>
struct WhereEnumerableIterator_1_tB18663A27442D63867CE940C6A5E142811DF0317_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tB18663A27442D63867CE940C6A5E142811DF0317_ComCallableWrapper>, IIterable_1_t6CF1C488C9FB0FC49AC91A3B9DBDAC6AF0CB03A9, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_tB18663A27442D63867CE940C6A5E142811DF0317_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tB18663A27442D63867CE940C6A5E142811DF0317_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_t6CF1C488C9FB0FC49AC91A3B9DBDAC6AF0CB03A9::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t6CF1C488C9FB0FC49AC91A3B9DBDAC6AF0CB03A9*>(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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t6CF1C488C9FB0FC49AC91A3B9DBDAC6AF0CB03A9::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_m49E620FFB18F057B9A92B006135C6AA317D3DAA9(IIterator_1_t96623136C825715A1CCA7A3B43E30C723BD302E8** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m49E620FFB18F057B9A92B006135C6AA317D3DAA9_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_tB18663A27442D63867CE940C6A5E142811DF0317(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_tB18663A27442D63867CE940C6A5E142811DF0317_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_tB18663A27442D63867CE940C6A5E142811DF0317_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<Microsoft.Geospatial.VectorMath.Vector3D>
struct WhereEnumerableIterator_1_tC55DF6A399A4D5A56953F8D0377B7A2B59A710B2_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tC55DF6A399A4D5A56953F8D0377B7A2B59A710B2_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_tC55DF6A399A4D5A56953F8D0377B7A2B59A710B2_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tC55DF6A399A4D5A56953F8D0377B7A2B59A710B2_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_tC55DF6A399A4D5A56953F8D0377B7A2B59A710B2(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_tC55DF6A399A4D5A56953F8D0377B7A2B59A710B2_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_tC55DF6A399A4D5A56953F8D0377B7A2B59A710B2_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<Windows.Media.SpeechSynthesis.VoiceInformation>
struct WhereEnumerableIterator_1_tB722EB961FDA2C5AAE712FB5E8BA5C3B133FCB04_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tB722EB961FDA2C5AAE712FB5E8BA5C3B133FCB04_ComCallableWrapper>, IIterable_1_t79FED2A3133E3073B027845FF86E8DEED763AB0C, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tFE9B4AE0363012FD6084B7E123056D8A880615C5, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_tB722EB961FDA2C5AAE712FB5E8BA5C3B133FCB04_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_tB722EB961FDA2C5AAE712FB5E8BA5C3B133FCB04_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_t79FED2A3133E3073B027845FF86E8DEED763AB0C::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t79FED2A3133E3073B027845FF86E8DEED763AB0C*>(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_tFE9B4AE0363012FD6084B7E123056D8A880615C5::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tFE9B4AE0363012FD6084B7E123056D8A880615C5*>(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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(5);
interfaceIds[0] = IIterable_1_t79FED2A3133E3073B027845FF86E8DEED763AB0C::IID;
interfaceIds[1] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[2] = IIterable_1_tFE9B4AE0363012FD6084B7E123056D8A880615C5::IID;
interfaceIds[3] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[4] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_m39CB76FBFCA2D147455FD84777B331E7A9E99E7C(IIterator_1_tF941128240BC6C3E896AB7E0412646421E13B289** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m39CB76FBFCA2D147455FD84777B331E7A9E99E7C_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_m9B11168E2CAB948C15960C1E3E93397CF555B879(IIterator_1_t02EF47EA9332525716D2B15E0CD8B7211669E493** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m9B11168E2CAB948C15960C1E3E93397CF555B879_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_tB722EB961FDA2C5AAE712FB5E8BA5C3B133FCB04(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_tB722EB961FDA2C5AAE712FB5E8BA5C3B133FCB04_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_tB722EB961FDA2C5AAE712FB5E8BA5C3B133FCB04_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereEnumerableIterator`1<UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers>
struct WhereEnumerableIterator_1_t2913CABE6BA526443A5B0DAE51ECF4105F2D8E6E_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t2913CABE6BA526443A5B0DAE51ECF4105F2D8E6E_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereEnumerableIterator_1_t2913CABE6BA526443A5B0DAE51ECF4105F2D8E6E_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereEnumerableIterator_1_t2913CABE6BA526443A5B0DAE51ECF4105F2D8E6E_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereEnumerableIterator_1_t2913CABE6BA526443A5B0DAE51ECF4105F2D8E6E(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereEnumerableIterator_1_t2913CABE6BA526443A5B0DAE51ECF4105F2D8E6E_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereEnumerableIterator_1_t2913CABE6BA526443A5B0DAE51ECF4105F2D8E6E_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereListIterator`1<System.Collections.Generic.KeyValuePair`2<=aba=,Microsoft.Maps.Unity.MapLabel>>
struct WhereListIterator_1_tAC42A62B6C9CAA556A905F7DE22D2702774D8B14_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereListIterator_1_tAC42A62B6C9CAA556A905F7DE22D2702774D8B14_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereListIterator_1_tAC42A62B6C9CAA556A905F7DE22D2702774D8B14_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereListIterator_1_tAC42A62B6C9CAA556A905F7DE22D2702774D8B14_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereListIterator_1_tAC42A62B6C9CAA556A905F7DE22D2702774D8B14(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereListIterator_1_tAC42A62B6C9CAA556A905F7DE22D2702774D8B14_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereListIterator_1_tAC42A62B6C9CAA556A905F7DE22D2702774D8B14_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereListIterator`1<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>>
struct WhereListIterator_1_t0960A4EDA2BAA3FB84F51FD844E6C68A2436E8E7_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t0960A4EDA2BAA3FB84F51FD844E6C68A2436E8E7_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereListIterator_1_t0960A4EDA2BAA3FB84F51FD844E6C68A2436E8E7_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t0960A4EDA2BAA3FB84F51FD844E6C68A2436E8E7_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereListIterator_1_t0960A4EDA2BAA3FB84F51FD844E6C68A2436E8E7(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereListIterator_1_t0960A4EDA2BAA3FB84F51FD844E6C68A2436E8E7_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereListIterator_1_t0960A4EDA2BAA3FB84F51FD844E6C68A2436E8E7_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereListIterator`1<System.Collections.Generic.KeyValuePair`2<System.String,=a8B=>>
struct WhereListIterator_1_t8658D16BEC3E20EC35413D6D8D373C6DFD225D59_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t8658D16BEC3E20EC35413D6D8D373C6DFD225D59_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereListIterator_1_t8658D16BEC3E20EC35413D6D8D373C6DFD225D59_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t8658D16BEC3E20EC35413D6D8D373C6DFD225D59_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereListIterator_1_t8658D16BEC3E20EC35413D6D8D373C6DFD225D59(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereListIterator_1_t8658D16BEC3E20EC35413D6D8D373C6DFD225D59_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereListIterator_1_t8658D16BEC3E20EC35413D6D8D373C6DFD225D59_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereListIterator`1<=aaBE=>
struct WhereListIterator_1_tD1704F71CA37F2A0453CB51CAA74022B88FB5101_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereListIterator_1_tD1704F71CA37F2A0453CB51CAA74022B88FB5101_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereListIterator_1_tD1704F71CA37F2A0453CB51CAA74022B88FB5101_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereListIterator_1_tD1704F71CA37F2A0453CB51CAA74022B88FB5101_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereListIterator_1_tD1704F71CA37F2A0453CB51CAA74022B88FB5101(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereListIterator_1_tD1704F71CA37F2A0453CB51CAA74022B88FB5101_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereListIterator_1_tD1704F71CA37F2A0453CB51CAA74022B88FB5101_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereListIterator`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer>
struct WhereListIterator_1_tD7A84BF7F095C3136DB221A158B6642FDFA8E348_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereListIterator_1_tD7A84BF7F095C3136DB221A158B6642FDFA8E348_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereListIterator_1_tD7A84BF7F095C3136DB221A158B6642FDFA8E348_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereListIterator_1_tD7A84BF7F095C3136DB221A158B6642FDFA8E348_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereListIterator_1_tD7A84BF7F095C3136DB221A158B6642FDFA8E348(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereListIterator_1_tD7A84BF7F095C3136DB221A158B6642FDFA8E348_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereListIterator_1_tD7A84BF7F095C3136DB221A158B6642FDFA8E348_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereListIterator`1<UnityEngine.Ray>
struct WhereListIterator_1_t59BDE8EC71D10887E7CA957F025BBC225317DEF5_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t59BDE8EC71D10887E7CA957F025BBC225317DEF5_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereListIterator_1_t59BDE8EC71D10887E7CA957F025BBC225317DEF5_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t59BDE8EC71D10887E7CA957F025BBC225317DEF5_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereListIterator_1_t59BDE8EC71D10887E7CA957F025BBC225317DEF5(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereListIterator_1_t59BDE8EC71D10887E7CA957F025BBC225317DEF5_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereListIterator_1_t59BDE8EC71D10887E7CA957F025BBC225317DEF5_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereListIterator`1<System.String>
struct WhereListIterator_1_tBFBBF71A53E829A85EDABB4C39256E45C8D693F6_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereListIterator_1_tBFBBF71A53E829A85EDABB4C39256E45C8D693F6_ComCallableWrapper>, IIterable_1_t94592E586C395F026290ACC676E74C560595CC26, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereListIterator_1_tBFBBF71A53E829A85EDABB4C39256E45C8D693F6_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereListIterator_1_tBFBBF71A53E829A85EDABB4C39256E45C8D693F6_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(6);
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;
interfaceIds[5] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_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);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereListIterator_1_tBFBBF71A53E829A85EDABB4C39256E45C8D693F6(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereListIterator_1_tBFBBF71A53E829A85EDABB4C39256E45C8D693F6_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereListIterator_1_tBFBBF71A53E829A85EDABB4C39256E45C8D693F6_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereListIterator`1<UnityEngine.UI.Toggle>
struct WhereListIterator_1_t915FEE5B8BE28810D5403174865EF534B08C922C_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t915FEE5B8BE28810D5403174865EF534B08C922C_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereListIterator_1_t915FEE5B8BE28810D5403174865EF534B08C922C_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t915FEE5B8BE28810D5403174865EF534B08C922C_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereListIterator_1_t915FEE5B8BE28810D5403174865EF534B08C922C(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereListIterator_1_t915FEE5B8BE28810D5403174865EF534B08C922C_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereListIterator_1_t915FEE5B8BE28810D5403174865EF534B08C922C_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereListIterator`1<System.Type>
struct WhereListIterator_1_t95AF2B81888956C8B661983FE99AEF1080D07FA1_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t95AF2B81888956C8B661983FE99AEF1080D07FA1_ComCallableWrapper>, IIterable_1_t4D7C58066842A44A0C48B4D670B58E08F5C98872, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereListIterator_1_t95AF2B81888956C8B661983FE99AEF1080D07FA1_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t95AF2B81888956C8B661983FE99AEF1080D07FA1_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_t4D7C58066842A44A0C48B4D670B58E08F5C98872::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t4D7C58066842A44A0C48B4D670B58E08F5C98872*>(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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(4);
interfaceIds[0] = IIterable_1_t4D7C58066842A44A0C48B4D670B58E08F5C98872::IID;
interfaceIds[1] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[2] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[3] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_mD436D926611E89172F9CCDB96214C201E7E6AE67(IIterator_1_t2CFACF402D9A2D616023D5DA34FDF5739B123E32** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_mD436D926611E89172F9CCDB96214C201E7E6AE67_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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereListIterator_1_t95AF2B81888956C8B661983FE99AEF1080D07FA1(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereListIterator_1_t95AF2B81888956C8B661983FE99AEF1080D07FA1_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereListIterator_1_t95AF2B81888956C8B661983FE99AEF1080D07FA1_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereListIterator`1<Windows.Media.SpeechSynthesis.VoiceInformation>
struct WhereListIterator_1_t69104B9964E27FF32829C7F5CFDDDE66F8A4AF6B_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t69104B9964E27FF32829C7F5CFDDDE66F8A4AF6B_ComCallableWrapper>, IIterable_1_t79FED2A3133E3073B027845FF86E8DEED763AB0C, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_tFE9B4AE0363012FD6084B7E123056D8A880615C5, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereListIterator_1_t69104B9964E27FF32829C7F5CFDDDE66F8A4AF6B_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t69104B9964E27FF32829C7F5CFDDDE66F8A4AF6B_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_t79FED2A3133E3073B027845FF86E8DEED763AB0C::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_t79FED2A3133E3073B027845FF86E8DEED763AB0C*>(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_tFE9B4AE0363012FD6084B7E123056D8A880615C5::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IIterable_1_tFE9B4AE0363012FD6084B7E123056D8A880615C5*>(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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(5);
interfaceIds[0] = IIterable_1_t79FED2A3133E3073B027845FF86E8DEED763AB0C::IID;
interfaceIds[1] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[2] = IIterable_1_tFE9B4AE0363012FD6084B7E123056D8A880615C5::IID;
interfaceIds[3] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[4] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_m39CB76FBFCA2D147455FD84777B331E7A9E99E7C(IIterator_1_tF941128240BC6C3E896AB7E0412646421E13B289** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m39CB76FBFCA2D147455FD84777B331E7A9E99E7C_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_m9B11168E2CAB948C15960C1E3E93397CF555B879(IIterator_1_t02EF47EA9332525716D2B15E0CD8B7211669E493** comReturnValue) IL2CPP_OVERRIDE
{
return IIterable_1_First_m9B11168E2CAB948C15960C1E3E93397CF555B879_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereListIterator_1_t69104B9964E27FF32829C7F5CFDDDE66F8A4AF6B(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereListIterator_1_t69104B9964E27FF32829C7F5CFDDDE66F8A4AF6B_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereListIterator_1_t69104B9964E27FF32829C7F5CFDDDE66F8A4AF6B_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereListIterator`1<UnityEngine.Networking.PlayerConnection.PlayerEditorConnectionEvents/MessageTypeSubscribers>
struct WhereListIterator_1_t8B25767640ADA9A198B4A89B0513668FCC9D201F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t8B25767640ADA9A198B4A89B0513668FCC9D201F_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereListIterator_1_t8B25767640ADA9A198B4A89B0513668FCC9D201F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereListIterator_1_t8B25767640ADA9A198B4A89B0513668FCC9D201F_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereListIterator_1_t8B25767640ADA9A198B4A89B0513668FCC9D201F(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereListIterator_1_t8B25767640ADA9A198B4A89B0513668FCC9D201F_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereListIterator_1_t8B25767640ADA9A198B4A89B0513668FCC9D201F_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<System.Collections.Generic.KeyValuePair`2<System.Int32,System.Collections.Generic.HashSet`1<System.Int32>>,System.String>
struct WhereSelectArrayIterator_2_t06AF255DC075C94F47A4EB82FE997D1866BAA7D9_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t06AF255DC075C94F47A4EB82FE997D1866BAA7D9_ComCallableWrapper>, IIterable_1_t94592E586C395F026290ACC676E74C560595CC26, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IIterable_1_t6359E278A71A51A15FA83695BA7C54F9B3E04824, IIterable_1_t05BE14C1DEA010486117E0E313F29EF024BDB2BF, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_t06AF255DC075C94F47A4EB82FE997D1866BAA7D9_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t06AF255DC075C94F47A4EB82FE997D1866BAA7D9_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(6);
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;
interfaceIds[5] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_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);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_t06AF255DC075C94F47A4EB82FE997D1866BAA7D9(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_t06AF255DC075C94F47A4EB82FE997D1866BAA7D9_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_t06AF255DC075C94F47A4EB82FE997D1866BAA7D9_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<System.Collections.Generic.KeyValuePair`2<Microsoft.Geospatial.TileId,=a4d=>,=a4d=>
struct WhereSelectArrayIterator_2_t29E3D429E8438FC276399E2CB40BCD526C6E9927_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t29E3D429E8438FC276399E2CB40BCD526C6E9927_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_t29E3D429E8438FC276399E2CB40BCD526C6E9927_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t29E3D429E8438FC276399E2CB40BCD526C6E9927_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_t29E3D429E8438FC276399E2CB40BCD526C6E9927(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_t29E3D429E8438FC276399E2CB40BCD526C6E9927_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_t29E3D429E8438FC276399E2CB40BCD526C6E9927_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<System.Collections.Generic.KeyValuePair`2<Microsoft.Geospatial.TileId,=a4d=>,Microsoft.Geospatial.TileId>
struct WhereSelectArrayIterator_2_t72076DE6998E0009517C16688724B90DBE17E776_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t72076DE6998E0009517C16688724B90DBE17E776_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_t72076DE6998E0009517C16688724B90DBE17E776_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t72076DE6998E0009517C16688724B90DBE17E776_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_t72076DE6998E0009517C16688724B90DBE17E776(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_t72076DE6998E0009517C16688724B90DBE17E776_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_t72076DE6998E0009517C16688724B90DBE17E776_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<=a0B=,System.Tuple`2<System.Int32,System.String>>
struct WhereSelectArrayIterator_2_tAFF441D8F3DD3F2324A7493E86E689F5E49D8AAC_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tAFF441D8F3DD3F2324A7493E86E689F5E49D8AAC_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_tAFF441D8F3DD3F2324A7493E86E689F5E49D8AAC_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tAFF441D8F3DD3F2324A7493E86E689F5E49D8AAC_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_tAFF441D8F3DD3F2324A7493E86E689F5E49D8AAC(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_tAFF441D8F3DD3F2324A7493E86E689F5E49D8AAC_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_tAFF441D8F3DD3F2324A7493E86E689F5E49D8AAC_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<=a0a=,System.Tuple`2<System.Int32,System.String>>
struct WhereSelectArrayIterator_2_t0F919E71CEA79932350F25C8226FBAE0A6CE8E10_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t0F919E71CEA79932350F25C8226FBAE0A6CE8E10_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_t0F919E71CEA79932350F25C8226FBAE0A6CE8E10_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t0F919E71CEA79932350F25C8226FBAE0A6CE8E10_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_t0F919E71CEA79932350F25C8226FBAE0A6CE8E10(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_t0F919E71CEA79932350F25C8226FBAE0A6CE8E10_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_t0F919E71CEA79932350F25C8226FBAE0A6CE8E10_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<=a2E=,=aad0=>
struct WhereSelectArrayIterator_2_tC37AA277CFB0601168E4F65B256779FF476B9128_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tC37AA277CFB0601168E4F65B256779FF476B9128_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_tC37AA277CFB0601168E4F65B256779FF476B9128_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tC37AA277CFB0601168E4F65B256779FF476B9128_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_tC37AA277CFB0601168E4F65B256779FF476B9128(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_tC37AA277CFB0601168E4F65B256779FF476B9128_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_tC37AA277CFB0601168E4F65B256779FF476B9128_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<=a2F=,=aadF=>
struct WhereSelectArrayIterator_2_t4F97311B39AF60FAC01BAAFC1F4F1BEDDD9F72BC_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t4F97311B39AF60FAC01BAAFC1F4F1BEDDD9F72BC_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_t4F97311B39AF60FAC01BAAFC1F4F1BEDDD9F72BC_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t4F97311B39AF60FAC01BAAFC1F4F1BEDDD9F72BC_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_t4F97311B39AF60FAC01BAAFC1F4F1BEDDD9F72BC(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_t4F97311B39AF60FAC01BAAFC1F4F1BEDDD9F72BC_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_t4F97311B39AF60FAC01BAAFC1F4F1BEDDD9F72BC_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<=a2e=,=aadf=>
struct WhereSelectArrayIterator_2_t37F3A9E5C1E7A941AD31A6AFEDAD12E61E82301F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t37F3A9E5C1E7A941AD31A6AFEDAD12E61E82301F_ComCallableWrapper>, IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_t37F3A9E5C1E7A941AD31A6AFEDAD12E61E82301F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t37F3A9E5C1E7A941AD31A6AFEDAD12E61E82301F_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t64693143CE4E5082C6101BC54B0427C21F3C01C4::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_t37F3A9E5C1E7A941AD31A6AFEDAD12E61E82301F(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_t37F3A9E5C1E7A941AD31A6AFEDAD12E61E82301F_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_t37F3A9E5C1E7A941AD31A6AFEDAD12E61E82301F_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<=a67=,Microsoft.Geospatial.VectorMath.Vector3D>
struct WhereSelectArrayIterator_2_tE878EAC4B17EBE5F45EABCB734275A9CB4ADB10F_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tE878EAC4B17EBE5F45EABCB734275A9CB4ADB10F_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_tE878EAC4B17EBE5F45EABCB734275A9CB4ADB10F_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tE878EAC4B17EBE5F45EABCB734275A9CB4ADB10F_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_tE878EAC4B17EBE5F45EABCB734275A9CB4ADB10F(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_tE878EAC4B17EBE5F45EABCB734275A9CB4ADB10F_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_tE878EAC4B17EBE5F45EABCB734275A9CB4ADB10F_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<=ac6=,Microsoft.Geospatial.LatLon>
struct WhereSelectArrayIterator_2_tEB89C4AC92BDB1714088C46E33091192DEE15FC7_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tEB89C4AC92BDB1714088C46E33091192DEE15FC7_ComCallableWrapper>, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_tEB89C4AC92BDB1714088C46E33091192DEE15FC7_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tEB89C4AC92BDB1714088C46E33091192DEE15FC7_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(2);
interfaceIds[0] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[1] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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 IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7(IBindableIterator_tD7550F1144CFBE58090050457A2BE92B1CAEABBB** comReturnValue) IL2CPP_OVERRIDE
{
return IBindableIterable_First_m91EC6ED0173145266318FDB7F9074798CD766BD7_ComCallableWrapperProjectedMethod(GetManagedObjectInline(), comReturnValue);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_tEB89C4AC92BDB1714088C46E33091192DEE15FC7(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_tEB89C4AC92BDB1714088C46E33091192DEE15FC7_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_tEB89C4AC92BDB1714088C46E33091192DEE15FC7_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<=ac7=,System.Int32>
struct WhereSelectArrayIterator_2_tF8CE6DE810CE0B48C7CF2DB3A9ABEB39CE6535A3_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tF8CE6DE810CE0B48C7CF2DB3A9ABEB39CE6535A3_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_tF8CE6DE810CE0B48C7CF2DB3A9ABEB39CE6535A3_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tF8CE6DE810CE0B48C7CF2DB3A9ABEB39CE6535A3_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_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);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_tF8CE6DE810CE0B48C7CF2DB3A9ABEB39CE6535A3(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_tF8CE6DE810CE0B48C7CF2DB3A9ABEB39CE6535A3_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_tF8CE6DE810CE0B48C7CF2DB3A9ABEB39CE6535A3_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<=afC=,System.Int32>
struct WhereSelectArrayIterator_2_t2908CB789356C0AF9EEF8350CE84BE4150CF3C18_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t2908CB789356C0AF9EEF8350CE84BE4150CF3C18_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_t2908CB789356C0AF9EEF8350CE84BE4150CF3C18_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_t2908CB789356C0AF9EEF8350CE84BE4150CF3C18_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_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);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_t2908CB789356C0AF9EEF8350CE84BE4150CF3C18(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_t2908CB789356C0AF9EEF8350CE84BE4150CF3C18_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_t2908CB789356C0AF9EEF8350CE84BE4150CF3C18_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<=afD=,System.Int32>
struct WhereSelectArrayIterator_2_tF5DDFDC9015554F53DED975A5DAF6621A5F0A9F6_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tF5DDFDC9015554F53DED975A5DAF6621A5F0A9F6_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_tF5DDFDC9015554F53DED975A5DAF6621A5F0A9F6_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tF5DDFDC9015554F53DED975A5DAF6621A5F0A9F6_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_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);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_tF5DDFDC9015554F53DED975A5DAF6621A5F0A9F6(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_tF5DDFDC9015554F53DED975A5DAF6621A5F0A9F6_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_tF5DDFDC9015554F53DED975A5DAF6621A5F0A9F6_ComCallableWrapper(obj));
}
// COM Callable Wrapper for System.Linq.Enumerable/WhereSelectArrayIterator`2<=afE=,System.Int32>
struct WhereSelectArrayIterator_2_tEFD906C68864A5C5C6F2D0AF36CA5F4FDE4471CA_ComCallableWrapper IL2CPP_FINAL : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tEFD906C68864A5C5C6F2D0AF36CA5F4FDE4471CA_ComCallableWrapper>, IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050, IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8, IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953
{
inline WhereSelectArrayIterator_2_tEFD906C68864A5C5C6F2D0AF36CA5F4FDE4471CA_ComCallableWrapper(RuntimeObject* obj) : il2cpp::vm::CachedCCWBase<WhereSelectArrayIterator_2_tEFD906C68864A5C5C6F2D0AF36CA5F4FDE4471CA_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, &IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIMarshal::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIMarshal*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
if (::memcmp(&iid, &Il2CppIWeakReferenceSource::IID, sizeof(Il2CppGuid)) == 0)
{
*object = static_cast<Il2CppIWeakReferenceSource*>(this);
AddRefImpl();
return IL2CPP_S_OK;
}
*object = NULL;
return IL2CPP_E_NOINTERFACE;
}
virtual uint32_t STDCALL AddRef() IL2CPP_OVERRIDE
{
return AddRefImpl();
}
virtual uint32_t STDCALL Release() IL2CPP_OVERRIDE
{
return ReleaseImpl();
}
virtual il2cpp_hresult_t STDCALL GetIids(uint32_t* iidCount, Il2CppGuid** iids) IL2CPP_OVERRIDE
{
Il2CppGuid* interfaceIds = il2cpp_codegen_marshal_allocate_array<Il2CppGuid>(3);
interfaceIds[0] = IIterable_1_t3FD1FB01310262788B2A8868AA7395E023511050::IID;
interfaceIds[1] = IBindableIterable_tF6BD0C070562CD9C91E3C1B1A5F4667E9C3C74A8::IID;
interfaceIds[2] = IClosable_t30CA7D2BE598B3BD6AA57CE9DF977DB51540B953::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_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);
}
virtual il2cpp_hresult_t STDCALL IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871() IL2CPP_OVERRIDE
{
return IClosable_Close_m39D5256F4888029EB959CFA74DD76EB47B570871_ComCallableWrapperProjectedMethod(GetManagedObjectInline());
}
};
IL2CPP_EXTERN_C Il2CppIUnknown* CreateComCallableWrapperFor_WhereSelectArrayIterator_2_tEFD906C68864A5C5C6F2D0AF36CA5F4FDE4471CA(RuntimeObject* obj)
{
void* memory = il2cpp::utils::Memory::Malloc(sizeof(WhereSelectArrayIterator_2_tEFD906C68864A5C5C6F2D0AF36CA5F4FDE4471CA_ComCallableWrapper));
if (memory == NULL)
{
il2cpp_codegen_raise_out_of_memory_exception();
}
return static_cast<Il2CppIManagedObjectHolder*>(new(memory) WhereSelectArrayIterator_2_tEFD906C68864A5C5C6F2D0AF36CA5F4FDE4471CA_ComCallableWrapper(obj));
}
| 44.866352 | 558 | 0.824115 | [
"object"
] |
1ee4e3f9b406fc40c52ba9d6fd1d10efc1b8b5f1 | 9,984 | cpp | C++ | src/cckGlobe.cpp | frmr/cck | 0528157c6439057077547418c22e7977927c29f7 | [
"MIT"
] | 1 | 2015-10-02T17:00:18.000Z | 2015-10-02T17:00:18.000Z | src/cckGlobe.cpp | frmr/cck | 0528157c6439057077547418c22e7977927c29f7 | [
"MIT"
] | null | null | null | src/cckGlobe.cpp | frmr/cck | 0528157c6439057077547418c22e7977927c29f7 | [
"MIT"
] | null | null | null | #include "cckGlobe.h"
#include "cckMath.h"
#include <cmath>
#include <limits>
#include <map>
double cck::Globe::CalculateMountainHeight( const double segmentHeight, const double mountainHeight, const double radius, const double plateau, const double distance )
{
//return segmentHeight + ( ( mountainHeight - segmentHeight ) * ( sin( ( ( cck::pi * ( 1.0 - ( ( distance - plateau ) / ( radius - plateau ) ) ) ) - cck::halfPi ) ) + 1.0 ) / 2.0 );
return segmentHeight + ( 1.0 - ( ( distance - plateau ) / ( radius - plateau ) ) ) * ( mountainHeight - segmentHeight );
}
cck::NodeError cck::Globe::AddNode( const int id, const double latitude, const double longitude, const double minHeight, const double maxHeight, const double nodeRadius )
{
return AddNode( id, cck::GeoCoord( latitude * cck::pi / 180.0, longitude * cck::pi / 180.0 ), minHeight, maxHeight, nodeRadius );
}
cck::NodeError cck::Globe::AddNode( const int id, const cck::GeoCoord& coord, const double minHeight, const double maxHeight, const double nodeRadius )
{
if ( id < 0 )
{
return cck::NodeError::NEGATIVE_ID;
}
for ( const auto& nodeIt : nodes )
{
if ( nodeIt->id == id ) return cck::NodeError::ID_ALREADY_IN_USE;
}
if ( coord.latRadians < -cck::halfPi || coord.latRadians > cck::halfPi )
{
return cck::NodeError::LATITUDE_OUT_OF_RANGE;
}
if ( coord.lonRadians < -cck::pi || coord.lonRadians > cck::pi )
{
return cck::NodeError::LONGITUDE_OUT_OF_RANGE;
}
if ( nodeRadius < 0.0 )
{
return cck::NodeError::NEGATIVE_RADIUS;
}
else if ( nodeRadius > cck::pi * globeRadius )
{
return cck::NodeError::DIAMETER_EXCEEDS_SPHERE_CIRCUMFERENCE;
}
nodes.push_back( std::make_shared<Node>( id, coord, minHeight, maxHeight, nodeRadius, globeRadius ) );
return cck::NodeError::SUCCESS;
}
cck::LinkError cck::Globe::LinkNodes( const int nodeIdA, const int nodeIdB, const double mountainMinHeight, const double mountainMaxHeight, const double mountainRadius, const double mountainPlateau )
{
if ( nodeIdA < 0 || nodeIdB < 0 )
{
return cck::LinkError::NEGATIVE_ID;
}
if ( nodeIdA == nodeIdB )
{
return cck::LinkError::DUPLICATE_ID;
}
shared_ptr<Node> nodePtrA( nullptr );
shared_ptr<Node> nodePtrB( nullptr );
for ( const auto& nodeIt : nodes )
{
if ( nodePtrA == nullptr || nodePtrB == nullptr )
{
if ( nodeIt->id == nodeIdA )
{
if ( nodeIt->LinkedTo( nodeIdB ) )
{
return cck::LinkError::NODES_ALREADY_LINKED;
}
else
{
nodePtrA = nodeIt;
}
}
else if ( nodeIt->id == nodeIdB )
{
if ( nodeIt->LinkedTo( nodeIdA ) )
{
return cck::LinkError::NODES_ALREADY_LINKED;
}
else
{
nodePtrB = nodeIt;
}
}
}
else
{
break;
}
}
if ( nodePtrA == nullptr || nodePtrB == nullptr )
{
return cck::LinkError::ID_NOT_FOUND;
}
//Create temporary edge to test new Triangles
shared_ptr<Edge> tempEdge( new Edge( nodePtrA, nodePtrB, mountainMinHeight, mountainMaxHeight, mountainRadius, mountainPlateau, globeRadius ) );
tempEdge->AddSides();
//Search for common neighbors of nodeA and nodeB that form a Triangle
vector<shared_ptr<Node>> commonNeighbors = nodePtrA->FindCommonNeighbors( nodePtrB ); //TODO: Tidy this and below loop up
for ( const auto& neighbor : commonNeighbors )
{
vector<shared_ptr<Edge>> commonEdges;
//commonEdges.push_back( nodePtrA->GetLinkTo( nodePtrB->id )->edge );
commonEdges.push_back( tempEdge );
commonEdges.push_back( nodePtrB->GetLinkTo( neighbor->id )->edge );
commonEdges.push_back( neighbor->GetLinkTo( nodePtrA->id )->edge );
cck::Vec3 average = ( nodePtrA->position + nodePtrB->position + neighbor->position ) / 3.0;
average = average.Unit();
vector<shared_ptr<Side>> commonSides;
//dot product with each edge side
for ( const auto& edge : commonEdges )
{
vector<shared_ptr<Side>> edgeSides = edge->GetSides();
for ( const auto& side : edgeSides )
{
if ( DotProduct( side->normal, average ) >= 0.0 )
{
if ( side->FormsTriangle() )
{
return cck::LinkError::TRIANGLE_CONFLICT;
}
else
{
side->SetFormsTriangle();
commonSides.push_back( side );
if ( cck::DotProduct( side->edge->normal, average ) >= 0.0 )
{
side->edge->positiveMountain->SetInactive();
}
else
{
side->edge->negativeMountain->SetInactive();
}
}
}
}
}
triangles.push_back( std::make_shared<Triangle>( nodePtrA, nodePtrB, neighbor, commonSides, globeRadius ) );
}
nodePtrA->AddLink( std::make_shared<Link>( nodePtrB, tempEdge ) );
nodePtrB->AddLink( std::make_shared<Link>( nodePtrA, tempEdge ) );
edges.push_back( tempEdge );
return cck::LinkError::SUCCESS;
}
void cck::Globe::SampleData( const double sampleLatitude, const double sampleLongitude, double& sampleHeight, int& sampleId ) const
{
SampleData( cck::GeoCoord( sampleLatitude * cck::pi / 180.0, sampleLongitude * cck::pi / 180.0 ), sampleHeight, sampleId );
}
void cck::Globe::SampleData( const cck::GeoCoord& sampleCoord, double& sampleHeight, int& sampleId ) const
{
const cck::Vec3 samplePoint = sampleCoord.ToCartesian( globeRadius );
const double noiseValue = noise.ScaledOctaveNoise( samplePoint.x, samplePoint.y, samplePoint.z, noiseOctaves, noisePersistance, noiseFrequency, 0.0, 1.0 );
for ( const auto& triangle : triangles )
{
if ( triangle->SampleData( sampleCoord, samplePoint, globeRadius, noiseValue, sampleHeight, sampleId ) )
{
return;
}
}
double highestHeight = std::numeric_limits<double>::lowest();
int highestId = -1;
for ( const auto& edge : edges )
{
const double influence = edge->GetInfluence( sampleCoord, samplePoint, globeRadius );
if ( influence > 0.0 )
{
double tempHeight = 0.0;
int tempId = -1;
edge->SampleData( sampleCoord, samplePoint, globeRadius, noiseValue * influence, tempHeight, tempId );
if ( tempHeight >= highestHeight )
{
highestHeight = tempHeight;
highestId = tempId;
}
}
}
for ( const auto& node : nodes )
{
const double influence = node->GetInfluence( sampleCoord, globeRadius );
if ( influence > 0.0 )
{
double tempHeight = 0.0;
int tempId = -1;
node->SampleData( noiseValue * influence, tempHeight, tempId );
if ( tempHeight >= highestHeight )
{
highestHeight = tempHeight;
highestId = tempId;
}
}
}
sampleHeight = highestHeight;
sampleId = highestId;
}
void cck::Globe::SampleInfluence( const double sampleLatitude, const double sampleLongitude, double& sampleInfluence ) const
{
SampleInfluence( cck::GeoCoord( sampleLatitude * cck::pi / 180.0, sampleLongitude * cck::pi / 180.0 ), sampleInfluence );
}
void cck::Globe::SampleInfluence( const cck::GeoCoord& sampleCoord, double& sampleInfluence ) const
{
sampleInfluence = 0.0;
const cck::Vec3 samplePoint = sampleCoord.ToCartesian( globeRadius );
for ( const auto& triangle : triangles )
{
double influence = triangle->GetInfluence( samplePoint );
if ( influence > 0.0 )
{
sampleInfluence = 1.0;
return;
}
}
double greatestInfluence = 0.0;
for ( const auto& edge : edges )
{
double influence = edge->GetInfluence( sampleCoord, samplePoint, globeRadius );
if ( influence > greatestInfluence )
{
greatestInfluence = influence;
}
}
for ( const auto& node : nodes )
{
double influence = node->GetInfluence( sampleCoord, globeRadius );
if ( influence > greatestInfluence )
{
greatestInfluence = influence;
}
}
sampleInfluence = greatestInfluence;
}
cck::NoiseError cck::Globe::SetNoiseParameters( const int octaves, const double persistance, const double frequency )
{
if ( octaves <= 0 )
{
return cck::NoiseError::NON_POSITIVE_OCTAVES;
}
if ( persistance <= 0.0 )
{
return cck::NoiseError::NON_POSITIVE_PERSISTANCE;
}
if ( frequency <= 0.0 )
{
return cck::NoiseError::NON_POSITIVE_FREQUENCY;
}
noiseOctaves = octaves;
noisePersistance = persistance;
noiseFrequency = frequency;
return cck::NoiseError::SUCCESS;
}
cck::Globe::Globe( const double globeRadius, const unsigned int seed )
: globeRadius( globeRadius ),
noise( seed ),
noiseOctaves( 7 ),
noisePersistance( 0.6 ),
noiseFrequency( 0.0001 )
{
}
| 33.169435 | 200 | 0.561899 | [
"vector"
] |
1ee92f49328373fdc9c0fa9e9d642e1678aa122b | 14,255 | cpp | C++ | tests/AST.cpp | drivehappy/marklar | 1fb973316cd7415f1373320d90e08af7ee53adac | [
"MIT"
] | null | null | null | tests/AST.cpp | drivehappy/marklar | 1fb973316cd7415f1373320d90e08af7ee53adac | [
"MIT"
] | null | null | null | tests/AST.cpp | drivehappy/marklar | 1fb973316cd7415f1373320d90e08af7ee53adac | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include <parser.h>
#include <map>
#include <string>
#include <tuple>
#include <boost/variant/get.hpp>
using namespace marklar;
using namespace parser;
using namespace std;
TEST_CASE("ASTTest_BasicFunction") {
const auto testProgram =
"i32 main() {"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
REQUIRE(expr != nullptr);
// We expect to have our func_expr in this root node
CHECK(1u == expr->children.size());
func_expr* exprF = boost::get<func_expr>(&expr->children[0]);
REQUIRE(exprF != nullptr);
// Check the function name
CHECK("main" == exprF->functionName);
}
TEST_CASE("ASTTest_FunctionSingleDecl") {
const auto testProgram =
"i32 main() {"
" i32 i = 0;"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
REQUIRE(expr != nullptr);
func_expr* exprF = boost::get<func_expr>(&expr->children[0]);
REQUIRE(exprF != nullptr);
// Check declarations
REQUIRE(1u == exprF->expressions.size());
decl_expr* decl = boost::get<decl_expr>(&exprF->expressions[0]);
REQUIRE(decl != nullptr);
CHECK("i" == decl->declName);
binary_op* opVal = boost::get<binary_op>(&decl->val);
REQUIRE(opVal != nullptr);
string* opValStr = boost::get<string>(&opVal->lhs);
REQUIRE(opValStr != nullptr);
CHECK("0" == *opValStr);
}
TEST_CASE("ASTTest_FunctionMultiDecl") {
const auto testProgram =
"i32 main() {"
" i32 i = 0;"
" i32 j = 1;"
" i32 k = 2;"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
REQUIRE(expr);
func_expr* exprF = boost::get<func_expr>(&expr->children[0]);
REQUIRE(exprF);
REQUIRE(3u == exprF->expressions.size());
const map<string, string> expectedNameVals = {
{"i", "0"},
{"j", "1"},
{"k", "2"}
};
for (auto& funcDecl : exprF->expressions) {
// Check declarations
decl_expr* decl = boost::get<decl_expr>(&funcDecl);
REQUIRE(decl != nullptr);
const auto itr = expectedNameVals.find(decl->declName);
REQUIRE(itr != expectedNameVals.end());
CHECK(itr->first == decl->declName);
binary_op* valOp = boost::get<binary_op>(&decl->val);
CHECK(valOp);
string* lhsVal = boost::get<string>(&valOp->lhs);
CHECK(lhsVal);
CHECK(itr->second == *lhsVal);
}
}
TEST_CASE("ASTTest_FunctionDeclAssign") {
const auto testProgram =
"i32 main() {"
" i32 r = 1 + 2;"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
func_expr* exprF = boost::get<func_expr>(&expr->children[0]);
// Check declarations
REQUIRE(1u == exprF->expressions.size());
decl_expr* decl = boost::get<decl_expr>(&exprF->expressions[0]);
REQUIRE(decl != nullptr);
CHECK("r" == decl->declName);
binary_op* opExpr = boost::get<binary_op>(&decl->val);
REQUIRE(opExpr != nullptr);
CHECK(1u == opExpr->operation.size());
// Check decl value
CHECK("+" == opExpr->operation[0].op);
string* rhsVal = boost::get<string>(&opExpr->operation[0].rhs);
CHECK("2" == *rhsVal);
}
TEST_CASE("ASTTest_FunctionMultiDeclAssign") {
const auto testProgram =
"i32 main() {"
" i32 i = 1 + 2;"
" i32 j = i + 2;"
" i32 k = i + j;"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
func_expr* exprF = boost::get<func_expr>(&expr->children[0]);
// Check declarations
CHECK(3u == exprF->expressions.size());
decl_expr* decl = boost::get<decl_expr>(&exprF->expressions[0]);
REQUIRE(decl != nullptr);
CHECK("i" == decl->declName);
const vector<tuple<string, string, string, string>> expectedNameVals = {
make_tuple("i", "1", "+", "2"),
make_tuple("j", "i", "+", "2"),
make_tuple("k", "i", "+", "j"),
};
int index = 0;
for (auto& funcDecl : exprF->expressions) {
// Check declarations
decl_expr* decl = boost::get<decl_expr>(&funcDecl);
REQUIRE(decl != nullptr);
const auto expectedValues = expectedNameVals[index];
CHECK(get<0>(expectedValues) == decl->declName);
binary_op* opExpr = boost::get<binary_op>(&decl->val);
REQUIRE(opExpr != nullptr);
CHECK(1u == opExpr->operation.size());
string* lhsVal = boost::get<string>(&opExpr->lhs);
CHECK(get<1>(expectedValues) == *lhsVal);
// Check decl value
CHECK(get<2>(expectedValues) == opExpr->operation[0].op);
string* rhsVal = boost::get<string>(&opExpr->operation[0].rhs);
CHECK(get<3>(expectedValues) == *rhsVal);
index += 1;
}
}
TEST_CASE("ASTTest_FunctionReturn") {
const auto testProgram =
"i32 main() {"
" return 1;"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
func_expr* exprF = boost::get<func_expr>(&expr->children[0]);
REQUIRE(exprF != nullptr);
REQUIRE(1u == exprF->expressions.size());
return_expr* exprR = boost::get<return_expr>(&exprF->expressions[0]);
REQUIRE(exprR != nullptr);
binary_op* exprRval = boost::get<binary_op>(&exprR->ret);
CHECK(exprRval);
string* exprRvalStr = boost::get<string>(&exprRval->lhs);
CHECK(exprRvalStr);
CHECK("1" == *exprRvalStr);
}
TEST_CASE("ASTTest_FunctionReturnComplex") {
const auto testProgram =
"i32 main() {"
" return a + b + c + 0 + 1 + d;"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
func_expr* exprF = boost::get<func_expr>(&expr->children[0]);
REQUIRE(exprF != nullptr);
REQUIRE(1u == exprF->expressions.size());
return_expr* exprR = boost::get<return_expr>(&exprF->expressions[0]);
REQUIRE(exprR != nullptr);
}
TEST_CASE("ASTTest_MultipleFunction") {
const auto testProgram =
"i32 foo() {}"
"i32 main() {}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
CHECK(2u == expr->children.size());
func_expr* exprF_foo = boost::get<func_expr>(&expr->children[0]);
REQUIRE(exprF_foo != nullptr);
CHECK("foo" == exprF_foo->functionName);
func_expr* exprF_main = boost::get<func_expr>(&expr->children[1]);
REQUIRE(exprF_main != nullptr);
CHECK("main" == exprF_main->functionName);
}
TEST_CASE("ASTTest_MultipleComplexFunction") {
const auto testProgram =
"i32 bar() {"
" i32 a = 0;"
" i32 b = 2;"
" return a + b + 0;"
"}"
"i32 foo() {"
" i32 a = 0;"
" return a + 0;"
"}"
"i32 main() {"
" return 0 + 1;"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
CHECK(3u == expr->children.size());
}
TEST_CASE("ASTTest_FunctionArgs") {
const auto testProgram =
"i32 main(i32 a, i32 b) {"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
REQUIRE(expr != nullptr);
func_expr* exprF = boost::get<func_expr>(&expr->children[0]);
REQUIRE(exprF != nullptr);
REQUIRE(2u == exprF->args.size());
auto* argDef1 = boost::get<def_expr>(&exprF->args[0]);
REQUIRE(argDef1 != nullptr);
REQUIRE("a" == argDef1->defName);
CHECK("i32" == argDef1->typeName);
auto* argDef2 = boost::get<def_expr>(&exprF->args[1]);
REQUIRE(argDef2 != nullptr);
REQUIRE("b" == argDef2->defName);
CHECK("i32" == argDef2->typeName);
}
TEST_CASE("ASTTest_FunctionCall") {
const auto testProgram =
"i32 foo() {}"
"i32 main() {"
" foo();"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
REQUIRE(expr != nullptr);
func_expr* exprF_foo = boost::get<func_expr>(&expr->children[0]);
REQUIRE(exprF_foo != nullptr);
func_expr* exprF_main = boost::get<func_expr>(&expr->children[1]);
REQUIRE(exprF_main != nullptr);
CHECK(1u == exprF_main->expressions.size());
call_expr* callExpr = boost::get<call_expr>(&exprF_main->expressions[0]);
REQUIRE(callExpr != nullptr);
CHECK("foo" == callExpr->funcName);
CHECK(0u == callExpr->values.size());
}
TEST_CASE("ASTTest_FunctionCallArgs") {
const auto testProgram =
"i32 foo(i32 a) {"
" return a;"
"}"
"i32 main() {"
" return foo(45);"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
REQUIRE(expr != nullptr);
func_expr* exprF_main = boost::get<func_expr>(&expr->children[1]);
REQUIRE(exprF_main != nullptr);
return_expr* retExpr = boost::get<return_expr>(&exprF_main->expressions[0]);
REQUIRE(retExpr != nullptr);
call_expr* callExpr = boost::get<call_expr>(&retExpr->ret);
REQUIRE(callExpr != nullptr);
CHECK("foo" == callExpr->funcName);
CHECK(1u == callExpr->values.size());
binary_op* val = boost::get<binary_op>(&callExpr->values[0]);
REQUIRE(val != nullptr);
string* strVal = boost::get<string>(&val->lhs);
REQUIRE(strVal != nullptr);
CHECK("45" == *strVal);
}
TEST_CASE("ASTTest_FunctionCallArgsComplex") {
const auto testProgram =
"i32 bar(i32 a, i32 b) {}"
"i32 foo(i32 a) {"
" return bar(a, 5);"
"}"
"i32 main() {"
" return foo(45);"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
CHECK(expr);
func_expr* exprF_main = boost::get<func_expr>(&expr->children[1]);
CHECK(exprF_main);
return_expr* exprR = boost::get<return_expr>(&exprF_main->expressions[0]);
REQUIRE(exprR != nullptr);
call_expr* callExpr = boost::get<call_expr>(&exprR->ret);
REQUIRE(callExpr != nullptr);
CHECK("bar" == callExpr->funcName);
CHECK(2u == callExpr->values.size());
binary_op* val1 = boost::get<binary_op>(&callExpr->values[0]);
CHECK(val1);
string* val1Str = boost::get<string>(&val1->lhs);
CHECK(val1Str);
CHECK("a" == *val1Str);
binary_op* val2 = boost::get<binary_op>(&callExpr->values[1]);
CHECK(val2);
string* val2Str = boost::get<string>(&val2->lhs);
CHECK(val2Str);
CHECK("5" == *val2Str);
}
TEST_CASE("ASTTest_FunctionIfStmt") {
const auto testProgram =
"i32 main() {"
" if (i < 4) {"
" }"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
func_expr* exprF_main = boost::get<func_expr>(&expr->children[0]);
if_expr* exprIf = boost::get<if_expr>(&exprF_main->expressions[0]);
REQUIRE(exprIf != nullptr);
// Check the condition
string* exprIfOpLhs = boost::get<string>(&exprIf->condition.lhs);
REQUIRE(exprIfOpLhs != nullptr);
CHECK("i" == *exprIfOpLhs);
CHECK(1u == exprIf->condition.operation.size());
CHECK("<" == exprIf->condition.operation[0].op);
string* exprIfOpRhs = boost::get<string>(&exprIf->condition.operation[0].rhs);
REQUIRE(exprIfOpRhs != nullptr);
CHECK("4" == *exprIfOpRhs);
}
TEST_CASE("ASTTest_FunctionIfElseStmt") {
const auto testProgram =
"i32 main() {"
" if (i < 4) {"
" i32 j = 0;"
" } else {"
" i32 k = 0;"
" }"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
func_expr* exprF_main = boost::get<func_expr>(&expr->children[0]);
if_expr* exprIf = boost::get<if_expr>(&exprF_main->expressions[0]);
REQUIRE(exprIf != nullptr);
CHECK(1u == exprIf->thenBranch.size());
CHECK(1u == exprIf->elseBranch.size());
}
TEST_CASE("ASTTest_Assignment") {
const auto testProgram =
"i32 main() {"
" i32 a = 3;"
" a = a + 1;"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
func_expr* exprF_main = boost::get<func_expr>(&expr->children[0]);
// Check the assignment
REQUIRE(2u == exprF_main->expressions.size());
var_assign* varAssign = boost::get<var_assign>(&exprF_main->expressions[1]);
REQUIRE(varAssign != nullptr);
CHECK("a" == varAssign->varName);
binary_op* exprRhs = boost::get<binary_op>(&varAssign->varRhs);
REQUIRE(exprRhs != nullptr);
string* exprRhs_Lhs = boost::get<string>(&exprRhs->lhs);
REQUIRE(exprRhs_Lhs != nullptr);
CHECK("a" == *exprRhs_Lhs);
CHECK(1u == exprRhs->operation.size());
CHECK("+" == exprRhs->operation[0].op);
string* exprRhs_Rhs = boost::get<string>(&exprRhs->operation[0].rhs);
REQUIRE(exprRhs_Rhs != nullptr);
CHECK("1" == *exprRhs_Rhs);
}
TEST_CASE("ASTTest_WhileStmt") {
const auto testProgram =
"i32 main() {"
" while (i < 4) {"
" }"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
func_expr* exprF_main = boost::get<func_expr>(&expr->children[0]);
while_loop* exprLoop = boost::get<while_loop>(&exprF_main->expressions[0]);
REQUIRE(exprLoop != nullptr);
// Check the condition
string* exprLoopOpLhs = boost::get<string>(&exprLoop->condition.lhs);
CHECK(exprLoopOpLhs);
CHECK("i" == *exprLoopOpLhs);
CHECK(1u == exprLoop->condition.operation.size());
CHECK("<" == exprLoop->condition.operation[0].op);
string* exprLoopOpRhs = boost::get<string>(&exprLoop->condition.operation[0].rhs);
REQUIRE(exprLoopOpRhs != nullptr);
CHECK("4" == *exprLoopOpRhs);
}
TEST_CASE("ASTTest_FuncCallInIfStmt") {
const auto testProgram =
"i32 func1(i32 a) {"
" return 0;"
"}"
"i32 main() {"
" if (func1(45) > 0) {"
" return 1;"
" }"
" return 0;"
"}";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
CHECK(expr);
func_expr* exprF_main = boost::get<func_expr>(&expr->children[1]);
CHECK(exprF_main);
if_expr* exprIf = boost::get<if_expr>(&exprF_main->expressions[0]);
REQUIRE(exprIf != nullptr);
call_expr* callExpr = boost::get<call_expr>(&exprIf->condition.lhs);
CHECK(callExpr);
}
TEST_CASE("ASTTest_DuplicateDefinition") {
const auto testProgram = R"mrk(
i32 main() {
i32 a;
i32 a;
return 0;
}
)mrk";
base_expr_node root;
REQUIRE(parse(testProgram, root));
base_expr* expr = boost::get<base_expr>(&root);
REQUIRE(expr);
func_expr* exprF_main = boost::get<func_expr>(&expr->children[0]);
REQUIRE(exprF_main);
REQUIRE(3u == exprF_main->expressions.size());
// First expression should be available, the second should not be
auto* exprDef = boost::get<def_expr>(&exprF_main->expressions[0]);
REQUIRE(exprDef != nullptr);
auto* exprDef2 = boost::get<def_expr>(&exprF_main->expressions[1]);
REQUIRE(exprDef2 != nullptr);
}
| 24.367521 | 83 | 0.660821 | [
"vector"
] |
1ef0a52b99d6d86e51e6fe8aa9a346e05a934274 | 5,008 | cc | C++ | chromium/chrome/renderer/safe_browsing/threat_dom_details_browsertest.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/chrome/renderer/safe_browsing/threat_dom_details_browsertest.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/chrome/renderer/safe_browsing/threat_dom_details_browsertest.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2011 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 "base/strings/stringprintf.h"
#include "chrome/common/safe_browsing/safebrowsing_messages.h"
#include "chrome/renderer/safe_browsing/threat_dom_details.h"
#include "chrome/test/base/chrome_render_view_test.h"
#include "content/public/renderer/render_view.h"
#include "net/base/escape.h"
typedef ChromeRenderViewTest ThreatDOMDetailsTest;
TEST_F(ThreatDOMDetailsTest, Everything) {
scoped_ptr<safe_browsing::ThreatDOMDetails> details(
safe_browsing::ThreatDOMDetails::Create(view_->GetMainRenderFrame()));
// Lower kMaxNodes for the test. Loading 500 subframes in a
// debug build takes a while.
details->kMaxNodes = 50;
const char urlprefix[] = "data:text/html;charset=utf-8,";
{
// A page with an internal script
std::string html = "<html><head><script></script></head></html>";
LoadHTML(html.c_str());
std::vector<SafeBrowsingHostMsg_ThreatDOMDetails_Node> params;
details->ExtractResources(¶ms);
ASSERT_EQ(1u, params.size());
EXPECT_EQ(GURL(urlprefix + html), params[0].url);
}
{
// A page with 2 external scripts.
// Note: This part of the test causes 2 leaks: LEAK: 5 WebCoreNode
// LEAK: 2 CachedResource.
GURL script1_url("data:text/javascript;charset=utf-8,var a=1;");
GURL script2_url("data:text/javascript;charset=utf-8,var b=2;");
std::string html = "<html><head><script src=\"" + script1_url.spec() +
"\"></script><script src=\"" + script2_url.spec() +
"\"></script></head></html>";
GURL url(urlprefix + html);
LoadHTML(html.c_str());
std::vector<SafeBrowsingHostMsg_ThreatDOMDetails_Node> params;
details->ExtractResources(¶ms);
ASSERT_EQ(3u, params.size());
EXPECT_EQ(script1_url, params[0].url);
EXPECT_EQ("SCRIPT", params[0].tag_name);
EXPECT_EQ(script2_url, params[1].url);
EXPECT_EQ("SCRIPT", params[0].tag_name);
EXPECT_EQ(url, params[2].url);
}
{
// A page with an iframe which in turn contains an iframe.
// html
// \ iframe1
// \ iframe2
// Since ThreatDOMDetails is a RenderFrameObserver, it will only
// extract resources from the frame it assigned to (in this case,
// the main frame). Extracting resources from all frames within a
// page is covered in SafeBrowsingBlockingPageBrowserTest.
// In this example, ExtractResources() will still touch iframe1
// since it is the direct child of the main frame, but it would not
// go inside of iframe1.
std::string iframe2_html = "<html><body>iframe2</body></html>";
GURL iframe2_url(urlprefix + iframe2_html);
std::string iframe1_html = "<iframe src=\"" +
net::EscapeForHTML(iframe2_url.spec()) +
"\"></iframe>";
GURL iframe1_url(urlprefix + iframe1_html);
std::string html = "<html><head><iframe src=\"" +
net::EscapeForHTML(iframe1_url.spec()) +
"\"></iframe></head></html>";
GURL url(urlprefix + html);
LoadHTML(html.c_str());
std::vector<SafeBrowsingHostMsg_ThreatDOMDetails_Node> params;
details->ExtractResources(¶ms);
ASSERT_EQ(2u, params.size());
std::sort(params.begin(), params.end(),
[](const SafeBrowsingHostMsg_ThreatDOMDetails_Node& a,
const SafeBrowsingHostMsg_ThreatDOMDetails_Node& b) -> bool {
return a.parent < b.parent;
});
EXPECT_EQ(url, params[0].url);
EXPECT_EQ(GURL(), params[0].parent);
EXPECT_EQ(1u, params[0].children.size());
EXPECT_EQ(iframe1_url, params[0].children[0]);
EXPECT_EQ(iframe1_url, params[1].url);
EXPECT_EQ(url, params[1].parent);
EXPECT_EQ(0u, params[1].children.size());
}
{
// Test >50 subframes.
std::string html;
for (int i = 0; i < 55; ++i) {
// The iframe contents is just a number.
GURL iframe_url(base::StringPrintf("%s%d", urlprefix, i));
html += "<iframe src=\"" + net::EscapeForHTML(iframe_url.spec()) +
"\"></iframe>";
}
GURL url(urlprefix + html);
LoadHTML(html.c_str());
std::vector<SafeBrowsingHostMsg_ThreatDOMDetails_Node> params;
details->ExtractResources(¶ms);
ASSERT_EQ(51u, params.size());
}
{
// A page with >50 scripts, to verify kMaxNodes.
std::string html;
for (int i = 0; i < 55; ++i) {
// The iframe contents is just a number.
GURL script_url(base::StringPrintf("%s%d", urlprefix, i));
html += "<script src=\"" + net::EscapeForHTML(script_url.spec()) +
"\"></script>";
}
GURL url(urlprefix + html);
LoadHTML(html.c_str());
std::vector<SafeBrowsingHostMsg_ThreatDOMDetails_Node> params;
details->ExtractResources(¶ms);
ASSERT_EQ(51u, params.size());
}
}
| 38.229008 | 78 | 0.645168 | [
"vector"
] |
1ef2373592f5dc0623b6abccfaeeb15405992743 | 5,999 | cc | C++ | lib/second_hit_admission.cc | VerizonDigital/edgecast_caching_emulator | 34b11671abf231a369bf55a79a97723b2143fb35 | [
"Apache-2.0"
] | 10 | 2018-08-22T15:30:53.000Z | 2021-05-09T18:08:47.000Z | lib/second_hit_admission.cc | VerizonDigital/edgecast_caching_emulator | 34b11671abf231a369bf55a79a97723b2143fb35 | [
"Apache-2.0"
] | 1 | 2019-02-04T19:42:32.000Z | 2019-02-04T19:42:32.000Z | lib/second_hit_admission.cc | VerizonDigital/edgecast_caching_emulator | 34b11671abf231a369bf55a79a97723b2143fb35 | [
"Apache-2.0"
] | 5 | 2018-08-16T23:27:23.000Z | 2021-06-21T18:00:43.000Z | // Copyright 2021 Edgecast Inc
// Licensed under the terms of the Apache 2.0 open source license
// See LICENSE file for terms.
/*
* Second Hit Caching Cache Admission Policy
*
*/
#include <algorithm>
#include <string>
#include <sstream>
#include <vector>
#include "bloomfilter.h"
#include "cache_policy.h"
#include "second_hit_admission.h"
using namespace std;
SecondHitAdmission::SecondHitAdmission(string file_name, size_t _nfuncs,
unsigned long size, int _NVAL,
vector<string> no_bf_cust) {
name = "2hc";
this->no_bf_cust = no_bf_cust;
BF = new BloomFilter ((char *)file_name.c_str(), _nfuncs, size, _NVAL);
}
SecondHitAdmission::~SecondHitAdmission() {
delete BF;
}
// Should we let this in?
bool SecondHitAdmission::check(string key, unsigned long data, unsigned long long size,
unsigned long ts, string customer_id_str) {
// Check to see if this customer bypasses the bloom filter. If so, just let
// it in
bool _b = check_customer_in_list(customer_id_str);
if (_b == true) {
return true;
}
// We have it in the bloom filter, go ahead and accept it!
if (BF->check((char *)key.c_str())) {
return true;
} else {
// We don't have it, let's add it, and return false
BF->add((char *)key.c_str());
return false;
}
}
bool SecondHitAdmission::check_customer_in_list(string custid) const{
vector<string>::iterator it;
if(find(no_bf_cust.begin(), no_bf_cust.end(), custid) != no_bf_cust.end())
return true;
else
return false;
}
float SecondHitAdmission::get_fill_percentage() {
struct bloom_filter_stats bfstats;
BF->get_live_stats(bfstats);
return bfstats.fill_percentage;
}
void SecondHitAdmission::periodic_output(unsigned long ts, std::ostringstream& outlogfile){
// Output LRUEviction specifcs
outlogfile << " : " << name << " ";
// Total size
outlogfile << get_fill_percentage() << " ";
}
/****************************
*
* 2 Rotating Bloom Filters
*
****************************/
SecondHitAdmissionRot::SecondHitAdmissionRot(string file_name, size_t _nfuncs,
unsigned long size, int _NVAL,
vector<string> no_bf_cust,
unsigned long max_age) {
name = "2hc_rot";
/* Save all the init garbage */
this->file_name = file_name;
this->_nfuncs = _nfuncs;
this->bf_size = size;
this->_NVAL = _NVAL;
/* Make one BF */
head = new BFEntry;
head->BF = new BloomFilter ((char *)file_name.c_str(), _nfuncs, size, _NVAL);
head->init_time = 0; // Needs clever handling down stream
head->next = NULL;
/* Fill in the other junk */
this->no_bf_cust = no_bf_cust;
this->max_age = max_age;
}
SecondHitAdmissionRot::~SecondHitAdmissionRot() {
/* Here, we have to walk our list and delete as we go */
BFEntry *curr = head;
BFEntry *next_entry;
while (curr != NULL) {
/* Delete the BF inside */
delete curr->BF;
/* Get the next one */
next_entry = curr->next;
/* Delete the durrent one*/
delete curr;
/* Pass pointer */
curr = next_entry;
}
}
// Should we let this in?
bool SecondHitAdmissionRot::check(string key, unsigned long data, unsigned long long size,
unsigned long ts, string customer_id_str) {
BFEntry* new_bf;
unsigned long age;
// Check to see if this customer bypasses the bloom filter. If so, just let
// it in
bool _b = check_customer_in_list(customer_id_str);
if (_b == true) {
return true;
}
/* Check the age on the head, is it time to rotate */
if (head->init_time == 0) {
/* If it was the init, take the current time as the start */
head->init_time = ts;
}
age = ts - head->init_time;
/* It's time to rotate*/
if (age > max_age) {
// Check the next guy, delete him if he exists
// Probably thhis should be a loop and not just a look ahead of 1
cout << "Rotating BF!" << endl;
if (head->next != NULL) {
delete head->next->BF;
delete head->next;
head->next = NULL;
}
// Make a new one and stick it at the head
new_bf = new BFEntry;
new_bf->BF = new BloomFilter ((char *)file_name.c_str(), _nfuncs, bf_size, _NVAL);
new_bf->init_time = ts; // Now
new_bf->next = head;
// stick it in front
head = new_bf;
cout << "Done rotating BF!" << endl;
}
// Ok now we start climbing down
if (head->BF->check((char *)key.c_str())) {
return true;
} else {
// We don't have it, let's add it
head->BF->add((char *)key.c_str());
// Now let's check the next one
if ((head->next != NULL) &&
(head->next->BF->check((char *)key.c_str()))) {
// We had it in the old one, let it in
return true;
} else {
// Else, either:
// not in the old one, return false
// There is no old one, return false
return false;
}
}
cout << "unexpected!" << endl;
}
bool SecondHitAdmissionRot::check_customer_in_list(string custid) const{
vector<string>::iterator it;
if(find(no_bf_cust.begin(), no_bf_cust.end(), custid) != no_bf_cust.end())
return true;
else
return false;
}
float SecondHitAdmissionRot::get_fill_percentage() {
struct bloom_filter_stats bfstats;
head->BF->get_live_stats(bfstats);
return bfstats.fill_percentage;
}
void SecondHitAdmissionRot::periodic_output(unsigned long ts, std::ostringstream& outlogfile){
// Output LRUEviction specifcs
outlogfile << " : " << name << " ";
// Total size
outlogfile << get_fill_percentage() << " ";
}
| 28.164319 | 94 | 0.590598 | [
"vector"
] |
1ef36dd70292f633cad06ae8b40345897419e845 | 490 | cpp | C++ | test/unit/library/WrongContainers.cpp | hartogss/cxx-langstat | 397f48bac9de4e79ba6a1adea0c372119f27be32 | [
"Apache-2.0"
] | 3 | 2020-10-18T15:37:38.000Z | 2020-10-26T16:07:51.000Z | test/unit/library/WrongContainers.cpp | hartogss/cxx-langstat | 397f48bac9de4e79ba6a1adea0c372119f27be32 | [
"Apache-2.0"
] | 51 | 2020-11-11T10:12:16.000Z | 2021-07-05T14:25:20.000Z | test/unit/library/WrongContainers.cpp | hartogss/cxx-langstat | 397f48bac9de4e79ba6a1adea0c372119f27be32 | [
"Apache-2.0"
] | 1 | 2021-04-15T16:06:59.000Z | 2021-04-15T16:06:59.000Z | // RUN: rm %t1.ast.json || true
// RUN: %clangxx %s -emit-ast -o %t1.ast
// RUN: %cxx-langstat --analyses=cla -emit-features -in %t1.ast -out %t1.ast.json --
// RUN: diff %t1.ast.json %s.json
// Test to check that only standard library vector is matched
//
//
#include <vector>
namespace n {
template<typename T>
class vector {
};
}
int main(int argc, char** argv){
n::vector<bool> badvec;
std::vector<int> ivec;
using namespace std;
vector<double> dvec;
}
| 19.6 | 84 | 0.626531 | [
"vector"
] |
1ef7609db65b50231c2a6ece9dc12a5240adac5d | 1,077 | cpp | C++ | src/EntityList.cpp | EXLER/EXray | 872b70d7ed410567687cc4cf19c1af14830d9dba | [
"MIT"
] | null | null | null | src/EntityList.cpp | EXLER/EXray | 872b70d7ed410567687cc4cf19c1af14830d9dba | [
"MIT"
] | null | null | null | src/EntityList.cpp | EXLER/EXray | 872b70d7ed410567687cc4cf19c1af14830d9dba | [
"MIT"
] | null | null | null | #include "EntityList.hpp"
EntityList::EntityList() {}
EntityList::EntityList(Entity::ptr object)
{
add(object);
}
void EntityList::clear()
{
_objects.clear();
}
void EntityList::add(Entity::ptr object)
{
_objects.push_back(object);
}
bool EntityList::hit(const Ray &r, float t_min, float t_max, HitRecord &rec) const
{
HitRecord temp_rec;
bool hit = false;
auto closest = t_max;
for (const auto &object : _objects)
{
if (object->hit(r, t_min, closest, temp_rec))
{
hit = true;
closest = temp_rec.t;
rec = temp_rec;
}
}
return hit;
}
bool EntityList::bounding_box(float t0, float t1, AABB &output_box) const
{
if (_objects.empty())
return false;
AABB temp_box;
bool first_box = true;
for (const auto &object : _objects)
{
if (!object->bounding_box(t0, t1, temp_box))
return false;
output_box = first_box ? temp_box : AABB::surrounding_box(output_box, temp_box);
first_box = false;
}
return true;
} | 19.944444 | 88 | 0.604457 | [
"object"
] |
1efd4d39bd9ae36ba49f968f2e2fbd5a985a22d4 | 489 | cpp | C++ | simulation_core/simulation-core_test/vectorhelpertest.cpp | SirTobias/DMPCRobotSimulation | e393538b37e5a63bfe4da94e9bd13feba45699db | [
"MIT"
] | 2 | 2021-12-06T08:05:12.000Z | 2022-03-22T13:56:38.000Z | simulation_core/simulation-core_test/vectorhelpertest.cpp | SirTobias/DMPCRobotSimulation | e393538b37e5a63bfe4da94e9bd13feba45699db | [
"MIT"
] | null | null | null | simulation_core/simulation-core_test/vectorhelpertest.cpp | SirTobias/DMPCRobotSimulation | e393538b37e5a63bfe4da94e9bd13feba45699db | [
"MIT"
] | 1 | 2022-03-29T12:46:37.000Z | 2022-03-29T12:46:37.000Z | #include "vectorhelpertest.h"
/**
* @brief VectorHelperTest::VectorHelperTest
*/
VectorHelperTest::VectorHelperTest()
{
}
void VectorHelperTest::initTestCase() {
//
}
/**
* @brief VectorHelperTest::testShiftVector
*/
void VectorHelperTest::testShiftVector() {
std::vector<double> testVec = {1.0, 2.0, 3.0, 4.0};
std::vector<double> expected = {2.0, 3.0, 4.0, 0.0};
std::vector<double> result = VectorHelper::shiftStep(testVec, 1, 0.0);
QCOMPARE(expected, result);
}
| 21.26087 | 73 | 0.676892 | [
"vector"
] |
1effb31b3c8eb7b2bf0d07297b8f8dea8bd46264 | 3,940 | cpp | C++ | ArtGalleryProblem_solution/source/Triangulate.cpp | shivu926/NTU-Research | 9731b672bb7866989017dd4c51e27ef7724f18cc | [
"Apache-2.0"
] | 1 | 2021-11-13T19:09:01.000Z | 2021-11-13T19:09:01.000Z | ArtGalleryProblem_solution/source/Triangulate.cpp | shivu926/NTU-Research | 9731b672bb7866989017dd4c51e27ef7724f18cc | [
"Apache-2.0"
] | null | null | null | ArtGalleryProblem_solution/source/Triangulate.cpp | shivu926/NTU-Research | 9731b672bb7866989017dd4c51e27ef7724f18cc | [
"Apache-2.0"
] | null | null | null | #include "Triangulate.h"
/* Puts vertices of triangulation of polygon into result */
bool Triangulate::Process(vector<AGVector> &polygon, vector<AGVector *> &result)
{
result.clear();
int n = polygon.size();
if (n < 3)
return false;
vector<AGVector *> workingPoly;
// need to ensure that we traverse polygon in ccw order, workingPoly
// will contain vertices in ccw order
if (Area(polygon) > 0.f)
{
for (int i = 0; i < n; ++i)
{
workingPoly.push_back(&polygon[i]);
}
}
else
{
for (int i = 0; i < n; ++i)
{
workingPoly.push_back(&polygon[(n-1)-i]);
}
}
assert(n = workingPoly.size());
int j = 0;
int work_sz, u,v,w;
while ((work_sz = workingPoly.size()) > 3)
{
u = j % work_sz;
v = (j+1) % work_sz;
w = (j+2) % work_sz;
if (Snip(workingPoly, u,v,w) )
{
// add triangle uvw to result, remove v from working set
result.push_back(workingPoly[u]);
result.push_back(workingPoly[v]);
result.push_back(workingPoly[w]);
workingPoly.erase(workingPoly.begin() + v);
}
else
{
j++;
}
}
// should be three vertices left in working set,
// this is the last triangle of triangulation, add it
assert(workingPoly.size() == 3);
for (int i = 0; i < 3; ++i)
{
result.push_back(workingPoly[i]);
}
return true;
}
/* returns area of polygon */
float Triangulate::Area(const vector<AGVector> &polygon)
{
int n = polygon.size();
if (n < 3)
return 0.f;
float area = 0.f;
for (int p = n-1, q = 0; q < n; p = q++)
{
area += (polygon[p].getx() *polygon[q].gety()) - (polygon[q].getx() * polygon[p].gety());
}
return area * 0.5f;
}
/* true if p is inside triangle(abc) */
bool Triangulate::InsideTriangle(AGVector a, AGVector b, AGVector c, AGVector p)
{
// do p and a lie on same side of line bc
bool pa = SameSide(b, c, p, a);
// do p and b lie on same side of line ac
bool pb = SameSide(a, c, p, b);
// do p and c lie on same side of ab
bool pc = SameSide(a, b, p, c);
// p is inside triangle abc if all above are true.
return (pa && pb && pc);
}
/* true is points p1, p2 lie on the same side of line segment ab */
bool Triangulate::SameSide(AGVector a, AGVector b, AGVector p1, AGVector p2)
{
// v is a vector from a to b
AGVector v = b - a;
// if the cross product of the vector from a to b, with the vector from a to p1 and a to p2
// are in the same direction, then p1 and p2 are on the same side. This will be true only
// when the z components of the crossproducts both positive or both negative, ie when multiplied
// they are positive.
return (AGVector::crossProduct(v, (p1 - a)).getz() * AGVector::crossProduct(v, (p2 - a)).getz()) >= 0;
}
/* determines if the section of the polygon defined by the three vertices
* abc (where abc are at indices u,v,w in polygon) can be
* 'snipped' (considered a triangle in the triangulation of the polygon).
* True if abc is convex and empty, false if another vertex of the polygon lies within
* abc, or if abc forms a right turn (non-convex, assuming counter clockwise (ccw) traversal).
* V is an array of integers, containing the indices of polygon in ccw order, n is its length
*/
bool Triangulate::Snip(const vector<AGVector *> &polygon, int u, int v, int w)
{
AGVector a = *polygon[u];
AGVector b = *polygon[v];
AGVector c = *polygon[w];
// if abc forms a right turn, cannot snip
if (AGVector::crossProduct( (b-a), (c-b) ).getz() <= 0)
return false;
AGVector p;
// check if any other points of polygon are inside abc
for (int i = 0; i < (int)polygon.size(); ++i)
{
if (i == u || i == v || i == w)
continue;
p = *polygon[i];
if (InsideTriangle(a,b,c,p))
return false;
}
return true;
}
| 27.746479 | 105 | 0.601523 | [
"vector"
] |
4800f941160d58b38c767ee49019062a94a2e00f | 21,321 | cpp | C++ | test/avx256/simd_sort_test.cpp | PatwinchIR/ultra-sort | 09fa26c3c77cb31b98031bdf1f76c54361d75b8e | [
"MIT"
] | 30 | 2018-05-08T23:05:34.000Z | 2022-02-15T13:45:44.000Z | test/avx256/simd_sort_test.cpp | PatwinchIR/ultra-sort | 09fa26c3c77cb31b98031bdf1f76c54361d75b8e | [
"MIT"
] | 2 | 2018-08-03T15:01:40.000Z | 2019-01-11T23:09:17.000Z | test/avx256/simd_sort_test.cpp | PatwinchIR/ultra-sort | 09fa26c3c77cb31b98031bdf1f76c54361d75b8e | [
"MIT"
] | 1 | 2020-02-10T16:05:14.000Z | 2020-02-10T16:05:14.000Z | #include "metrics/cycletimer.h"
#include "gtest/gtest.h"
#include "test_util.h"
#include "avx256/simd_sort.h"
#include <algorithm>
#include <iterator>
#include "ips4o.hpp"
#include "pdqsort.h"
namespace avx2 {
TEST(SIMDSortTests, AVX256SIMDSort32BitIntegerTest) {
size_t N = NNUM;
int lo = LO;
int hi = HI;
int *rand_arr;
int *soln_arr;
double start, end;
// Initialization
TestUtil::RandGenInt(rand_arr, N, lo, hi);
// C++ std::stable_sort
aligned_init<int>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::stable_sort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[std::stable_sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ std::sort
aligned_init<int>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::sort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[std::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ ips4o::sort
aligned_init<int>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
ips4o::sort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[ips4o::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ pqd::sort
aligned_init<int>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
pdqsort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[pdqsort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// AVX256 Sort
aligned_init<int>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
std::vector<int> check_arr(rand_arr, rand_arr + N);
start = currentSeconds();
SIMDSort(N, soln_arr);
end = currentSeconds();
std::sort(check_arr.begin(), check_arr.end());
// First perform a correctness check
for (int i = 0; i < N; i++) {
EXPECT_EQ(check_arr[i], soln_arr[i]);
}
printf("[avx256::sort] %lu elements: %.8f seconds\n", N, end - start);
delete rand_arr;
delete soln_arr;
}
TEST(SIMDSortTests, AVX256SIMDSort32BitFloatTest) {
size_t N = NNUM;
float lo = LO;
float hi = HI;
float *rand_arr;
float *soln_arr;
double start, end;
// Initialization
TestUtil::RandGenFloat<float>(rand_arr, N, lo, hi);
// C++ std::stable_sort
aligned_init(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::stable_sort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[std::stable_sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ std::sort
aligned_init(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::sort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[std::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ ips4o::sort
aligned_init(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
ips4o::sort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[ips4o::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ pqd::sort
aligned_init(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
pdqsort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[pdqsort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// AVX256 Sort
aligned_init(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
std::vector<float> check_arr(rand_arr, rand_arr + N);
start = currentSeconds();
SIMDSort(N, soln_arr);
end = currentSeconds();
std::sort(check_arr.begin(), check_arr.end());
// First perform a correctness check
for (int i = 0; i < N; i++) {
EXPECT_EQ(check_arr[i], soln_arr[i]);
}
printf("[avx256::sort] %lu elements: %.8f seconds\n", N, end - start);
delete rand_arr;
delete soln_arr;
}
TEST(SIMDSortTests, AVX256SIMDSort64BitIntegerTest) {
size_t N = NNUM;
int lo = LO;
int hi = HI;
int64_t *rand_arr;
int64_t *soln_arr;
double start, end;
// Initialization
TestUtil::RandGenInt<int64_t>(rand_arr, N, lo, hi);
// C++ std::stable_sort
aligned_init<int64_t>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::stable_sort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[std::stable_sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ std::sort
aligned_init<int64_t>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::sort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[std::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ ips4o::sort
aligned_init<int64_t>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
ips4o::sort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[ips4o::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ pqd::sort
aligned_init<int64_t>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
pdqsort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[pdqsort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// AVX256 sort
aligned_init<int64_t>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
std::vector<int64_t> check_arr(rand_arr, rand_arr + N);
start = currentSeconds();
SIMDSort(N, soln_arr);
end = currentSeconds();
std::sort(check_arr.begin(), check_arr.end());
for (int i = 0; i < N; i++) {
EXPECT_EQ(check_arr[i], soln_arr[i]);
}
printf("[avx256::sort] %lu elements: %.8f seconds\n", N, end - start);
delete rand_arr;
delete soln_arr;
}
TEST(SIMDSortTests, AVX256SIMDSort64BitFloatTest) {
size_t N = NNUM;
double lo = LO;
double hi = HI;
double *rand_arr;
double *soln_arr;
double start, end;
// Initialization
TestUtil::RandGenFloat<double>(rand_arr, N, lo, hi);
// C++ std::stable_sort
aligned_init(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::stable_sort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[std::stable_sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ std::sort
aligned_init(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::sort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[std::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ ips4o::sort
aligned_init(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
ips4o::sort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[ips4o::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ pqd::sort
aligned_init(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
pdqsort(soln_arr, soln_arr + N);
end = currentSeconds();
printf("[pdqsort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// AVX256 sort
aligned_init(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
std::vector<double> check_arr(rand_arr, rand_arr + N);
start = currentSeconds();
SIMDSort(N, soln_arr);
end = currentSeconds();
std::sort(check_arr.begin(), check_arr.end());
for (int i = 0; i < N; i++) {
EXPECT_EQ(check_arr[i], soln_arr[i]);
}
printf("[avx256::sort] %lu elements: %.8f seconds\n", N, end - start);
delete rand_arr;
delete soln_arr;
}
TEST(SIMDSortTests, AVX256SIMDSort32BitKeyValueIntTest) {
using T = int;
size_t N = NNUM;
T lo = LO;
T hi = HI;
std::pair<T, T> *rand_arr;
std::pair<T, T> *soln_arr;
double start, end;
// Initialization
TestUtil::RandGenIntRecords(rand_arr, N, lo, hi);
std::map<T, T> kv_map;
for (int i = 0; i < N; ++i) {
kv_map.insert(std::pair<T, T>(rand_arr[i].second, rand_arr[i].first));
}
// C++ std::stable_sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::stable_sort(soln_arr, soln_arr + N, [](const std::pair<T, T> &left, const std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[std::stable_sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ std::sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::sort(soln_arr, soln_arr + N, [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[std::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// ips4o
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
ips4o::sort(soln_arr, soln_arr + N, [](const std::pair<T, T> &left, const std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[ips4o::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// pdqsort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
pdqsort(soln_arr, soln_arr + N, [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[pdqsort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// AVX256 sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
std::vector<std::pair<T, T>> check_arr(rand_arr, rand_arr + N);
start = currentSeconds();
SIMDSort(N, soln_arr);
end = currentSeconds();
std::sort(check_arr.begin(), check_arr.end(), [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
for (int i = 0; i < N; i++) {
EXPECT_EQ(check_arr[i].first, soln_arr[i].first);
EXPECT_EQ(kv_map[soln_arr[i].second], soln_arr[i].first);
}
printf("[avx256::sort] %lu elements: %.8f seconds\n", N, end - start);
delete rand_arr;
delete soln_arr;
}
TEST(SIMDSortTests, AVX256SIMDOrderBy3232BitIntTest) {
using T = int;
size_t N = NNUM;
T lo = LO;
T hi = HI;
std::pair<T, T> *rand_arr;
std::pair<T, T> *soln_arr1, *soln_arr2, *input_arr1, *input_arr2;
double start, end;
// Initialization
TestUtil::RandGenIntEntries(rand_arr, N, lo, hi);
aligned_init<std::pair<T, T>>(input_arr1, N);
aligned_init<std::pair<T, T>>(soln_arr1, N);
std::copy(rand_arr, rand_arr + N, input_arr1);
std::vector<std::pair<T, T>> check_arr1(rand_arr, rand_arr + N);
start = currentSeconds();
SIMDOrderBy32(soln_arr1, N, input_arr1);
end = currentSeconds();
std::sort(check_arr1.begin(), check_arr1.end(), [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
for (int i = 0; i < N; i++) {
EXPECT_EQ(check_arr1[i].first, soln_arr1[i].first);
}
aligned_init<std::pair<T, T>>(input_arr2, N);
aligned_init<std::pair<T, T>>(soln_arr2, N);
std::copy(rand_arr, rand_arr + N, input_arr2);
std::vector<std::pair<T, T>> check_arr2(rand_arr, rand_arr + N);
SIMDOrderBy32(soln_arr2, N, input_arr2, 1);
std::sort(check_arr2.begin(), check_arr2.end(), [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.second < right.second;
});
for (int i = 0; i < N; i++) {
EXPECT_EQ(check_arr2[i].second, soln_arr2[i].second);
}
printf("[avx256::orderby] %lu elements: %.8f seconds\n", N, end - start);
delete rand_arr;
delete soln_arr1;
delete soln_arr2;
}
TEST(SIMDSortTests, AVX256SIMDOrderBy6432BitIntTest) {
using T = int;
size_t N = NNUM;
T lo = LO;
T hi = HI;
std::pair<T, T> *rand_arr;
std::pair<T, T> *soln_arr1, *soln_arr2, *input_arr1, *input_arr2;
double start, end;
// Initialization
TestUtil::RandGenIntEntries(rand_arr, N, lo, hi);
aligned_init<std::pair<T, T>>(input_arr1, N);
aligned_init<std::pair<T, T>>(soln_arr1, N);
std::copy(rand_arr, rand_arr + N, input_arr1);
std::vector<std::pair<T, T>> check_arr1(rand_arr, rand_arr + N);
start = currentSeconds();
SIMDOrderBy64(soln_arr1, N, input_arr1);
end = currentSeconds();
std::sort(check_arr1.begin(), check_arr1.end(), [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
for (int i = 0; i < N; i++) {
EXPECT_EQ(check_arr1[i].first, soln_arr1[i].first);
}
aligned_init<std::pair<T, T>>(input_arr2, N);
aligned_init<std::pair<T, T>>(soln_arr2, N);
std::copy(rand_arr, rand_arr + N, input_arr2);
std::vector<std::pair<T, T>> check_arr2(rand_arr, rand_arr + N);
SIMDOrderBy64(soln_arr2, N, input_arr2, 1);
std::sort(check_arr2.begin(), check_arr2.end(), [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.second < right.second;
});
for (int i = 0; i < N; i++) {
EXPECT_EQ(check_arr2[i].second, soln_arr2[i].second);
}
printf("[avx256::orderby] %lu elements: %.8f seconds\n", N, end - start);
delete rand_arr;
delete soln_arr1;
delete soln_arr2;
}
TEST(SIMDSortTests, AVX256SIMDSort64BitKeyValueIntTest) {
using T = int64_t;
size_t N = NNUM;
T lo = LO;
T hi = HI;
std::pair<T, T> *rand_arr;
std::pair<T, T> *soln_arr;
double start, end;
// Initialization
TestUtil::RandGenIntRecords(rand_arr, N, lo, hi);
std::map<T, T> kv_map;
for (int i = 0; i < N; ++i) {
kv_map.insert(std::pair<T, T>(rand_arr[i].second, rand_arr[i].first));
}
// C++ std::stable_sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::stable_sort(soln_arr, soln_arr + N, [](const std::pair<T, T> &left, const std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[std::stable_sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ std::sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::sort(soln_arr, soln_arr + N, [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[std::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// ips4o::sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
ips4o::sort(soln_arr, soln_arr + N, [](const std::pair<T, T> &left, const std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[ips4o::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// pdqsort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
pdqsort(soln_arr, soln_arr + N, [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[pdqsort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// AVX256 sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
std::vector<std::pair<T, T>> check_arr(rand_arr, rand_arr + N);
start = currentSeconds();
SIMDSort(N, soln_arr);
end = currentSeconds();
std::sort(check_arr.begin(), check_arr.end(), [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
for (int i = 0; i < N; i++) {
EXPECT_EQ(check_arr[i].first, soln_arr[i].first);
EXPECT_EQ(kv_map[soln_arr[i].second], soln_arr[i].first);
}
printf("[avx256::sort] %lu elements: %.8f seconds\n", N, end - start);
delete rand_arr;
delete soln_arr;
}
TEST(SIMDSortTests, AVX256SIMDSort32BitKeyValueFloatTest) {
using T = float;
size_t N = NNUM;
T lo = LO;
T hi = HI;
std::pair<T, T> *rand_arr;
std::pair<T, T> *soln_arr;
double start, end;
// Initialization
TestUtil::RandGenFloatRecords(rand_arr, N, lo, hi);
std::map<T, T> kv_map;
for (int i = 0; i < N; ++i) {
kv_map.insert(std::pair<T, T>(rand_arr[i].second, rand_arr[i].first));
}
// C++ std::stable_sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::stable_sort(soln_arr, soln_arr + N, [](const std::pair<T, T> &left, const std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[std::stable_sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ std::sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::sort(soln_arr, soln_arr + N, [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[std::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// ips4o::sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
ips4o::sort(soln_arr, soln_arr + N, [](const std::pair<T, T> &left, const std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[ips4o::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// pdqsort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
pdqsort(soln_arr, soln_arr + N, [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[pdqsort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// AVX256 sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
std::vector<std::pair<T, T>> check_arr(rand_arr, rand_arr + N);
start = currentSeconds();
SIMDSort(N, soln_arr);
end = currentSeconds();
std::sort(check_arr.begin(), check_arr.end(), [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
for (int i = 0; i < N; i++) {
EXPECT_EQ(check_arr[i].first, soln_arr[i].first);
EXPECT_EQ(kv_map[soln_arr[i].second], soln_arr[i].first);
}
printf("[avx256::sort] %lu elements: %.8f seconds\n", N, end - start);
delete rand_arr;
delete soln_arr;
}
TEST(SIMDSortTests, AVX256SIMDSort64BitKeyValueFloatTest) {
using T = double;
size_t N = NNUM;
T lo = LO;
T hi = HI;
std::pair<T, T> *rand_arr;
std::pair<T, T> *soln_arr;
double start, end;
// Initialization
TestUtil::RandGenFloatRecords(rand_arr, N, lo, hi);
std::map<T, T> kv_map;
for (int i = 0; i < N; ++i) {
kv_map.insert(std::pair<T, T>(rand_arr[i].second, rand_arr[i].first));
}
// C++ std::stable_sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::stable_sort(soln_arr, soln_arr + N, [](const std::pair<T, T> &left, const std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[std::stable_sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// C++ std::sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
std::sort(soln_arr, soln_arr + N, [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[std::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// ips4o::sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
ips4o::sort(soln_arr, soln_arr + N, [](const std::pair<T, T> &left, const std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[ips4o::sort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// pdqsort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
start = currentSeconds();
pdqsort(soln_arr, soln_arr + N, [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
end = currentSeconds();
printf("[pdqsort] %lu elements: %.8f seconds\n", N, end - start);
delete soln_arr;
// AVX256 sort
aligned_init<std::pair<T, T>>(soln_arr, N);
std::copy(rand_arr, rand_arr + N, soln_arr);
std::vector<std::pair<T, T>> check_arr(rand_arr, rand_arr + N);
start = currentSeconds();
SIMDSort(N, soln_arr);
end = currentSeconds();
std::sort(check_arr.begin(), check_arr.end(), [](std::pair<T, T> &left, std::pair<T, T> &right) {
return left.first < right.first;
});
for (int i = 0; i < N; i++) {
EXPECT_EQ(check_arr[i].first, soln_arr[i].first);
EXPECT_EQ(kv_map[soln_arr[i].second], soln_arr[i].first);
}
printf("[avx256::sort] %lu elements: %.8f seconds\n", N, end - start);
delete rand_arr;
delete soln_arr;
}
} | 32.013514 | 106 | 0.642887 | [
"vector"
] |
48010edaf2aaca19f2f3268496e3b9795d729875 | 3,828 | cpp | C++ | aws-cpp-sdk-voice-id/source/model/ConflictType.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-voice-id/source/model/ConflictType.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-voice-id/source/model/ConflictType.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/voice-id/model/ConflictType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace VoiceID
{
namespace Model
{
namespace ConflictTypeMapper
{
static const int ANOTHER_ACTIVE_STREAM_HASH = HashingUtils::HashString("ANOTHER_ACTIVE_STREAM");
static const int DOMAIN_NOT_ACTIVE_HASH = HashingUtils::HashString("DOMAIN_NOT_ACTIVE");
static const int CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT_HASH = HashingUtils::HashString("CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT");
static const int ENROLLMENT_ALREADY_EXISTS_HASH = HashingUtils::HashString("ENROLLMENT_ALREADY_EXISTS");
static const int SPEAKER_NOT_SET_HASH = HashingUtils::HashString("SPEAKER_NOT_SET");
static const int SPEAKER_OPTED_OUT_HASH = HashingUtils::HashString("SPEAKER_OPTED_OUT");
static const int CONCURRENT_CHANGES_HASH = HashingUtils::HashString("CONCURRENT_CHANGES");
ConflictType GetConflictTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == ANOTHER_ACTIVE_STREAM_HASH)
{
return ConflictType::ANOTHER_ACTIVE_STREAM;
}
else if (hashCode == DOMAIN_NOT_ACTIVE_HASH)
{
return ConflictType::DOMAIN_NOT_ACTIVE;
}
else if (hashCode == CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT_HASH)
{
return ConflictType::CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT;
}
else if (hashCode == ENROLLMENT_ALREADY_EXISTS_HASH)
{
return ConflictType::ENROLLMENT_ALREADY_EXISTS;
}
else if (hashCode == SPEAKER_NOT_SET_HASH)
{
return ConflictType::SPEAKER_NOT_SET;
}
else if (hashCode == SPEAKER_OPTED_OUT_HASH)
{
return ConflictType::SPEAKER_OPTED_OUT;
}
else if (hashCode == CONCURRENT_CHANGES_HASH)
{
return ConflictType::CONCURRENT_CHANGES;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ConflictType>(hashCode);
}
return ConflictType::NOT_SET;
}
Aws::String GetNameForConflictType(ConflictType enumValue)
{
switch(enumValue)
{
case ConflictType::ANOTHER_ACTIVE_STREAM:
return "ANOTHER_ACTIVE_STREAM";
case ConflictType::DOMAIN_NOT_ACTIVE:
return "DOMAIN_NOT_ACTIVE";
case ConflictType::CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT:
return "CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT";
case ConflictType::ENROLLMENT_ALREADY_EXISTS:
return "ENROLLMENT_ALREADY_EXISTS";
case ConflictType::SPEAKER_NOT_SET:
return "SPEAKER_NOT_SET";
case ConflictType::SPEAKER_OPTED_OUT:
return "SPEAKER_OPTED_OUT";
case ConflictType::CONCURRENT_CHANGES:
return "CONCURRENT_CHANGES";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace ConflictTypeMapper
} // namespace Model
} // namespace VoiceID
} // namespace Aws
| 36.113208 | 138 | 0.652299 | [
"model"
] |
4801b1ff59b8cef0c8a6fd772dfcccffaed9607a | 5,871 | cpp | C++ | src/SharedDVFSManager.cpp | wilseypa/warped | 8842cf88b11213b6b69e53de5e969c4e3c2c8bd5 | [
"MIT"
] | 12 | 2015-03-13T09:58:25.000Z | 2021-09-23T11:48:42.000Z | src/SharedDVFSManager.cpp | wilseypa/warped | 8842cf88b11213b6b69e53de5e969c4e3c2c8bd5 | [
"MIT"
] | 1 | 2015-12-09T05:21:44.000Z | 2015-12-17T19:37:12.000Z | src/SharedDVFSManager.cpp | wilseypa/warped | 8842cf88b11213b6b69e53de5e969c4e3c2c8bd5 | [
"MIT"
] | null | null | null | #include <iostream> // for basic_ostream::operator<<, etc
#include "CommunicationManager.h" // for CommunicationManager
#include "KernelMessage.h" // for KernelMessage
#include "SharedDVFSManager.h"
#include "UsefulWorkMessage.h" // for UsefulWorkMessage, etc
#include "warped.h" // for ASSERT
class SimulationConfiguration;
using namespace std;
SharedDVFSManager::SharedDVFSManager(TimeWarpSimulationManager* simMgr,
int measurementPeriod,
int firsize,
Algorithm alg,
bool debug,
UsefulWorkMetric uwm,
double threshold)
:DVFSManagerImplementationBase(simMgr,
measurementPeriod,
firsize,
alg,
debug,
uwm,
threshold)
,myCPUs(myNumSimulationManagers)
{}
SharedDVFSManager::~SharedDVFSManager() {
//setGovernorMode(myCPU, "ondemand");
}
void
SharedDVFSManager::poll() {
if (checkMeasurementPeriod()) {
// initiate the measurement cycle
if (isMaster()) {
int dest = (mySimulationManagerID + 1) % myNumSimulationManagers;
UsefulWorkMessage* msg = new UsefulWorkMessage(mySimulationManagerID,
dest,
myNumSimulationManagers,
UsefulWorkMessage::COLLECT);
myCommunicationManager->sendMessage(msg, dest);
}
}
}
void
SharedDVFSManager::registerWithCommunicationManager() {
myCommunicationManager->registerMessageType(UsefulWorkMessage::dataType(), this);
}
void
SharedDVFSManager::configure(SimulationConfiguration& config) {
// populate available frequencies and our CPU id, set userspace governor
DVFSManagerImplementationBase::configure(config);
// initialize the frequency index array now that we know how many
// frequencies are available
int maxidx = myAvailableFreqs.size() - 1;
// build the frequency index array based on the number of P states available
initializeFrequencyIdxs(maxidx);
// initialize my frequency to the median frequency
int freq = myAvailableFreqs[maxidx / 2];
cout << "(" << mySimulationManagerID << "): bound to PE " << myCPU
<< "; initializing freq to " << freq << endl;
setGovernorMode(myCPU, "userspace");
setCPUFrequency(myCPU, freq);
if (isMaster()) {
myCPUs[0] = myCPU;
UsefulWorkMessage* uwm = new UsefulWorkMessage(0,
1,
myNumSimulationManagers,
UsefulWorkMessage::CIRCULATECPU);
myCommunicationManager->sendMessage(uwm, 1);
}
}
void
SharedDVFSManager::receiveKernelMessage(KernelMessage* kMsg) {
UsefulWorkMessage* msg = dynamic_cast<UsefulWorkMessage*>(kMsg);
ASSERT(msg);
std::vector<double> dat;
msg->getData(dat);
if (msg->getRound() == UsefulWorkMessage::CIRCULATECPU) {
if (isMaster()) {
for (int i = 1; i < myCPUs.size(); i++)
{ myCPUs[i] = static_cast<int>(dat[i]); }
} else {
dat[mySimulationManagerID] = static_cast<double>(myCPU);
int dest = (mySimulationManagerID + 1) % myNumSimulationManagers;
UsefulWorkMessage* newMsg = new UsefulWorkMessage(mySimulationManagerID,
dest,
myNumSimulationManagers,
UsefulWorkMessage::CIRCULATECPU);
newMsg->setData(dat);
myCommunicationManager->sendMessage(newMsg, dest);
}
delete msg;
return;
}
// add our useful work index to the array
fillUsefulWork(dat);
if (isMaster()) {
// update FIR filters with data. if we're the master, then we know
// dat has all the current useful work indexes of all other LPs
for (int i = 0; i < dat.size(); ++i)
{ myUtilFilters[i].update(dat[i]); }
// if we're not staying at a fixed frequency, and the frequency indexes
// have changed, then set the new cpu frequencies
if (!isDummy() && updateFrequencyIdxs())
for (int i=0; i < myFrequencyIdxs.size(); i++)
{ setCPUFrequency(myCPUs[i], myAvailableFreqs[myFrequencyIdxs[i]]); }
// write trace to csv
if (debugPrint())
for (int i=0; i < myFrequencyIdxs.size(); i++)
writeCSVRow(i,
myUtilFilters[i].getData(),
myAvailableFreqs[myFrequencyIdxs[i]]);
} else {
// send the useful work array on to the next simulation manager
int dest = (mySimulationManagerID + 1) % myNumSimulationManagers;
UsefulWorkMessage* newMsg = new UsefulWorkMessage(mySimulationManagerID,
dest,
myNumSimulationManagers,
UsefulWorkMessage::COLLECT);
newMsg->setData(dat);
myCommunicationManager->sendMessage(newMsg, dest);
}
delete kMsg;
}
string
SharedDVFSManager::toString() {
return "Shared DVFS, " + DVFSManagerImplementationBase::toString();
}
| 38.880795 | 95 | 0.535343 | [
"vector"
] |
480446bb8b7fc140ed6e54568cd4dc3d8a9c520a | 1,397 | cpp | C++ | src/onyx/audio/AudioSource.cpp | thebigcx/Onyx | e063fc7d1c463907ddd60e48cc82d3e533f1e887 | [
"Apache-2.0"
] | null | null | null | src/onyx/audio/AudioSource.cpp | thebigcx/Onyx | e063fc7d1c463907ddd60e48cc82d3e533f1e887 | [
"Apache-2.0"
] | null | null | null | src/onyx/audio/AudioSource.cpp | thebigcx/Onyx | e063fc7d1c463907ddd60e48cc82d3e533f1e887 | [
"Apache-2.0"
] | null | null | null | #include <onyx/audio/AudioSource.h>
#include <onyx/audio/Audio.h>
#include <onyx/scene/GameObject.h>
#include <onyx/scene/Transform.h>
#include <onyx/core/Game.h>
#include <onyx/scene/Camera.h>
#include <onyx/scene/Scene.h>
#include <onyx/audio/AudioBuffer.h>
#include <onyx/core/AssetManager.h>
#include <AL/al.h>
namespace Onyx
{
AudioSource::AudioSource()
{
alGenSources(1, &m_id);
}
AudioSource::AudioSource(const std::string& path)
{
alGenSources(1, &m_id);
setFile(path);
}
AudioSource::~AudioSource()
{
alDeleteSources(1, &m_id);
}
void AudioSource::update(float dt)
{
auto transform = object->getTransform();
alSourcefv(m_id, AL_POSITION, &transform->translation.x);
auto camera = Game::getInstance()->getScene()->getCamera();
alListenerfv(AL_POSITION, &camera->transform.translation.x);
}
void AudioSource::setFile(const std::string& path)
{
m_buffer = AssetManager::getInstance()->getAudio(path);
alSourcei(m_id, AL_BUFFER, m_buffer->m_id);
}
void AudioSource::setBuffer(const std::shared_ptr<AudioBuffer>& buffer)
{
m_buffer = buffer;
alSourcei(m_id, AL_BUFFER, m_buffer->m_id);
}
void AudioSource::play() const
{
alSourcePlay(m_id);
}
void AudioSource::pause() const
{
alSourcePause(m_id);
}
void AudioSource::stop() const
{
alSourceStop(m_id);
}
void AudioSource::rewind() const
{
alSourceRewind(m_id);
}
} | 19.136986 | 71 | 0.705082 | [
"object",
"transform"
] |
48056872e6a73b6711520d68c41df5e695c7397a | 16,974 | cpp | C++ | src/qtxml/Uicreator/qt_uicommand_executor.cpp | linson7017/qtframework | ad99883bd7e98f7b2cb97078def7252afa11ff6d | [
"Apache-2.0"
] | 6 | 2017-04-10T14:50:57.000Z | 2019-03-31T07:15:56.000Z | src/qtxml/Uicreator/qt_uicommand_executor.cpp | linson7017/qtframework | ad99883bd7e98f7b2cb97078def7252afa11ff6d | [
"Apache-2.0"
] | null | null | null | src/qtxml/Uicreator/qt_uicommand_executor.cpp | linson7017/qtframework | ad99883bd7e98f7b2cb97078def7252afa11ff6d | [
"Apache-2.0"
] | 2 | 2018-03-09T07:05:47.000Z | 2021-07-04T08:48:34.000Z | #include "qt_uicommand_executor.h"
#include "UIs/Activity.h"
#include "Uicreator/ui_node.h"
#include "Uicreator/xml_node.h"
#include "Uicreator/xml_ui_paser.h"
#include "UIs/CustomActivity.h"
#include "Common/app_env.h"
#include "Common/qt_context.h"
#include "Res/R.h"
#include "Utils/util.h"
#include "Utils/xml_util.h"
#include "Utils/qt_standard.h"
#include "UIs/sl_Button.h"
#include "UIs/sl_MutexButtonBox.h"
#include "Utils/Log.h"
#include <QtGui>
#include <QtWidgets>
#include <QtCore/QVariant>
//构造函数
//参数:无
//返回值:无
qt_uicommand_executor::qt_uicommand_executor(void)
{
}
//析构函数
//参数:无
//返回值:无
qt_uicommand_executor::~qt_uicommand_executor(void)
{
}
//执行命令
//参数:uicommand uicommand类型节点指针, sender 消息发送者
//返回值:是否执行成功
bool qt_uicommand_executor::execute(xml_node* uicommand,ui_node* sender)
{
if (!uicommand||!uicommand->hasAttribute("type"))
{
char szMsg[1024];
sprintf(szMsg, "QtFrameWork ERROR: Please define the type of UICommand \"%s\"\n",uicommand->getAttribute("id"));
printf(szMsg);
return false;
}
std::string type = uicommand->getAttribute("type");
if (strcmp(type.c_str(),"PopDialog")==0||strcmp(type.c_str(),"PopActivity")==0)
{
Activity* activity = NULL;
if (uicommand->hasAttribute("layout"))
{
string layoutfilePaht = app_env::getDir(app_env::LAYOUT);
string layout = uicommand->getAttribute("layout");
layoutfilePaht.append(layout);
//判断是以文件格式还是id来命名layout
if (layout.find(".xml")!=std::string::npos) //如果是以xml文件格式
{
if (fileOrPahtExist(layoutfilePaht.c_str()))
{
ui_node* xmlRoot = new ui_node;
if (xml_util::getXMLFileRoot(layoutfilePaht.c_str(),xmlRoot))
{
string id;
if (!xmlRoot->hasAttribute("id"))
{
id = layout;
removeExtension(id);
activity = R::Instance()->getActivity(id.c_str());
}
else
{
id = xmlRoot->getAttribute("id");
activity = R::Instance()->getActivity(xmlRoot->getAttribute("id"));
}
if (!activity) //如果没有找到则自动创建并以文件名为id
{
if (xmlRoot->hasAttribute("CustomStyle")&&STR_TO_BOOL(xmlRoot->getAttribute("CustomStyle")))
{
activity = new CustomActivity; //默认都是MainActivity的子窗口内
}
else
{
activity = new Activity; //默认都是MainActivity的子窗口内
}
activity->setContentView(layout.c_str());
R::Instance()->addActivity(id.c_str(),activity);
}
}
else
{
char szMsg[1024];
sprintf(szMsg, "QtFrameWork ERROR: In UICommand \"%s\" :file \"%s\" is not exeisted\n",uicommand->getAttribute("id"),layoutfilePaht.c_str());
printf(szMsg);
return false;
}
}
else
{
char szMsg[1024];
sprintf(szMsg, "QtFrameWork ERROR: In UICommand \"%s\" :file \"%s\" is not exeisted\n",uicommand->getAttribute("id"),layoutfilePaht.c_str());
printf(szMsg);
return false;
}
}
else //以id格式
{
activity = R::Instance()->getActivity(layout.c_str());
if (!activity)
return false;
}
if (strcmp(type.c_str(),"PopDialog")==0)
{
activity->setWindowFlags(Qt::Dialog); //以dialog形式显示
}
if (!activity->isVisible())
{
activity->active();
}
}
else
{
if (uicommand->hasAttribute("id"))
{
char szMsg[1024];
sprintf(szMsg, "QtFrameWork ERROR: In UICommand \"%s\":Do not have layout property\n",uicommand->getAttribute("id"));
printf(szMsg);
}else
{
char szMsg[1024];
sprintf(szMsg, "QtFrameWork ERROR: In UICommand:Do not have layout property\n");
printf(szMsg);
}
return false;
}
return true;
}
else if (strcmp(type.c_str(),"CloseDialog")==0)
{
if (uicommand->hasAttribute("activityID"))
{
Activity* activity = R::Instance()->getActivity(uicommand->getAttribute("activityID"));
if (activity)
{
activity->close();
return true;
}
}
else
{
if (!sender)
{
return false;
}
std::string id = sender->getAttribute("id");
if (id.find(".")!=std::string::npos)
{
int i = id.find_first_of(".");
string dialogID = id.substr(0,i);
Activity* activity = R::Instance()->getActivity(dialogID.c_str());
if (activity)
{
activity->close();
return true;
}
}else
{
Activity* activity = R::Instance()->getActivity(id.c_str());
if (activity)
{
activity->close();
return true;
}
}
}
char szMsg[1024];
sprintf(szMsg, "QtFrameWork ERROR: In UICommand %s:Activity not found. The ID of activity to close may not defined.\n",uicommand->getAttribute("id"));
printf(szMsg);
return false;
}
//使一个widget不可用
else if (strcmp(type.c_str(),"DisableWidget")==0)
{
if (uicommand->hasAttribute("widgetID"))
{
QWidget* widget = (QWidget*)R::Instance()->getObjectFromGlobalMap(uicommand->getAttribute("widgetID"));
if (widget)
{
widget->setDisabled(true);
return true;
}
else
return false;
}
else
return false;
}
//使一个widget可用
else if (strcmp(type.c_str(),"EnableWidget")==0)
{
if (uicommand->hasAttribute("widgetID"))
{
QWidget* widget = (QWidget*)R::Instance()->getObjectFromGlobalMap(uicommand->getAttribute("widgetID"));
if (widget)
{
widget->setDisabled(false);
return true;
}
else
return false;
}
else
return false;
}
//弹出一个MessageBox
else if (strcmp(type.c_str(),"PopMessageBox")==0)
{
if (uicommand->hasAttribute("information"))
{
QMessageBox msgBox;
if (sender)
{
msgBox.setParent((QWidget*)sender->getObject());
}
if (uicommand->hasAttribute("title"))
{
msgBox.setWindowTitle(uicommand->getAttribute("title"));
}
msgBox.setInformativeText(uicommand->getAttribute("information"));
msgBox.setStandardButtons(QMessageBox::Yes);
msgBox.setWindowFlags(Qt::Dialog);
msgBox.exec();
return true;
}
else
return false;
}
else if (strcmp(type.c_str(),"ChangeWidgetStyle")==0)
{
if (uicommand->hasAttribute("widgetID"))
{
std::string widgetid = uicommand->getAttribute("widgetID");
QWidget* widget = (QWidget*)R::Instance()->getObjectFromGlobalMap(uicommand->getAttribute("widgetID"));
if (!widget)
{
return false;
}
if (uicommand->hasAttribute("style"))
{
widget->setStyleSheet(getResStyle(uicommand->getAttribute("style")));
}
else
{
return false;
}
return true;
}
else
{
return false;
}
}
else if (strcmp(type.c_str(),"ChangeButtonIcon")==0)
{
if (uicommand->hasAttribute("widgetID")&&uicommand->hasAttribute("icon"))
{
sl_Button* btn = (sl_Button*)R::Instance()->getObjectFromGlobalMap(uicommand->getAttribute("widgetID"));
std::string iconUrl;
getResImageOrIconUrl(iconUrl,uicommand->getAttribute("icon"));
btn->setIcon(iconUrl.c_str());
}
}
else if (strcmp(type.c_str(), "ChangeApplicationStyle") == 0)
{
if (uicommand->hasAttribute("style"))
{
qt_context::setApplicationStyle(uicommand->getAttribute("style"));
return true;
}
else if (sender->getParameter("style").getType()!=variant::UnKnown)
{
QVariant qv;
if (qt_standard::getProperty(sender->getParameter("style").getString(), qv))
{
qt_context::setApplicationStyle(qv.toString().toLocal8Bit().constData());
}
return true;
}
else
return false;
}
else if (strcmp(type.c_str(),"SwitchWidget")==0)
{
if (uicommand->hasAttribute("widgetID"))
{
//QStackedWidget* stackedWidget = (QStackedWidget*)R::Instance()->getObjectFromGlobalMap(uicommand->getAttribute("widgetID"));
QObject* object = (QObject*)R::Instance()->getObjectFromGlobalMap(uicommand->getAttribute("widgetID"));
if (!object)
{
char szMsg[1024];
sprintf(szMsg, "QtFrameWork ERROR: The widget \"%s\" of uicommand \"%s\" does not exist!\n",uicommand->getAttribute("widgetID"),type.c_str());
printf(szMsg);
return false;
}
ui_node* node = (ui_node*)getUINodeFromObject(object);
if (!node)
{
char szMsg[1024];
sprintf(szMsg, "QtFrameWork ERROR: The widget \"%s\" of uicommand \"%s\" does not bind a ui_node!\n",uicommand->getAttribute("widgetID"),type.c_str());
printf(szMsg);
return false;
}
if (strcmp(node->getName(),"StackedWidget")==0)
{
QStackedWidget* stackedWidget = (QStackedWidget*)object;
int curIndex = stackedWidget->currentIndex();
if (uicommand->hasAttribute("index"))
{
int index = STR_TO_INT(uicommand->getAttribute("index"));
if (index==curIndex)
return false;
else
curIndex = index;
}else
{
int num = stackedWidget->count();
if (curIndex>=num-1)
{
curIndex=0;
}else
{
curIndex++;
}
}
stackedWidget->setCurrentIndex(curIndex);
stackedWidget->updateGeometry();
return true;
}
else if (strcmp(node->getName(),"StackedLayout")==0)
{
QStackedLayout* stackedLayout = (QStackedLayout*)object;
int curIndex = stackedLayout->currentIndex();
if (uicommand->hasAttribute("index"))
{
int index = STR_TO_INT(uicommand->getAttribute("index"));
if (index==curIndex)
return false;
else
curIndex = index;
}else
{
int num = stackedLayout->count();
if (curIndex>=num-1)
{
curIndex=0;
}else
{
curIndex++;
}
}
stackedLayout->setCurrentIndex(curIndex);
return true;
}
else
{
char szMsg[1024];
sprintf(szMsg, "QtFrameWork ERROR: The widget \"%s\" of uicommand \"%s\" is not one of the StackedWidget and StackedLayout!\n",uicommand->getAttribute("widgetID"),type.c_str());
printf(szMsg);
return false;
}
}else
{
return false;
}
}
//隐藏id为widgetID的控件,会改变布局
else if (strcmp(type.c_str(),"HideWidget")==0)
{
if (uicommand->hasAttribute("widgetID"))
{
QWidget* widget = (QWidget*)R::Instance()->getObjectFromGlobalMap(uicommand->getAttribute("widgetID"));
if (widget)
{
widget->hide();
}
else
return false;
}
else
return false;
}
//显示id为widgetID的控件,会改变布局
else if (strcmp(type.c_str(),"ShowWidget")==0)
{
if (uicommand->hasAttribute("widgetID"))
{
QWidget* widget = (QWidget*)R::Instance()->getObjectFromGlobalMap(uicommand->getAttribute("widgetID"));
if (widget)
{
widget->show();
return true;
}
else
return false;
}
else
return false;
}
else if (strcmp(type.c_str(), "ToggleWidget") == 0)
{
if (uicommand->hasAttribute("widgetID"))
{
QWidget* widget = (QWidget*)R::Instance()->getObjectFromGlobalMap(uicommand->getAttribute("widgetID"));
if (!widget)
{
return false;
}
if (strcmp(sender->getName(),"Button")==0|| strcmp(sender->getName(), "RadioButton") == 0
|| strcmp(sender->getName(), "CheckBox") == 0 || strcmp(sender->getName(), "ToolButton") == 0)
{
QAbstractButton * btn = (QAbstractButton *)sender->getObject();
if (btn->isCheckable())
{
widget->setVisible(btn->isChecked());
}
else
{
widget->setVisible(!widget->isVisible());
}
}
else if (strcmp(sender->getName(), "Action") == 0)
{
QAction * btn = (QAction *)sender->getObject();
if (btn->isCheckable())
{
widget->setVisible(btn->isChecked());
}
else
{
widget->setVisible(!widget->isVisible());
}
}
else
{
widget->setVisible(!widget->isVisible());
}
if (sender->getParent())
{
ui_node* node = (ui_node*)getUINodeFromObject(widget);
if (node&&strcmp(node->getParent()->getName(), "ToolBox") == 0)
{
QToolBox* tooBox = (QToolBox*)node->getParent()->getObject();
if (widget->isVisible())
{
tooBox->addItem(widget, node->getAttribute("text"));
}
else
{
int index = tooBox->indexOf(widget);
if (index!=-1)
{
tooBox->removeItem(tooBox->indexOf(widget));
}
}
}
}
return true;
}
else
return false;
}
else if (strcmp(type.c_str(),"ResizeWidget")==0)
{
if (uicommand->hasAttribute("widgetID"))
{
QWidget* widget = (QWidget*)R::Instance()->getObjectFromGlobalMap(uicommand->getAttribute("widgetID"));
if (widget)
{
if (uicommand->hasAttribute("width"))
{
widget->setFixedWidth(STR_TO_INT(uicommand->getAttribute("width")));
}
if (uicommand->hasAttribute("height"))
{
widget->setFixedHeight(STR_TO_INT(uicommand->getAttribute("height")));
}
if (uicommand->hasAttribute("size"))
{
std::vector<std::string> sizeVec;
std::string sizeStr = uicommand->getAttribute("size");
splitString(sizeStr,sizeVec,",");
if (sizeVec.size()==2)
{
int w = STR_TO_INT(sizeVec.at(0).c_str());
int h = STR_TO_INT(sizeVec.at(1).c_str());
widget->setFixedSize(w,h);
}
}
}
else
return false;
}
else
return false;
}
else if (strcmp(type.c_str(), "SetParameter") == 0)
{
if (uicommand->hasAttribute("targetID")&&uicommand->hasAttribute("key")&&uicommand->hasAttribute("value"))
{
xml_node* targetNode = R::Instance()->getIdentifiedNode(uicommand->getAttribute("targetID"));
if (targetNode)
{
targetNode->setParameter(uicommand->getAttribute("key"),
variant(uicommand->getAttribute("value")));
}
}
}
else if (strcmp(type.c_str(), "SetProperty") == 0)
{
QObject* targetObject = (QObject*)R::Instance()->getObjectFromGlobalMap(uicommand->getAttribute("targetID"));
if (targetObject&&uicommand->hasAttribute("value") && uicommand->hasAttribute("name"))
{
QVariant v;
if (qt_standard::getProperty(uicommand->getAttribute("value"),v))
{
targetObject->setProperty(uicommand->getAttribute("name"),
v);
}
}
}
else if (strcmp(type.c_str(), "ExistApplication") == 0)
{
qApp->exit();
}
else
{
char szMsg[1024];
sprintf(szMsg, "QtFrameWork ERROR: The type in UICommand \"%s\" is not one of the default type: PopDialog, PopActivity, CloseDialog \
DisableWidget, EnableWidget, PopMessageBox, ChangeWidgetStyle, ChangeButtonIcon, SwitchWidget\n",uicommand->getAttribute("id"));
printf(szMsg);
}
}
//执行xml_node类型命令
//参数:node xml_node对象指针
//返回值:是否执行成功
bool qt_uicommand_executor::executeCommand(xml_node* node)
{
R* r = R::Instance();
if (!node->hasAttribute("uicommand"))
{
return false;
}
ui_node* uinode = dynamic_cast<ui_node*>(node);
std::string res = node->getAttribute("uicommand");
if (res.find("@uicommand/")!=std::string::npos)
{
int i = res.find_first_of("@uicommand/");
res = res.substr(i+11);
}
else
{
char szMsg[1024];
sprintf(szMsg, "QtFrameWork ERROR: UICommand \"%s\" does not exist! Please check if you have defined it exactly in form \"uicommand=@uicommand/XXX \"\n",res.c_str());
printf(szMsg);
return false;
}
xml_node* uicommand = (xml_node*)R::Instance()->getCommandResource(res.c_str());
if (!uicommand)
{
char szMsg[1024];
sprintf(szMsg, "QtFrameWork ERROR: UICommand \"%s\" does not exist! Please check if you have defined it in res/uicommands~\n",res.c_str());
printf(szMsg);
return false;
}
//处理单个命令
if (strcmp(uicommand->getName(),"UICommand")==0)
{
return execute(uicommand, uinode);
}
//处理多个命令
else if (strcmp(uicommand->getName(), "Commands") == 0)
{
int commandNum = uicommand->getChildNum();
for (int i = 0; i < commandNum; i++)
{
xml_node* command = uicommand->getChild(i);
if (strcmp(command->getName(), "UICommand") == 0)
{
execute(command, uinode);
}
}
return true;
}
return false;
} | 28.242928 | 181 | 0.578826 | [
"object",
"vector"
] |
480cf8d298e18ac9dccc98c094c500fa39382c22 | 31,377 | hpp | C++ | include/rift/io.hpp | reverbrain/rift | 1dc80321168bf9d2a34bb368f1b1caffcfd06793 | [
"Apache-2.0"
] | 9 | 2015-01-22T09:07:37.000Z | 2021-03-22T21:16:49.000Z | include/rift/io.hpp | reverbrain/rift | 1dc80321168bf9d2a34bb368f1b1caffcfd06793 | [
"Apache-2.0"
] | 3 | 2015-01-22T08:53:46.000Z | 2017-08-03T22:12:39.000Z | include/rift/io.hpp | reverbrain/rift | 1dc80321168bf9d2a34bb368f1b1caffcfd06793 | [
"Apache-2.0"
] | 2 | 2017-02-17T10:06:19.000Z | 2017-12-28T13:20:42.000Z | #ifndef __IOREMAP_RIFT_IO_HPP
#define __IOREMAP_RIFT_IO_HPP
// must be the first, since thevoid internally uses X->boost::buffer conversion,
// which must be present at compile time
#include "rift/asio.hpp"
#include "rift/jsonvalue.hpp"
#include "rift/bucket.hpp"
#include <swarm/url.hpp>
#include <swarm/url_query.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
namespace ioremap { namespace rift { namespace io {
static inline elliptics::data_pointer create_data(const boost::asio::const_buffer &buffer)
{
return elliptics::data_pointer::from_raw(
const_cast<char *>(boost::asio::buffer_cast<const char*>(buffer)),
boost::asio::buffer_size(buffer)
);
}
// read data object
template <typename Server, typename Stream>
class on_get_base : public bucket_processing<Server, Stream>
{
public:
virtual void checked(const swarm::http_request &req, const boost::asio::const_buffer &buffer,
const bucket_meta_raw &meta, swarm::http_response::status_type verdict) {
const auto &query = req.url().query();
this->log(swarm::SWARM_LOG_NOTICE, "get-base: checked: url: %s, flags: 0x%lx, verdict: %d",
query.to_string().c_str(), meta.flags, verdict);
if ((verdict != swarm::http_response::ok) && !meta.noauth_read()) {
this->send_reply(verdict);
return;
}
(void) buffer;
elliptics::key key;
elliptics::session session = this->server()->extract_key(req, meta, key);
session.set_timeout(this->server()->elliptics()->read_timeout());
this->server()->check_cache(key, session);
size_t offset = 0;
size_t size = 0;
try {
offset = query.item_value("offset", 0llu);
size = query.item_value("size", 0llu);
} catch (std::exception &e) {
this->log(swarm::SWARM_LOG_ERROR, "get-base: checked: url: %s, flags: 0x%lx, "
"invalid size/offset cast: %s", query.to_string().c_str(), meta.flags, e.what());
this->send_reply(swarm::http_response::bad_request);
return;
}
session.read_data(key, offset, size).connect(std::bind(
&on_get_base::on_read_finished, this->shared_from_this(),
std::placeholders::_1, std::placeholders::_2));
}
virtual void on_read_finished(const elliptics::sync_read_result &result,
const elliptics::error_info &error) {
if (error.code() == -ENOENT) {
this->send_reply(swarm::http_response::not_found);
return;
} else if (error) {
this->send_reply(swarm::http_response::service_unavailable);
return;
}
const elliptics::read_result_entry &entry = result[0];
elliptics::data_pointer file = entry.file();
const dnet_time &ts = entry.io_attribute()->timestamp;
const swarm::http_request &request = this->request();
if (auto tmp = request.headers().if_modified_since()) {
if ((time_t)ts.tsec <= *tmp) {
this->send_reply(swarm::http_response::not_modified);
return;
}
}
if (auto tmp = request.headers().get("Range")) {
std::string range = *tmp;
this->log(swarm::SWARM_LOG_DATA, "GET, Range: \"%s\"", range.c_str());
if (range.compare(0, 6, "bytes=") == 0) {
range.erase(range.begin(), range.begin() + 6);
std::vector<std::string> ranges;
boost::split(ranges, range, boost::is_any_of(","));
if (ranges.size() == 1)
on_range(ranges[0], file, ts);
else
on_ranges(ranges, file, ts);
return;
}
}
swarm::http_response reply;
reply.set_code(swarm::http_response::ok);
reply.headers().set_content_length(file.size());
reply.headers().set_content_type("application/octet-stream");
reply.headers().set_last_modified(ts.tsec);
this->send_reply(std::move(reply), std::move(file));
}
bool parse_range(const std::string &range, size_t data_size, size_t &begin, size_t &end) {
begin = 0;
end = data_size - 1;
if (range.size() <= 1)
return false;
try {
const auto separator = range.find('-');
if (separator == std::string::npos)
return false;
if (separator == 0) {
auto tmp = boost::lexical_cast<size_t>(range.substr(separator + 1));
if (tmp > data_size)
begin = 0;
else
begin = data_size - tmp;
} else {
if (separator > 0)
begin = boost::lexical_cast<size_t>(range.substr(0, separator));
if (separator + 1 < range.size())
end = boost::lexical_cast<size_t>(range.substr(separator + 1));
}
} catch (...) {
return false;
}
if (begin > end)
return false;
if (begin >= data_size)
return false;
end = std::min(data_size - 1, end);
return true;
}
std::string create_content_range(size_t begin, size_t end, size_t data_size) {
std::string result = "bytes ";
result += boost::lexical_cast<std::string>(begin);
result += "-";
result += boost::lexical_cast<std::string>(end);
result += "/";
result += boost::lexical_cast<std::string>(data_size);
return result;
}
virtual void on_range(const std::string &range, const elliptics::data_pointer &data, const dnet_time &ts) {
size_t begin;
size_t end;
if (!parse_range(range, data.size(), begin, end)) {
this->send_reply(swarm::http_response::requested_range_not_satisfiable);
return;
}
auto data_part = data.slice(begin, end + 1 - begin);
swarm::http_response reply;
reply.set_code(swarm::http_response::partial_content);
reply.headers().set_content_type("application/octet-stream");
reply.headers().set_last_modified(ts.tsec);
reply.headers().add("Accept-Ranges", "bytes");
reply.headers().add("Content-Range", create_content_range(begin, end, data.size()));
reply.headers().set_content_length(data_part.size());
this->send_reply(std::move(reply), std::move(data_part));
}
struct range_info {
size_t begin;
size_t end;
};
virtual void on_ranges(const std::vector<std::string> &ranges_str, const elliptics::data_pointer &data,
const dnet_time &ts) {
std::vector<range_info> ranges;
for (auto it = ranges_str.begin(); it != ranges_str.end(); ++it) {
range_info info;
if (parse_range(*it, data.size(), info.begin, info.end))
ranges.push_back(info);
}
if (ranges.empty()) {
this->send_reply(swarm::http_response::requested_range_not_satisfiable);
return;
}
char boundary[17];
for (size_t i = 0; i < 2; ++i) {
uint32_t tmp = rand();
sprintf(boundary + i * 8, "%08X", tmp);
}
std::string result;
for (auto it = ranges.begin(); it != ranges.end(); ++it) {
result += "--";
result += boundary;
result += "\r\n"
"Content-Type: text/plain\r\n"
"Content-Range: ";
result += create_content_range(it->begin, it->end, data.size());
result += "\r\n\r\n";
result += data.slice(it->begin, it->end + 1 - it->begin).to_string();
result += "\r\n";
}
result += "--";
result += boundary;
result += "--\r\n";
swarm::http_response reply;
reply.set_code(swarm::http_response::partial_content);
reply.headers().set_content_type(std::string("multipart/byteranges; boundary=") + boundary);
reply.headers().set_last_modified(ts.tsec);
reply.headers().add("Accept-Ranges", "bytes");
reply.headers().set_content_length(result.size());
this->send_reply(std::move(reply), std::move(result));
}
};
template <typename Server>
class on_get : public on_get_base<Server, on_get<Server>>
{
public:
};
class upload_completion {
public:
template <typename Allocator>
static void fill_upload_reply(const elliptics::write_result_entry &entry,
rapidjson::Value &result_object, Allocator &allocator) {
char id_str[2 * DNET_ID_SIZE + 1];
dnet_dump_id_len_raw(entry.command()->id.id, DNET_ID_SIZE, id_str);
rapidjson::Value id_str_value(id_str, 2 * DNET_ID_SIZE, allocator);
result_object.AddMember("id", id_str_value, allocator);
char csum_str[2 * DNET_ID_SIZE + 1];
dnet_dump_id_len_raw(entry.file_info()->checksum, DNET_ID_SIZE, csum_str);
rapidjson::Value csum_str_value(csum_str, 2 * DNET_ID_SIZE, allocator);
result_object.AddMember("csum", csum_str_value, allocator);
if (entry.file_path())
result_object.AddMember("filename", entry.file_path(), allocator);
result_object.AddMember("size", entry.file_info()->size, allocator);
result_object.AddMember("offset-within-data-file", entry.file_info()->offset,
allocator);
rapidjson::Value tobj;
JsonValue::set_time(tobj, allocator,
entry.file_info()->mtime.tsec,
entry.file_info()->mtime.tnsec / 1000);
result_object.AddMember("mtime", tobj, allocator);
char addr_str[128];
dnet_server_convert_dnet_addr_raw(entry.storage_address(), addr_str, sizeof(addr_str));
rapidjson::Value server_addr(addr_str, strlen(addr_str), allocator);
result_object.AddMember("server", server_addr, allocator);
}
template <typename Allocator>
static void fill_upload_reply(const elliptics::sync_write_result &result,
rapidjson::Value &result_object, Allocator &allocator) {
rapidjson::Value infos;
infos.SetArray();
for (auto it = result.begin(); it != result.end(); ++it) {
rapidjson::Value download_info;
download_info.SetObject();
fill_upload_reply(*it, download_info, allocator);
infos.PushBack(download_info, allocator);
}
result_object.AddMember("info", infos, allocator);
}
typedef std::function<void (const swarm::http_response::status_type, const std::string &)>
upload_completion_callback_t;
static void upload_update_indexes(const elliptics::session &data_session, const bucket_meta_raw &meta,
const elliptics::key &key, const elliptics::sync_write_result &write_result,
const upload_completion_callback_t &callback) {
std::vector<std::string> indexes;
indexes.push_back(meta.key + ".index");
msgpack::sbuffer buf;
bucket_meta_index_data index_data;
index_data.key = key.to_string();
msgpack::pack(buf, index_data);
std::vector<elliptics::data_pointer> datas;
datas.emplace_back(elliptics::data_pointer::copy(buf.data(), buf.size()));
elliptics::session session = data_session;
// only update indexes in non-cached groups
if (meta.groups.size()) {
session.set_groups(meta.groups);
}
session.update_indexes(key, indexes, datas).connect(
std::bind(&upload_completion::on_index_update_finished,
write_result, callback, std::placeholders::_1, std::placeholders::_2));
}
static void on_index_update_finished(const elliptics::sync_write_result &write_result,
const upload_completion_callback_t &callback,
const elliptics::sync_set_indexes_result &result, const elliptics::error_info &error) {
(void) result;
if (error) {
callback(swarm::http_response::internal_server_error, std::string());
return;
}
rift::JsonValue result_object;
upload_completion::fill_upload_reply(write_result, result_object, result_object.GetAllocator());
auto data = result_object.ToString();
callback(swarm::http_response::ok, data);
}
};
// write data object, get file-info json in response
template <typename Server, typename Stream>
class on_upload_base : public bucket_processing<Server, Stream>
{
public:
virtual void checked(const swarm::http_request &req, const boost::asio::const_buffer &buffer,
const bucket_meta_raw &meta, swarm::http_response::status_type verdict) {
auto data = elliptics::data_pointer::from_raw(
const_cast<char *>(boost::asio::buffer_cast<const char*>(buffer)),
boost::asio::buffer_size(buffer));
const auto &query = req.url().query();
this->log(swarm::SWARM_LOG_NOTICE, "upload-base: checked: url: %s, flags: 0x%lx, verdict: %d",
query.to_string().c_str(), meta.flags, verdict);
if ((verdict != swarm::http_response::ok) && !meta.noauth_all()) {
this->send_reply(verdict);
return;
}
(void) buffer;
m_req = req;
m_meta = meta;
m_session.reset(new elliptics::session(this->server()->extract_key(req, meta, m_key)));
m_session->set_timeout(this->server()->elliptics()->write_timeout());
this->server()->check_cache(m_key, *m_session);
try {
write_data(req, *m_session, m_key, data).connect(
std::bind(&on_upload_base::on_write_finished, this->shared_from_this(),
std::placeholders::_1, std::placeholders::_2));
} catch (std::exception &e) {
this->log(swarm::SWARM_LOG_NOTICE, "post-base: checked-write: url: %s, flags: 0x%lx, exception: %s",
query.to_string().c_str(), meta.flags, e.what());
this->send_reply(swarm::http_response::bad_request);
}
}
elliptics::async_write_result write_data(
const swarm::http_request &req,
elliptics::session &sess,
const elliptics::key &key,
const elliptics::data_pointer &data) {
const auto &query = req.url().query();
sess.set_timeout(this->server()->elliptics()->write_timeout());
size_t offset = query.item_value("offset", 0llu);
if (auto tmp = query.item_value("prepare")) {
size_t size = boost::lexical_cast<size_t>(*tmp);
return sess.write_prepare(key, data, offset, size);
} else if (auto tmp = query.item_value("commit")) {
size_t size = boost::lexical_cast<size_t>(*tmp);
return sess.write_commit(key, data, offset, size);
} else if (query.has_item("plain-write")) {
return sess.write_plain(key, data, offset);
} else {
return sess.write_data(key, data, offset);
}
}
void completion(const swarm::http_response::status_type &status, const std::string &data) {
if (status != swarm::http_response::ok) {
this->send_reply(status);
return;
}
swarm::http_response reply;
reply.set_code(swarm::http_response::ok);
reply.headers().set_content_type("text/json");
reply.headers().set_content_length(data.size());
this->log(swarm::SWARM_LOG_NOTICE, "post-base: completion: key: %s, ns: %s, flags: 0x%lx",
m_key.to_string().c_str(), m_meta.key.c_str(), m_meta.flags);
this->send_reply(std::move(reply), std::move(data));
}
virtual void on_write_finished(const elliptics::sync_write_result &result,
const elliptics::error_info &error) {
if (error) {
this->send_reply(swarm::http_response::service_unavailable);
return;
}
this->log(swarm::SWARM_LOG_NOTICE, "post-base: write_finished: key: %s, ns: %s, flags: 0x%lx",
m_key.to_string().c_str(), m_meta.key.c_str(), m_meta.flags);
try {
upload_completion::upload_update_indexes(*m_session, m_meta, m_key, result,
std::bind(&on_upload_base::completion, this->shared_from_this(),
std::placeholders::_1, std::placeholders::_2));
} catch (std::exception &e) {
this->log(swarm::SWARM_LOG_ERROR, "post-base: write_finished: key: %s, ns: %s, flags: 0x%lx, "
"exception: %s",
m_key.to_string().c_str(), m_meta.key.c_str(), m_meta.flags, e.what());
m_session->remove(m_key);
this->send_reply(swarm::http_response::bad_request);
}
}
private:
elliptics::key m_key;
bucket_meta_raw m_meta;
swarm::http_request m_req;
std::unique_ptr<elliptics::session> m_session;
};
template <typename Server>
class on_upload : public on_upload_base<Server, on_upload<Server>>
{
public:
};
// write data object, get file-info json in response
template <typename Server, typename Stream>
class on_buffered_upload_base : public thevoid::buffered_request_stream<Server>, public std::enable_shared_from_this<Stream>
{
public:
virtual void on_request(const swarm::http_request &req) {
if (!this->server()->query_ok(req)) {
this->send_reply(swarm::http_response::bad_request);
return;
}
boost::asio::const_buffer buffer;
this->server()->process(req, buffer, std::bind(&on_buffered_upload_base::checked, this->shared_from_this(),
std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
}
virtual void checked(const swarm::http_request &req, const boost::asio::const_buffer &buffer,
const bucket_meta_raw &meta, swarm::http_response::status_type verdict) {
auto data = elliptics::data_pointer::from_raw(
const_cast<char *>(boost::asio::buffer_cast<const char*>(buffer)),
boost::asio::buffer_size(buffer));
this->set_chunk_size(10 * 1024 * 1024);
const auto &query = req.url().query();
this->log(swarm::SWARM_LOG_NOTICE, "buffered-upload-base: checked: url: %s, flags: 0x%lx, verdict: %d",
query.to_string().c_str(), meta.flags, verdict);
if ((verdict != swarm::http_response::ok) && !meta.noauth_all()) {
this->send_reply(verdict);
return;
}
(void) buffer;
m_req = req;
m_meta = meta;
m_session.reset(new elliptics::session(this->server()->extract_key(req, meta, m_key)));
m_session->set_timeout(this->server()->elliptics()->write_timeout());
this->server()->check_cache(m_key, *m_session);
m_offset = query.item_value("offset", 0llu);
if (auto size = req.headers().content_length())
m_size = *size;
else
m_size = 0;
}
virtual void on_chunk(const boost::asio::const_buffer &buffer, unsigned int flags) {
if (!m_session)
return;
const auto data = create_data(buffer);
const auto &query = m_req.url().query();
this->log(swarm::SWARM_LOG_INFO, "on_chunk: url: %s, size: %zu, m_offset: %lu, flags: %u",
query.to_string().c_str(), data.size(), m_offset, flags);
elliptics::async_write_result result = write(data, flags);
m_offset += data.size();
if (flags & thevoid::buffered_request_stream<Server>::last_chunk) {
result.connect(std::bind(&on_buffered_upload_base::on_write_finished, this->shared_from_this(),
std::placeholders::_1, std::placeholders::_2));
} else {
result.connect(std::bind(&on_buffered_upload_base::on_write_partial, this->shared_from_this(),
std::placeholders::_1, std::placeholders::_2));
}
}
elliptics::async_write_result write(const elliptics::data_pointer &data, unsigned int flags) {
const auto &query = m_req.url().query();
if (flags == thevoid::buffered_request_stream<Server>::single_chunk) {
return m_session->write_data(m_key, data, m_offset);
} else if (m_size > 0) {
if (flags & thevoid::buffered_request_stream<Server>::first_chunk) {
this->log(swarm::SWARM_LOG_INFO, "buffered-write: prepare: url: %s, offset: %lu, size: %lu",
query.to_string().c_str(), m_offset, m_size);
return m_session->write_prepare(m_key, data, m_offset, m_offset + m_size);
} else if (flags & thevoid::buffered_request_stream<Server>::last_chunk) {
this->log(swarm::SWARM_LOG_INFO, "buffered-write: commit: url: %s, offset: %lu, size: %lu",
query.to_string().c_str(), m_offset, m_offset + data.size());
return m_session->write_commit(m_key, data, m_offset, m_offset + data.size());
} else {
this->log(swarm::SWARM_LOG_INFO, "buffered-write: plain: url: %s, offset: %lu, size: %zu",
query.to_string().c_str(), m_offset, data.size());
return m_session->write_plain(m_key, data, m_offset);
}
} else {
this->log(swarm::SWARM_LOG_INFO, "buffered-write: write-data: url: %s, offset: %lu, size: %zu",
query.to_string().c_str(), m_offset, data.size());
return m_session->write_data(m_key, data, m_offset);
}
}
virtual void on_error(const boost::system::error_code &error) {
const auto &query = m_req.url().query();
this->log(swarm::SWARM_LOG_ERROR, "buffered-write: url: %s, error: %s",
query.to_string().c_str(), error.message().c_str());
}
virtual void on_write_partial(const elliptics::sync_write_result &result, const elliptics::error_info &error) {
if (error) {
const auto &query = m_req.url().query();
this->log(swarm::SWARM_LOG_ERROR, "buffered-write: url: %s, partial write error: %s",
query.to_string().c_str(), error.message().c_str());
this->on_write_finished(result, error);
return;
}
// continue only with the groups where update succeeded
std::vector<int> groups, rem_groups;
for (auto it = result.begin(); it != result.end(); ++it) {
elliptics::write_result_entry entry = *it;
if (entry.error())
rem_groups.push_back(entry.command()->id.group_id);
else
groups.push_back(entry.command()->id.group_id);
}
elliptics::session tmp = *m_session;
tmp.set_timeout(this->server()->elliptics()->write_timeout());
tmp.set_groups(rem_groups);
tmp.remove(m_key);
m_session->set_groups(groups);
if (m_meta.groups.size()) {
using std::swap;
swap(m_meta.groups, groups);
}
this->try_next_chunk();
}
void completion(const swarm::http_response::status_type &status, const std::string &data) {
if (status != swarm::http_response::ok) {
this->send_reply(status);
return;
}
swarm::http_response reply;
reply.set_code(swarm::http_response::ok);
reply.headers().set_content_type("text/json");
reply.headers().set_content_length(data.size());
this->send_reply(std::move(reply), std::move(data));
}
virtual void on_write_finished(const elliptics::sync_write_result &result,
const elliptics::error_info &error) {
if (error) {
this->send_reply(swarm::http_response::service_unavailable);
return;
}
try {
upload_completion::upload_update_indexes(*m_session, m_meta, m_key, result,
std::bind(&on_buffered_upload_base::completion, this->shared_from_this(),
std::placeholders::_1, std::placeholders::_2));
} catch (std::exception &e) {
this->log(swarm::SWARM_LOG_NOTICE, "post-base: write_finished: key: %s, ns: %s, flags: 0x%lx, "
"exception: %s",
m_key.to_string().c_str(), m_meta.key.c_str(), m_meta.flags, e.what());
m_session->remove(m_key);
this->send_reply(swarm::http_response::bad_request);
}
}
private:
elliptics::key m_key;
bucket_meta_raw m_meta;
swarm::http_request m_req;
std::unique_ptr<elliptics::session> m_session;
uint64_t m_offset;
uint64_t m_size;
};
template <typename Server>
class on_buffered_upload : public on_buffered_upload_base<Server, on_buffered_upload<Server>>
{
public:
};
// perform lookup, get file-info json in response
template <typename Server, typename Stream>
class on_download_info_base : public bucket_processing<Server, Stream>
{
public:
virtual void checked(const swarm::http_request &req, const boost::asio::const_buffer &buffer,
const bucket_meta_raw &meta, swarm::http_response::status_type verdict) {
const auto &query = req.url().query();
this->log(swarm::SWARM_LOG_NOTICE, "download-info-base: checked: url: %s, flags: 0x%lx, verdict: %d",
query.to_string().c_str(), meta.flags, verdict);
if ((verdict != swarm::http_response::ok) && !meta.noauth_read()) {
this->send_reply(verdict);
return;
}
(void) buffer;
elliptics::key key;
elliptics::session session = this->server()->extract_key(req, meta, key);
session.set_timeout(this->server()->elliptics()->read_timeout());
this->server()->check_cache(key, session);
session.lookup(key).connect(std::bind(&on_download_info_base::on_lookup_finished, this->shared_from_this(),
meta, std::placeholders::_1, std::placeholders::_2));
}
std::string generate_signature(const elliptics::lookup_result_entry &entry, const std::string &time,
const std::string &token, std::string *url_ptr) {
if (token.empty() && !url_ptr)
return std::string();
const dnet_file_info *info = entry.file_info();
/*
* We don't mind what real id is this request for, what namespace and so on.
* At this point we are sure that user has permission to know where his file
* is really stored. That is why we should protect only file's real position
* by the signature.
*
* Time is figured in the signature because of we don't want anybody else to
* have access to non-their files in case of defragmentation/MiTM and so on.
*/
swarm::url url = this->server()->generate_url_base(entry.address());
swarm::url_query &query = url.query();
query.add_item("file-path", entry.file_path());
query.add_item("offset", boost::lexical_cast<std::string>(info->offset));
query.add_item("size", boost::lexical_cast<std::string>(info->size));
query.add_item("time", time);
if (!token.empty())
query.add_item("token", token);
url.set_query(query);
auto sign_input = url.to_string();
if (url_ptr) {
*url_ptr = std::move(sign_input);
return std::string();
}
if (token.empty())
return std::string();
dnet_raw_id signature_id;
dnet_transform_node(this->server()->elliptics()->node().get_native(),
sign_input.c_str(), sign_input.size(),
signature_id.id, sizeof(signature_id.id));
char signature_str[2 * DNET_ID_SIZE + 1];
dnet_dump_id_len_raw(signature_id.id, DNET_ID_SIZE, signature_str);
const std::string signature(signature_str, 2 * DNET_ID_SIZE);
url.query().add_item("signature", signature);
return std::move(signature);
}
virtual void on_lookup_finished(const bucket_meta_raw &meta, const elliptics::sync_lookup_result &result,
const elliptics::error_info &error) {
if (error) {
this->send_reply(swarm::http_response::service_unavailable);
return;
}
rift::JsonValue result_object;
upload_completion::fill_upload_reply(result[0], result_object, result_object.GetAllocator());
dnet_time time;
dnet_current_time(&time);
const std::string time_str = boost::lexical_cast<std::string>(time.tsec);
if (!meta.token.empty()) {
std::string signature = generate_signature(result[0], time_str, meta.token, NULL);
if (!signature.empty()) {
rapidjson::Value signature_value(signature.c_str(),
signature.size(), result_object.GetAllocator());
result_object.AddMember("signature", signature_value, result_object.GetAllocator());
}
}
result_object.AddMember("time", time_str.c_str(), result_object.GetAllocator());
auto data = result_object.ToString();
swarm::http_response reply;
reply.set_code(swarm::http_response::ok);
reply.headers().set_content_type("text/json");
reply.headers().set_content_length(data.size());
this->send_reply(std::move(reply), std::move(data));
}
};
template <typename Server>
class on_download_info : public on_download_info_base<Server, on_download_info<Server>>
{
public:
};
// perform lookup, redirect in response
template <typename Server>
class on_redirectable_get : public on_download_info<Server>
{
public:
virtual void on_lookup_finished(const bucket_meta_raw &meta, const elliptics::sync_lookup_result &result,
const elliptics::error_info &error) {
if (error) {
this->send_reply(swarm::http_response::service_unavailable);
return;
}
dnet_time time;
dnet_current_time(&time);
const std::string time_str = boost::lexical_cast<std::string>(time.tsec);
std::string url;
this->generate_signature(result[0], time_str, meta.token, &url);
swarm::http_response reply;
reply.set_code(swarm::http_response::moved_temporarily);
reply.headers().set("Location", url);
reply.headers().set_content_length(0);
this->send_reply(std::move(reply));
}
};
template <typename Server, typename Stream>
class on_buffered_get_base : public bucket_processing<Server, Stream>
{
public:
on_buffered_get_base() : m_buffer_size(5 * 1025 * 1024)
{
}
virtual void checked(const swarm::http_request &req, const boost::asio::const_buffer &buffer,
const bucket_meta_raw &meta, swarm::http_response::status_type verdict) {
auto data = elliptics::data_pointer::from_raw(
const_cast<char *>(boost::asio::buffer_cast<const char*>(buffer)),
boost::asio::buffer_size(buffer));
const auto &query = req.url().query();
this->log(swarm::SWARM_LOG_NOTICE, "buffered-get-base: checked: url: %s, flags: 0x%lx, verdict: %d",
query.to_string().c_str(), meta.flags, verdict);
if ((verdict != swarm::http_response::ok) && !meta.noauth_read()) {
this->send_reply(verdict);
return;
}
m_offset = query.item_value("offset", 0llu);
(void) buffer;
elliptics::key key;
elliptics::session session = this->server()->extract_key(req, meta, key);
session.set_timeout(this->server()->elliptics()->read_timeout());
this->server()->check_cache(key, session);
session.lookup(m_key).connect(std::bind(
&on_buffered_get_base::on_lookup_finished, this->shared_from_this(),
std::placeholders::_1, std::placeholders::_2));
}
void on_lookup_finished(const elliptics::sync_lookup_result &result, const elliptics::error_info &error)
{
this->log(swarm::SWARM_LOG_DEBUG, "%s, error: %s", __FUNCTION__, error.message().c_str());
if (error) {
if (error.code() == -ENOENT) {
this->send_reply(swarm::http_response::not_found);
return;
} else {
this->send_reply(swarm::http_response::internal_server_error);
return;
}
}
const elliptics::lookup_result_entry &entry = result[0];
m_size = entry.file_info()->size;
if (m_size > m_offset) {
this->log(swarm::SWARM_LOG_ERROR, "%s: requested offset is too big: offset: %llu, file-size: %llu",
__FUNCTION__, (unsigned long long)m_offset, (unsigned long long)m_size);
this->send_reply(swarm::http_response::bad_request);
return;
}
swarm::http_response reply;
reply.set_code(swarm::http_response::ok);
reply.headers().set_content_length(m_size - m_offset);
reply.headers().set_content_type("application/octet-stream");
reply.headers().set_last_modified(entry.file_info()->mtime.tsec);
this->send_headers(std::move(reply), std::function<void (const boost::system::error_code &)>());
read_next(m_offset);
}
virtual void on_read_finished(uint64_t offset, const elliptics::sync_read_result &result,
const elliptics::error_info &error)
{
this->log(swarm::SWARM_LOG_DEBUG, "%s, error: %s, offset: %llu",
__FUNCTION__, error.message().c_str(), (unsigned long long) offset);
// if (offset == 0 && error) {
// if (error.code() == -ENOENT) {
// this->send_reply(swarm::http_response::not_found);
// return;
// } else {
// this->send_reply(swarm::http_response::internal_server_error);
// return;
// }
// } else
if (error) {
auto ec = boost::system::errc::make_error_code(
static_cast<boost::system::errc::errc_t>(-error.code()));
this->get_reply()->close(ec);
return;
}
const elliptics::read_result_entry &entry = result[0];
elliptics::data_pointer file = entry.file();
if (offset + file.size() >= m_size) {
this->send_data(std::move(file), std::bind(&thevoid::reply_stream::close,
this->get_reply(), std::placeholders::_1));
} else {
auto first_part = file.slice(0, file.size() / 2);
auto second_part = file.slice(first_part.size(), file.size() - first_part.size());
this->send_data(std::move(first_part), std::bind(&on_buffered_get_base::on_part_sent,
this->shared_from_this(), offset + file.size(), std::placeholders::_1));
this->send_data(std::move(second_part), std::function<void (const boost::system::error_code &)>());
}
}
virtual void on_part_sent(size_t offset, const boost::system::error_code &error)
{
this->log(swarm::SWARM_LOG_DEBUG, "%s, error: %s, offset: %llu",
__FUNCTION__, error.message().c_str(), (unsigned long long) offset);
read_next(offset);
}
virtual void read_next(uint64_t offset)
{
this->log(swarm::SWARM_LOG_DEBUG, "%s, offset: %llu", __FUNCTION__, (unsigned long long) offset);
elliptics::session session = this->server()->elliptics()->session();
session.set_timeout(this->server()->elliptics()->read_timeout());
session.read_data(m_key, offset, std::min(m_size - offset, m_buffer_size)).connect(std::bind(
&on_buffered_get_base::on_read_finished, this->shared_from_this(),
offset, std::placeholders::_1, std::placeholders::_2));
}
protected:
elliptics::key m_key;
uint64_t m_size;
uint64_t m_buffer_size;
uint64_t m_offset;
};
template <typename Server>
class on_buffered_get : public on_buffered_get_base<Server, on_buffered_get<Server>>
{
public:
};
}}} // ioremap::rift::io
#endif /*__IOREMAP_RIFT_IO_HPP */
| 32.924449 | 124 | 0.701374 | [
"object",
"vector"
] |
480da2f0e6823c09f7ef61a015adc67a7b64c7a3 | 6,503 | cpp | C++ | christy.cpp | Potayto/Lab1 | e5373b268827db454aa582885e22095b705eff29 | [
"MIT"
] | null | null | null | christy.cpp | Potayto/Lab1 | e5373b268827db454aa582885e22095b705eff29 | [
"MIT"
] | null | null | null | christy.cpp | Potayto/Lab1 | e5373b268827db454aa582885e22095b705eff29 | [
"MIT"
] | null | null | null | //my cpp file
#include <iostream>
#include <string>
#include <cstdlib>
#include <cstring>
#include <unistd.h>
#include <ctime>
#include <cmath>
#include <X11/Xlib.h>
#include <GL/glu.h>
#include <X11/keysym.h>
#include <GL/glx.h>
#include "log.h"
extern "C" {
#include "struct.h"
#include "fonts.h"
#include "ppm.h"
}
#include "bullets.h"
#include "other.h"
extern void physics(Game *g)
{
//Update player1 position
g->player1.origin[0] = g->player1.pos[0];
g->player1.origin[1] = g->player1.pos[1];
g->player1.pos[0] += g->player1.vel[0];
g->player1.pos[1] += g->player1.vel[1];
//Check for collision with window edges
//instantiate background change based on matrix
//remove all zombies and objects and remake them
if (g->player1.pos[0] < 0.0) {
g->player1.pos[0] += (float)xres;
}
else if (g->player1.pos[0] > (float)xres) {
g->player1.pos[0] -= (float)xres;
}
else if (g->player1.pos[1] < 0.0) {
g->player1.pos[1] += (float)yres;
}
else if (g->player1.pos[1] > (float)yres) {
g->player1.pos[1] -= (float)yres;
}
//
//std::cout<<"Player X:" << g->player1.pos[0] <<" , Player Y:" << g->player1.pos[1] <<"\n";
//
//Update bullet positions
updateBulletPos(g, g->bhead);
if (g->player1.bulletType == 2 || g->player1.bulletType == 3) {
updateBulletPos(g, g->chead);
if(g->player1.bulletType == 3) {
updateBulletPos(g, g->dhead);
}
}
updateMulti(g);
//
//Update asteroid positions
Zombie *a = g->ahead;
while (a) {
//Try nesting everything in an if/else with a randomized bool
//to determine if zombie is wandering or running at player?
zMove(g, a);
//zomb_zomb_collision(a);
a->pos[0] += a->vel[0];
a->pos[1] += a->vel[1];
//Check for collision with window edges
if (a->pos[0] < -100.0) {
a->pos[0] += (float)xres+200;
}
else if (a->pos[0] > (float)xres+100) {
a->pos[0] -= (float)xres+200;
}
else if (a->pos[1] < -100.0) {
a->pos[1] += (float)yres+200;
}
else if (a->pos[1] > (float)yres+100) {
a->pos[1] -= (float)yres+200;
}
a->angle += a->rotate;
a = a->next;
}
//Zombie collision with bullets?
//If collision detected:
// 1. delete the bullet
// 2. break the asteroid into pieces
// if asteroid small, delete it
bul_zomb_collision(g, g->bhead);
if (g->player1.bulletType == 2 || g->player1.bulletType == 3) {
bul_zomb_collision(g, g->chead);
if (g->player1.bulletType == 3) {
bul_zomb_collision(g, g->dhead);
}
}
//Player collision with zombies
player_zomb_collision(g);
if(g->gameover) {
std::cout<<"returning again\n";
return;
}
//---------------------------------------------------
//check keys pressed now
//NOTE:: ANGLE CHECKED COUNTER CLOCKWISE
last_Position_S = g->player1.angle;
//BREAK if attempting to move opposite directions at same time
if (((keys[XK_Left] || keys[XK_a]) && (keys[XK_Right] || keys[XK_d])) ||
((keys[XK_Up] || keys[XK_w]) && (keys[XK_Down] || keys[XK_s]))) {
//convert player1 angle to radians
//convert angle to a vector
g->player1.vel[0] = 0;
g->player1.vel[1] = 0;
g->player1.angle = last_Position_S;
if (g->player1.angle >= 360.0f)
g->player1.angle -= 360.0f;
}
else if ((keys[XK_Up] || keys[XK_w]) && (keys[XK_Left] || keys[XK_a])) {
normalize(g->player1.vel);
g->player1.vel[0] = -4;
g->player1.vel[1] = 4;
}
else if ((keys[XK_Down] || keys[XK_s]) && (keys[XK_Left] || keys[XK_a])) {
normalize(g->player1.vel);
g->player1.vel[0] = -4;
g->player1.vel[1] = -4;
}
else if ((keys[XK_Down] || keys[XK_s]) && (keys[XK_Right] || keys[XK_d])) {
normalize(g->player1.vel);
g->player1.vel[0] = 4;
g->player1.vel[1] = -4;
}
else if ((keys[XK_Up] || keys[XK_w]) && (keys[XK_Right] || keys[XK_d])) {
normalize(g->player1.vel);
g->player1.vel[0] = 4;
g->player1.vel[1] = 4;
}
else if (keys[XK_Left] || keys[XK_a]) {
normalize(g->player1.vel);
g->player1.vel[0] = -8;
}
else if (keys[XK_Right] || keys[XK_d]) {
normalize(g->player1.vel);
g->player1.vel[0] = 8;
}
else if (keys[XK_Up] || keys[XK_w]) {
normalize(g->player1.vel);
g->player1.vel[1] = 8;
}
else if (keys[XK_Down] || keys[XK_s]) {
normalize(g->player1.vel);
g->player1.vel[1] = -8;
}
else {
//convert player1 angle to radians
//convert angle to a vector
g->player1.vel[0] = 0;
g->player1.vel[1] = 0;
g->player1.angle = last_Position_S;
if (g->player1.angle >= 360.0f)
g->player1.angle -= 360.0f;
}
bresenham_Ang(g);
if (keys[XK_i]) {
g->player1.invuln++;
if (g->player1.invuln == 2)
g->player1.invuln = 0;
keys[XK_i] = 0;
}
if (keys[XK_space]) {
fire_weapon(g);
}
if (g->player1.is_firing) {
fire_weapon(g);
}
if (keys[XK_1]) {
g->player1.bulletType = 1;
} else if (keys[XK_2]) {
g->player1.bulletType = 2;
} else if (keys[XK_3]) {
g->player1.bulletType = 3;
}
}
| 33.348718 | 99 | 0.446563 | [
"vector"
] |
480e319b204864a9be12cdb3f4c84732d89e2dc9 | 1,946 | cpp | C++ | src/dropbox/sharing/SharingUpdateFolderPolicyArg.cpp | slashdotted/dropboxQt | 63d43fa882cec8fb980a2aab2464a2d7260b8089 | [
"MIT"
] | 17 | 2016-12-03T09:12:29.000Z | 2020-06-20T22:08:44.000Z | src/dropbox/sharing/SharingUpdateFolderPolicyArg.cpp | slashdotted/dropboxQt | 63d43fa882cec8fb980a2aab2464a2d7260b8089 | [
"MIT"
] | 8 | 2017-01-05T17:50:16.000Z | 2021-08-06T18:56:29.000Z | src/dropbox/sharing/SharingUpdateFolderPolicyArg.cpp | slashdotted/dropboxQt | 63d43fa882cec8fb980a2aab2464a2d7260b8089 | [
"MIT"
] | 8 | 2017-09-13T17:28:40.000Z | 2020-07-27T00:41:44.000Z | /**********************************************************
DO NOT EDIT
This file was generated from stone specification "sharing"
Part of "Ardi - the organizer" project.
osoft4ardi@gmail.com
www.prokarpaty.net
***********************************************************/
#include "dropbox/sharing/SharingUpdateFolderPolicyArg.h"
using namespace dropboxQt;
namespace dropboxQt{
namespace sharing{
///UpdateFolderPolicyArg
UpdateFolderPolicyArg::operator QJsonObject()const{
QJsonObject js;
this->toJson(js);
return js;
}
void UpdateFolderPolicyArg::toJson(QJsonObject& js)const{
if(!m_shared_folder_id.isEmpty())
js["shared_folder_id"] = QString(m_shared_folder_id);
m_member_policy.toJson(js, "member_policy");
m_acl_update_policy.toJson(js, "acl_update_policy");
m_shared_link_policy.toJson(js, "shared_link_policy");
}
void UpdateFolderPolicyArg::fromJson(const QJsonObject& js){
m_shared_folder_id = js["shared_folder_id"].toString();
m_member_policy.fromJson(js["member_policy"].toObject());
m_acl_update_policy.fromJson(js["acl_update_policy"].toObject());
m_shared_link_policy.fromJson(js["shared_link_policy"].toObject());
}
QString UpdateFolderPolicyArg::toString(bool multiline)const
{
QJsonObject js;
toJson(js);
QJsonDocument doc(js);
QString s(doc.toJson(multiline ? QJsonDocument::Indented : QJsonDocument::Compact));
return s;
}
std::unique_ptr<UpdateFolderPolicyArg> UpdateFolderPolicyArg::factory::create(const QByteArray& data)
{
QJsonDocument doc = QJsonDocument::fromJson(data);
QJsonObject js = doc.object();
return create(js);
}
std::unique_ptr<UpdateFolderPolicyArg> UpdateFolderPolicyArg::factory::create(const QJsonObject& js)
{
std::unique_ptr<UpdateFolderPolicyArg> rv;
rv = std::unique_ptr<UpdateFolderPolicyArg>(new UpdateFolderPolicyArg);
rv->fromJson(js);
return rv;
}
}//sharing
}//dropboxQt
| 28.202899 | 102 | 0.705036 | [
"object"
] |
4810b0dacb7ca940c4f3ef5491194e4bb51d3b73 | 4,563 | cpp | C++ | gmsh-4.2.2/demos/api/custom_gui.cpp | Poofee/fastFEM | 14eb626df973e2123604041451912c867ab7188c | [
"MIT"
] | 4 | 2019-05-06T09:35:08.000Z | 2021-05-14T16:26:45.000Z | onelab/share/doc/gmsh/demos/api/custom_gui.cpp | Christophe-Foyer/pyFEA | 344996d6b075ee4b2214283f0af8159d86d154fd | [
"MIT"
] | null | null | null | onelab/share/doc/gmsh/demos/api/custom_gui.cpp | Christophe-Foyer/pyFEA | 344996d6b075ee4b2214283f0af8159d86d154fd | [
"MIT"
] | 1 | 2020-12-15T13:47:23.000Z | 2020-12-15T13:47:23.000Z | #include <cmath>
#include <thread>
#include "gmsh.h"
// This example shows how to implement a custom user interface running
// computationally expensive calculations in separate threads. The threads can
// update the user interface in real-time.
// flag that will be set to interrupt a calculation
bool stop_computation = false;
// a computationally expensive routine, that will be run in its own thread
void compute(const std::string &arg)
{
std::vector<double> iterations, progress;
gmsh::onelab::getNumber("My App/Iterations", iterations);
gmsh::onelab::getNumber("My App/Show progress?", progress);
int n = iterations.size() ? static_cast<int>(iterations[0]) : 1;
bool show = (progress.size() && progress[0]) ? true : false;
int p = 0;
double k = 0., last_refresh = 0.;
for(int j = 0; j < n; j++){
// stop computation if requested by clicking on "Stop it!"
if(stop_computation)
break;
k = sin(k) + cos(j / 45.);
// show progress in real time?
if(show && n > 1 && !(j % (n / 100))){
p++;
gmsh::onelab::setString(arg, {std::to_string(p) + "%"});
// any code in a thread other than the main thread that modifies the user
// interface should be locked
gmsh::fltk::lock();
gmsh::logger::write(arg + " progress " + std::to_string(p) + "%");
gmsh::fltk::unlock();
// ask the main thread to process pending events and to update the user
// interface, maximum 10 times per second
if(gmsh::logger::time() - last_refresh > 0.1){
last_refresh = gmsh::logger::time();
gmsh::fltk::awake("update");
}
}
}
gmsh::onelab::setNumber(arg + " result", {k});
gmsh::onelab::setString("ONELAB/Action", {"done computing"});
gmsh::fltk::awake("update");
}
int main(int argc, char **argv)
{
gmsh::initialize();
// hide the standard Gmsh modules
gmsh::option::setNumber("General.ShowModuleMenu", 0);
// create some ONELAB parameters to control the number of iterations and
// threads, the progress display and the custom ONELAB button (when pressed,
// it will set the "ONELAB/Action" parameter to "should compute")
std::string parameters = R"( [
{ "type":"number", "name":"My App/Iterations", "values":[1e6], "min":1e4,
"max":1e9, "step":1e5, "attributes":{"Highlight":"AliceBlue"} },
{ "type":"number", "name":"My App/Number of threads", "values":[2],
"choices":[1, 2, 3, 4], "attributes":{"Highlight":"AliceBlue"} },
{ "type":"number", "name":"My App/Show progress?", "values":[1],
"choices":[0, 1] },
{ "type":"string", "name":"ONELAB/Button", "values":["Do it!", "should compute"],
"visible":false }
] )";
gmsh::onelab::set(parameters);
// create the graphical user interface
gmsh::fltk::initialize();
while(1){
// wait for an event
gmsh::fltk::wait();
// check if the user clicked on the custom ONELAB button by examining the
// value of the "ONELAB/Action" parameter
std::vector<std::string> action;
gmsh::onelab::getString("ONELAB/Action", action);
if(action.empty()){
continue;
}
else if(action[0] == "should compute"){
gmsh::onelab::setString("ONELAB/Action", {""});
gmsh::onelab::setString("ONELAB/Button", {"Stop!", "should stop"});
// force interface update (to show the new button label)
gmsh::fltk::update();
// start computationally intensive calculations in their own threads
std::vector<double> v;
gmsh::onelab::getNumber("My App/Number of threads", v);
int n = v.size() ? static_cast<int>(v[0]) : 1;
for(unsigned int i = 0; i < n; i++){
std::thread t(compute, "My App/Thread " + std::to_string(i + 1));
t.detach();
}
}
else if(action[0] == "should stop"){
stop_computation = true;
}
else if(action[0] == "done computing"){
// should not detach threads, and join them all here
gmsh::onelab::setString("ONELAB/Action", {""});
gmsh::onelab::setString("ONELAB/Button", {"Do it!", "should compute"});
gmsh::fltk::update();
stop_computation = false;
}
else if(action[0] == "reset"){
// user clicked on "Reset database"
gmsh::onelab::setString("ONELAB/Action", {""});
gmsh::onelab::set(parameters);
gmsh::fltk::update();
}
else if(action[0] == "check"){
// could perform action here after each change in ONELAB parameters,
// e.g. rebuild a CAD model, update other parameters, ...
continue;
}
}
gmsh::finalize();
return 0;
}
| 35.929134 | 85 | 0.616261 | [
"cad",
"vector",
"model"
] |
48143251171f8d58b99d12ac3774e4caa0fa0e76 | 3,264 | cpp | C++ | src/util/executable_path/src/detail/executable_path_internals_bsd.cpp | KiPa-SuJi/PaydayCoin-Core | d807d95550d955bfa9ffda2b39cad745422224e5 | [
"MIT"
] | 2 | 2020-06-12T10:12:49.000Z | 2020-07-31T19:43:09.000Z | src/util/executable_path/src/detail/executable_path_internals_bsd.cpp | KiPa-SuJi/PaydayCoin-Core | d807d95550d955bfa9ffda2b39cad745422224e5 | [
"MIT"
] | null | null | null | src/util/executable_path/src/detail/executable_path_internals_bsd.cpp | KiPa-SuJi/PaydayCoin-Core | d807d95550d955bfa9ffda2b39cad745422224e5 | [
"MIT"
] | 1 | 2020-12-04T13:34:46.000Z | 2020-12-04T13:34:46.000Z | //
// Copyright (C) 2011-2019 Ben Key
// 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)
//
#if (BOOST_OS_BSD)
#include <string>
#include <vector>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <util/executable_path/include/boost/detail/executable_path_internals.hpp>
#if (BOOST_OS_BSD_FREE || BOOST_OS_BSD_DRAGONFLY)
#include <sys/types.h>
#include <stdlib.h>
#ifdef HAVE_PDAYCTL_ARND
#include <sys/sysctl.h>
#endif
#endif
#if (BOOST_OS_BSD_FREE)
namespace boost {
namespace detail {
boost::filesystem::path executable_path_worker()
{
using char_vector = std::vector<char>;
boost::filesystem::path ret;
int mib[4]{0};
size_t size;
mib[0] = CTL_KERN;
mib[1] = KERN_PROC;
mib[2] = KERN_PROC_PATHNAME;
mib[3] = -1;
int result = sysctl(mib, 4, nullptr, &size, nullptr, 0);
if (-1 == result)
{
return ret;
}
size += 10;
char_vector buf(size, 0);
result = sysctl(mib, 4, buf.data(), &size, nullptr, 0);
if (-1 == result)
{
return ret;
}
buf[size] = 0;
std::string pathString = buf.data();
boost::system::error_code ec;
ret = boost::filesystem::canonical(
pathString, boost::filesystem::current_path(), ec);
if (ec.value() != boost::system::errc::success)
{
ret.clear();
}
return ret;
}
} // namespace detail
} // namespace boost
#elif (BOOST_OS_BSD_NET)
namespace boost {
namespace detail {
boost::filesystem::path executable_path_worker()
{
boost::filesystem::path ret;
boost::system::error_code ec;
auto linkPath = boost::filesystem::read_symlink("/proc/curproc/exe", ec);
if (ec.value() != boost::system::errc::success)
{
return ret;
}
ret = boost::filesystem::canonical(linkPath, boost::filesystem::current_path(), ec);
if (ec.value() != boost::system::errc::success)
{
ret.clear();
}
return ret;
}
} // namespace detail
} // namespace boost
#elif BOOST_OS_BSD_DRAGONFLY
namespace boost {
namespace detail {
boost::filesystem::path executable_path_worker()
{
boost::filesystem::path ret;
boost::system::error_code ec;
auto linkPath = boost::filesystem::read_symlink("/proc/curproc/file", ec);
if (ec.value() != boost::system::errc::success)
{
int mib[4]{0};
size_t size;
mib[0] = CTL_KERN;
mib[1] = KERN_PROC;
mib[2] = KERN_PROC_PATHNAME;
mib[3] = -1;
int result = sysctl(mib, 4, nullptr, &size, nullptr, 0);
if (-1 != result)
{
size += 10;
char_vector buf(size, 0);
result = sysctl(mib, 4, buf.data(), &size, nullptr, 0);
if (-1 != result)
{
buf[size] = 0;
std::string pathString = buf.data();
linkPath = pathString;
}
}
}
ret = boost::filesystem::canonical(
linkPath, boost::filesystem::current_path(), ec);
if (ec.value() != boost::system::errc::success)
{
ret.clear();
}
return ret;
}
} // namespace detail
} // namespace boost
#endif
#endif
| 23.824818 | 88 | 0.603554 | [
"vector"
] |
4814424c656f356b89c1f94a0c2bbc9d3809be30 | 6,340 | cpp | C++ | svntrunk/src/untabbed/BlueMatter/science/src/bmt2diffchol.cpp | Bhaskers-Blu-Org1/BlueMatter | 1ab2c41af870c19e2e1b1095edd1d5c85eeb9b5e | [
"BSD-2-Clause"
] | 7 | 2020-02-25T15:46:18.000Z | 2022-02-25T07:04:47.000Z | svntrunk/src/untabbed/BlueMatter/science/src/bmt2diffchol.cpp | IBM/BlueMatter | 5243c0ef119e599fc3e9b7c4213ecfe837de59f3 | [
"BSD-2-Clause"
] | null | null | null | svntrunk/src/untabbed/BlueMatter/science/src/bmt2diffchol.cpp | IBM/BlueMatter | 5243c0ef119e599fc3e9b7c4213ecfe837de59f3 | [
"BSD-2-Clause"
] | 5 | 2019-06-06T16:30:21.000Z | 2020-11-16T19:43:01.000Z | /* Copyright 2001, 2019 IBM Corporation
*
* 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.
*
* 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 <math.h>
#include <assert.h>
#include <fcntl.h>
#include <iostream>
#include <cstdio>
#include <string>
#include <vector>
#include <BlueMatter/BMT.hpp>
#include <BlueMatter/Imaging.hpp>
#include <BlueMatter/XYZ.hpp>
#include <BlueMatter/DXHistogram.hpp>
#include <BlueMatter/Column.hpp>
#include <BlueMatter/SimpleTrajectory.hpp>
using namespace std ;
void Usage(char **argv)
{
cerr << argv[0] << " FName.bmt OutName -skip N" << endl;
cerr << "Input bmt containing items in two leaflets" << endl;
cerr << "Output xyz of lower then upper leaflets, after removing leaflet COM drift, imaged to first arrangement" << endl;
cerr << "-skip causes it to skip first N frames" << endl;
exit(-1);
}
int main(int argc, char **argv)
{
SimpleTrajectory st;
if (argc < 3)
Usage(argv);
fXYZ box;
box.mX = box.mY = 52.96;
box.mZ = 63.7028;
int nleaflets = 2;
int nskip = 0;
char *bmtname = argv[1];
BMTReader bmt(argv[1]);
st.m_StartTime = bmt.getInitialSimulationTimeInNanoSeconds();
st.m_TimeStep = bmt.getNetTimeStepInPicoSeconds()/1000.0;
char *outname = argv[2];
int argn=3;
while (argn < argc) {
if (!strcmp(argv[argn], "-skip")) {
nskip = atoi(argv[++argn]);
} else {
cerr << "arg " << argv[argn] << " not recognized" << endl;
Usage(argv);
}
++argn;
}
float actualstart = st.m_StartTime+nskip*st.m_TimeStep;
if (nskip > 0) {
cerr << "Skipping first " << nskip << " frames" << endl;
cerr << "Starting at " << actualstart << " nanoseconds" << endl;
}
for (int i=0; i<nskip; i++) {
if (bmt.ReadFrame()) {
cerr << "Error reading " << i << " frame during skip" << endl;
exit(-1);
}
}
if (bmt.ReadFrame()) {
cerr << "Error reading first bmt frame after skip of " << nskip << " frames" << endl;
exit(-1);
}
FILE *fout = fopen(outname, "wb");
fwrite(&actualstart, sizeof(float), 1, fout); // write 4
fwrite(&st.m_TimeStep, sizeof(float), 1, fout); // write 4
fFragmentListTable flt("/fs/lipchol2/sdpcchol_frags.txt");
fAtomValues m("/fs/lipchol2/sdpcchol_masses.txt");
flt.deleteFragmentList("TIP3");
flt.AssignPositions(bmt.getPositions());
flt.AssignMasses(m);
fFragmentListTable upperall, lowerall;
flt.SplitUpperLower(lowerall, upperall);
// now init starting data for each leaflet separately
lowerall.FindCenterOfMasses();
upperall.FindCenterOfMasses();
lowerall.SetPreviousPositions();
upperall.SetPreviousPositions();
// fFragmentList &lower = lowerall.GetFragmentList("CHOL");
// fFragmentList &upper = upperall.GetFragmentList("CHOL");
fFragmentList &lower = lowerall.GetFragmentList("LIPID");
fFragmentList &upper = upperall.GetFragmentList("LIPID");
lower.FindCenterOfMasses();
upper.FindCenterOfMasses();
lower.SetPreviousPositions();
upper.SetPreviousPositions();
int nlower = lower.m_Fragments.size();
int nupper = upper.m_Fragments.size();
// output nleaflets, which is number of com's that prefix each list of items
fwrite(&nleaflets, sizeof(int), 1, fout); // write 4
fwrite(&nlower, sizeof(int), 1, fout); // write 4
fwrite(&nupper, sizeof(int), 1, fout); // write 4
// out file is 20 + (ntot+2)*3*4*n bytes
cout << "NLower, NUpper: " << nlower << " " << nupper << endl;
int readerr = 0;
int nwritten;
int n = 0;
while (!readerr && n < 100000000) {
lower.ImageToNearPrevious(box);
upper.ImageToNearPrevious(box);
lowerall.ImageToNearPrevious(box);
upperall.ImageToNearPrevious(box);
fXYZ lowerdcom = lowerall.FindAggregateCenterOfMass();
fXYZ upperdcom = upperall.FindAggregateCenterOfMass();
nwritten = fwrite(&lowerdcom, sizeof(float), 3, fout);
assert(nwritten == 3);
nwritten = fwrite(&upperdcom, sizeof(float), 3, fout);
assert(nwritten == 3);
bool first = true;
for (vector<fFragment>::iterator f=lower.m_Fragments.begin(); f != lower.m_Fragments.end(); f++) {
fXYZ d = f->m_CenterOfMass - lowerdcom;
//if (first)
// cout << f->m_CenterOfMass << " " << lowerdcom << " " << d << endl;
first = false;
nwritten = fwrite(&d, sizeof(float), 3, fout);
assert(nwritten == 3);
}
first = true;
for (vector<fFragment>::iterator f=upper.m_Fragments.begin(); f != upper.m_Fragments.end(); f++) {
fXYZ d = f->m_CenterOfMass - upperdcom;
//if (first)
// cout << f->m_CenterOfMass << " " << upperdcom << " " << d << endl;
first = false;
nwritten = fwrite(&d, sizeof(float), 3, fout);
assert(nwritten == 3);
}
lower.SetPreviousPositions();
upper.SetPreviousPositions();
lowerall.SetPreviousPositions();
upperall.SetPreviousPositions();
readerr = bmt.ReadFrame();
lower.FindCenterOfMasses();
upper.FindCenterOfMasses();
lowerall.FindCenterOfMasses();
upperall.FindCenterOfMasses();
n++;
}
fclose(fout);
return 0;
}
| 31.542289 | 125 | 0.66735 | [
"vector"
] |
481a2fec180e44d46b64c15ad4d60e86a096cf68 | 4,872 | cpp | C++ | Dragon Head/Eyes/WROVER_CAM_Gaze_Controller_NoWeb/DragonOTA.cpp | Lupo-Grigio/DragonCostume | fedc225014e9e65dfa58123cc869aad1a68052c6 | [
"CC0-1.0"
] | null | null | null | Dragon Head/Eyes/WROVER_CAM_Gaze_Controller_NoWeb/DragonOTA.cpp | Lupo-Grigio/DragonCostume | fedc225014e9e65dfa58123cc869aad1a68052c6 | [
"CC0-1.0"
] | null | null | null | Dragon Head/Eyes/WROVER_CAM_Gaze_Controller_NoWeb/DragonOTA.cpp | Lupo-Grigio/DragonCostume | fedc225014e9e65dfa58123cc869aad1a68052c6 | [
"CC0-1.0"
] | null | null | null | #include <WiFi.h>
#include <WiFiClient.h>
#include <WebServer.h>
#include <ESPmDNS.h>
#include <Update.h>
/* custom OTA for Dragon Eye Controller */
#include "DragonOTA.h"
#include "DragonSecrets.h"
/* OTA Support Leave this off github */
// this is from https://lastminuteengineers.com/esp32-ota-web-updater-arduino-ide/
WebServer server(OTA_Server_Port);
/* Style */
String style =
"<style>#file-input,input{width:100%;height:44px;border-radius:4px;margin:10px auto;font-size:15px}"
"input{background:#f1f1f1;border:0;padding:0 15px}body{background:#3498db;font-family:sans-serif;font-size:14px;color:#777}"
"#file-input{padding:0;border:1px solid #ddd;line-height:44px;text-align:left;display:block;cursor:pointer}"
"#bar,#prgbar{background-color:#f1f1f1;border-radius:10px}#bar{background-color:#3498db;width:0%;height:10px}"
"form{background:#fff;max-width:258px;margin:75px auto;padding:30px;border-radius:5px;text-align:center}"
".btn{background:#3498db;color:#fff;cursor:pointer}</style>";
/* Login page */
String loginIndex =
"<form name=loginForm>"
"<h1>Dragon Eyes Welcome</h1>"
"<input name=userid placeholder='User ID'> "
"<input name=pwd placeholder=Password type=Password> "
"<input type=submit onclick=check(this.form) class=btn value=Login></form>"
"<script>"
"function check(form) {"
"if(form.userid.value=='dragon' && form.pwd.value=='admin')"
"{window.open('/serverIndex')}"
"else"
"{alert('Error Password or Username')}"
"}"
"</script>" + style;
/* Server Index Page */
String serverIndex =
"<script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>"
"<form method='POST' action='#' enctype='multipart/form-data' id='upload_form'>"
"<input type='file' name='update' id='file' onchange='sub(this)' style=display:none>"
"<label id='file-input' for='file'> Choose file...</label>"
"<input type='submit' class=btn value='Update'>"
"<br><br>"
"<div id='prg'></div>"
"<br><div id='prgbar'><div id='bar'></div></div><br></form>"
"<script>"
"function sub(obj){"
"var fileName = obj.value.split('\\\\');"
"document.getElementById('file-input').innerHTML = ' '+ fileName[fileName.length-1];"
"};"
"$('form').submit(function(e){"
"e.preventDefault();"
"var form = $('#upload_form')[0];"
"var data = new FormData(form);"
"$.ajax({"
"url: '/update',"
"type: 'POST',"
"data: data,"
"contentType: false,"
"processData:false,"
"xhr: function() {"
"var xhr = new window.XMLHttpRequest();"
"xhr.upload.addEventListener('progress', function(evt) {"
"if (evt.lengthComputable) {"
"var per = evt.loaded / evt.total;"
"$('#prg').html('progress: ' + Math.round(per*100) + '%');"
"$('#bar').css('width',Math.round(per*100) + '%');"
"}"
"}, false);"
"return xhr;"
"},"
"success:function(d, s) {"
"console.log('success!') "
"},"
"error: function (a, b, c) {"
"}"
"});"
"});"
"</script>" + style;
void DragonOTA_Setup()
{
// OTA stuff
Serial.println("Booting");
// Connect to WiFi network
WiFi.begin(ssid, password);
Serial.println("");
// Wait for connection
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("Ready");
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
// END ARDUINO OTA EXAMPLE
// PRETTY update
/*use mdns for host name resolution*/
if (!MDNS.begin(host)) { //http://esp32.local
Serial.println("Error setting up MDNS responder!");
while (1) {
delay(1000);
}
}
Serial.println("mDNS responder started");
/*return index page which is stored in serverIndex */
server.on("/", HTTP_GET, []() {
server.sendHeader("Connection", "close");
server.send(200, "text/html", loginIndex);
});
server.on("/serverIndex", HTTP_GET, []() {
server.sendHeader("Connection", "close");
server.send(200, "text/html", serverIndex);
});
/*handling uploading firmware file */
server.on("/update", HTTP_POST, []() {
server.sendHeader("Connection", "close");
server.send(200, "text/plain", (Update.hasError()) ? "FAIL" : "OK");
ESP.restart();
}, []() {
HTTPUpload& upload = server.upload();
if (upload.status == UPLOAD_FILE_START) {
Serial.printf("Update: %s\n", upload.filename.c_str());
if (!Update.begin(UPDATE_SIZE_UNKNOWN)) { //start with max available size
Update.printError(Serial);
}
} else if (upload.status == UPLOAD_FILE_WRITE) {
/* flashing firmware to ESP*/
if (Update.write(upload.buf, upload.currentSize) != upload.currentSize) {
Update.printError(Serial);
}
} else if (upload.status == UPLOAD_FILE_END) {
if (Update.end(true)) { //true to set the size to the current progress
Serial.printf("Update Success: %u\nRebooting...\n", upload.totalSize);
} else {
Update.printError(Serial);
}
}
});
server.begin();
}
void Handle_DragonOTA()
{
server.handleClient();
} | 30.641509 | 124 | 0.654762 | [
"solid"
] |
481d6b0b24dfd5c793ff71991cba9bf5b7daaaec | 2,623 | cpp | C++ | _includes/leet126/leet126_2.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | _includes/leet126/leet126_2.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | 8 | 2019-12-19T04:46:05.000Z | 2022-02-26T03:45:22.000Z | _includes/leet126/leet126_2.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | class Solution {
public:
unordered_map<string,unordered_set<string>>parent;
vector<vector<string>> findLadders(string beginWord, string endWord, vector<string>& wordList) {
vector<vector<string>>res;
unordered_set<string>wordlist(wordList.begin(), wordList.end());
if(wordlist.find(endWord) == wordlist.end()) return res;
unordered_set<string>head, tail, *phead, *ptail;
bool got = false, isbegin = true;
head.insert(beginWord); tail.insert(endWord);
while(head.size()>0 && tail.size()>0 && !got){
if(head.size()<=tail.size()){
phead = &head;
ptail = &tail;
isbegin = true;
}else{
phead = &tail;
ptail = &head;
isbegin = false;
}
unordered_set<string>next;
for(auto i= ptail->begin();i!=ptail->end();i++)
wordlist.erase(*i);
for(auto j= phead->begin();j!=phead->end();j++)
wordlist.erase(*j);
for(auto now = phead->begin();now!= phead->end();now++){
string top = *now;
for(auto itr = top.begin();itr!=top.end();itr++){
char ch = *(itr);
for(int j = 0; j<26; j++){
*(itr) = 'a'+j;
if(*(itr)!=ch && ptail->find(top) != ptail->end()) {
got = true;
isbegin ? parent[top].insert(*(now)) : parent[*(now)].insert(top);
}
else if(*(itr)!=ch && wordlist.find(top)!=wordlist.end()){
isbegin ? parent[top].insert(*(now)) : parent[*(now)].insert(top);
next.insert(top);
}
}
*itr = ch;
}
}
*phead = next;
}
if(got) {
vector<string>cur={endWord};
getPath(res,cur,beginWord,endWord);
}
return res;
}
void getPath(vector<vector<string>>& res, vector<string>& cur, const string& beginWord, string curword){
if(curword == beginWord){
reverse(cur.begin(),cur.end());
res.push_back(cur);
reverse(cur.begin(),cur.end());
return;
}
for(auto itr: parent[curword]){
cur.push_back(itr);
getPath(res,cur,beginWord,itr);
cur.pop_back();
}
}
}; | 36.943662 | 110 | 0.438048 | [
"vector"
] |
482b56d1f97388d86aab4814e18db3b0c817b7ac | 33,906 | cpp | C++ | main.cpp | tkduman/project-x | 93f061c70ff7a491af33f82d09aa0b69329cd4e9 | [
"Apache-2.0"
] | null | null | null | main.cpp | tkduman/project-x | 93f061c70ff7a491af33f82d09aa0b69329cd4e9 | [
"Apache-2.0"
] | 1 | 2018-03-14T16:17:03.000Z | 2018-03-14T16:17:03.000Z | main.cpp | tkduman/project-x | 93f061c70ff7a491af33f82d09aa0b69329cd4e9 | [
"Apache-2.0"
] | 1 | 2018-03-14T16:16:38.000Z | 2018-03-14T16:16:38.000Z | #include <string>
#include <iostream>
#include <conio.h>
#undef MOUSE_MOVED
#include <curses.h>
#include <ctime>
#include <cstdlib>
#include <string>
#include "player.h"
#include "monster.h"
#include "system.h"
#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/prepared_statement.h>
#include <chrono>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/archive/iterators/base64_from_binary.hpp>
#include <boost/archive/iterators/transform_width.hpp>
#include <boost/archive/iterators/ostream_iterator.hpp>
#include <utility>
#include <duman.h>
using boost::asio::ip::tcp;
using namespace boost::archive::iterators;
typedef base64_from_binary<transform_width<const char *, 6, 8> > base64_text;
vector<string> monster_name_array;
player p1(100, 100, "NULL", 0);
string username, password, mail, time_setting, onlinestatus;
string user_mail, user_name;
string sha256_password;
string settings_file = "settings.ini";
int auto_save_time_interval_seconds = 20;
__int64 total = 0;
int total_kills = 0;
int total_max_hp = 0;
int boost_count = 0;
bool auto_save_enabled = false; // in settings give ability to set time. don't allow below 15 seconds. self note. do it.
bool first_save = true;
int times_you_died = 0;
int gold = 0;
bool auto_option = false;
bool auto_option_enabled = true;
char choice = '?';
char ch;
unsigned int killstreak = 0;
auto sql_ip = static_cast<sql::SQLString>(init_settings(settings_file, 0, 'D').c_str());
auto sql_username = static_cast<sql::SQLString>(init_settings(settings_file, 1, 'D').c_str());
auto sql_password = static_cast<sql::SQLString>(init_settings(settings_file, 2, 'D').c_str());
void online_save();
void forgot_password();
void search_opponent();
void duman_battle(const string&);
int main()
{
const auto hwnd = GetConsoleWindow();
const auto hmenu = GetSystemMenu(hwnd, FALSE);
EnableMenuItem(hmenu, SC_CLOSE, MF_GRAYED);
/*
This one checks if the internet connection is there or not to a particular URL.
If it fails to connect, you can do/say anything inside the fucntion.
I recommend any_to_exit(true); from duman.h file.
Don't forget to set your own IP address on the first parameter.
*/
if (!InternetCheckConnection("https://dumanstudios.com", FLAG_ICC_FORCE_CONNECTION, 0))
{
cout << "Connection to DumanSTUDIOS.com is failed.\nPlease check your internet connection.\n\n";
any_to_exit();
}
// MYSQL STUFF BELOW (If you have a running MySQL server and a working IP with open ports, you don't have to change anything.)
sql::Driver *driver;
sql::Connection *con;
sql::Statement *stmt;
sql::PreparedStatement *pstmt;
sql::ResultSet *result;
auto selection = '?';
auto selection2 = '?';
string char_selection;
string execution_command;
string selection3;
try {
driver = get_driver_instance();
con = driver->connect(sql_ip, sql_username, sql_password);
con->setSchema("duman");
stmt = con->createStatement();
stmt->execute("CREATE TABLE IF NOT EXISTS `duman`.`members`(`id` int(11) NOT NULL AUTO_INCREMENT,`username` varchar(30) NOT NULL, `charName` varchar(50) NOT NULL, `hp` varchar(50) NOT NULL,`email` varchar(50) NOT NULL,`password` varchar(128) NOT NULL, `exp` varchar(50) NOT NULL, `level` varchar(50) NOT NULL, `boosts` varchar(50) NOT NULL, `autoHPItem` varchar(50) NOT NULL, `autoSaveTime` varchar(50) NOT NULL, `playTime` varchar(50) NOT NULL, `monstersKilled` varchar(50) NOT NULL, `autoSaveEnabled` varchar(50) NOT NULL, `maxHP` varchar(50) NOT NULL, `youDied` varchar(50) NOT NULL, `passwordToken` varchar(50) NOT NULL, `multiToken` varchar(50) NOT NULL, `onlineStatus` varchar(2) NOT NULL, `autoEnabled` varchar(50) NOT NULL, `gold` INT NOT NULL, PRIMARY KEY(`id`), UNIQUE KEY `username` (`username`)) ENGINE = MYISAM DEFAULT CHARSET = utf8; ");
selection5:
cout << "/* * * * * * * * * * * * * *\\\n";
cout << "| y: Yes, I am! |\n";
cout << "| n: No, I want to register!|\n";
cout << "| f: forgotten password! |\n";
cout << "\\* * * * * * * * * * * * * */\n\n";
cout << "Are you a registered user? (y/n/f): ";
cin >> selection3;
cin.ignore();
if (selection3 != "y" && selection3 != "n" && selection3 != "f")
{
cout << "Invalid selection!\n";
cout << "Do you want to try again? (y/n): ";
cin >> selection2;
if (selection2 == 'y')
{
clear();
refresh();
cout << "\n";
char_selection.clear();
goto selection5;
}
any_to_exit(1, true);
}
if (selection3 == "f")
{
cout << "Username : ";
cin >> user_name;
execution_command = "SELECT username FROM members WHERE username='" + user_name + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
if (result->next() == 0)
{
cout << "\nUser " << user_name << " doesn't exists in the database.\n";
any_to_exit(300, true);
}
cout << "Mail address: ";
cin >> user_mail;
execution_command = "SELECT email FROM members WHERE username='"
+ user_name + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
const string databasepulledmail = result->getString("email").c_str();
cout << "\n";
if (databasepulledmail != user_mail)
{
cout << "You have entered incorrect email for user " + user_name + "!\n";
any_to_exit(300, true);
}
}
forgot_password();
any_to_exit(300, true);
}
if (selection3 == "y")
{
//login here and load stuff from previous instance
selection2:
cout << "Username: ";
cin >> username;
cin.ignore();
// checking if username exists or not as the first step
execution_command = "SELECT username FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
if (result->next() == 0)
{
cout << "\nUser " << username << " doesn't exists in the database.\n";
cout << "Do you want to try again? (y/n): ";
cin >> selection;
cin.ignore();
if (selection == 'y')
{
clear();
refresh();
cout << "\n";
goto selection2;
}
cout << "To quit, press any key...\n";
_getch();
exit(1);
}
// end of check
selection3:
cout << "Password: ";
//new password masking trial
password = sinput('*', true);
//between here
string sha256_password;
dumansha256::hash256_hex_string(password, sha256_password);
execution_command = "SELECT password FROM members WHERE username='"
+ username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
const string databasepulledpw = result->getString("password").c_str();
cout << "\n";
if (databasepulledpw != sha256_password)
{
cout << "You have entered incorrect password for user " + username + "!\n";
cout << "Do you want to try again? (y/n): ";
cin >> selection;
if (selection == 'y')
{
clear();
refresh();
cout << "\n";
password.clear();
goto selection3;
}
cout << "To quit, press any key...\n";
_getch();
exit(1);
} // add an else if to check if username exists
// LOAD ALL DATA TO THE ITEMS HERE
// SINCE MYSQL IS IN STRING FORM CONVERT IT TO INT BACK
// STORING IS NO PROBLEM I GOT IT ALREADY
execution_command = "SELECT charName FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
p1.set_char_name(result->getString("charName").c_str());
} // charName
execution_command = "SELECT email FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
user_mail = result->getString("email").c_str();
} // user mail
execution_command = "SELECT username FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
user_name = result->getString("username").c_str();
} // username
execution_command = "SELECT exp FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
p1.set_exp(result->getString("exp").c_str());
} // exp
execution_command = "SELECT boosts FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
p1.set_boosts(result->getString("boosts").c_str());
} // boosts
execution_command = "SELECT hp FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
p1.set_hp(result->getString("hp").c_str());
if (p1.return_hp() <= 0)
{
p1.set_hp("1");
break;
}
} // hp
execution_command = "SELECT autoSaveEnabled FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
auto_save_enabled = stoi(result->getString("autoSaveEnabled").c_str());
} // autoSaveEnabled
execution_command = "SELECT autoSaveTime FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
auto_save_time_interval_seconds = stoi(result->getString("autoSaveTime").c_str());
} // autoSaveTimeInterval
execution_command = "SELECT playTime FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
total = stoi(result->getString("playTime").c_str());
} // playTime
execution_command = "SELECT monstersKilled FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
total_kills = stoi(result->getString("monstersKilled").c_str());
} // monstersKilled
execution_command = "SELECT maxHP FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
p1.set_max_hp(result->getString("maxHP").c_str());
} // maxHP
execution_command = "SELECT youDied FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
times_you_died = stoi(result->getString("youDied").c_str());
} // you died
execution_command = "SELECT autoHPItem FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
p1.set_autohpitem(result->getString("autoHPItem").c_str());
} // autoHPItem
execution_command = "SELECT autoEnabled FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
p1.set_auto_enabled(stoi(result->getString("autoEnabled").c_str()));
} // autoEnabled
execution_command = "SELECT onlineStatus FROM members WHERE username = '" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
onlinestatus = result->getString("onlineStatus").c_str();
} // onlineStatus
execution_command = "SELECT gold FROM members WHERE username = '" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
gold = result->getInt("gold");
} p1.set_gold(gold); // gold amount
execution_command = "SELECT monster_name FROM monsters_test";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next()) {
monster_name_array.emplace_back(result->getString("monster_name").c_str());
} // loadmonsternames
delete stmt;
delete con;
delete pstmt;
}
}
if (selection3 == "n")
{
selection6:
cout << "Enter your username: ";
cin >> username;
cin.ignore();
// check if user exists to prevent highjacking
execution_command = "SELECT username FROM members WHERE username='" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
if (result->next() != 0) {
cout << "User " << username << " is already registered! Try another username!\n";
goto selection6;
} // check if already registered
cout << "Enter your mail address: ";
cin >> mail;
cin.ignore();
cout << "Enter your password: ";
cin >> password;
cin.ignore();
string sha256_password;
dumansha256::hash256_hex_string(password, sha256_password);
execution_command = "INSERT INTO `members`(`username`, `email`, `password`) VALUES ('"
+ username + "','" + mail + "','" + sha256_password + "')";
stmt->execute(execution_command.c_str());
delete pstmt;
delete con;
delete stmt;
}
}
catch (sql::SQLException &e) {
if (e.getErrorCode() == 2003)
{
cout << "Secure server connection to DumanSTUDIOS.com is failed!\n";
key_to_exit(1000, 'q', 0, true);
}
cout << "# ERR: SQLException in " << __FILE__;
cout << "(" << __FUNCTION__ << ") on line " << __LINE__ << endl;
cout << "# ERR: " << e.what();
cout << " (MySQL error code: " << e.getErrorCode();
cout << ", SQLState: " << e.getSQLState() << " )" << endl;
cout << "Press 'q' to quit.\n";
key_to_exit(1000, 'q', 0, true);
}
// MYSQL STUFF ABOVE
// MY STUFF BELOW
p1.set_char_name(username);
p1.set_monsters_killed(total_kills);
srand(static_cast<unsigned int>(time(nullptr)));
auto random_access = rand() % (monster_name_array.size() - 1) + 1;
auto exit = false;
systemclass sys;
monster m1(100, 230, monster_name_array[random_access]);
auto key = 'z';
p1.set_death_count(times_you_died);
if (p1.return_specitem() == 1)
{
auto_option = true;
}
initscr();
while (!exit)
{
const auto start = chrono::system_clock::now();
if (_kbhit())
key = _getch();
switch (key)
{
case 27:
exit = true;
online_save();
cout << "\nSynced all the variables and settings with the server!\n";
cout << "Exiting!\n";
Sleep(2500);
break;
case 'a':
case 'A':
random_access = rand() % (monster_name_array.size() - 1) + 1;
m1.seed(p1, monster_name_array[random_access]);
REATTK:
p1.initiate_attack(p1, m1);
clear();
Sleep(800);
refresh();
systemclass::battle_information(p1, m1);
if (p1.return_hp() <= 0)
{
exit = true;
times_you_died++;
online_save();
cout << "\nREST IN PEACE [*]\n\nWhile you were in a battle with " << m1.return_name() << ", you died.\n";
cout << "Press any key to close the program...\n";
_getch();
break;
}
if (m1.return_hp() > 0)
goto REATTK;
total_kills++;
p1.set_monsters_killed(total_kills);
p1.update_player_exp(m1);
online_save();
break;
case 'h':
case 'H':
p1.heal(p1.return_h_pregen());
break;
case 's':
case 'S':
online_save();
cout << "\nCloud save complete!\n";
Sleep(750);
break;
case 'd':
case 'D':
cout << "Welcome to the Market!\n\n";
cout << "Items for sale:\n";
cout << "1. Boost x1 [50 gold]\n";
cout << "Description: Gives you extra 50 HP, this way your HP\ncan exceed max HP, note if you heal while boosted, you lose extra HP!\n";
choice = _getch();
switch(choice)
{
case '1':
if(p1.return_gold() < 50)
{
cout << "\nInsufficient gold!\n";
Sleep(1500);
}
else
{
p1.market_gold(50);
cout << "\nBought x1 boost!\n";
boost_count = p1.return_boosts() + 1;
p1.set_boosts(to_string(boost_count));
Sleep(200);
}
break;
default:
break;
}
break;
case 'o':
case 'O':
cout << "OPTIONS:\n";
cout << "1. Enable/Disable auto save";
cout << " (" << boolalpha << auto_save_enabled << noboolalpha << ")\n";
cout << "2. Set auto save time interval";
cout << " (" << auto_save_time_interval_seconds << " seconds)\n";
cout << "3. Change your password\n";
cout << "4. Set online status";
cout << " (";
if (onlinestatus == "1")
cout << "online)\n";
if (onlinestatus == "0")
cout << "offline)\n";
if (auto_option)
{
cout << "5. Enable/Disable auto hp item";
cout << " (" << boolalpha << p1.return_auto_enabled() << noboolalpha << ")\n";
}
choice = _getch();
switch (choice)
{
case '1':
if (!auto_save_enabled)
{
auto_save_enabled = true;
cout << "Auto save is now enabled!\n";
driver = get_driver_instance();
con = driver->connect(sql_ip, sql_username, sql_password);
con->setSchema("duman");
stmt = con->createStatement();
execution_command = "UPDATE `members` SET `autoSaveEnabled`='" + to_string(auto_save_enabled) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
cout << "\nYour settings are synced online.\n";
delete con;
delete stmt;
Sleep(1500);
break;
}
if (auto_save_enabled)
{
auto_save_enabled = false;
cout << "Auto save is now disabled!\n";
driver = get_driver_instance();
con = driver->connect(sql_ip, sql_username, sql_password);
con->setSchema("duman");
stmt = con->createStatement();
execution_command = "UPDATE `members` SET `autoSaveEnabled`='" + to_string(auto_save_enabled) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
cout << "\nYour settings are synced online.\n";
delete con;
delete stmt;
Sleep(1500);
break;
}
case '2':
selection4:
cout << "Per XX seconds sync with the servers: ";
time_setting = sinput('*', false);
auto_save_time_interval_seconds = stoi(time_setting);
if (auto_save_time_interval_seconds < 15)
{
cout << "\n\nTime interval cannot be smaller than 15 seconds!\n";
cout << "Provide a time interval which is greater than 15 seconds.\n";
auto_save_time_interval_seconds = 20;
Sleep(1500);
time_setting.clear();
goto selection4;
}
driver = get_driver_instance();
con = driver->connect(sql_ip, sql_username, sql_password);
con->setSchema("duman");
stmt = con->createStatement();
execution_command = "UPDATE `members` SET `autoSaveTime`='" + to_string(auto_save_time_interval_seconds) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
cout << "\n\nTime interval to auto save is now " << auto_save_time_interval_seconds << " seconds!\n";
cout << "Your settings are synced online.\n";
delete stmt;
delete con;
time_setting.clear();
Sleep(1500);
break;
case '3':
cout << "\nEnter your new password: ";
password = sinput('*', false);
dumansha256::hash256_hex_string(password, sha256_password);
driver = get_driver_instance();
con = driver->connect(sql_ip, sql_username, sql_password);
con->setSchema("duman");
stmt = con->createStatement();
execution_command = "UPDATE `members` SET `password` = '" + sha256_password + "' WHERE `username` = '";
execution_command.append(username);
execution_command.append("'");
stmt->execute(execution_command.c_str());
cout << "\nYour password is now updated!\n";
delete stmt;
delete con;
Sleep(1500);
break;
case '4':
driver = get_driver_instance();
con = driver->connect(sql_ip, sql_username, sql_password);
con->setSchema("duman");
stmt = con->createStatement();
execution_command = "SELECT onlineStatus FROM `members` WHERE `username` = '" + username + "'";
pstmt = con->prepareStatement(execution_command.c_str());
result = pstmt->executeQuery();
while (result->next())
{
onlinestatus = result->getString("onlineStatus").c_str();
}
if (onlinestatus.empty())
{
cout << "You're now online!\n";
Sleep(1500);
onlinestatus = "1";
}
if (onlinestatus == "0")
{
cout << "You're now online!\n";
Sleep(1500);
onlinestatus = "1";
}
else if (onlinestatus == "1")
{
cout << "You're now offline!\n";
Sleep(1500);
onlinestatus = "0";
}
execution_command = "UPDATE `members` SET `onlineStatus` = '" + onlinestatus + "' WHERE `username`='" += username + "'";
stmt->execute(execution_command.c_str());
break;
case '5':
{
if (p1.return_specitem() == 0)
{
cout << "\nYou don't have access to this menu yet!\n";
Sleep(1500);
break;
}
if (p1.return_auto_enabled())
{
p1.set_auto_enabled(false);
cout << "Auto healing item is disabled!\n";
online_save();
Sleep(1500);
break;
}
if (!p1.return_auto_enabled())
{
p1.set_auto_enabled(true);
cout << "Auto healing item is enabled!\n";
online_save();
Sleep(1500);
break;
}
}
case 27:
case 'o':
case 'O':
break;
default:
cout << "Invalid choice.\n";
Sleep(1500);
}
break;
case 'b':
case 'B':
p1.heal_boost();
break;
case 't':
case 'T':
cout << "This is a debug text.\n";
Sleep(1000); // change this to make the text remain longer for att later
break;
case 'm':
case 'M':
cout << "Welcome to Duman-Battle matchmaking!\n\n";
cout << "Searching for an opponent...";
Sleep(1000);
search_opponent();
default:
break;
} key = 'z';
clear();
Sleep(95);
refresh();
p1.should_level_up(p1);
p1.information();
if (p1.return_specitem() == 1 && p1.return_auto_enabled() && (p1.return_hp() < p1.return_max_hp()))
{
p1.heal(p1.return_h_pregen());
}
const auto end = chrono::system_clock::now();
auto elapsed = std::chrono::duration_cast<chrono::milliseconds>(end - start);
total += elapsed.count();
if (total > (auto_save_time_interval_seconds * 1000) &&
total % (auto_save_time_interval_seconds * 1000) < 100 &&
total % (auto_save_time_interval_seconds * 1000) > 1 &&
auto_save_enabled)
{
online_save();
}
if (first_save)
{
online_save();
first_save = false;
}
}
endwin();
}
void online_save()
{
auto driver = get_driver_instance();
auto con = driver->connect(sql_ip, sql_username, sql_password);
con->setSchema("duman");
auto stmt = con->createStatement();
auto execution_command = "UPDATE `members` SET `charName`='" + p1.return_name() + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `hp`='" + to_string(p1.return_hp()) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `exp`='" + to_string(p1.return_exp()) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `level`='" + to_string(p1.return_level()) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `boosts`='" + to_string(p1.return_boosts()) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `autoHPItem`='" + to_string(p1.return_specitem()) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `playTime`='" + to_string(total) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `autoSaveEnabled`='" + to_string(auto_save_enabled) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `autoSaveTime`='" + to_string(auto_save_time_interval_seconds) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `monstersKilled`='" + to_string(total_kills) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `maxHP`='" + to_string(p1.return_max_hp()) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `youDied`='" + to_string(times_you_died) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `autoHPItem`='" + to_string(p1.return_specitem()) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `autoEnabled`='" + to_string(p1.return_auto_enabled()) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
execution_command = "UPDATE `members` SET `gold`='" + to_string(p1.return_gold()) + "' WHERE `username`='" + username + "';";
stmt->execute(execution_command.c_str());
delete stmt;
delete con;
}
///////////////////// MAIL STUFF
class smtp_client
{
public:
smtp_client(std::string p_server, const unsigned int p_port, std::string p_user, std::string p_password) :
m_server_(std::move(p_server)), m_user_name_(std::move(p_user)), m_password_(std::move(p_password)), m_port_(p_port), m_resolver_(m_io_service_), m_socket_(m_io_service_)
{
const tcp::resolver::query qry(m_server_, std::to_string(m_port_));
m_resolver_.async_resolve(qry, boost::bind(&smtp_client::handle_resolve, this, boost::asio::placeholders::error,
boost::asio::placeholders::iterator));
}
bool send(const std::string& p_from, const std::string& p_to, const std::string& p_subject, const std::string& p_message)
{
m_from_ = p_from;
m_to_ = p_to;
m_subject_ = p_subject;
m_message_ = p_message;
m_io_service_.run();
return m_has_error_;
}
private:
std::string encode_base64(const std::string& p_data) const
{
std::stringstream os;
const auto sz = p_data.size();
std::copy(base64_text(p_data.c_str()), base64_text(p_data.c_str() + sz), std::ostream_iterator<char>(os));
return os.str();
}
void handle_resolve(const boost::system::error_code& err, tcp::resolver::iterator endpoint_iterator)
{
if (!err)
{
const tcp::endpoint endpoint = *endpoint_iterator;
m_socket_.async_connect(endpoint,
boost::bind(&smtp_client::handle_connect, this, boost::asio::placeholders::error, ++endpoint_iterator));
}
else
{
m_has_error_ = true;
m_error_msg_ = err.message();
}
}
void write_line(const std::string& p_data)
{
std::ostream req_strm(&m_request_);
req_strm << p_data << "\r\n";
write(m_socket_, m_request_);
req_strm.clear();
}
void handle_connect(const boost::system::error_code& error, const tcp::resolver::iterator&)
{
if (!error)
{
// The connection was successful. Send the request.
std::ostream req_strm(&m_request_);
write_line("EHLO " + m_server_);
write_line("AUTH LOGIN");
write_line(encode_base64(m_user_name_));
write_line(encode_base64(m_password_));
write_line("MAIL FROM:<" + m_from_ + ">");
write_line("RCPT TO:<" + m_to_ + ">");
write_line("DATA");
write_line("SUBJECT:" + m_subject_);
write_line("From:" + m_from_);
write_line("To:" + m_to_);
write_line("");
write_line(m_message_);
write_line(".\r\n");
}
else
{
m_has_error_ = true;
m_error_msg_ = error.message();
}
}
std::string m_server_;
std::string m_user_name_;
std::string m_password_;
std::string m_from_;
std::string m_to_;
std::string m_subject_;
std::string m_message_;
unsigned int m_port_;
boost::asio::io_service m_io_service_;
tcp::resolver m_resolver_;
tcp::socket m_socket_;
boost::asio::streambuf m_request_;
boost::asio::streambuf m_response_;
bool m_has_error_{};
std::string m_error_msg_;
};
string smtp_url = init_settings(settings_file, 3, 'D');
const unsigned smtp_port = stoi(init_settings(settings_file, 4, 'D'));
string smtp_username = init_settings(settings_file, 5, 'D');
string smtp_password = init_settings(settings_file, 6, 'D');
void forgot_password()
{
const auto new_token = password_generator(5, false, false);
/* MAIL STUFF BELOW */
smtp_client mailc(smtp_url, smtp_port, smtp_username, smtp_password);
mailc.send("noreply@dumanstudios.com", user_mail, "Password Recovery", "Hey, " + user_name +
"!\n\nSomeone (hopefully you!) has submitted a forgotten password request for your account on DumanSTUDIOS projectX\n\n"
+ "Here's the token to update your password:\n" + new_token + "\n\n If you didn't do this request just ignore or contact us at https://support.dumanstudios.com \n\n");
/* SQL UPDATE BELOW */
auto driver = get_driver_instance();
auto con = driver->connect(sql_ip, sql_username, sql_password);
con->setSchema("duman");
auto stmt = con->createStatement();
auto execution_command = "UPDATE `members` SET `passwordToken` = '" + new_token + "' WHERE `username` = '" + user_name + "'";
stmt->execute(execution_command.c_str());
cout << "An e-mail that's containing password reset token has been sent to the address " << user_mail << "!\n";
pass_reset:
cout << "Enter token to reset your password: ";
const auto token_input = sinput('*', false);
if (token_input == new_token)
{
doubleconfirm:
cout << "Enter your new password: ";
const auto new_password = sinput('*', false);
cout << "Enter your new password again: ";
const auto repeat_pass = sinput('*', false);
if (new_password == repeat_pass)
{
string sha256_password;
dumansha256::hash256_hex_string(new_password, sha256_password);
execution_command = "UPDATE `members` SET `password`='" + sha256_password + "' WHERE `username`='" + user_name + "';";
stmt->execute(execution_command.c_str());
}
else
{
clear();
cout << "Passwords do not match! Try again!\n";
goto doubleconfirm;
}
}
else
{
cout << "Whops, that token doesn't look like it's valid!\nWould you like to try again? (y/n): ";
auto selection_inp = sinput('*', false);
if (choice == 'y')
{
goto pass_reset;
}
}
execution_command = "UPDATE `members` SET `passwordToken` = '""' WHERE `username` = '" + user_name + "'";
stmt->execute(execution_command.c_str());
cout << "Your password has been successfuly updated and previous reset token has been deauthorized!\n";
delete stmt;
delete con;
}
// MULTI STUFF
void search_opponent()
{
vector<string> onusers;
const string online = "online";
auto driver = get_driver_instance();
auto con = driver->connect(sql_ip, sql_username, sql_password);
con->setSchema("duman");
auto stmt = con->createStatement();
auto execution_command = "UPDATE `members` SET `onlineStatus` = '1' WHERE `username`='" + username + "'";
stmt->execute(execution_command.c_str());
execution_command = "SELECT `username` FROM `members` WHERE `onlineStatus` = '1'";
auto pstmt = con->prepareStatement(execution_command.c_str());
auto result = pstmt->executeQuery();
while (result->next())
{
string db_username = result->getString("username").c_str();
if (db_username == username)
continue;
onusers.emplace_back(db_username);
}
if (onusers.empty())
{
cout << "\n\nCurrently no other user is available! :(\n";
cout << "Please try again later.\n";
Sleep(3000);
}
else
{
auto trial_amount = 0;
try_again:
// ReSharper disable once CppLocalVariableMayBeConst
auto selection = rand() % onusers.size(); // this can't be const otherwise there's probability of fighting yourself
if (onusers[selection] == username)
{
trial_amount++;
if (trial_amount > 10)
{
cout << "Currently no other user is available! :(\n";
goto end_of_search;
}
goto try_again;
}
duman_battle(onusers[selection]);
}
cout << "\n";
end_of_search:
delete result;
delete pstmt;
delete stmt;
delete con;
}
void duman_battle(const string& remoteuser)
{
clear();
string db_remoteuserhp, db_remoteuserlevel;
auto driver = get_driver_instance();
auto con = driver->connect(sql_ip, sql_username, sql_password);
con->setSchema("duman");
const auto stmt = con->createStatement();
auto execution_command = "SELECT hp, level FROM `members` WHERE `username` = '" + remoteuser + "'";
auto pstmt = con->prepareStatement(execution_command.c_str());
auto result = pstmt->executeQuery();
while (result->next())
{
db_remoteuserhp = result->getString("hp").c_str();
db_remoteuserlevel = result->getString("level").c_str();
}
monster remote_user(stoi(db_remoteuserhp), stoi(db_remoteuserlevel), remoteuser);
remote_user.pvpseed(p1, remoteuser, stoi(db_remoteuserhp), stoi(db_remoteuserlevel));
REATTK:
p1.initiate_attack(p1, remote_user);
clear();
Sleep(800);
refresh();
systemclass::battle_information(p1, remote_user);
if (p1.return_hp() <= 0)
{
//times_you_died++; change this to multiplayer times death
online_save();
cout << "\nREST IN PEACE [*]\n\nWhile you were in a battle with " << remote_user.return_name() << ", you died.\n";
any_to_exit(0, true);
}
if (remote_user.return_hp() > 0)
goto REATTK;
total_kills++;
p1.set_monsters_killed(total_kills);
p1.update_player_exp(remote_user);
online_save();
delete result;
delete stmt;
delete pstmt;
delete con;
}
| 34.008024 | 853 | 0.656403 | [
"vector"
] |
482da8e879a9c82a8e86256bdd6adf9c1cb999c9 | 2,004 | cpp | C++ | LightOJ/AllPosibleIncreasingSubsequences.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | LightOJ/AllPosibleIncreasingSubsequences.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | LightOJ/AllPosibleIncreasingSubsequences.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #ifndef THE_KNIGHTS_OF_THE_HASH_TABLE
//~ #include <ext/pb_ds/assoc_container.hpp>
//~ #include <ext/pb_ds/tree_policy.hpp>
#include <bits/stdc++.h>
#ifdef ONLINE_JUDGE
#define DB(x)
#define DBL(x)
#define EL
#define endl "\n"
#else
#define DB(x) cerr << "#" << (#x) << ": " << (x) << " ";
#define DBL(x) cerr << "#" << (#x) << ": " << (x) << endl;
#define EL cerr << endl;
#endif
#define FAST_AS_HELL ios_base::sync_with_stdio(0); cin.tie(0);
#define X first
#define Y second
#define PB push_back
#define MP make_pair
#define SQ(x) ((x)*(x))
#define GB(m, x) ((m) & (1<<(x)))
#define SB(m, x) ((m) | (1<<(x)))
#define CB(m, x) ((m) & (~(1<<(x))))
#define TB(m, x) ((m) ^ (1<<(x)))
//~ using namespace __gnu_pbds;
//~ typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> PBDS;
using namespace std; typedef string string;
typedef double ld; typedef unsigned long long ull;
typedef long long ll; typedef pair<ll, ll> ii;
typedef pair<int, ii> iii; typedef vector<int> vi;
typedef vector<ii> vii; typedef vector<vi> vvi;
typedef vector<ll> vll; typedef pair<string, string> ss;
#endif
const ll MX = 100100, MOD = 1000000007;
int n, F[MX];
ii A[MX];
void update(int x, int v){
for(; x <= n; x += x&-x) F[x] = (F[x] + v) % MOD;
}
int query(int x){
int r = 0;
for(; x > 0; x -= x&-x) r = (r + F[x]) % MOD;
return r;
}
int query(int x, int y){
return (query(y) - query(x-1) + MOD) % MOD;
}
struct cmp {
bool operator()(const ii &a, const ii &b) const {
return a.X == b.X ? a.Y > b.Y : a.X < b.X;
}
};
int main() {
//~ FAST_AS_HELL;
int tc, t, a, i;
scanf("%d", &t);
for(tc = 1; tc <= t; tc++){
scanf("%d", &n);
memset(F, 0, sizeof F);
for(i = 1; i <= n; i++) {
scanf("%d", &a);
A[i] = {a, i};
}
sort(A+1, A+n+1, cmp());
int r = 0;
for(i = 1; i <= n; i++){
a = query(1, A[i].Y) + 1;
r = (r + a) % MOD;
update(A[i].Y, a);
}
printf("Case %d: %d\n", tc, r);
}
}
| 23.857143 | 97 | 0.549401 | [
"vector"
] |
48390434cab1d7850ab172370cae2e02f91caa32 | 8,232 | cc | C++ | test/heap_test.cc | ucr-ufluidics/lemon | a8eb83f0cec960d1abb2696f5c635ce4a18c5cdc | [
"BSL-1.0"
] | null | null | null | test/heap_test.cc | ucr-ufluidics/lemon | a8eb83f0cec960d1abb2696f5c635ce4a18c5cdc | [
"BSL-1.0"
] | null | null | null | test/heap_test.cc | ucr-ufluidics/lemon | a8eb83f0cec960d1abb2696f5c635ce4a18c5cdc | [
"BSL-1.0"
] | null | null | null | /* -*- mode: C++; indent-tabs-mode: nil; -*-
*
* This file is a part of LEMON, a generic C++ optimization library.
*
* Copyright (C) 2003-2011
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
* (Egervary Research Group on Combinatorial Optimization, EGRES).
*
* Permission to use, modify and distribute this software is granted
* provided that this copyright notice appears in all copies. For
* precise terms see the accompanying LICENSE file.
*
* This software is provided "AS IS" with no warranty of any kind,
* express or implied, and with no claim as to its suitability for any
* purpose.
*
*/
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <lemon/concept_check.h>
#include <lemon/concepts/heap.h>
#include <lemon/smart_graph.h>
#include <lemon/lgf_reader.h>
#include <lemon/dijkstra.h>
#include <lemon/maps.h>
#include <lemon/bin_heap.h>
#include <lemon/quad_heap.h>
#include <lemon/dheap.h>
#include <lemon/fib_heap.h>
#include <lemon/pairing_heap.h>
#include <lemon/radix_heap.h>
#include <lemon/binomial_heap.h>
#include <lemon/bucket_heap.h>
#include "test_tools.h"
using namespace lemon;
using namespace lemon::concepts;
typedef ListDigraph Digraph;
DIGRAPH_TYPEDEFS(Digraph);
char test_lgf[] =
"@nodes\n"
"label\n"
"0\n"
"1\n"
"2\n"
"3\n"
"4\n"
"5\n"
"6\n"
"7\n"
"8\n"
"9\n"
"@arcs\n"
" label capacity\n"
"0 5 0 94\n"
"3 9 1 11\n"
"8 7 2 83\n"
"1 2 3 94\n"
"5 7 4 35\n"
"7 4 5 84\n"
"9 5 6 38\n"
"0 4 7 96\n"
"6 7 8 6\n"
"3 1 9 27\n"
"5 2 10 77\n"
"5 6 11 69\n"
"6 5 12 41\n"
"4 6 13 70\n"
"3 2 14 45\n"
"7 9 15 93\n"
"5 9 16 50\n"
"9 0 17 94\n"
"9 6 18 67\n"
"0 9 19 86\n"
"@attributes\n"
"source 3\n";
int test_seq[] = { 2, 28, 19, 27, 33, 25, 13, 41, 10, 26, 1, 9, 4, 34};
int test_inc[] = {20, 28, 34, 16, 0, 46, 44, 0, 42, 32, 14, 8, 6, 37};
int test_len = sizeof(test_seq) / sizeof(test_seq[0]);
template <typename Heap>
void heapSortTest() {
RangeMap<int> map(test_len, -1);
Heap heap(map);
std::vector<int> v(test_len);
for (int i = 0; i < test_len; ++i) {
v[i] = test_seq[i];
heap.push(i, v[i]);
}
std::sort(v.begin(), v.end());
for (int i = 0; i < test_len; ++i) {
check(v[i] == heap.prio(), "Wrong order in heap sort.");
heap.pop();
}
}
template <typename Heap>
void heapIncreaseTest() {
RangeMap<int> map(test_len, -1);
Heap heap(map);
std::vector<int> v(test_len);
for (int i = 0; i < test_len; ++i) {
v[i] = test_seq[i];
heap.push(i, v[i]);
}
for (int i = 0; i < test_len; ++i) {
v[i] += test_inc[i];
heap.increase(i, v[i]);
}
std::sort(v.begin(), v.end());
for (int i = 0; i < test_len; ++i) {
check(v[i] == heap.prio(), "Wrong order in heap increase test.");
heap.pop();
}
}
template <typename Heap>
void dijkstraHeapTest(const Digraph& digraph, const IntArcMap& length,
Node source) {
typename Dijkstra<Digraph, IntArcMap>::template SetStandardHeap<Heap>::
Create dijkstra(digraph, length);
dijkstra.run(source);
for(ArcIt a(digraph); a != INVALID; ++a) {
Node s = digraph.source(a);
Node t = digraph.target(a);
if (dijkstra.reached(s)) {
check( dijkstra.dist(t) - dijkstra.dist(s) <= length[a],
"Error in shortest path tree.");
}
}
for(NodeIt n(digraph); n != INVALID; ++n) {
if ( dijkstra.reached(n) && dijkstra.predArc(n) != INVALID ) {
Arc a = dijkstra.predArc(n);
Node s = digraph.source(a);
check( dijkstra.dist(n) - dijkstra.dist(s) == length[a],
"Error in shortest path tree.");
}
}
}
int main() {
typedef int Item;
typedef int Prio;
typedef RangeMap<int> ItemIntMap;
Digraph digraph;
IntArcMap length(digraph);
Node source;
std::istringstream input(test_lgf);
digraphReader(digraph, input).
arcMap("capacity", length).
node("source", source).
run();
// BinHeap
{
typedef BinHeap<Prio, ItemIntMap> IntHeap;
checkConcept<Heap<Prio, ItemIntMap>, IntHeap>();
heapSortTest<IntHeap>();
heapIncreaseTest<IntHeap>();
typedef BinHeap<Prio, IntNodeMap > NodeHeap;
checkConcept<Heap<Prio, IntNodeMap >, NodeHeap>();
dijkstraHeapTest<NodeHeap>(digraph, length, source);
}
// QuadHeap
{
typedef QuadHeap<Prio, ItemIntMap> IntHeap;
checkConcept<Heap<Prio, ItemIntMap>, IntHeap>();
heapSortTest<IntHeap>();
heapIncreaseTest<IntHeap>();
typedef QuadHeap<Prio, IntNodeMap > NodeHeap;
checkConcept<Heap<Prio, IntNodeMap >, NodeHeap>();
dijkstraHeapTest<NodeHeap>(digraph, length, source);
}
// DHeap
{
typedef DHeap<Prio, ItemIntMap> IntHeap;
checkConcept<Heap<Prio, ItemIntMap>, IntHeap>();
heapSortTest<IntHeap>();
heapIncreaseTest<IntHeap>();
typedef DHeap<Prio, IntNodeMap > NodeHeap;
checkConcept<Heap<Prio, IntNodeMap >, NodeHeap>();
dijkstraHeapTest<NodeHeap>(digraph, length, source);
}
// FibHeap
{
typedef FibHeap<Prio, ItemIntMap> IntHeap;
checkConcept<Heap<Prio, ItemIntMap>, IntHeap>();
heapSortTest<IntHeap>();
heapIncreaseTest<IntHeap>();
typedef FibHeap<Prio, IntNodeMap > NodeHeap;
checkConcept<Heap<Prio, IntNodeMap >, NodeHeap>();
dijkstraHeapTest<NodeHeap>(digraph, length, source);
}
// PairingHeap
{
typedef PairingHeap<Prio, ItemIntMap> IntHeap;
checkConcept<Heap<Prio, ItemIntMap>, IntHeap>();
heapSortTest<IntHeap>();
heapIncreaseTest<IntHeap>();
typedef PairingHeap<Prio, IntNodeMap > NodeHeap;
checkConcept<Heap<Prio, IntNodeMap >, NodeHeap>();
dijkstraHeapTest<NodeHeap>(digraph, length, source);
}
// RadixHeap
{
typedef RadixHeap<ItemIntMap> IntHeap;
checkConcept<Heap<Prio, ItemIntMap>, IntHeap>();
heapSortTest<IntHeap>();
heapIncreaseTest<IntHeap>();
typedef RadixHeap<IntNodeMap > NodeHeap;
checkConcept<Heap<Prio, IntNodeMap >, NodeHeap>();
dijkstraHeapTest<NodeHeap>(digraph, length, source);
}
// BinomialHeap
{
typedef BinomialHeap<Prio, ItemIntMap> IntHeap;
checkConcept<Heap<Prio, ItemIntMap>, IntHeap>();
heapSortTest<IntHeap>();
heapIncreaseTest<IntHeap>();
typedef BinomialHeap<Prio, IntNodeMap > NodeHeap;
checkConcept<Heap<Prio, IntNodeMap >, NodeHeap>();
dijkstraHeapTest<NodeHeap>(digraph, length, source);
}
// BucketHeap, SimpleBucketHeap
{
typedef BucketHeap<ItemIntMap> IntHeap;
checkConcept<Heap<Prio, ItemIntMap>, IntHeap>();
heapSortTest<IntHeap>();
heapIncreaseTest<IntHeap>();
typedef BucketHeap<IntNodeMap > NodeHeap;
checkConcept<Heap<Prio, IntNodeMap >, NodeHeap>();
dijkstraHeapTest<NodeHeap>(digraph, length, source);
typedef SimpleBucketHeap<ItemIntMap> SimpleIntHeap;
heapSortTest<SimpleIntHeap>();
}
{
typedef FibHeap<Prio, ItemIntMap> IntHeap;
checkConcept<Heap<Prio, ItemIntMap>, IntHeap>();
heapSortTest<IntHeap>();
heapIncreaseTest<IntHeap>();
typedef FibHeap<Prio, IntNodeMap > NodeHeap;
checkConcept<Heap<Prio, IntNodeMap >, NodeHeap>();
dijkstraHeapTest<NodeHeap>(digraph, length, source);
}
{
typedef RadixHeap<ItemIntMap> IntHeap;
checkConcept<Heap<Prio, ItemIntMap>, IntHeap>();
heapSortTest<IntHeap>();
heapIncreaseTest<IntHeap>();
typedef RadixHeap<IntNodeMap > NodeHeap;
checkConcept<Heap<Prio, IntNodeMap >, NodeHeap>();
dijkstraHeapTest<NodeHeap>(digraph, length, source);
}
{
typedef BucketHeap<ItemIntMap> IntHeap;
checkConcept<Heap<Prio, ItemIntMap>, IntHeap>();
heapSortTest<IntHeap>();
heapIncreaseTest<IntHeap>();
typedef BucketHeap<IntNodeMap > NodeHeap;
checkConcept<Heap<Prio, IntNodeMap >, NodeHeap>();
dijkstraHeapTest<NodeHeap>(digraph, length, source);
}
return 0;
}
| 26.469453 | 74 | 0.624514 | [
"vector"
] |
483a276f95626286ec26b3f180f11287f745a502 | 584 | cpp | C++ | Reflection/src/Quad.cpp | perezite/sandbox-2 | cfe3be85170f8d305bd0766ee6b3ef6420a23915 | [
"MIT"
] | null | null | null | Reflection/src/Quad.cpp | perezite/sandbox-2 | cfe3be85170f8d305bd0766ee6b3ef6420a23915 | [
"MIT"
] | null | null | null | Reflection/src/Quad.cpp | perezite/sandbox-2 | cfe3be85170f8d305bd0766ee6b3ef6420a23915 | [
"MIT"
] | null | null | null | #include "Quad.h"
#include "Window.h"
namespace sb
{
Mesh Quad::QuadMesh({
Vertex(Vector2f(-0.5f, -0.5f), Color(1, 0, 0, 1), Vector2f(0, 0)),
Vertex(Vector2f( 0.5f, -0.5f), Color(0, 1, 0, 1), Vector2f(1, 0)),
Vertex(Vector2f(-0.5f, 0.5f), Color(0, 0, 1, 1), Vector2f(0, 1)),
Vertex(Vector2f( 0.5f, 0.5f), Color(0, 1, 1, 1), Vector2f(1, 1))
}, PrimitiveType::TriangleStrip);
void Quad::draw(DrawTarget& target, DrawStates states)
{
states.transform *= getTransform();
target.draw(QuadMesh.getVertices(), QuadMesh.getPrimitiveType(), states);
}
}
| 30.736842 | 76 | 0.625 | [
"mesh",
"transform"
] |
483b5776e08d0b1ff4589195e61f8844a247518b | 1,944 | cpp | C++ | pgf+/src/reader/ApplProduction.cpp | egladil/mscthesis | d6f0c9b1b1e73b749894405372f2edf01e746920 | [
"BSD-2-Clause"
] | 1 | 2019-05-03T18:00:39.000Z | 2019-05-03T18:00:39.000Z | pgf+/src/reader/ApplProduction.cpp | egladil/mscthesis | d6f0c9b1b1e73b749894405372f2edf01e746920 | [
"BSD-2-Clause"
] | null | null | null | pgf+/src/reader/ApplProduction.cpp | egladil/mscthesis | d6f0c9b1b1e73b749894405372f2edf01e746920 | [
"BSD-2-Clause"
] | null | null | null | //
// ApplProduction.cpp
// pgf+
//
// Created by Emil Djupfeldt on 2012-06-26.
// Copyright (c) 2012 Chalmers University of Technology. All rights reserved.
//
#include <gf/stringutil.h>
#include <gf/reader/ApplProduction.h>
namespace gf {
namespace reader {
ApplProduction::ApplProduction(uint32_t fId, CncFun* function, const std::vector<uint32_t>& domain)
: Production(0, fId), function(function), domain(domain) {
}
ApplProduction::~ApplProduction() {
gf::release(function);
}
std::string ApplProduction::toString() const {
std::string ret;
ret = gf::toString(fId);
ret+= " -> ";
ret+= function->getName();
ret+= "[";
for (std::vector<uint32_t>::const_iterator it = domain.begin(); it != domain.end(); it++) {
ret+= (it == domain.begin() ? "" : " ") + gf::toString(*it);
}
ret+= "]";
return ret;
}
bool ApplProduction::operator<(const Production* other) const {
const ApplProduction* appl;
appl = dynamic_cast<const ApplProduction*>(other);
if (appl == NULL) {
return this < other;
}
if (function < appl->function) {
return true;
} else if (function > appl->function) {
return false;
}
return domain < appl->domain;
}
const std::vector<uint32_t>& ApplProduction::getDomain() const {
return domain;
}
CncFun* ApplProduction::getFunction() const {
return function;
}
const std::vector<uint32_t>& ApplProduction::getArgs() const {
return domain;
}
}
} | 28.588235 | 107 | 0.48714 | [
"vector"
] |
483ef14baf46db400c26343148379dfad3439c3c | 6,183 | cpp | C++ | mplugins/math_mplugin/src/math/flow/FunctionBlocks.cpp | mico-corp/mico | 45febf13da8c919eea77af9fa3b91afeb324f81b | [
"MIT"
] | 3 | 2020-02-08T19:47:14.000Z | 2022-03-14T14:13:29.000Z | mplugins/math_mplugin/src/math/flow/FunctionBlocks.cpp | mico-corp/mico | 45febf13da8c919eea77af9fa3b91afeb324f81b | [
"MIT"
] | 10 | 2020-01-29T21:27:12.000Z | 2022-03-22T17:03:02.000Z | mplugins/math_mplugin/src/math/flow/FunctionBlocks.cpp | mico-corp/mico | 45febf13da8c919eea77af9fa3b91afeb324f81b | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------------------------------------------------
// Cameras wrapper MICO plugin
//---------------------------------------------------------------------------------------------------------------------
// Copyright 2020 Pablo Ramon Soria (a.k.a. Bardo91) pabramsor@gmail.com
//---------------------------------------------------------------------------------------------------------------------
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute,
// sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or substantial
// portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
// BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
// OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//---------------------------------------------------------------------------------------------------------------------
#include <mico/math/flow/FunctionBlocks.h>
#include <flow/Outpipe.h>
#include <sstream>
#include <cmath>
namespace mico{
namespace math{
BlockTimer::BlockTimer(){
createPipe<float>("timer");
}
bool BlockTimer::configure(std::vector<flow::ConfigParameterDef> _params) {
if (auto resolution = getParamByName(_params, "resolution"); resolution)
resolution_ = resolution.value().asDecimal();
return true;
}
std::vector<flow::ConfigParameterDef> BlockTimer::parameters(){
return {
{"resolution", flow::ConfigParameterDef::eParameterType::DECIMAL, 0.001f}
};
}
void BlockTimer::loopCallback() {
auto t0 = std::chrono::steady_clock::now();
auto t0r = std::chrono::steady_clock::now();
while(isRunningLoop()){
auto t1 = std::chrono::steady_clock::now();
float incTr = std::chrono::duration_cast<std::chrono::microseconds>(t1 - t0r).count();
if(incTr/1e6 > resolution_){
float incT = std::chrono::duration_cast<std::chrono::microseconds>(t1 - t0).count();
t0r = t1;
if(auto pipe = getPipe("timer"); pipe->registrations() !=0 ){
pipe->flush(float(incT/1e6));
}
}
}
}
BlockSine::BlockSine(){
createPipe<float>("result");
createPolicy({flow::makeInput<float>("time")});
registerCallback({"time"}, [&](flow::DataFlow _data){
auto t = _data.get<float>("time");
float result = amplitude_*sin(freq_*t + phase_);
getPipe("result")->flush(result);
});
}
bool BlockSine::configure(std::vector<flow::ConfigParameterDef> _params) {
if (auto amplitude = getParamByName(_params, "amplitude"); amplitude)
amplitude_ = amplitude.value().asDecimal();
if (auto frequency = getParamByName(_params, "frequency"); frequency)
freq_ = frequency.value().asDecimal();
if (auto phase = getParamByName(_params, "phase"); phase)
phase_ = phase.value().asDecimal();
return true;
}
std::vector<flow::ConfigParameterDef> BlockSine::parameters(){
return {
{"amplitude", flow::ConfigParameterDef::eParameterType::DECIMAL, 1.0f},
{"frequency", flow::ConfigParameterDef::eParameterType::DECIMAL, 1.0f},
{"phase", flow::ConfigParameterDef::eParameterType::DECIMAL, 0.0f}
};
}
BlockCosine::BlockCosine(){
createPipe<float>("result");
createPolicy({flow::makeInput<float>("time")});
registerCallback({"time"}, [&](flow::DataFlow _data){
auto t = _data.get<float>("time");
float result = amplitude_*cos(freq_*t + phase_);
getPipe("result")->flush(result);
});
}
bool BlockCosine::configure(std::vector<flow::ConfigParameterDef> _params) {
if (auto amplitude = getParamByName(_params, "amplitude"); amplitude)
amplitude_ = amplitude.value().asDecimal();
if (auto frequency = getParamByName(_params, "frequency"); frequency)
freq_ = frequency.value().asDecimal();
if (auto phase = getParamByName(_params, "phase"); phase)
phase_ = phase.value().asDecimal();
return true;
}
std::vector<flow::ConfigParameterDef> BlockCosine::parameters(){
return {
{"amplitude", flow::ConfigParameterDef::eParameterType::DECIMAL, 1.0f},
{"frequency", flow::ConfigParameterDef::eParameterType::DECIMAL, 1.0f},
{"phase", flow::ConfigParameterDef::eParameterType::DECIMAL, 0.0f}
};
}
}
} | 45.131387 | 119 | 0.503316 | [
"vector"
] |
c61d6886be3bea07bb9c7c72bb7d790c54fda75d | 808 | cpp | C++ | leetcode/0034_Find_First_and_Last_Position_of_Element_in_Sorted_Array/result.cpp | theck17/notes | f32f0f4b8f821b1ed38d173ef0913efddd094b91 | [
"MIT"
] | null | null | null | leetcode/0034_Find_First_and_Last_Position_of_Element_in_Sorted_Array/result.cpp | theck17/notes | f32f0f4b8f821b1ed38d173ef0913efddd094b91 | [
"MIT"
] | null | null | null | leetcode/0034_Find_First_and_Last_Position_of_Element_in_Sorted_Array/result.cpp | theck17/notes | f32f0f4b8f821b1ed38d173ef0913efddd094b91 | [
"MIT"
] | null | null | null | /**
* Copyright (C) 2021 All rights reserved.
*
* FileName :result.cpp
* Author :C.K
* Email :theck17@163.com
* DateTime :2021-03-22 19:54:53
* Description :
*/
#include <string> //字符串类
#include <vector> //STL 动态数组容器
#include <valarray> //对包含值的数组的操作
#include <ctime> //定义关于时间的函数
using namespace std;
class Solution {
public:
vector<int> searchRange(vector<int>& nums, int target) {
auto lb = lower_bound(nums.begin(), nums.end(), target);
auto ub = upper_bound(nums.begin(), nums.end(), target);
if(lb == nums.end() || lb == ub) return vector<int>{-1, -1};
return vector<int>{(int)(lb - nums.begin()), (int)(ub - nums.begin()) - 1};
}
};
int main(){
return 0;
}
| 26.064516 | 83 | 0.542079 | [
"vector"
] |
c6218e70c5671800825ad1e494b2922db69774fe | 2,991 | cpp | C++ | 3rdparty/openal/alc/filters/splitter.cpp | timgates42/crown | 1a0b09901932238f81a6107a8e56ca0883e91d0c | [
"MIT"
] | 1,279 | 2017-06-21T23:52:43.000Z | 2021-08-05T17:16:52.000Z | 3rdparty/openal/alc/filters/splitter.cpp | timgates42/crown | 1a0b09901932238f81a6107a8e56ca0883e91d0c | [
"MIT"
] | 17 | 2017-06-22T19:55:17.000Z | 2021-08-02T14:40:49.000Z | 3rdparty/openal/alc/filters/splitter.cpp | timgates42/crown | 1a0b09901932238f81a6107a8e56ca0883e91d0c | [
"MIT"
] | 107 | 2017-06-22T10:02:23.000Z | 2021-08-02T14:14:42.000Z |
#include "config.h"
#include "splitter.h"
#include <algorithm>
#include <cmath>
#include <limits>
#include "math_defs.h"
#include "opthelpers.h"
template<typename Real>
void BandSplitterR<Real>::init(Real f0norm)
{
const Real w{f0norm * al::MathDefs<Real>::Tau()};
const Real cw{std::cos(w)};
if(cw > std::numeric_limits<float>::epsilon())
mCoeff = (std::sin(w) - 1.0f) / cw;
else
mCoeff = cw * -0.5f;
mLpZ1 = 0.0f;
mLpZ2 = 0.0f;
mApZ1 = 0.0f;
}
template<typename Real>
void BandSplitterR<Real>::process(Real *hpout, Real *lpout, const Real *input, const size_t count)
{
ASSUME(count > 0);
const Real ap_coeff{mCoeff};
const Real lp_coeff{mCoeff*0.5f + 0.5f};
Real lp_z1{mLpZ1};
Real lp_z2{mLpZ2};
Real ap_z1{mApZ1};
auto proc_sample = [ap_coeff,lp_coeff,&lp_z1,&lp_z2,&ap_z1,&lpout](const Real in) noexcept -> Real
{
/* Low-pass sample processing. */
Real d{(in - lp_z1) * lp_coeff};
Real lp_y{lp_z1 + d};
lp_z1 = lp_y + d;
d = (lp_y - lp_z2) * lp_coeff;
lp_y = lp_z2 + d;
lp_z2 = lp_y + d;
*(lpout++) = lp_y;
/* All-pass sample processing. */
Real ap_y{in*ap_coeff + ap_z1};
ap_z1 = in - ap_y*ap_coeff;
/* High-pass generated from removing low-passed output. */
return ap_y - lp_y;
};
std::transform(input, input+count, hpout, proc_sample);
mLpZ1 = lp_z1;
mLpZ2 = lp_z2;
mApZ1 = ap_z1;
}
template<typename Real>
void BandSplitterR<Real>::applyHfScale(Real *samples, const Real hfscale, const size_t count)
{
ASSUME(count > 0);
const Real ap_coeff{mCoeff};
const Real lp_coeff{mCoeff*0.5f + 0.5f};
Real lp_z1{mLpZ1};
Real lp_z2{mLpZ2};
Real ap_z1{mApZ1};
auto proc_sample = [hfscale,ap_coeff,lp_coeff,&lp_z1,&lp_z2,&ap_z1](const Real in) noexcept -> Real
{
/* Low-pass sample processing. */
Real d{(in - lp_z1) * lp_coeff};
Real lp_y{lp_z1 + d};
lp_z1 = lp_y + d;
d = (lp_y - lp_z2) * lp_coeff;
lp_y = lp_z2 + d;
lp_z2 = lp_y + d;
/* All-pass sample processing. */
Real ap_y{in*ap_coeff + ap_z1};
ap_z1 = in - ap_y*ap_coeff;
/* High-pass generated from removing low-passed output. */
return (ap_y-lp_y)*hfscale + lp_y;
};
std::transform(samples, samples+count, samples, proc_sample);
mLpZ1 = lp_z1;
mLpZ2 = lp_z2;
mApZ1 = ap_z1;
}
template<typename Real>
void BandSplitterR<Real>::applyAllpass(Real *samples, const size_t count) const
{
ASSUME(count > 0);
const Real coeff{mCoeff};
Real z1{0.0f};
auto proc_sample = [coeff,&z1](const Real in) noexcept -> Real
{
const Real out{in*coeff + z1};
z1 = in - out*coeff;
return out;
};
std::transform(samples, samples+count, samples, proc_sample);
}
template class BandSplitterR<float>;
template class BandSplitterR<double>;
| 25.347458 | 103 | 0.604814 | [
"transform"
] |
c622fc4160a4491a860dc062e58d987666e5bc4c | 2,940 | cxx | C++ | panda/src/physx/physxRay.cxx | kestred/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | 3 | 2018-03-09T12:07:29.000Z | 2021-02-25T06:50:25.000Z | panda/src/physx/physxRay.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | panda/src/physx/physxRay.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | // Filename: physxRay.cxx
// Created by: enn0x (21Oct09)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
#include "physxRay.h"
#include "physxManager.h"
////////////////////////////////////////////////////////////////////
// Function: PhysxRay::set_origin
// Access: Published
// Description: Sets the ray origin.
////////////////////////////////////////////////////////////////////
void PhysxRay::
set_origin(const LPoint3f &origin) {
nassertv_always(!origin.is_nan());
_ray.orig = PhysxManager::point3_to_nxVec3(origin);
}
////////////////////////////////////////////////////////////////////
// Function: PhysxRay::get_origin
// Access: Published
// Description: Returns the ray origin
////////////////////////////////////////////////////////////////////
LPoint3f PhysxRay::
get_origin() const {
return PhysxManager::nxVec3_to_point3(_ray.orig);
}
////////////////////////////////////////////////////////////////////
// Function: PhysxRay::set_direction
// Access: Published
// Description: Set the ray direction. It is not required to pass
// a normalized vector.
////////////////////////////////////////////////////////////////////
void PhysxRay::
set_direction(const LVector3f &direction) {
nassertv_always(!direction.is_nan());
_ray.dir = PhysxManager::vec3_to_nxVec3(direction);
_ray.dir.normalize();
}
////////////////////////////////////////////////////////////////////
// Function: PhysxRay::get_direction
// Access: Published
// Description: Returns the ray direction.
////////////////////////////////////////////////////////////////////
LVector3f PhysxRay::
get_direction() const {
return PhysxManager::nxVec3_to_vec3(_ray.dir);
}
////////////////////////////////////////////////////////////////////
// Function: PhysxRay::set_length
// Access: Published
// Description: Sets the ray length. If no length is set then the
// ray will be virtually infinite (the maximum
// floating point number will be used, e.g.
// 3.40282346639e+038).
////////////////////////////////////////////////////////////////////
void PhysxRay::
set_length(float length) {
nassertv_always(length > 0.0f);
_length = length;
}
////////////////////////////////////////////////////////////////////
// Function: PhysxRay::get_length
// Access: Published
// Description: Returns the ray length.
////////////////////////////////////////////////////////////////////
float PhysxRay::
get_length() const {
return _length;
}
| 31.276596 | 70 | 0.462245 | [
"vector",
"3d"
] |
c626d67a7d23f59133f102bb52898bd0b9d4c417 | 91,867 | cpp | C++ | com/netfx/src/clr/debug/di/module.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/netfx/src/clr/debug/di/module.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/netfx/src/clr/debug/di/module.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
//*****************************************************************************
// File: module.cpp
//
//*****************************************************************************
#include "stdafx.h"
// We have an assert in ceemain.cpp that validates this assumption
#define FIELD_OFFSET_NEW_ENC_DB 0x07FFFFFB
#ifdef UNDEFINE_RIGHT_SIDE_ONLY
#undef RIGHT_SIDE_ONLY
#endif //UNDEFINE_RIGHT_SIDE_ONLY
#include "WinBase.h"
#include "CorPriv.h"
/* ------------------------------------------------------------------------- *
* Module class
* ------------------------------------------------------------------------- */
#ifndef RIGHT_SIDE_ONLY
// Put this here to avoid dragging in EnC.cpp
HRESULT CordbModule::GetEditAndContinueSnapshot(
ICorDebugEditAndContinueSnapshot **ppEditAndContinueSnapshot)
{
return CORDBG_E_INPROC_NOT_IMPL;
}
#endif //RIGHT_SIDE_ONLY
MetadataPointerCache CordbModule::m_metadataPointerCache;
CordbModule::CordbModule(CordbProcess *process, CordbAssembly *pAssembly,
REMOTE_PTR debuggerModuleToken, void* pMetadataStart,
ULONG nMetadataSize, REMOTE_PTR PEBaseAddress,
ULONG nPESize, BOOL fDynamic, BOOL fInMemory,
const WCHAR *szName,
CordbAppDomain *pAppDomain,
BOOL fInproc)
: CordbBase((ULONG)debuggerModuleToken, enumCordbModule), m_process(process),
m_pAssembly(pAssembly),
m_classes(11),
m_functions(101),
m_debuggerModuleToken(debuggerModuleToken),
m_pMetadataStart(pMetadataStart),
m_nMetadataSize(nMetadataSize),
m_pMetadataCopy(NULL),
m_PEBaseAddress(PEBaseAddress),
m_nPESize(nPESize),
m_fDynamic(fDynamic),
m_fInMemory(fInMemory),
m_szModuleName(NULL),
m_pIMImport(NULL),
m_pClass(NULL),
m_pAppDomain(pAppDomain),
m_fInproc(fInproc)
{
_ASSERTE(m_debuggerModuleToken != NULL);
// Make a copy of the name.
m_szModuleName = new WCHAR[wcslen(szName) + 1];
if (m_szModuleName)
wcscpy(m_szModuleName, szName);
{
DWORD dwErr;
dwErr = process->GetID(&m_dwProcessId);
_ASSERTE(!FAILED(dwErr));
}
}
/*
A list of which resources owened by this object are accounted for.
UNKNOWN:
void* m_pMetadataStartToBe;
void* m_pMetadataStart;
HANDLED:
CordbProcess* m_process; // Assigned w/o AddRef()
CordbAssembly* m_pAssembly; // Assigned w/o AddRef()
CordbAppDomain* m_pAppDomain; // Assigned w/o AddRef()
CordbHashTable m_classes; // Neutered
CordbHashTable m_functions; // Neutered
IMetaDataImport *m_pIMImport; // Released in ~CordbModule
BYTE* m_pMetadataCopy; // Deleted by m_metadataPointerCache when no other modules use it
WCHAR* m_szModuleName; // Deleted in ~CordbModule
CordbClass* m_pClass; // Released in ~CordbModule
*/
CordbModule::~CordbModule()
{
#ifdef RIGHT_SIDE_ONLY
// We don't want to release this inproc, b/c we got it from
// GetImporter(), which just gave us a copy of the pointer that
// it owns.
if (m_pIMImport)
m_pIMImport->Release();
#endif //RIGHT_SIDE_ONLY
if (m_pClass)
m_pClass->Release();
if (m_pMetadataCopy && !m_fInproc)
{
if (!m_fDynamic)
{
CordbModule::m_metadataPointerCache.ReleaseCachePointer(m_dwProcessId, m_pMetadataCopy, m_pMetadataStart, m_nMetadataSize);
}
else
{
delete[] m_pMetadataCopy;
}
m_pMetadataCopy = NULL;
m_nMetadataSize = 0;
}
if (m_szModuleName != NULL)
delete [] m_szModuleName;
}
// Neutered by CordbAppDomain
void CordbModule::Neuter()
{
AddRef();
{
// m_process, m_pAppDomain, m_pAssembly assigned w/o AddRef()
NeuterAndClearHashtable(&m_classes);
NeuterAndClearHashtable(&m_functions);
CordbBase::Neuter();
}
Release();
}
HRESULT CordbModule::ConvertToNewMetaDataInMemory(BYTE *pMD, DWORD cb)
{
if (pMD == NULL || cb == 0)
return E_INVALIDARG;
//Save what we've got
BYTE *rgbMetadataCopyOld = m_pMetadataCopy;
DWORD cbOld = m_nMetadataSize;
// Try the new stuff.
m_pMetadataCopy = pMD;
m_nMetadataSize = cb;
HRESULT hr = ReInit(true);
if (!FAILED(hr))
{
if (rgbMetadataCopyOld)
{
delete[] rgbMetadataCopyOld;
}
}
else
{
// Presumably, the old MD is still there...
m_pMetadataCopy = rgbMetadataCopyOld;
m_nMetadataSize = cbOld;
}
return hr;
}
HRESULT CordbModule::Init(void)
{
return ReInit(false);
}
// Note that if we're reopening the metadata, then this must be a dynamic
// module & we've already dragged the metadata over from the left side, so
// don't go get it again.
//
// CordbHashTableEnum::GetBase simulates the work done here by
// simply getting an IMetaDataImporter interface from the runtime Module* -
// if more work gets done in the future, change that as well.
HRESULT CordbModule::ReInit(bool fReopen)
{
HRESULT hr = S_OK;
BOOL succ = true;
//
// Allocate enough memory for the metadata for this module and copy
// it over from the remote process.
//
if (m_nMetadataSize == 0)
return S_OK;
// For inproc, simply use the already present metadata.
if (!fReopen && !m_fInproc)
{
DWORD dwErr;
if (!m_fDynamic)
{
dwErr = CordbModule::m_metadataPointerCache.AddRefCachePointer(GetProcess()->m_handle, m_dwProcessId, m_pMetadataStart, m_nMetadataSize, &m_pMetadataCopy);
if (FAILED(dwErr))
{
succ = false;
}
}
else
{
dwErr = CordbModule::m_metadataPointerCache.CopyRemoteMetadata(GetProcess()->m_handle, m_pMetadataStart, m_nMetadataSize, &m_pMetadataCopy);
if (FAILED(dwErr))
{
succ = false;
}
}
}
// else it's already local, so don't get it again (it's invalid
// by now, anyways)
if (succ || fReopen)
{
//
// Open the metadata scope in Read/Write mode.
//
IMetaDataDispenserEx *pDisp;
hr = m_process->m_cordb->m_pMetaDispenser->QueryInterface(
IID_IMetaDataDispenserEx,
(void**)&pDisp);
if( FAILED(hr) )
return hr;
if (fReopen)
{
LOG((LF_CORDB,LL_INFO100000, "CM::RI: converting to new metadata\n"));
IMetaDataImport *pIMImport = NULL;
hr = pDisp->OpenScopeOnMemory(m_pMetadataCopy,
m_nMetadataSize,
0,
IID_IMetaDataImport,
(IUnknown**)&pIMImport);
if (FAILED(hr))
{
pDisp->Release();
return hr;
}
typedef HRESULT (_stdcall *pfnReOpenMetaData)
(void *pUnk, LPCVOID pData, ULONG cbData);
pfnReOpenMetaData pfn = (pfnReOpenMetaData)
GetProcAddress(WszGetModuleHandle(L"mscoree.dll"),(LPCSTR)23);
if (pfn == NULL)
{
pDisp->Release();
pIMImport->Release();
return E_FAIL;
}
hr = pfn(m_pIMImport,
m_pMetadataCopy,
m_nMetadataSize);
pDisp->Release();
pIMImport->Release();
return hr;
}
// Save the old mode for restoration
VARIANT valueOld;
hr = pDisp->GetOption(MetaDataSetUpdate, &valueOld);
if (FAILED(hr))
return hr;
// Set R/W mode so that we can update the metadata when
// we do EnC operations.
VARIANT valueRW;
valueRW.vt = VT_UI4;
valueRW.lVal = MDUpdateFull;
hr = pDisp->SetOption(MetaDataSetUpdate, &valueRW);
if (FAILED(hr))
{
pDisp->Release();
return hr;
}
hr = pDisp->OpenScopeOnMemory(m_pMetadataCopy,
m_nMetadataSize,
0,
IID_IMetaDataImport,
(IUnknown**)&m_pIMImport);
if (FAILED(hr))
{
pDisp->Release();
return hr;
}
// Restore the old setting
hr = pDisp->SetOption(MetaDataSetUpdate, &valueOld);
pDisp->Release();
if (FAILED(hr))
return hr;
}
else
{
hr = HRESULT_FROM_WIN32(GetLastError());
if (m_pMetadataCopy)
{
if (!m_fDynamic)
{
CordbModule::m_metadataPointerCache.ReleaseCachePointer(m_dwProcessId, m_pMetadataCopy, m_pMetadataStart, m_nMetadataSize);
}
else
{
delete[] m_pMetadataCopy;
}
m_pMetadataCopy = NULL;
m_nMetadataSize = 0;
}
return hr;
}
return hr;
}
HRESULT CordbModule::QueryInterface(REFIID id, void **pInterface)
{
if (id == IID_ICorDebugModule)
*pInterface = (ICorDebugModule*)this;
else if (id == IID_IUnknown)
*pInterface = (IUnknown*)(ICorDebugModule*)this;
else
{
*pInterface = NULL;
return E_NOINTERFACE;
}
AddRef();
return S_OK;
}
HRESULT CordbModule::GetProcess(ICorDebugProcess **ppProcess)
{
VALIDATE_POINTER_TO_OBJECT(ppProcess, ICorDebugProcess **);
*ppProcess = (ICorDebugProcess*)m_process;
(*ppProcess)->AddRef();
return S_OK;
}
HRESULT CordbModule::GetBaseAddress(CORDB_ADDRESS *pAddress)
{
VALIDATE_POINTER_TO_OBJECT(pAddress, CORDB_ADDRESS *);
*pAddress = PTR_TO_CORDB_ADDRESS(m_PEBaseAddress);
return S_OK;
}
HRESULT CordbModule::GetAssembly(ICorDebugAssembly **ppAssembly)
{
VALIDATE_POINTER_TO_OBJECT(ppAssembly, ICorDebugAssembly **);
#ifndef RIGHT_SIDE_ONLY
// There exists a chance that the assembly wasn't available when we
// got the module the first time (eg, ModuleLoadFinished before
// AssemblyLoadFinished). If the module's assembly is now available,
// attach it to the module.
if (m_pAssembly == NULL)
{
// try and go get it.
DebuggerModule *dm = (DebuggerModule *)m_debuggerModuleToken;
Assembly *as = dm->m_pRuntimeModule->GetAssembly();
if (as != NULL)
{
CordbAssembly *ca = (CordbAssembly*)GetAppDomain()
->m_assemblies.GetBase((ULONG)as);
_ASSERTE(ca != NULL);
m_pAssembly = ca;
}
}
#endif //RIGHT_SIDE_ONLY
*ppAssembly = (ICorDebugAssembly *)m_pAssembly;
if ((*ppAssembly) != NULL)
(*ppAssembly)->AddRef();
return S_OK;
}
HRESULT CordbModule::GetName(ULONG32 cchName, ULONG32 *pcchName, WCHAR szName[])
{
VALIDATE_POINTER_TO_OBJECT_ARRAY_OR_NULL(szName, WCHAR, cchName, true, true);
VALIDATE_POINTER_TO_OBJECT_OR_NULL(pcchName, ULONG32);
const WCHAR *szTempName = m_szModuleName;
// In case we didn't get the name (most likely out of memory on ctor).
if (!szTempName)
szTempName = L"<unknown>";
// true length of the name, with null
SIZE_T iTrueLen = wcslen(szTempName) + 1;
// Do a safe buffer copy including null if there is room.
if (szName != NULL)
{
// Figure out the length that can actually be copied
SIZE_T iCopyLen = min(cchName, iTrueLen);
wcsncpy(szName, szTempName, iCopyLen);
// Force a null no matter what, and return the count if desired.
szName[iCopyLen - 1] = 0;
}
// Always provide the true string length, so the caller can know if they
// provided an insufficient buffer. The length includes the null char.
if (pcchName)
*pcchName = iTrueLen;
return S_OK;
}
HRESULT CordbModule::EnableJITDebugging(BOOL bTrackJITInfo, BOOL bAllowJitOpts)
{
#ifndef RIGHT_SIDE_ONLY
return CORDBG_E_INPROC_NOT_IMPL;
#else
CordbProcess *pProcess = GetProcess();
CORDBCheckProcessStateOKAndSync(pProcess, GetAppDomain());
DebuggerIPCEvent event;
pProcess->InitIPCEvent(&event,
DB_IPCE_CHANGE_JIT_DEBUG_INFO,
true,
(void *)(GetAppDomain()->m_id));
event.JitDebugInfo.debuggerModuleToken = m_debuggerModuleToken;
event.JitDebugInfo.fTrackInfo = bTrackJITInfo;
event.JitDebugInfo.fAllowJitOpts = bAllowJitOpts;
// Note: two-way event here...
HRESULT hr = pProcess->m_cordb->SendIPCEvent(pProcess,
&event,
sizeof(DebuggerIPCEvent));
if (!SUCCEEDED(hr))
return hr;
_ASSERTE(event.type == DB_IPCE_CHANGE_JIT_INFO_RESULT);
return event.hr;
#endif //RIGHT_SIDE_ONLY
}
HRESULT CordbModule::EnableClassLoadCallbacks(BOOL bClassLoadCallbacks)
{
#ifndef RIGHT_SIDE_ONLY
return CORDBG_E_INPROC_NOT_IMPL;
#else
// You must receive ClassLoad callbacks for dynamic modules so that we can keep the metadata up-to-date on the Right
// Side. Therefore, we refuse to turn them off for all dynamic modules (they were forced on when the module was
// loaded on the Left Side.)
if (m_fDynamic && !bClassLoadCallbacks)
return E_INVALIDARG;
// Send a Set Class Load Flag event to the left side. There is no need to wait for a response, and this can be
// called whether or not the process is synchronized.
CordbProcess *pProcess = GetProcess();
DebuggerIPCEvent event;
pProcess->InitIPCEvent(&event,
DB_IPCE_SET_CLASS_LOAD_FLAG,
false,
(void *)(GetAppDomain()->m_id));
event.SetClassLoad.debuggerModuleToken = m_debuggerModuleToken;
event.SetClassLoad.flag = (bClassLoadCallbacks == TRUE);
HRESULT hr = pProcess->m_cordb->SendIPCEvent(pProcess, &event,
sizeof(DebuggerIPCEvent));
return hr;
#endif //RIGHT_SIDE_ONLY
}
HRESULT CordbModule::GetFunctionFromToken(mdMethodDef token,
ICorDebugFunction **ppFunction)
{
if (token == mdMethodDefNil)
return E_INVALIDARG;
VALIDATE_POINTER_TO_OBJECT(ppFunction, ICorDebugFunction **);
HRESULT hr = S_OK;
INPROC_LOCK();
// If we already have a CordbFunction for this token, then we'll
// take since we know it has to be valid.
CordbFunction *f = (CordbFunction *)m_functions.GetBase(token);
if (f == NULL)
{
// Validate the token.
if (!m_pIMImport->IsValidToken(token))
{
hr = E_INVALIDARG;
goto LExit;
}
f = new CordbFunction(this, token, 0);
if (f == NULL)
{
hr = E_OUTOFMEMORY;
goto LExit;
}
hr = m_functions.AddBase(f);
if (FAILED(hr))
{
delete f;
goto LExit;
}
}
*ppFunction = (ICorDebugFunction*)f;
(*ppFunction)->AddRef();
LExit:
INPROC_UNLOCK();
return hr;
}
HRESULT CordbModule::GetFunctionFromRVA(CORDB_ADDRESS rva,
ICorDebugFunction **ppFunction)
{
VALIDATE_POINTER_TO_OBJECT(ppFunction, ICorDebugFunction **);
return E_NOTIMPL;
}
HRESULT CordbModule::LookupClassByToken(mdTypeDef token,
CordbClass **ppClass)
{
*ppClass = NULL;
if ((token == mdTypeDefNil) || (TypeFromToken(token) != mdtTypeDef))
return E_INVALIDARG;
CordbClass *c = (CordbClass *)m_classes.GetBase(token);
if (c == NULL)
{
// Validate the token.
if (!m_pIMImport->IsValidToken(token))
return E_INVALIDARG;
c = new CordbClass(this, token);
if (c == NULL)
return E_OUTOFMEMORY;
HRESULT res = m_classes.AddBase(c);
if (FAILED(res))
{
delete c;
return (res);
}
}
*ppClass = c;
return S_OK;
}
HRESULT CordbModule::LookupClassByName(LPWSTR fullClassName,
CordbClass **ppClass)
{
WCHAR fullName[MAX_CLASSNAME_LENGTH + 1];
wcscpy(fullName, fullClassName);
*ppClass = NULL;
// Find the TypeDef for this class, if it exists.
mdTypeDef token = mdTokenNil;
WCHAR *pStart = fullName;
HRESULT hr;
do
{
WCHAR *pEnd = wcschr(pStart, NESTED_SEPARATOR_WCHAR);
if (pEnd)
*pEnd++ = L'\0';
hr = m_pIMImport->FindTypeDefByName(pStart,
token,
&token);
pStart = pEnd;
} while (pStart && SUCCEEDED(hr));
if (FAILED(hr))
return hr;
// Now that we have the token, simply call the normal lookup...
return LookupClassByToken(token, ppClass);
}
HRESULT CordbModule::GetClassFromToken(mdTypeDef token,
ICorDebugClass **ppClass)
{
CordbClass *c;
VALIDATE_POINTER_TO_OBJECT(ppClass, ICorDebugClass **);
// Validate the token.
if (!m_pIMImport->IsValidToken(token))
return E_INVALIDARG;
INPROC_LOCK();
HRESULT hr = LookupClassByToken(token, &c);
if (SUCCEEDED(hr))
{
*ppClass = (ICorDebugClass*)c;
(*ppClass)->AddRef();
}
INPROC_UNLOCK();
return hr;
}
HRESULT CordbModule::CreateBreakpoint(ICorDebugModuleBreakpoint **ppBreakpoint)
{
#ifndef RIGHT_SIDE_ONLY
return CORDBG_E_INPROC_NOT_IMPL;
#else
VALIDATE_POINTER_TO_OBJECT(ppBreakpoint, ICorDebugModuleBreakpoint **);
return E_NOTIMPL;
#endif //RIGHT_SIDE_ONLY
}
//
// Return the token for the Module table entry for this object. The token
// may then be passed to the meta data import api's.
//
HRESULT CordbModule::GetToken(mdModule *pToken)
{
VALIDATE_POINTER_TO_OBJECT(pToken, mdModule *);
HRESULT hr = S_OK;
INPROC_LOCK();
_ASSERTE(m_pIMImport);
hr = (m_pIMImport->GetModuleFromScope(pToken));
INPROC_UNLOCK();
return hr;
}
//
// Return a meta data interface pointer that can be used to examine the
// meta data for this module.
HRESULT CordbModule::GetMetaDataInterface(REFIID riid, IUnknown **ppObj)
{
VALIDATE_POINTER_TO_OBJECT(ppObj, IUnknown **);
HRESULT hr = S_OK;
INPROC_LOCK();
// QI the importer that we already have and return the result.
hr = m_pIMImport->QueryInterface(riid, (void**)ppObj);
INPROC_UNLOCK();
return hr;
}
//
// LookupFunction finds an existing CordbFunction in the given module.
// If the function doesn't exist, it returns NULL.
//
CordbFunction* CordbModule::LookupFunction(mdMethodDef funcMetadataToken)
{
return (CordbFunction *)m_functions.GetBase(funcMetadataToken);
}
HRESULT CordbModule::IsDynamic(BOOL *pDynamic)
{
VALIDATE_POINTER_TO_OBJECT(pDynamic, BOOL *);
(*pDynamic) = m_fDynamic;
return S_OK;
}
HRESULT CordbModule::IsInMemory(BOOL *pInMemory)
{
VALIDATE_POINTER_TO_OBJECT(pInMemory, BOOL *);
(*pInMemory) = m_fInMemory;
return S_OK;
}
HRESULT CordbModule::GetGlobalVariableValue(mdFieldDef fieldDef,
ICorDebugValue **ppValue)
{
VALIDATE_POINTER_TO_OBJECT(ppValue, ICorDebugValue **);
HRESULT hr = S_OK;
INPROC_LOCK();
if (m_pClass == NULL)
{
hr = LookupClassByToken(COR_GLOBAL_PARENT_TOKEN,
&m_pClass);
if (FAILED(hr))
goto LExit;
_ASSERTE( m_pClass != NULL);
}
hr = m_pClass->GetStaticFieldValue(fieldDef, NULL, ppValue);
LExit:
INPROC_UNLOCK();
return hr;
}
//
// CreateFunction creates a new function from the given information and
// adds it to the module.
//
HRESULT CordbModule::CreateFunction(mdMethodDef funcMetadataToken,
SIZE_T funcRVA,
CordbFunction** ppFunction)
{
// Create a new function object.
CordbFunction* pFunction = new CordbFunction(this,funcMetadataToken, funcRVA);
if (pFunction == NULL)
return E_OUTOFMEMORY;
// Add the function to the Module's hash of all functions.
HRESULT hr = m_functions.AddBase(pFunction);
if (SUCCEEDED(hr))
*ppFunction = pFunction;
else
delete pFunction;
return hr;
}
//
// LookupClass finds an existing CordbClass in the given module.
// If the class doesn't exist, it returns NULL.
//
CordbClass* CordbModule::LookupClass(mdTypeDef classMetadataToken)
{
return (CordbClass *)m_classes.GetBase(classMetadataToken);
}
//
// CreateClass creates a new class from the given information and
// adds it to the module.
//
HRESULT CordbModule::CreateClass(mdTypeDef classMetadataToken,
CordbClass** ppClass)
{
CordbClass* pClass =
new CordbClass(this, classMetadataToken);
if (pClass == NULL)
return E_OUTOFMEMORY;
HRESULT hr = m_classes.AddBase(pClass);
if (SUCCEEDED(hr))
*ppClass = pClass;
else
delete pClass;
if (classMetadataToken == COR_GLOBAL_PARENT_TOKEN)
{
_ASSERTE( m_pClass == NULL ); //redundant create
m_pClass = pClass;
m_pClass->AddRef();
}
return hr;
}
HRESULT CordbModule::ResolveTypeRef(mdTypeRef token,
CordbClass **ppClass)
{
*ppClass = NULL;
if ((token == mdTypeRefNil) || (TypeFromToken(token) != mdtTypeRef))
return E_INVALIDARG;
// Get the necessary properties of the typeref from this module.
WCHAR typeName[MAX_CLASSNAME_LENGTH + 1];
WCHAR fullName[MAX_CLASSNAME_LENGTH + 1];
HRESULT hr;
WCHAR *pName = typeName + MAX_CLASSNAME_LENGTH + 1;
WCHAR cSep = L'\0';
ULONG fullNameLen;
do
{
if (pName <= typeName)
hr = E_FAIL; // buffer too small
else
hr = m_pIMImport->GetTypeRefProps(token,
&token,
fullName,
MAX_CLASSNAME_LENGTH,
&fullNameLen);
if (SUCCEEDED(hr))
{
*(--pName) = cSep;
cSep = NESTED_SEPARATOR_WCHAR;
fullNameLen--; // don't count null terminator
pName -= fullNameLen;
if (pName < typeName)
hr = E_FAIL; // buffer too small
else
memcpy(pName, fullName, fullNameLen*sizeof(fullName[0]));
}
}
while (TypeFromToken(token) == mdtTypeRef && SUCCEEDED(hr));
if (FAILED(hr))
return hr;
return GetAppDomain()->ResolveClassByName(pName, ppClass);
}
//
// Copy the metadata from the in-memory cached copy to the output stream given.
// This was done in lieu of using an accessor to return the pointer to the cached
// data, which would not have been thread safe during updates.
//
HRESULT CordbModule::SaveMetaDataCopyToStream(IStream *pIStream)
{
ULONG cbWritten; // Junk variable for output.
HRESULT hr;
// Caller must have the stream ready for input at current location. Simply
// write from our copy of the current metadata to the stream. Expectations
// are that the data can be written and all of it was, which we assert.
_ASSERTE(pIStream);
hr = pIStream->Write(m_pMetadataCopy, m_nMetadataSize, &cbWritten);
_ASSERTE(FAILED(hr) || cbWritten == m_nMetadataSize);
return (hr);
}
//
// GetSize returns the size of the module.
//
HRESULT CordbModule::GetSize(ULONG32 *pcBytes)
{
VALIDATE_POINTER_TO_OBJECT(pcBytes, ULONG32 *);
*pcBytes = m_nPESize;
return S_OK;
}
CordbAssembly *CordbModule::GetCordbAssembly(void)
{
#ifndef RIGHT_SIDE_ONLY
// There exists a chance that the assembly wasn't available when we
// got the module the first time (eg, ModuleLoadFinished before
// AssemblyLoadFinished). If the module's assembly is now available,
// attach it to the module.
if (m_pAssembly == NULL)
{
// try and go get it.
DebuggerModule *dm = (DebuggerModule *)m_debuggerModuleToken;
Assembly *as = dm->m_pRuntimeModule->GetAssembly();
if (as != NULL)
{
CordbAssembly *ca = (CordbAssembly*)GetAppDomain()
->m_assemblies.GetBase((ULONG)as);
_ASSERTE(ca != NULL);
m_pAssembly = ca;
}
}
#endif //RIGHT_SIDE_ONLY
return m_pAssembly;
}
/* ------------------------------------------------------------------------- *
* Class class
* ------------------------------------------------------------------------- */
CordbClass::CordbClass(CordbModule *m, mdTypeDef classMetadataToken)
: CordbBase(classMetadataToken, enumCordbClass), m_module(m), m_EnCCounterLastSyncClass(0),
m_instanceVarCount(0), m_staticVarCount(0), m_fields(NULL),
m_staticVarBase(NULL), m_isValueClass(false), m_objectSize(0),
m_thisSigSize(0), m_hasBeenUnloaded(false), m_continueCounterLastSync(0),
m_loadEventSent(FALSE)
{
}
/*
A list of which resources owened by this object are accounted for.
UNKNOWN:
CordbSyncBlockFieldTable m_syncBlockFieldsStatic;
HANDLED:
CordbModule* m_module; // Assigned w/o AddRef()
DebuggerIPCE_FieldData *m_fields; // Deleted in ~CordbClass
*/
CordbClass::~CordbClass()
{
if(m_fields)
delete [] m_fields;
}
// Neutered by CordbModule
void CordbClass::Neuter()
{
AddRef();
{
CordbBase::Neuter();
}
Release();
}
HRESULT CordbClass::QueryInterface(REFIID id, void **pInterface)
{
if (id == IID_ICorDebugClass)
*pInterface = (ICorDebugClass*)this;
else if (id == IID_IUnknown)
*pInterface = (IUnknown*)(ICorDebugClass*)this;
else
{
*pInterface = NULL;
return E_NOINTERFACE;
}
AddRef();
return S_OK;
}
HRESULT CordbClass::GetStaticFieldValue(mdFieldDef fieldDef,
ICorDebugFrame *pFrame,
ICorDebugValue **ppValue)
{
VALIDATE_POINTER_TO_OBJECT(ppValue, ICorDebugValue **);
#ifdef RIGHT_SIDE_ONLY
CORDBRequireProcessStateOKAndSync(GetProcess(), GetAppDomain());
#else
// For the Virtual Right Side (In-proc debugging), we'll always be synched, but not neccessarily b/c we've gotten a
// synch message.
CORDBRequireProcessStateOK(GetProcess());
#endif
HRESULT hr = S_OK;
*ppValue = NULL;
BOOL fSyncBlockField = FALSE;
ULONG cbSigBlobNoMod;
PCCOR_SIGNATURE pvSigBlobNoMod;
ULONG cb;
// Used below for faking out CreateValueByType
static CorElementType elementTypeClass = ELEMENT_TYPE_CLASS;
INPROC_LOCK();
// Validate the token.
if (!GetModule()->m_pIMImport->IsValidToken(fieldDef))
{
hr = E_INVALIDARG;
goto LExit;
}
// Make sure we have enough info about the class. Also re-query if the static var base is still NULL.
hr = Init(m_staticVarBase == NULL);
if (!SUCCEEDED(hr))
goto LExit;
// Lookup the field given its metadata token.
DebuggerIPCE_FieldData *pFieldData;
hr = GetFieldInfo(fieldDef, &pFieldData);
if (hr == CORDBG_E_ENC_HANGING_FIELD)
{
hr = GetSyncBlockField(fieldDef,
&pFieldData,
NULL);
if (SUCCEEDED(hr))
fSyncBlockField = TRUE;
}
if (!SUCCEEDED(hr))
goto LExit;
if (!pFieldData->fldIsStatic)
{
hr = CORDBG_E_FIELD_NOT_STATIC;
goto LExit;
}
REMOTE_PTR pRmtStaticValue;
if (!pFieldData->fldIsTLS && !pFieldData->fldIsContextStatic)
{
// We'd better have the static area initialized on the Left Side.
if (m_staticVarBase == NULL)
{
hr = CORDBG_E_STATIC_VAR_NOT_AVAILABLE;
goto LExit;
}
// For normal old static variables (including ones that are relative to the app domain... that's handled on the
// Left Side through manipulation of m_staticVarBase) the address of the variable is m_staticVarBase + the
// variable's offset.
pRmtStaticValue = (BYTE*)m_staticVarBase + pFieldData->fldOffset;
}
else
{
if (fSyncBlockField)
{
_ASSERTE(!pFieldData->fldIsContextStatic);
pRmtStaticValue = (REMOTE_PTR)pFieldData->fldOffset;
}
else
{
// What thread are we working on here.
if (pFrame == NULL)
{
hr = E_INVALIDARG;
goto LExit;
}
ICorDebugChain *pChain = NULL;
hr = pFrame->GetChain(&pChain);
if (FAILED(hr))
goto LExit;
CordbChain *c = (CordbChain*)pChain;
CordbThread *t = c->m_thread;
// Send an event to the Left Side to find out the address of this field for the given thread.
DebuggerIPCEvent event;
GetProcess()->InitIPCEvent(&event, DB_IPCE_GET_SPECIAL_STATIC, true, (void *)(m_module->GetAppDomain()->m_id));
event.GetSpecialStatic.fldDebuggerToken = pFieldData->fldDebuggerToken;
event.GetSpecialStatic.debuggerThreadToken = t->m_debuggerThreadToken;
// Note: two-way event here...
hr = GetProcess()->m_cordb->SendIPCEvent(GetProcess(), &event, sizeof(DebuggerIPCEvent));
if (FAILED(hr))
goto LExit;
_ASSERTE(event.type == DB_IPCE_GET_SPECIAL_STATIC_RESULT);
// @todo: for a given static on a given thread, the address will never change. We should be taking advantage of
// that...
pRmtStaticValue = (BYTE*)event.GetSpecialStaticResult.fldAddress;
}
if (pRmtStaticValue == NULL)
{
hr = CORDBG_E_STATIC_VAR_NOT_AVAILABLE;
goto LExit;
}
}
ULONG cbSigBlob;
PCCOR_SIGNATURE pvSigBlob;
cbSigBlob = cbSigBlobNoMod = pFieldData->fldFullSigSize;
pvSigBlob = pvSigBlobNoMod = pFieldData->fldFullSig;
// If we've got some funky modifier, then remove it.
cb =_skipFunkyModifiersInSignature(pvSigBlobNoMod);
if( cb != 0)
{
cbSigBlobNoMod -= cb;
pvSigBlobNoMod = &pvSigBlobNoMod[cb];
}
// If this is a static that is non-primitive, then we have to do an extra level of indirection.
if (!pFieldData->fldIsTLS &&
!pFieldData->fldIsContextStatic &&
!fSyncBlockField && // EnC-added fields don't need the extra de-ref.
!pFieldData->fldIsPrimitive && // Classes that are really primitives don't need the extra de-ref.
((pvSigBlobNoMod[0] == ELEMENT_TYPE_CLASS) ||
(pvSigBlobNoMod[0] == ELEMENT_TYPE_OBJECT) ||
(pvSigBlobNoMod[0] == ELEMENT_TYPE_SZARRAY) ||
(pvSigBlobNoMod[0] == ELEMENT_TYPE_ARRAY) ||
(pvSigBlobNoMod[0] == ELEMENT_TYPE_STRING) ||
(pvSigBlobNoMod[0] == ELEMENT_TYPE_VALUETYPE && !pFieldData->fldIsRVA)))
{
REMOTE_PTR pRealRmtStaticValue = NULL;
BOOL succ = ReadProcessMemoryI(GetProcess()->m_handle,
pRmtStaticValue,
&pRealRmtStaticValue,
sizeof(pRealRmtStaticValue),
NULL);
if (!succ)
{
hr = HRESULT_FROM_WIN32(GetLastError());
goto LExit;
}
if (pRealRmtStaticValue == NULL)
{
hr = CORDBG_E_STATIC_VAR_NOT_AVAILABLE;
goto LExit;
}
pRmtStaticValue = pRealRmtStaticValue;
}
// Static value classes are stored as handles so that GC can deal with them properly. Thus, we need to follow the
// handle like an objectref. Do this by forcing CreateValueByType to think this is an objectref. Note: we don't do
// this for value classes that have an RVA, since they're layed out at the RVA with no handle.
if (*pvSigBlobNoMod == ELEMENT_TYPE_VALUETYPE &&
!pFieldData->fldIsRVA &&
!pFieldData->fldIsPrimitive &&
!pFieldData->fldIsTLS &&
!pFieldData->fldIsContextStatic)
{
pvSigBlob = (PCCOR_SIGNATURE)&elementTypeClass;
cbSigBlob = sizeof(elementTypeClass);
}
ICorDebugValue *pValue;
hr = CordbValue::CreateValueByType(GetAppDomain(),
GetModule(),
cbSigBlob, pvSigBlob,
NULL,
pRmtStaticValue, NULL,
false,
NULL,
NULL,
&pValue);
if (SUCCEEDED(hr))
*ppValue = pValue;
LExit:
INPROC_UNLOCK();
hr = CordbClass::PostProcessUnavailableHRESULT(hr, GetModule()->m_pIMImport, fieldDef);
return hr;
}
HRESULT CordbClass::PostProcessUnavailableHRESULT(HRESULT hr,
IMetaDataImport *pImport,
mdFieldDef fieldDef)
{
if (hr == CORDBG_E_FIELD_NOT_AVAILABLE)
{
DWORD dwFieldAttr;
hr = pImport->GetFieldProps(
fieldDef,
NULL,
NULL,
0,
NULL,
&dwFieldAttr,
NULL,
0,
NULL,
NULL,
0);
if (IsFdLiteral(dwFieldAttr))
{
hr = CORDBG_E_VARIABLE_IS_ACTUALLY_LITERAL;
}
}
return hr;
}
HRESULT CordbClass::GetModule(ICorDebugModule **ppModule)
{
VALIDATE_POINTER_TO_OBJECT(ppModule, ICorDebugModule **);
*ppModule = (ICorDebugModule*) m_module;
(*ppModule)->AddRef();
return S_OK;
}
HRESULT CordbClass::GetToken(mdTypeDef *pTypeDef)
{
VALIDATE_POINTER_TO_OBJECT(pTypeDef, mdTypeDef *);
*pTypeDef = m_id;
return S_OK;
}
HRESULT CordbClass::GetObjectSize(ULONG32 *pObjectSize)
{
#ifdef RIGHT_SIDE_ONLY
CORDBRequireProcessStateOKAndSync(GetProcess(), GetAppDomain());
#else
// For the Virtual Right Side (In-proc debugging), we'll
// always be synched, but not neccessarily b/c we've
// gotten a synch message.
CORDBRequireProcessStateOK(GetProcess());
#endif
HRESULT hr = S_OK;
*pObjectSize = 0;
hr = Init(FALSE);
if (!SUCCEEDED(hr))
return hr;
*pObjectSize = m_objectSize;
return hr;
}
HRESULT CordbClass::IsValueClass(bool *pIsValueClass)
{
#ifdef RIGHT_SIDE_ONLY
CORDBRequireProcessStateOKAndSync(GetProcess(), GetAppDomain());
#else
// For the Virtual Right Side (In-proc debugging), we'll
// always be synched, but not neccessarily b/c we've
// gotten a synch message.
CORDBRequireProcessStateOK(GetProcess());
#endif
HRESULT hr = S_OK;
*pIsValueClass = false;
hr = Init(FALSE);
if (!SUCCEEDED(hr))
return hr;
*pIsValueClass = m_isValueClass;
return hr;
}
HRESULT CordbClass::GetThisSignature(ULONG *pcbSigBlob,
PCCOR_SIGNATURE *ppvSigBlob)
{
HRESULT hr = S_OK;
if (m_thisSigSize == 0)
{
hr = Init(FALSE);
if (!SUCCEEDED(hr))
return hr;
if (m_isValueClass)
{
// Value class methods implicitly have their 'this'
// argument passed by reference.
m_thisSigSize += CorSigCompressElementType(
ELEMENT_TYPE_BYREF,
&m_thisSig[m_thisSigSize]);
m_thisSigSize += CorSigCompressElementType(
ELEMENT_TYPE_VALUETYPE,
&m_thisSig[m_thisSigSize]);
}
else
m_thisSigSize += CorSigCompressElementType(
ELEMENT_TYPE_CLASS,
&m_thisSig[m_thisSigSize]);
m_thisSigSize += CorSigCompressToken(m_id,
&m_thisSig[m_thisSigSize]);
_ASSERTE(m_thisSigSize <= sizeof(m_thisSig));
}
*pcbSigBlob = m_thisSigSize;
*ppvSigBlob = (PCCOR_SIGNATURE) &m_thisSig;
return hr;
}
HRESULT CordbClass::Init(BOOL fForceInit)
{
// If we've done a continue since we last time we got hanging static fields,
// we should clear our our cache, since everything may have moved.
if (m_continueCounterLastSync < GetProcess()->m_continueCounter)
{
m_syncBlockFieldsStatic.Clear();
m_continueCounterLastSync = GetProcess()->m_continueCounter;
}
// We don't have to reinit if the EnC version is up-to-date &
// we haven't been told to do the init regardless.
if (m_EnCCounterLastSyncClass >= GetProcess()->m_EnCCounter
&& !fForceInit)
return S_OK;
bool wait = true;
bool fFirstEvent = true;
unsigned int fieldIndex = 0;
unsigned int totalFieldCount = 0;
DebuggerIPCEvent *retEvent = NULL;
CORDBSyncFromWin32StopIfStopped(GetProcess());
INPROC_LOCK();
HRESULT hr = S_OK;
// We've got a remote address that points to the EEClass.
// We need to send to the left side to get real information about
// the class, including its instance and static variables.
CordbProcess *pProcess = GetProcess();
DebuggerIPCEvent event;
pProcess->InitIPCEvent(&event,
DB_IPCE_GET_CLASS_INFO,
false,
(void *)(m_module->GetAppDomain()->m_id));
event.GetClassInfo.classMetadataToken = m_id;
event.GetClassInfo.classDebuggerModuleToken =
m_module->m_debuggerModuleToken;
hr = pProcess->m_cordb->SendIPCEvent(pProcess, &event,
sizeof(DebuggerIPCEvent));
// Stop now if we can't even send the event.
if (!SUCCEEDED(hr))
goto exit;
// Wait for events to return from the RC. We expect at least one
// class info result event.
retEvent = (DebuggerIPCEvent *) _alloca(CorDBIPC_BUFFER_SIZE);
while (wait)
{
#ifdef RIGHT_SIDE_ONLY
hr = pProcess->m_cordb->WaitForIPCEventFromProcess(pProcess,
m_module->GetAppDomain(),
retEvent);
#else
if (fFirstEvent)
hr = pProcess->m_cordb->GetFirstContinuationEvent(pProcess,retEvent);
else
hr = pProcess->m_cordb->GetNextContinuationEvent(pProcess,retEvent);
#endif //RIGHT_SIDE_ONLY
if (!SUCCEEDED(hr))
goto exit;
_ASSERTE(retEvent->type == DB_IPCE_GET_CLASS_INFO_RESULT);
// If this is the first event back from the RC, then create the
// array to hold the field.
if (fFirstEvent)
{
fFirstEvent = false;
#ifdef _DEBUG
// Shouldn't ever loose fields!
totalFieldCount = m_instanceVarCount + m_staticVarCount;
_ASSERTE(retEvent->GetClassInfoResult.instanceVarCount +
retEvent->GetClassInfoResult.staticVarCount >=
totalFieldCount);
#endif
m_isValueClass = retEvent->GetClassInfoResult.isValueClass;
m_objectSize = retEvent->GetClassInfoResult.objectSize;
m_staticVarBase = retEvent->GetClassInfoResult.staticVarBase;
m_instanceVarCount = retEvent->GetClassInfoResult.instanceVarCount;
m_staticVarCount = retEvent->GetClassInfoResult.staticVarCount;
totalFieldCount = m_instanceVarCount + m_staticVarCount;
// Since we don't keep pointers to the m_fields elements,
// just toss it & get a new one.
if (m_fields != NULL)
{
delete m_fields;
m_fields = NULL;
}
if (totalFieldCount > 0)
{
m_fields = new DebuggerIPCE_FieldData[totalFieldCount];
if (m_fields == NULL)
{
hr = E_OUTOFMEMORY;
goto exit;
}
}
}
DebuggerIPCE_FieldData *currentFieldData =
&(retEvent->GetClassInfoResult.fieldData);
for (unsigned int i = 0; i < retEvent->GetClassInfoResult.fieldCount;
i++)
{
m_fields[fieldIndex] = *currentFieldData;
m_fields[fieldIndex].fldFullSigSize = 0;
_ASSERTE(m_fields[fieldIndex].fldOffset != FIELD_OFFSET_NEW_ENC_DB);
currentFieldData++;
fieldIndex++;
}
if (fieldIndex >= totalFieldCount)
wait = false;
}
// Remember the most recently acquired version of this class
m_EnCCounterLastSyncClass = GetProcess()->m_EnCCounter;
exit:
#ifndef RIGHT_SIDE_ONLY
GetProcess()->ClearContinuationEvents();
#endif
INPROC_UNLOCK();
return hr;
}
HRESULT CordbClass::GetFieldSig(mdFieldDef fldToken, DebuggerIPCE_FieldData *pFieldData)
{
HRESULT hr = S_OK;
if (pFieldData->fldType == ELEMENT_TYPE_VALUETYPE ||
pFieldData->fldType == ELEMENT_TYPE_PTR)
{
hr = GetModule()->m_pIMImport->GetFieldProps(fldToken, NULL, NULL, 0, NULL, NULL,
&(pFieldData->fldFullSig),
&(pFieldData->fldFullSigSize),
NULL, NULL, NULL);
if (FAILED(hr))
return hr;
// Point past the calling convention, adjusting
// the sig size accordingly.
UINT_PTR pvSigBlobEnd = (UINT_PTR)pFieldData->fldFullSig + pFieldData->fldFullSigSize;
CorCallingConvention conv = (CorCallingConvention) CorSigUncompressData(pFieldData->fldFullSig);
_ASSERTE(conv == IMAGE_CEE_CS_CALLCONV_FIELD);
pFieldData->fldFullSigSize = pvSigBlobEnd - (UINT_PTR)pFieldData->fldFullSig;
}
else
{
pFieldData->fldFullSigSize = 1;
pFieldData->fldFullSig = (PCCOR_SIGNATURE) &(pFieldData->fldType);
}
return hr;
}
// ****** DON'T CALL THIS WITHOUT FIRST CALLING object->IsValid !!!!!!! ******
// object is NULL if this is being called from GetStaticFieldValue
HRESULT CordbClass::GetSyncBlockField(mdFieldDef fldToken,
DebuggerIPCE_FieldData **ppFieldData,
CordbObjectValue *object)
{
HRESULT hr = S_OK;
_ASSERTE(object == NULL || object->m_fIsValid);
// What we really want to assert is that
// IsValid has been called, if this is for an instance value
BOOL fStatic = (object == NULL);
// Static stuff should _NOT_ be cleared, since they stick around. Thus
// the separate tables.
// We must get new copies each time we call continue b/c we get the
// actual Object ptr from the left side, which can move during a GC.
DebuggerIPCE_FieldData *pInfo = NULL;
if (!fStatic)
{
pInfo = object->m_syncBlockFieldsInstance.GetFieldInfo(fldToken);
// We've found a previously located entry
if (pInfo != NULL)
{
(*ppFieldData) = pInfo;
return S_OK;
}
}
else
{
pInfo = m_syncBlockFieldsStatic.GetFieldInfo(fldToken);
// We've found a previously located entry
if (pInfo != NULL)
{
(*ppFieldData) = pInfo;
return S_OK;
}
}
// We're not going to be able to get the instance-specific field
// if we can't get the instance.
if (!fStatic && object->m_info.objRefBad)
return CORDBG_E_ENC_HANGING_FIELD;
// Go get this particular field.
DebuggerIPCEvent event;
CordbProcess *process = GetModule()->GetProcess();
_ASSERTE(process != NULL);
process->InitIPCEvent(&event,
DB_IPCE_GET_SYNC_BLOCK_FIELD,
true, // two-way event
(void *)m_module->GetAppDomain()->m_id);
event.GetSyncBlockField.debuggerModuleToken = (void *)GetModule()->m_id;
hr = GetToken(&(event.GetSyncBlockField.classMetadataToken));
_ASSERTE(!FAILED(hr));
event.GetSyncBlockField.fldToken = fldToken;
if (fStatic)
{
event.GetSyncBlockField.staticVarBase = m_staticVarBase; // in case it's static.
event.GetSyncBlockField.pObject = NULL;
event.GetSyncBlockField.objectType = ELEMENT_TYPE_MAX;
event.GetSyncBlockField.offsetToVars = NULL;
}
else
{
_ASSERTE(object != NULL);
event.GetSyncBlockField.pObject = (void *)object->m_id;
event.GetSyncBlockField.objectType = object->m_info.objectType;
event.GetSyncBlockField.offsetToVars = object->m_info.objOffsetToVars;
event.GetSyncBlockField.staticVarBase = NULL;
}
// Note: two-way event here...
hr = process->m_cordb->SendIPCEvent(process,
&event,
sizeof(DebuggerIPCEvent));
// Stop now if we can't even send the event.
if (!SUCCEEDED(hr))
return hr;
_ASSERTE(event.type == DB_IPCE_GET_SYNC_BLOCK_FIELD_RESULT);
if (!SUCCEEDED(event.hr))
return event.hr;
_ASSERTE(pInfo == NULL);
_ASSERTE( fStatic == event.GetSyncBlockFieldResult.fStatic );
// Save the results for later.
if(fStatic)
{
m_syncBlockFieldsStatic.AddFieldInfo(&(event.GetSyncBlockFieldResult.fieldData));
pInfo = m_syncBlockFieldsStatic.GetFieldInfo(fldToken);
// We've found a previously located entry.esove
if (pInfo != NULL)
{
(*ppFieldData) = pInfo;
}
}
else
{
object->m_syncBlockFieldsInstance.AddFieldInfo(&(event.GetSyncBlockFieldResult.fieldData));
pInfo = object->m_syncBlockFieldsInstance.GetFieldInfo(fldToken);
// We've found a previously located entry.esove
if (pInfo != NULL)
{
(*ppFieldData) = pInfo;
}
}
if (pInfo != NULL)
{
// It's important to do this here, once we've got the final memory blob for pInfo
hr = GetFieldSig(fldToken, pInfo);
return hr;
}
else
return CORDBG_E_ENC_HANGING_FIELD;
}
HRESULT CordbClass::GetFieldInfo(mdFieldDef fldToken, DebuggerIPCE_FieldData **ppFieldData)
{
HRESULT hr = S_OK;
*ppFieldData = NULL;
hr = Init(FALSE);
if (!SUCCEEDED(hr))
return hr;
unsigned int i;
for (i = 0; i < (m_instanceVarCount + m_staticVarCount); i++)
{
if (m_fields[i].fldMetadataToken == fldToken)
{
if (m_fields[i].fldType == ELEMENT_TYPE_MAX)
{
return CORDBG_E_ENC_HANGING_FIELD; // caller should get instance-specific info.
}
if (m_fields[i].fldFullSigSize == 0)
{
hr = GetFieldSig(fldToken, &m_fields[i]);
if (FAILED(hr))
return hr;
}
*ppFieldData = &(m_fields[i]);
return S_OK;
}
}
// Hmmm... we didn't find the field on this class. See if the field really belongs to this class or not.
mdTypeDef classTok;
hr = GetModule()->m_pIMImport->GetFieldProps(fldToken, &classTok, NULL, 0, NULL, NULL, NULL, 0, NULL, NULL, NULL);
if (FAILED(hr))
return hr;
if (classTok == (mdTypeDef) m_id)
{
// Well, the field belongs in this class. The assumption is that the Runtime optimized the field away.
return CORDBG_E_FIELD_NOT_AVAILABLE;
}
// Well, the field doesn't even belong to this class...
return E_INVALIDARG;
}
/* ------------------------------------------------------------------------- *
* Function class
* ------------------------------------------------------------------------- */
CordbFunction::CordbFunction(CordbModule *m,
mdMethodDef funcMetadataToken,
SIZE_T funcRVA)
: CordbBase(funcMetadataToken, enumCordbFunction), m_module(m), m_class(NULL),
m_token(funcMetadataToken), m_isNativeImpl(false),
m_functionRVA(funcRVA), m_nativeInfoCount(0), m_nativeInfo(NULL),
m_nativeInfoValid(false), m_argumentCount(0), m_methodSig(NULL),
m_localsSig(NULL), m_argCount(0), m_isStatic(false), m_localVarCount(0),
m_localVarSigToken(mdSignatureNil),
m_encCounterLastSynch(0),
m_nVersionMostRecentEnC(0),
m_nVersionLastNativeInfo(0)
{
}
/*
A list of which resources owened by this object are accounted for.
UNKNOWN:
PCCOR_SIGNATURE m_methodSig;
PCCOR_SIGNATURE m_localsSig;
ICorJitInfo::NativeVarInfo *m_nativeInfo;
HANDLED:
CordbModule *m_module; // Assigned w/o AddRef()
CordbClass *m_class; // Assigned w/o AddRef()
*/
CordbFunction::~CordbFunction()
{
if ( m_rgilCode.Table() != NULL)
for (int i =0; i < m_rgilCode.Count();i++)
{
CordbCode * pCordbCode = m_rgilCode.Table()[i];
pCordbCode->Release();
}
if ( m_rgnativeCode.Table() != NULL)
for (int i =0; i < m_rgnativeCode.Count();i++)
{
CordbCode * pCordbCode = m_rgnativeCode.Table()[i];
pCordbCode->Release();
}
if (m_nativeInfo != NULL)
delete [] m_nativeInfo;
}
// Neutered by CordbModule
void CordbFunction::Neuter()
{
AddRef();
{
// Neuter any/all native CordbCode objects
if ( m_rgilCode.Table() != NULL)
{
for (int i =0; i < m_rgilCode.Count();i++)
{
CordbCode * pCordbCode = m_rgilCode.Table()[i];
pCordbCode->Neuter();
}
}
// Neuter any/all native CordbCode objects
if ( m_rgnativeCode.Table() != NULL)
{
for (int i =0; i < m_rgnativeCode.Count();i++)
{
CordbCode * pCordbCode = m_rgnativeCode.Table()[i];
pCordbCode->Neuter();
}
}
CordbBase::Neuter();
}
Release();
}
HRESULT CordbFunction::QueryInterface(REFIID id, void **pInterface)
{
if (id == IID_ICorDebugFunction)
*pInterface = (ICorDebugFunction*)this;
else if (id == IID_IUnknown)
*pInterface = (IUnknown*)(ICorDebugFunction*)this;
else
{
*pInterface = NULL;
return E_NOINTERFACE;
}
AddRef();
return S_OK;
}
// if nVersion == const int DJI_VERSION_MOST_RECENTLY_JITTED,
// get the highest-numbered version. Otherwise,
// get the version asked for.
CordbCode *UnorderedCodeArrayGet( UnorderedCodeArray *pThis, SIZE_T nVersion )
{
#ifdef LOGGING
if (nVersion == DJI_VERSION_MOST_RECENTLY_JITTED)
LOG((LF_CORDB,LL_EVERYTHING,"Looking for DJI_VERSION_MOST_"
"RECENTLY_JITTED\n"));
else
LOG((LF_CORDB,LL_EVERYTHING,"Looking for ver 0x%x\n", nVersion));
#endif //LOGGING
if (pThis->Table() != NULL)
{
CordbCode *pCode = *pThis->Table();
CordbCode *pCodeMax = pCode;
USHORT cCode;
USHORT i;
for(i = 0,cCode=pThis->Count(); i <cCode; i++)
{
pCode = (pThis->Table())[i];
if (nVersion == DJI_VERSION_MOST_RECENTLY_JITTED )
{
if (pCode->m_nVersion > pCodeMax->m_nVersion)
{
pCodeMax = pCode;
}
}
else if (pCode->m_nVersion == nVersion)
{
LOG((LF_CORDB,LL_EVERYTHING,"Found ver 0x%x\n", nVersion));
return pCode;
}
}
if (nVersion == DJI_VERSION_MOST_RECENTLY_JITTED )
{
#ifdef LOGGING
if (pCodeMax != NULL )
LOG((LF_CORDB,LL_INFO10000,"Found 0x%x, ver 0x%x as "
"most recent\n",pCodeMax,pCodeMax->m_nVersion));
#endif //LOGGING
return pCodeMax;
}
}
return NULL;
}
HRESULT UnorderedCodeArrayAdd( UnorderedCodeArray *pThis, CordbCode *pCode )
{
CordbCode **ppCodeNew =pThis->Append();
if (NULL == ppCodeNew)
return E_OUTOFMEMORY;
*ppCodeNew = pCode;
// This ref is freed whenever the code array we are storing is freed.
pCode->AddRef();
return S_OK;
}
HRESULT CordbFunction::GetModule(ICorDebugModule **ppModule)
{
VALIDATE_POINTER_TO_OBJECT(ppModule, ICorDebugModule **);
HRESULT hr = UpdateToMostRecentEnCVersion();
if (FAILED(hr))
return hr;
*ppModule = (ICorDebugModule*) m_module;
(*ppModule)->AddRef();
return hr;
}
HRESULT CordbFunction::GetClass(ICorDebugClass **ppClass)
{
VALIDATE_POINTER_TO_OBJECT(ppClass, ICorDebugClass **);
*ppClass = NULL;
INPROC_LOCK();
HRESULT hr = UpdateToMostRecentEnCVersion();
if (FAILED(hr))
return hr;
if (m_class == NULL)
{
// We're not looking for any particular version, just
// the class info. This seems like the best version to request
hr = Populate(DJI_VERSION_MOST_RECENTLY_JITTED);
if (FAILED(hr))
goto LExit;
}
*ppClass = (ICorDebugClass*) m_class;
LExit:
INPROC_UNLOCK();
if (FAILED(hr))
return hr;
if (*ppClass)
{
(*ppClass)->AddRef();
return S_OK;
}
else
return S_FALSE;
}
HRESULT CordbFunction::GetToken(mdMethodDef *pMemberDef)
{
VALIDATE_POINTER_TO_OBJECT(pMemberDef, mdMethodDef *);
HRESULT hr = UpdateToMostRecentEnCVersion();
if (FAILED(hr))
return hr;
*pMemberDef = m_token;
return S_OK;
}
HRESULT CordbFunction::GetILCode(ICorDebugCode **ppCode)
{
VALIDATE_POINTER_TO_OBJECT(ppCode, ICorDebugCode **);
INPROC_LOCK();
HRESULT hr = UpdateToMostRecentEnCVersion();
if (FAILED(hr))
return hr;
CordbCode *pCode = NULL;
hr = GetCodeByVersion(TRUE, bILCode, DJI_VERSION_MOST_RECENTLY_JITTED, &pCode);
*ppCode = (ICorDebugCode*)pCode;
INPROC_UNLOCK();
return hr;
}
HRESULT CordbFunction::GetNativeCode(ICorDebugCode **ppCode)
{
VALIDATE_POINTER_TO_OBJECT(ppCode, ICorDebugCode **);
INPROC_LOCK();
HRESULT hr = UpdateToMostRecentEnCVersion();
if (FAILED(hr))
return hr;
CordbCode *pCode = NULL;
hr = GetCodeByVersion(TRUE, bNativeCode, DJI_VERSION_MOST_RECENTLY_JITTED, &pCode);
*ppCode = (ICorDebugCode*)pCode;
if (SUCCEEDED(hr) && (pCode == NULL))
hr = CORDBG_E_CODE_NOT_AVAILABLE;
INPROC_UNLOCK();
return hr;
}
HRESULT CordbFunction::GetCodeByVersion(BOOL fGetIfNotPresent, BOOL fIsIL,
SIZE_T nVer, CordbCode **ppCode)
{
VALIDATE_POINTER_TO_OBJECT(ppCode, ICorDebugCode **);
_ASSERTE(*ppCode == NULL && "Common source of errors is getting addref'd copy here and never Release()ing it");
*ppCode = NULL;
// Its okay to do this if the process is not sync'd.
CORDBRequireProcessStateOK(GetProcess());
HRESULT hr = S_OK;
CordbCode *pCode = NULL;
LOG((LF_CORDB, LL_EVERYTHING, "Asked to find code ver 0x%x\n", nVer));
if (((fIsIL && (pCode = UnorderedCodeArrayGet(&m_rgilCode, nVer)) == NULL) ||
(!fIsIL && (pCode = UnorderedCodeArrayGet(&m_rgnativeCode, nVer)) == NULL)) &&
fGetIfNotPresent)
hr = Populate(nVer);
if (SUCCEEDED(hr) && pCode == NULL)
{
if (fIsIL)
pCode=UnorderedCodeArrayGet(&m_rgilCode, nVer);
else
pCode=UnorderedCodeArrayGet(&m_rgnativeCode, nVer);
}
if (pCode != NULL)
{
pCode->AddRef();
*ppCode = pCode;
}
return hr;
}
HRESULT CordbFunction::CreateBreakpoint(ICorDebugFunctionBreakpoint **ppBreakpoint)
{
HRESULT hr = S_OK;
#ifndef RIGHT_SIDE_ONLY
return CORDBG_E_INPROC_NOT_IMPL;
#else
VALIDATE_POINTER_TO_OBJECT(ppBreakpoint, ICorDebugFunctionBreakpoint **);
hr = UpdateToMostRecentEnCVersion();
if (FAILED(hr))
return hr;
ICorDebugCode *pCode = NULL;
// Use the IL code so that we stop after the prolog
hr = GetILCode(&pCode);
if (FAILED(hr))
goto LError;
hr = pCode->CreateBreakpoint(0, ppBreakpoint);
LError:
if (pCode != NULL)
pCode->Release();
return hr;
#endif //RIGHT_SIDE_ONLY
}
HRESULT CordbFunction::GetLocalVarSigToken(mdSignature *pmdSig)
{
VALIDATE_POINTER_TO_OBJECT(pmdSig, mdSignature *);
#ifdef RIGHT_SIDE_ONLY
CORDBRequireProcessStateOKAndSync(GetProcess(), GetAppDomain());
#else
// For the Virtual Right Side (In-proc debugging), we'll
// always be synched, but not neccessarily b/c we've
// gotten a synch message.
CORDBRequireProcessStateOK(GetProcess());
#endif
HRESULT hr = UpdateToMostRecentEnCVersion();
if (FAILED(hr))
return hr;
*pmdSig = m_localVarSigToken;
return S_OK;
}
HRESULT CordbFunction::GetCurrentVersionNumber(ULONG32 *pnCurrentVersion)
{
VALIDATE_POINTER_TO_OBJECT(pnCurrentVersion, ULONG32 *);
INPROC_LOCK();
HRESULT hr = UpdateToMostRecentEnCVersion();
if (FAILED(hr))
return hr;
CordbCode *pCode = NULL;
hr = GetCodeByVersion(TRUE, FALSE, DJI_VERSION_MOST_RECENTLY_EnCED, &pCode);
if (FAILED(hr))
goto LError;
(*pnCurrentVersion) = INTERNAL_TO_EXTERNAL_VERSION(m_nVersionMostRecentEnC);
_ASSERTE((*pnCurrentVersion) >= USER_VISIBLE_FIRST_VALID_VERSION_NUMBER);
LError:
if (pCode != NULL)
pCode->Release();
INPROC_UNLOCK();
return hr;
}
HRESULT CordbFunction::CreateCode(BOOL isIL, REMOTE_PTR startAddress,
SIZE_T size, CordbCode** ppCode,
SIZE_T nVersion, void *CodeVersionToken,
REMOTE_PTR ilToNativeMapAddr,
SIZE_T ilToNativeMapSize)
{
_ASSERTE(ppCode != NULL);
*ppCode = NULL;
CordbCode* pCode = new CordbCode(this, isIL, startAddress, size,
nVersion, CodeVersionToken,
ilToNativeMapAddr, ilToNativeMapSize);
if (pCode == NULL)
return E_OUTOFMEMORY;
HRESULT hr = S_OK;
if (isIL)
{
hr = UnorderedCodeArrayAdd( &m_rgilCode, pCode);
}
else
{
hr = UnorderedCodeArrayAdd( &m_rgnativeCode, pCode);
}
if (FAILED(hr))
{
delete pCode;
return hr;
}
pCode->AddRef();
*ppCode = pCode;
return S_OK;
}
HRESULT CordbFunction::Populate( SIZE_T nVersion)
{
HRESULT hr = S_OK;
CordbProcess* pProcess = m_module->m_process;
_ASSERTE(m_token != mdMethodDefNil);
// Bail now if we've already discovered that this function is implemented natively as part of the Runtime.
if (m_isNativeImpl)
return CORDBG_E_FUNCTION_NOT_IL;
// Figure out if this function is implemented as a native part of the Runtime. If it is, then this ICorDebugFunction
// is just a container for certian Right Side bits of info, i.e., module, class, token, etc.
DWORD attrs;
DWORD implAttrs;
ULONG ulRVA;
BOOL isDynamic;
hr = GetModule()->m_pIMImport->GetMethodProps(m_token, NULL, NULL, 0, NULL,
&attrs, NULL, NULL, &ulRVA, &implAttrs);
if (FAILED(hr))
return hr;
IfFailRet( GetModule()->IsDynamic(&isDynamic) );
// A method has associated IL if it's RVA is non-zero unless it is a dynamic module
if (IsMiNative(implAttrs) || (isDynamic == FALSE && ulRVA == 0))
{
m_isNativeImpl = true;
return CORDBG_E_FUNCTION_NOT_IL;
}
// Make sure the Left Side is running free before trying to send an event to it.
CORDBSyncFromWin32StopIfStopped(pProcess);
// Send the get function data event to the RC.
DebuggerIPCEvent event;
pProcess->InitIPCEvent(&event, DB_IPCE_GET_FUNCTION_DATA, true, (void *)(m_module->GetAppDomain()->m_id));
event.GetFunctionData.funcMetadataToken = m_token;
event.GetFunctionData.funcDebuggerModuleToken = m_module->m_debuggerModuleToken;
event.GetFunctionData.nVersion = nVersion;
_ASSERTE(m_module->m_debuggerModuleToken != NULL);
// Note: two-way event here...
hr = pProcess->m_cordb->SendIPCEvent(pProcess, &event, sizeof(DebuggerIPCEvent));
// Stop now if we can't even send the event.
if (!SUCCEEDED(hr))
return hr;
_ASSERTE(event.type == DB_IPCE_FUNCTION_DATA_RESULT);
// Cache the most recently EnC'ed version number
m_nVersionMostRecentEnC = event.FunctionDataResult.nVersionMostRecentEnC;
// Fill in the proper function data.
m_functionRVA = event.FunctionDataResult.funcRVA;
// Should we make or fill in some class data for this function?
if ((m_class == NULL) && (event.FunctionDataResult.classMetadataToken != mdTypeDefNil))
{
CordbAssembly *pAssembly = m_module->GetCordbAssembly();
CordbModule* pClassModule = pAssembly->m_pAppDomain->LookupModule(event.FunctionDataResult.funcDebuggerModuleToken);
_ASSERTE(pClassModule != NULL);
CordbClass* pClass = pClassModule->LookupClass(event.FunctionDataResult.classMetadataToken);
if (pClass == NULL)
{
hr = pClassModule->CreateClass(event.FunctionDataResult.classMetadataToken, &pClass);
if (!SUCCEEDED(hr))
goto exit;
}
_ASSERTE(pClass != NULL);
m_class = pClass;
}
// Do we need to make any code objects for this function?
LOG((LF_CORDB,LL_INFO10000,"R:CF::Pop: looking for IL code, version 0x%x\n", event.FunctionDataResult.ilnVersion));
CordbCode *pCodeTemp = NULL;
if ((UnorderedCodeArrayGet(&m_rgilCode, event.FunctionDataResult.ilnVersion) == NULL) &&
(event.FunctionDataResult.ilStartAddress != 0))
{
LOG((LF_CORDB,LL_INFO10000,"R:CF::Pop: not found, creating...\n"));
_ASSERTE(DJI_VERSION_INVALID != event.FunctionDataResult.ilnVersion);
hr = CreateCode(TRUE,
event.FunctionDataResult.ilStartAddress,
event.FunctionDataResult.ilSize,
&pCodeTemp, event.FunctionDataResult.ilnVersion,
event.FunctionDataResult.CodeVersionToken,
NULL, 0);
if (!SUCCEEDED(hr))
goto exit;
}
LOG((LF_CORDB,LL_INFO10000,"R:CF::Pop: looking for native code, ver 0x%x\n", event.FunctionDataResult.nativenVersion));
if (UnorderedCodeArrayGet(&m_rgnativeCode, event.FunctionDataResult.nativenVersion) == NULL &&
event.FunctionDataResult.nativeStartAddressPtr != 0)
{
LOG((LF_CORDB,LL_INFO10000,"R:CF::Pop: not found, creating...\n"));
_ASSERTE(DJI_VERSION_INVALID != event.FunctionDataResult.nativenVersion);
if (pCodeTemp)
pCodeTemp->Release();
hr = CreateCode(FALSE,
event.FunctionDataResult.nativeStartAddressPtr,
event.FunctionDataResult.nativeSize,
&pCodeTemp, event.FunctionDataResult.nativenVersion,
event.FunctionDataResult.CodeVersionToken,
event.FunctionDataResult.ilToNativeMapAddr,
event.FunctionDataResult.ilToNativeMapSize);
if (!SUCCEEDED(hr))
goto exit;
}
SetLocalVarToken(event.FunctionDataResult.localVarSigToken);
exit:
if (pCodeTemp)
pCodeTemp->Release();
return hr;
}
//
// LoadNativeInfo loads from the left side any native variable info
// from the JIT.
//
HRESULT CordbFunction::LoadNativeInfo(void)
{
HRESULT hr = S_OK;
// Then, if we've either never done this before (no info), or we have, but the version number has increased, we
// should try and get a newer version of our JIT info.
if(m_nativeInfoValid && m_nVersionLastNativeInfo >= m_nVersionMostRecentEnC)
return S_OK;
// You can't do this if the function is implemented as part of the Runtime.
if (m_isNativeImpl)
return CORDBG_E_FUNCTION_NOT_IL;
DebuggerIPCEvent *retEvent = NULL;
bool wait = true;
bool fFirstEvent = true;
// We might be here b/c we've done some EnCs, but we also may have pitched some code, so don't overwrite this until
// we're sure we've got a good replacement.
unsigned int argumentCount = 0;
unsigned int nativeInfoCount = 0;
unsigned int nativeInfoCountTotal = 0;
ICorJitInfo::NativeVarInfo *nativeInfo = NULL;
CORDBSyncFromWin32StopIfStopped(GetProcess());
INPROC_LOCK();
// We've got a remote address that points to the EEClass. We need to send to the left side to get real information
// about the class, including its instance and static variables.
CordbProcess *pProcess = GetProcess();
DebuggerIPCEvent event;
pProcess->InitIPCEvent(&event, DB_IPCE_GET_JIT_INFO, false, (void *)(GetAppDomain()->m_id));
event.GetJITInfo.funcMetadataToken = m_token;
event.GetJITInfo.funcDebuggerModuleToken = m_module->m_debuggerModuleToken;
_ASSERTE(m_module->m_debuggerModuleToken != NULL);
hr = pProcess->m_cordb->SendIPCEvent(pProcess, &event, sizeof(DebuggerIPCEvent));
// Stop now if we can't even send the event.
if (!SUCCEEDED(hr))
goto exit;
// Wait for events to return from the RC. We expect at least one jit info result event.
retEvent = (DebuggerIPCEvent *) _alloca(CorDBIPC_BUFFER_SIZE);
while (wait)
{
unsigned int currentInfoCount = 0;
#ifdef RIGHT_SIDE_ONLY
hr = pProcess->m_cordb->WaitForIPCEventFromProcess(pProcess, GetAppDomain(), retEvent);
#else
if (fFirstEvent)
{
hr = pProcess->m_cordb->GetFirstContinuationEvent(pProcess,retEvent);
fFirstEvent = false;
}
else
{
hr = pProcess->m_cordb->GetNextContinuationEvent(pProcess,retEvent);
}
#endif //RIGHT_SIDE_ONLY
if (!SUCCEEDED(hr))
goto exit;
_ASSERTE(retEvent->type == DB_IPCE_GET_JIT_INFO_RESULT);
// If this is the first event back from the RC, then create the array to hold the data.
if ((retEvent->GetJITInfoResult.totalNativeInfos > 0) && (nativeInfo == NULL))
{
argumentCount = retEvent->GetJITInfoResult.argumentCount;
nativeInfoCountTotal = retEvent->GetJITInfoResult.totalNativeInfos;
nativeInfo = new ICorJitInfo::NativeVarInfo[nativeInfoCountTotal];
if (nativeInfo == NULL)
{
hr = E_OUTOFMEMORY;
goto exit;
}
}
ICorJitInfo::NativeVarInfo *currentNativeInfo = &(retEvent->GetJITInfoResult.nativeInfo);
while (currentInfoCount++ < retEvent->GetJITInfoResult.nativeInfoCount)
{
nativeInfo[nativeInfoCount] = *currentNativeInfo;
currentNativeInfo++;
nativeInfoCount++;
}
if (nativeInfoCount >= nativeInfoCountTotal)
wait = false;
}
if (m_nativeInfo != NULL)
{
delete [] m_nativeInfo;
m_nativeInfo = NULL;
}
m_nativeInfo = nativeInfo;
m_argumentCount = argumentCount;
m_nativeInfoCount = nativeInfoCount;
m_nativeInfoValid = true;
m_nVersionLastNativeInfo = retEvent->GetJITInfoResult.nVersion;
exit:
#ifndef RIGHT_SIDE_ONLY
GetProcess()->ClearContinuationEvents();
#endif
INPROC_UNLOCK();
return hr;
}
//
// Given an IL local variable number and a native IP offset, return the
// location of the variable in jitted code.
//
HRESULT CordbFunction::ILVariableToNative(DWORD dwIndex,
SIZE_T ip,
ICorJitInfo::NativeVarInfo **ppNativeInfo)
{
_ASSERTE(m_nativeInfoValid);
return FindNativeInfoInILVariableArray(dwIndex,
ip,
ppNativeInfo,
m_nativeInfoCount,
m_nativeInfo);
}
HRESULT CordbFunction::LoadSig( void )
{
HRESULT hr = S_OK;
INPROC_LOCK();
if (m_methodSig == NULL)
{
DWORD methodAttr = 0;
ULONG sigBlobSize = 0;
hr = GetModule()->m_pIMImport->GetMethodProps(
m_token, NULL, NULL, 0, NULL,
&methodAttr, &m_methodSig, &sigBlobSize,
NULL, NULL);
if (FAILED(hr))
goto exit;
// Run past the calling convetion, then get the
// arg count, and return type
ULONG cb = 0;
cb += _skipMethodSignatureHeader(m_methodSig, &m_argCount);
m_methodSig = &m_methodSig[cb];
m_methodSigSize = sigBlobSize - cb;
// If this function is not static, then we've got one extra arg.
m_isStatic = (methodAttr & mdStatic) != 0;
if (!m_isStatic)
m_argCount++;
}
exit:
INPROC_UNLOCK();
return hr;
}
//
// Figures out if an EnC has happened since the last time we were updated, and
// if so, updates all the fields of this CordbFunction so that everything
// is up-to-date.
//
// @todo update for InProc, as well.
HRESULT CordbFunction::UpdateToMostRecentEnCVersion(void)
{
HRESULT hr = S_OK;
#ifdef RIGHT_SIDE_ONLY
if (m_isNativeImpl)
m_encCounterLastSynch = m_module->GetProcess()->m_EnCCounter;
if (m_encCounterLastSynch < m_module->GetProcess()->m_EnCCounter)
{
hr = Populate(DJI_VERSION_MOST_RECENTLY_EnCED);
if (FAILED(hr) && hr != CORDBG_E_FUNCTION_NOT_IL)
return hr;
// These 'signatures' are actually sub-signatures whose memory is owned
// by someone else. We don't delete them in the Dtor, so don't
// delete them here, either.
// Get rid of these so that Load(LocalVar)Sig will re-get them.
m_methodSig = NULL;
m_localsSig = NULL;
hr = LoadSig();
if (FAILED(hr))
return hr;
if (!m_isNativeImpl)
{
hr = LoadLocalVarSig();
if (FAILED(hr))
return hr;
}
m_encCounterLastSynch = m_module->GetProcess()->m_EnCCounter;
}
#endif
return hr;
}
//
// Given an IL argument number, return its type.
//
HRESULT CordbFunction::GetArgumentType(DWORD dwIndex,
ULONG *pcbSigBlob,
PCCOR_SIGNATURE *ppvSigBlob)
{
HRESULT hr = S_OK;
ULONG cb;
// Load the method's signature if necessary.
if (m_methodSig == NULL)
{
hr = LoadSig();
if( !SUCCEEDED( hr ) )
return hr;
}
// Check the index
if (dwIndex >= m_argCount)
return E_INVALIDARG;
if (!m_isStatic)
if (dwIndex == 0)
{
// Return the signature for the 'this' pointer for the
// class this method is in.
return m_class->GetThisSignature(pcbSigBlob, ppvSigBlob);
}
else
dwIndex--;
cb = 0;
// Run the signature and find the required argument.
for (unsigned int i = 0; i < dwIndex; i++)
cb += _skipTypeInSignature(&m_methodSig[cb]);
//Get rid of funky modifiers
cb += _skipFunkyModifiersInSignature(&m_methodSig[cb]);
*pcbSigBlob = m_methodSigSize - cb;
*ppvSigBlob = &(m_methodSig[cb]);
return hr;
}
//
// Set the info needed to build a local var signature for this function.
//
void CordbFunction::SetLocalVarToken(mdSignature localVarSigToken)
{
m_localVarSigToken = localVarSigToken;
}
//@TODO remove this after removing the IMetaDataHelper* hack below
#include "corpriv.h"
//
// LoadLocalVarSig loads the local variable signature from the token
// passed over from the Left Side.
//
HRESULT CordbFunction::LoadLocalVarSig(void)
{
HRESULT hr = S_OK;
INPROC_LOCK();
if ((m_localsSig == NULL) && (m_localVarSigToken != mdSignatureNil))
{
hr = GetModule()->m_pIMImport->GetSigFromToken(m_localVarSigToken,
&m_localsSig,
&m_localsSigSize);
if (FAILED(hr))
goto Exit;
_ASSERTE(*m_localsSig == IMAGE_CEE_CS_CALLCONV_LOCAL_SIG);
m_localsSig++;
--m_localsSigSize;
// Snagg the count of locals in the sig.
m_localVarCount = CorSigUncompressData(m_localsSig);
}
Exit:
INPROC_UNLOCK();
return hr;
}
//
// Given an IL variable number, return its type.
//
HRESULT CordbFunction::GetLocalVariableType(DWORD dwIndex,
ULONG *pcbSigBlob,
PCCOR_SIGNATURE *ppvSigBlob)
{
HRESULT hr = S_OK;
ULONG cb;
// Load the method's signature if necessary.
if (m_localsSig == NULL)
{
hr = Populate(DJI_VERSION_MOST_RECENTLY_JITTED);
if (FAILED(hr))
return hr;
hr = LoadLocalVarSig();
if (FAILED(hr))
return hr;
}
// Check the index
if (dwIndex >= m_localVarCount)
return E_INVALIDARG;
cb = 0;
// Run the signature and find the required argument.
for (unsigned int i = 0; i < dwIndex; i++)
cb += _skipTypeInSignature(&m_localsSig[cb]);
//Get rid of funky modifiers
cb += _skipFunkyModifiersInSignature(&m_localsSig[cb]);
*pcbSigBlob = m_localsSigSize - cb;
*ppvSigBlob = &(m_localsSig[cb]);
return hr;
}
/* ------------------------------------------------------------------------- *
* Code class
* ------------------------------------------------------------------------- */
CordbCode::CordbCode(CordbFunction *m, BOOL isIL, REMOTE_PTR startAddress,
SIZE_T size, SIZE_T nVersion, void *CodeVersionToken,
REMOTE_PTR ilToNativeMapAddr, SIZE_T ilToNativeMapSize)
: CordbBase(0, enumCordbCode), m_function(m), m_isIL(isIL),
m_address(startAddress), m_size(size), m_nVersion(nVersion),
m_CodeVersionToken(CodeVersionToken),
m_ilToNativeMapAddr(ilToNativeMapAddr),
m_ilToNativeMapSize(ilToNativeMapSize),
m_rgbCode(NULL),
m_continueCounterLastSync(0)
{
}
CordbCode::~CordbCode()
{
if (m_rgbCode != NULL)
delete [] m_rgbCode;
}
// Neutered by CordbFunction
void CordbCode::Neuter()
{
AddRef();
{
CordbBase::Neuter();
}
Release();
}
HRESULT CordbCode::QueryInterface(REFIID id, void **pInterface)
{
if (id == IID_ICorDebugCode)
*pInterface = (ICorDebugCode*)this;
else if (id == IID_IUnknown)
*pInterface = (IUnknown*)(ICorDebugCode*)this;
else
{
*pInterface = NULL;
return E_NOINTERFACE;
}
AddRef();
return S_OK;
}
HRESULT CordbCode::IsIL(BOOL *pbIL)
{
VALIDATE_POINTER_TO_OBJECT(pbIL, BOOL *);
*pbIL = m_isIL;
return S_OK;
}
HRESULT CordbCode::GetFunction(ICorDebugFunction **ppFunction)
{
VALIDATE_POINTER_TO_OBJECT(ppFunction, ICorDebugFunction **);
*ppFunction = (ICorDebugFunction*) m_function;
(*ppFunction)->AddRef();
return S_OK;
}
HRESULT CordbCode::GetAddress(CORDB_ADDRESS *pStart)
{
VALIDATE_POINTER_TO_OBJECT(pStart, CORDB_ADDRESS *);
// Native can be pitched, and so we have to actually
// grab the address from the left side, whereas the
// IL code address doesn't change.
if (m_isIL )
{
*pStart = PTR_TO_CORDB_ADDRESS(m_address);
}
else
{
// Undone: The following assert is no longer
// valid. AtulC
// _ASSERTE(m_address != NULL);
_ASSERTE( this != NULL );
_ASSERTE( this->m_function != NULL );
_ASSERTE( this->m_function->m_module != NULL );
_ASSERTE( this->m_function->m_module->m_process != NULL );
if (m_address != NULL)
{
DWORD dwRead = 0;
if ( 0 == ReadProcessMemoryI( m_function->m_module->m_process->m_handle,
m_address, pStart, sizeof(CORDB_ADDRESS),&dwRead))
{
*pStart = NULL;
return HRESULT_FROM_WIN32(GetLastError());
}
}
// If the address was zero'd out on the left side, then
// the code has been pitched & isn't available.
if ((*pStart == NULL) || (m_address == NULL))
{
return CORDBG_E_CODE_NOT_AVAILABLE;
}
}
return S_OK;
}
HRESULT CordbCode::GetSize(ULONG32 *pcBytes)
{
VALIDATE_POINTER_TO_OBJECT(pcBytes, ULONG32 *);
*pcBytes = m_size;
return S_OK;
}
HRESULT CordbCode::CreateBreakpoint(ULONG32 offset,
ICorDebugFunctionBreakpoint **ppBreakpoint)
{
#ifndef RIGHT_SIDE_ONLY
return CORDBG_E_INPROC_NOT_IMPL;
#else
VALIDATE_POINTER_TO_OBJECT(ppBreakpoint, ICorDebugFunctionBreakpoint **);
CordbFunctionBreakpoint *bp = new CordbFunctionBreakpoint(this, offset);
if (bp == NULL)
return E_OUTOFMEMORY;
HRESULT hr = bp->Activate(TRUE);
if (SUCCEEDED(hr))
{
*ppBreakpoint = (ICorDebugFunctionBreakpoint*) bp;
bp->AddRef();
return S_OK;
}
else
{
delete bp;
return hr;
}
#endif //RIGHT_SIDE_ONLY
}
HRESULT CordbCode::GetCode(ULONG32 startOffset,
ULONG32 endOffset,
ULONG32 cBufferAlloc,
BYTE buffer[],
ULONG32 *pcBufferSize)
{
VALIDATE_POINTER_TO_OBJECT_ARRAY(buffer, BYTE, cBufferAlloc, true, true);
VALIDATE_POINTER_TO_OBJECT(pcBufferSize, ULONG32 *);
LOG((LF_CORDB,LL_EVERYTHING, "CC::GC: for token:0x%x\n", m_function->m_token));
CORDBSyncFromWin32StopIfStopped(GetProcess());
#ifdef RIGHT_SIDE_ONLY
CORDBRequireProcessStateOKAndSync(GetProcess(), GetAppDomain());
#else
// For the Virtual Right Side (In-proc debugging), we'll
// always be synched, but not neccessarily b/c we've
// gotten a synch message.
CORDBRequireProcessStateOK(GetProcess());
#endif
INPROC_LOCK();
HRESULT hr = S_OK;
*pcBufferSize = 0;
//
// Check ranges.
//
if (cBufferAlloc < endOffset - startOffset)
endOffset = startOffset + cBufferAlloc;
if (endOffset > m_size)
endOffset = m_size;
if (startOffset > m_size)
startOffset = m_size;
if (m_rgbCode == NULL ||
m_continueCounterLastSync < GetProcess()->m_continueCounter)
{
BYTE *rgbCodeOrCodeSnippet;
ULONG32 start;
ULONG32 end;
ULONG cAlloc;
if (m_continueCounterLastSync < GetProcess()->m_continueCounter &&
m_rgbCode != NULL )
{
delete [] m_rgbCode;
}
m_rgbCode = new BYTE[m_size];
if (m_rgbCode == NULL)
{
rgbCodeOrCodeSnippet = buffer;
start = startOffset;
end = endOffset;
cAlloc = cBufferAlloc;
}
else
{
rgbCodeOrCodeSnippet = m_rgbCode;
start = 0;
end = m_size;
cAlloc = m_size;
}
DebuggerIPCEvent *event =
(DebuggerIPCEvent *) _alloca(CorDBIPC_BUFFER_SIZE);
//
// Send event to get code.
// !!! This assumes that we're currently synchronized.
//
GetProcess()->InitIPCEvent(event,
DB_IPCE_GET_CODE,
false,
(void *)(GetAppDomain()->m_id));
event->GetCodeData.funcMetadataToken = m_function->m_token;
event->GetCodeData.funcDebuggerModuleToken =
m_function->m_module->m_debuggerModuleToken;
event->GetCodeData.il = m_isIL != 0;
event->GetCodeData.start = start;
event->GetCodeData.end = end;
event->GetCodeData.CodeVersionToken = m_CodeVersionToken;
hr = GetProcess()->SendIPCEvent(event, CorDBIPC_BUFFER_SIZE);
if FAILED(hr)
goto LExit;
//
// Keep getting result events until we get the last bit of code.
//
bool fFirstLoop = true;
do
{
#ifdef RIGHT_SIDE_ONLY
hr = GetProcess()->m_cordb->WaitForIPCEventFromProcess(
GetProcess(),
GetAppDomain(),
event);
#else
if (fFirstLoop)
{
hr = GetProcess()->m_cordb->GetFirstContinuationEvent(
GetProcess(),
event);
fFirstLoop = false;
}
else
{
hr = GetProcess()->m_cordb->GetNextContinuationEvent(
GetProcess(),
event);
}
#endif //RIGHT_SIDE_ONLY
if(FAILED(hr))
goto LExit;
_ASSERTE(event->type == DB_IPCE_GET_CODE_RESULT);
memcpy(rgbCodeOrCodeSnippet + event->GetCodeData.start - start,
&event->GetCodeData.code,
event->GetCodeData.end - event->GetCodeData.start);
} while (event->GetCodeData.end < end);
// We sluiced the code into the caller's buffer, so tell the caller
// how much space is used.
if (rgbCodeOrCodeSnippet == buffer)
*pcBufferSize = endOffset - startOffset;
m_continueCounterLastSync = GetProcess()->m_continueCounter;
}
// if we just got the code, we'll have to copy it over
if (*pcBufferSize == 0 && m_rgbCode != NULL)
{
memcpy(buffer,
m_rgbCode+startOffset,
endOffset - startOffset);
*pcBufferSize = endOffset - startOffset;
}
LExit:
#ifndef RIGHT_SIDE_ONLY
GetProcess()->ClearContinuationEvents();
#endif
INPROC_UNLOCK();
return hr;
}
#include "DbgIPCEvents.h"
HRESULT CordbCode::GetVersionNumber( ULONG32 *nVersion)
{
VALIDATE_POINTER_TO_OBJECT(nVersion, ULONG32 *);
LOG((LF_CORDB,LL_INFO10000,"R:CC:GVN:Returning 0x%x "
"as version\n",m_nVersion));
*nVersion = INTERNAL_TO_EXTERNAL_VERSION(m_nVersion);
_ASSERTE((*nVersion) >= USER_VISIBLE_FIRST_VALID_VERSION_NUMBER);
return S_OK;
}
HRESULT CordbCode::GetILToNativeMapping(ULONG32 cMap,
ULONG32 *pcMap,
COR_DEBUG_IL_TO_NATIVE_MAP map[])
{
VALIDATE_POINTER_TO_OBJECT_OR_NULL(pcMap, ULONG32 *);
VALIDATE_POINTER_TO_OBJECT_ARRAY_OR_NULL(map, COR_DEBUG_IL_TO_NATIVE_MAP *,cMap,true,true);
// Gotta have a map address to return a map.
if (m_ilToNativeMapAddr == NULL)
return CORDBG_E_NON_NATIVE_FRAME;
HRESULT hr = S_OK;
DebuggerILToNativeMap *mapInt = NULL;
mapInt = new DebuggerILToNativeMap[cMap];
if (mapInt == NULL)
return E_OUTOFMEMORY;
// If they gave us space to copy into...
if (map != NULL)
{
// Only copy as much as either they gave us or we have to copy.
SIZE_T cnt = min(cMap, m_ilToNativeMapSize);
if (cnt > 0)
{
// Read the map right out of the Left Side.
BOOL succ = ReadProcessMemory(GetProcess()->m_handle,
m_ilToNativeMapAddr,
mapInt,
cnt *
sizeof(DebuggerILToNativeMap),
NULL);
if (!succ)
hr = HRESULT_FROM_WIN32(GetLastError());
}
// Remember that we need to translate between our internal DebuggerILToNativeMap and the external
// COR_DEBUG_IL_TO_NATIVE_MAP!
if (SUCCEEDED(hr))
ExportILToNativeMap(cMap, map, mapInt, m_size);
}
if (pcMap)
*pcMap = m_ilToNativeMapSize;
if (mapInt != NULL)
delete [] mapInt;
return hr;
}
HRESULT CordbCode::GetEnCRemapSequencePoints(ULONG32 cMap, ULONG32 *pcMap, ULONG32 offsets[])
{
VALIDATE_POINTER_TO_OBJECT_OR_NULL(pcMap, ULONG32*);
VALIDATE_POINTER_TO_OBJECT_ARRAY_OR_NULL(offsets, ULONG32*, cMap, true, true);
// Gotta have a map address to return a map.
if (m_ilToNativeMapAddr == NULL)
return CORDBG_E_NON_NATIVE_FRAME;
_ASSERTE(m_ilToNativeMapSize > 0);
HRESULT hr = S_OK;
DebuggerILToNativeMap *mapInt = NULL;
// We need space for the entire map from the Left Side. We really should be caching this...
mapInt = new DebuggerILToNativeMap[m_ilToNativeMapSize];
if (mapInt == NULL)
return E_OUTOFMEMORY;
// Read the map right out of the Left Side.
BOOL succ = ReadProcessMemory(GetProcess()->m_handle,
m_ilToNativeMapAddr,
mapInt,
m_ilToNativeMapSize * sizeof(DebuggerILToNativeMap),
NULL);
if (!succ)
hr = HRESULT_FROM_WIN32(GetLastError());
// We'll count up how many entries there are as we go.
ULONG32 cnt = 0;
if (SUCCEEDED(hr))
{
for (ULONG32 iMap = 0; iMap < m_ilToNativeMapSize; iMap++)
{
SIZE_T offset = mapInt[iMap].ilOffset;
ICorDebugInfo::SourceTypes src = mapInt[iMap].source;
// We only set EnC remap breakpoints at valid, stack empty IL offsets.
if ((offset != ICorDebugInfo::MappingTypes::PROLOG) &&
(offset != ICorDebugInfo::MappingTypes::EPILOG) &&
(offset != ICorDebugInfo::MappingTypes::NO_MAPPING) &&
(src & ICorDebugInfo::STACK_EMPTY))
{
// If they gave us space to copy into...
if ((offsets != NULL) && (cnt < cMap))
offsets[cnt] = offset;
// We've got another one, so count it.
cnt++;
}
}
}
if (pcMap)
*pcMap = cnt;
if (mapInt != NULL)
delete [] mapInt;
return hr;
}
| 29.953375 | 168 | 0.566264 | [
"object"
] |
c627a08e74631b3662ba7a32d8a09a4bdc1c7101 | 1,334 | cpp | C++ | src/third_party/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUELFStreamer.cpp | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 59 | 2019-10-22T16:21:33.000Z | 2022-02-01T20:32:32.000Z | src/third_party/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUELFStreamer.cpp | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 51 | 2019-10-23T11:55:08.000Z | 2021-12-21T06:32:11.000Z | src/third_party/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUELFStreamer.cpp | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 15 | 2019-10-22T19:56:12.000Z | 2022-01-12T14:45:15.000Z | //===-------- AMDGPUELFStreamer.cpp - ELF Object Output -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "AMDGPUELFStreamer.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/MC/MCAsmBackend.h"
#include "llvm/MC/MCCodeEmitter.h"
#include "llvm/MC/MCObjectWriter.h"
using namespace llvm;
namespace {
class AMDGPUELFStreamer : public MCELFStreamer {
public:
AMDGPUELFStreamer(const Triple &T, MCContext &Context,
std::unique_ptr<MCAsmBackend> MAB,
std::unique_ptr<MCObjectWriter> OW,
std::unique_ptr<MCCodeEmitter> Emitter)
: MCELFStreamer(Context, std::move(MAB), std::move(OW),
std::move(Emitter)) {}
};
}
MCELFStreamer *llvm::createAMDGPUELFStreamer(
const Triple &T, MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter,
bool RelaxAll) {
return new AMDGPUELFStreamer(T, Context, std::move(MAB), std::move(OW),
std::move(Emitter));
}
| 33.35 | 80 | 0.608696 | [
"object"
] |
c62a37f28d7450ffe50a1ee8d1d69728cd55da54 | 5,815 | cc | C++ | bam/src/configuration/ba.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | bam/src/configuration/ba.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | bam/src/configuration/ba.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2014 Centreon
**
** 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.
**
** For more information : contact@centreon.com
*/
#include "com/centreon/broker/bam/configuration/ba.hh"
#include "com/centreon/broker/bam/configuration/reader_exception.hh"
using namespace com::centreon::broker::bam::configuration;
/**
* Constructor.
*
* @param[in] id BA ID.
* @param[in] name BA name.
* @param[in] warning_level BA warning_level.
* @param[in] critical_level BA critical_level.
* @param[in] inherit_kpi_downtime Should the BA inherit kpi's downtimes?
*/
ba::ba(
unsigned int id,
std::string const& name,
double warning_level,
double critical_level,
bool inherit_kpi_downtime):
_id(id),
_host_id(0),
_service_id(0),
_name(name),
_warning_level(warning_level),
_critical_level(critical_level),
_inherit_kpi_downtime(inherit_kpi_downtime) {}
/**
* Copy constructor.
*
* @param[in] other The original object.
*/
ba::ba(ba const& other)
: _id(other._id),
_host_id(other._host_id),
_service_id(other._service_id),
_name(other._name),
_warning_level(other._warning_level),
_critical_level(other._critical_level),
_event(other._event),
_inherit_kpi_downtime (other._inherit_kpi_downtime) {}
/**
* Destructor.
*/
ba::~ba() {}
/**
* Assignment Operator.
*
* @param[in] other The original object.
*
* @return this
*/
ba& ba::operator=(ba const& other) {
if (this != &other) {
_id = other._id;
_host_id = other._host_id;
_service_id = other._service_id;
_name = other._name;
_warning_level = other._warning_level;
_critical_level = other._critical_level;
_event = other._event;
_inherit_kpi_downtime = other._inherit_kpi_downtime;
}
return (*this);
}
/**
* Equality comparison operator.
*
* @param[in] right Object to compare to.
*
* @return True if this object and right are totally equal.
*/
bool ba::operator==(ba const& right) const {
return ((_id == right._id)
&& (_host_id == right._host_id)
&& (_service_id == right._service_id)
&& (_name == right._name)
&& (_warning_level == right._warning_level)
&& (_critical_level == right._critical_level)
&& (_event == right._event)
&& (_inherit_kpi_downtime == right._inherit_kpi_downtime));
}
/**
* Inequality comparison operator.
*
* @param[in] right Object to compare to.
*
* @return True if this object and right are inequal.
*/
bool ba::operator!=(ba const& right) const {
return (!operator==(right));
}
/**
* Get business activity id.
*
* @return An integer representing the value of a business activity.
*/
unsigned int ba::get_id() const {
return (_id);
}
/**
* Get the host ID.
*
* @return BA host ID.
*/
unsigned int ba::get_host_id() const {
return (_host_id);
}
/**
* Get the id of the service associated to this ba.
*
* @return An integer representing the value of this id.
*/
unsigned int ba::get_service_id() const {
return (_service_id);
}
/**
* Get name of the business activity.
*
* @return The name.
*/
std::string const& ba::get_name() const {
return (_name);
}
/**
* Get warning level.
*
* @return The percentage for the warning level.
*/
double ba::get_warning_level() const {
return (_warning_level);
}
/**
* Get critical level.
*
* @return The percentage for the critical level.
*/
double ba::get_critical_level() const {
return (_critical_level);
}
/**
* Get the opened event of this ba.
*
* @return The opened event of this ba.
*/
com::centreon::broker::bam::ba_event const& ba::get_opened_event() const {
return (_event);
}
/**
* Get if the BA should inherit the downtime of its kpis.
*
* @return True if the BA should inherit the downtime of its kpis.
*/
bool ba::get_inherit_kpi_downtime() const {
return (_inherit_kpi_downtime);
}
/**
* Set id.
*
* @param[in] id Set business activity id key.
*/
void ba::set_id(unsigned int id) {
_id = id;
}
/**
* Set the service id associated to this ba.
*
* @param[in] service_id Set the service id.
*/
void ba::set_host_id(unsigned int host_id) {
_host_id = host_id;
}
/**
* Set the service id associated to this ba.
*
* @param[in] service_id Set the service id.
*/
void ba::set_service_id(unsigned int service_id) {
_service_id = service_id;
}
/**
* Set name.
*
* @param[in] name Name of the BA.
*/
void ba::set_name(std::string const& name) {
_name = name;
}
/**
* Set the percentage for warning level
*
* @param[in] warning_level Warning level.
*/
void ba::set_warning_level(double warning_level) {
_warning_level = warning_level;
}
/**
* Set the percentage for criticial level.
*
* @param[in] critical_level Critical level.
*/
void ba::set_critical_level(double critical_level) {
_critical_level = critical_level;
}
/**
* Set the current opened event for this BA.
*
* @param[in] e The current opened event.
*/
void ba::set_opened_event(bam::ba_event const& e) {
_event = e;
}
/**
* Set the value of the inherit kpi downtime flag.
*
* @param[in] value The value of the inherit kpi downtime flag.
*/
void ba::set_inherit_kpi_downtime(bool value) {
_inherit_kpi_downtime = value;
}
| 22.365385 | 75 | 0.667756 | [
"object"
] |
c63e81bfb5358aa2492df363ac23a57e1ce5a1ae | 10,849 | cpp | C++ | tools/Vitis-AI-Runtime/VART/vart/dpu-runner/samples/resnet50_zero_copy/resnet50_b.cpp | hito0512/Vitis-AI | 996459fb96cb077ed2f7e789d515893b1cccbc95 | [
"Apache-2.0"
] | 848 | 2019-12-03T00:16:17.000Z | 2022-03-31T22:53:17.000Z | tools/Vitis-AI-Runtime/VART/vart/dpu-runner/samples/resnet50_zero_copy/resnet50_b.cpp | wangyifan778/Vitis-AI | f61061eef7550d98bf02a171604c9a9f283a7c47 | [
"Apache-2.0"
] | 656 | 2019-12-03T00:48:46.000Z | 2022-03-31T18:41:54.000Z | tools/Vitis-AI-Runtime/VART/vart/dpu-runner/samples/resnet50_zero_copy/resnet50_b.cpp | wangyifan778/Vitis-AI | f61061eef7550d98bf02a171604c9a9f283a7c47 | [
"Apache-2.0"
] | 506 | 2019-12-03T00:46:26.000Z | 2022-03-30T10:34:56.000Z | /*
* Copyright 2019 Xilinx Inc.
*
* 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 <glog/logging.h>
#include <xrt.h>
#include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <memory>
#include <numeric>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <xir/graph/graph.hpp>
#include "vart/assistant/xrt_bo_tensor_buffer.hpp"
#include "vart/runner.hpp"
#include "vart/runner_ext.hpp"
#include "vart/zero_copy_helper.hpp"
#include "vitis/ai/collection_helper.hpp"
#include "xir/sfm_controller.hpp"
static cv::Mat read_image(const std::string& image_file_name);
static std::unique_ptr<vart::TensorBuffer> allocate_tensor_buffer(
xclDeviceHandle h, xclBufferHandle bo, size_t offset,
const xir::Tensor* tensor);
static void mimic_hw_preprocessing(xclDeviceHandle h, //
xclBufferHandle input_bo, //
size_t offset, //
cv::Mat input_image, //
int width, //
int height, //
float input_scale //
);
static void mimic_hw_postprocessing(xclDeviceHandle h, //
xclBufferHandle output_bo, //
size_t offset, //
size_t size, //
float output_scale //
);
static std::vector<float> convert_fixpoint_to_float(int8_t* data, size_t size,
float scale);
static std::vector<float> softmax(const std::vector<float>& input);
static cv::Mat preprocess_image(cv::Mat input_image, cv::Size size);
static std::vector<std::pair<int, float>> topk(const float* score, size_t size,
int K);
static void print_topk(const std::vector<std::pair<int, float>>& topk);
static const char* lookup(int index);
static int get_fix_pos(const xir::Tensor* tensor);
static void setImageBGR(const cv::Mat& image, void* data1, float scale) {
// mean value and scale are model specific, we need to check the
// model to get concrete value. For resnet50, they are 104, 107,
// 123, and 0.5, 0.5, 0.5 respectively
signed char* data = (signed char*)data1;
int c = 0;
for (auto row = 0; row < image.rows; row++) {
for (auto col = 0; col < image.cols; col++) {
auto v = image.at<cv::Vec3b>(row, col);
// convert BGR to RGB, substract mean value and times scale;
auto B = (float)v[0];
auto G = (float)v[1];
auto R = (float)v[2];
auto nB = (B - 104.0f) * scale;
auto nG = (G - 107.0f) * scale;
auto nR = (R - 123.0f) * scale;
nB = std::max(std::min(nB, 127.0f), -128.0f);
nG = std::max(std::min(nG, 127.0f), -128.0f);
nR = std::max(std::min(nR, 127.0f), -128.0f);
data[c++] = (int)(nB);
data[c++] = (int)(nG);
data[c++] = (int)(nR);
}
}
}
int main(int argc, char* argv[]) {
if (argc < 3) {
cout << "usage: " << argv[0] << " <resnet50.xmodel> <sample_image>\n";
return 0;
}
auto xmodel_file = std::string(argv[1]);
const auto image_file_name = std::string(argv[2]);
{
auto graph = xir::Graph::deserialize(xmodel_file);
auto root = graph->get_root_subgraph();
xir::Subgraph* subgraph = nullptr;
for (auto c : root->children_topological_sort()) {
if (c->get_attr<std::string>("device") == "DPU" && subgraph == nullptr) {
subgraph = c;
}
}
auto attrs = xir::Attrs::create();
std::unique_ptr<vart::RunnerExt> runner =
vart::RunnerExt::create_runner(subgraph, attrs.get());
// prepare input tensor buffer
// get the input and output buffer size for XRT BO allocation
auto h = xclOpen(0, NULL, XCL_INFO);
auto input_bo = xclAllocBO(h, vart::get_input_buffer_size(subgraph), 0, 0);
auto input_tensors = runner->get_input_tensors();
auto input_offsets = vart::get_input_offset(subgraph);
auto input_tensor_buffer = allocate_tensor_buffer(
// only support single input
h, input_bo, input_offsets[0], input_tensors[0]);
auto output_bo =
xclAllocBO(h, vart::get_output_buffer_size(subgraph), 0, 0);
auto output_offsets = vart::get_output_offset(subgraph);
auto output_tensors = runner->get_output_tensors();
auto output_tensor_buffer = allocate_tensor_buffer(
// only support single output
h, output_bo, output_offsets[0], output_tensors[0]);
//
auto input_tensor = input_tensors[0];
auto height = input_tensor->get_shape().at(1);
auto width = input_tensor->get_shape().at(2);
auto input_scale = vart::get_input_scale(input_tensor);
auto output_tensor = output_tensors[0];
auto output_scale = vart::get_output_scale(output_tensor);
auto output_shape = output_tensor->get_shape();
auto output_softmax_size = output_shape[output_shape.size() - 1];
// a image file, e.g.
// /usr/share/VITIS_AI_SDK/samples/classification/images/001.JPEG
cv::Mat input_image = read_image(image_file_name);
mimic_hw_preprocessing(h, input_bo, input_offsets[0], input_image, width,
height, input_scale);
auto v = runner->execute_async({input_tensor_buffer.get()},
{output_tensor_buffer.get()});
auto status = runner->wait((int)v.first, -1);
CHECK_EQ(status, 0) << "failed to run dpu";
// post process
// softmax & topk
mimic_hw_postprocessing(h, output_bo, output_offsets[0],
output_softmax_size, output_scale);
xclFreeBO(h, input_bo);
xclFreeBO(h, output_bo);
xclClose(h);
}
return 0;
}
static cv::Mat read_image(const std::string& image_file_name) {
// read image from a file
auto input_image = cv::imread(image_file_name);
CHECK(!input_image.empty()) << "cannot load " << image_file_name;
return input_image;
}
static cv::Mat preprocess_image(cv::Mat input_image, cv::Size size) {
cv::Mat image;
// resize it if size is not match
if (size != input_image.size()) {
cv::resize(input_image, image, size);
} else {
image = input_image;
}
return image;
}
static std::unique_ptr<vart::TensorBuffer> allocate_tensor_buffer(
xclDeviceHandle h, xclBufferHandle bo, size_t offset,
const xir::Tensor* tensor) {
return vart::assistant::XrtBoTensorBuffer::create({h, bo}, tensor);
}
static void mimic_hw_preprocessing(xclDeviceHandle h, //
xclBufferHandle input_bo, //
size_t offset, //
cv::Mat input_image, //
int width, //
int height, //
float input_scale //
) {
cv::Mat image = preprocess_image(input_image, cv::Size(width, height));
auto data = (int8_t*)xclMapBO(h, input_bo, true); //
auto data_in = data + offset;
setImageBGR(image, (void*)data_in, input_scale);
xclSyncBO(h, input_bo, XCL_BO_SYNC_BO_TO_DEVICE, width * height * 3, offset);
xclUnmapBO(h, input_bo, data);
return;
}
static void mimic_hw_postprocessing(xclDeviceHandle h, //
xclBufferHandle output_bo, //
size_t offset, //
size_t softmax_size, //
float output_scale //
) {
xclSyncBO(h, output_bo, XCL_BO_SYNC_BO_FROM_DEVICE,
// TODO: hard coded value
softmax_size, offset);
auto data = (int8_t*)xclMapBO(h, output_bo, true); //
auto data_in = data + offset;
// run softmax
auto softmax_input =
convert_fixpoint_to_float(data_in, softmax_size, output_scale);
auto softmax_output = softmax(softmax_input);
constexpr int TOPK = 5;
auto r = topk(&softmax_output[0], softmax_size, TOPK);
print_topk(r);
return;
}
static std::vector<float> convert_fixpoint_to_float(int8_t* data, size_t size,
float scale) {
signed char* data_c = (signed char*)data;
auto ret = std::vector<float>(size);
transform(data_c, data_c + size, ret.begin(),
[scale](signed char v) { return ((float)v) * scale; });
return ret;
}
static std::vector<float> softmax(const std::vector<float>& input) {
auto output = std::vector<float>(input.size());
std::transform(input.begin(), input.end(), output.begin(), expf);
auto sum = accumulate(output.begin(), output.end(), 0.0f, std::plus<float>());
std::transform(output.begin(), output.end(), output.begin(),
[sum](float v) { return v / sum; });
return output;
}
static std::vector<std::pair<int, float>> topk(const float* score, size_t size,
int K) {
auto indices = std::vector<int>(size);
std::iota(indices.begin(), indices.end(), 0);
std::partial_sort(indices.begin(), indices.begin() + K, indices.end(),
[&score](int a, int b) { return score[a] > score[b]; });
auto ret = std::vector<std::pair<int, float>>(K);
std::transform(
indices.begin(), indices.begin() + K, ret.begin(),
[&score](int index) { return std::make_pair(index, score[index]); });
return ret;
}
static void print_topk(const std::vector<std::pair<int, float>>& topk) {
for (const auto& v : topk) {
std::cout << setiosflags(ios::left) << std::setw(11)
<< "score[" + std::to_string(v.first) + "]"
<< " = " << std::setw(12) << v.second
<< " text: " << lookup(v.first) << resetiosflags(ios::left)
<< std::endl;
}
}
static const char* lookup(int index) {
static const char* table[] = {
#include "word_list.inc"
};
if (index < 0) {
return "";
} else {
return table[index];
}
};
static int get_fix_pos(const xir::Tensor* tensor) {
int fixpos = tensor->template get_attr<int>("fix_point");
return fixpos;
}
| 38.885305 | 80 | 0.595631 | [
"vector",
"model",
"transform"
] |
c6523c7b80922242527c6c9d33c94c3c4c976c4a | 457 | cpp | C++ | luogu/p1334.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | luogu/p1334.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | luogu/p1334.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n; cin >> n;
vector<long long> a(n);
for(auto &it:a) cin >> it;
priority_queue<long long, vector<long long>, greater<long long>> q;
for(auto &it:a) q.push(it);
long long ans = 0;
while(q.size() > 1)
{
int q1 = q.top();q.pop();
int q2 = q.top();q.pop();
ans += q1+q2;
q.push(q1+q2);
}
cout << ans << endl;
return 0;
} | 20.772727 | 71 | 0.50547 | [
"vector"
] |
c65d9dd4f7f1a2e8fe7a92bdc72dde14c5f4f7e3 | 6,990 | hpp | C++ | contracts/platform/include/platform/platform.hpp | DaoCasino/platform-contracts | b2cea67ea3c628997667f11ad645d7a4fe8d6b31 | [
"MIT"
] | 1 | 2020-10-20T05:10:47.000Z | 2020-10-20T05:10:47.000Z | contracts/platform/include/platform/platform.hpp | DaoCasino/platform-contracts | b2cea67ea3c628997667f11ad645d7a4fe8d6b31 | [
"MIT"
] | 6 | 2020-10-19T06:43:18.000Z | 2020-12-24T11:41:27.000Z | contracts/platform/include/platform/platform.hpp | DaoCasino/platform-contracts | b2cea67ea3c628997667f11ad645d7a4fe8d6b31 | [
"MIT"
] | 2 | 2020-10-07T10:43:43.000Z | 2020-10-30T06:47:47.000Z | #pragma once
#include <eosio/eosio.hpp>
#include <eosio/singleton.hpp>
namespace platform {
using bytes = std::vector<char>;
using eosio::name;
struct [[eosio::table("version"), eosio::contract("platform")]] version_row {
std::string version;
};
using version_singleton = eosio::singleton<"version"_n, version_row>;
struct [[eosio::table("global"), eosio::contract("platform")]] global_row {
uint64_t casinos_seq { 0u }; // <-- used for casino id auto increment
uint64_t games_seq { 0u }; // <-- used for game id auto increment
std::string rsa_pubkey;
};
using global_singleton = eosio::singleton<"global"_n, global_row>;
struct [[eosio::table("casino"), eosio::contract("platform")]] casino_row {
uint64_t id;
name contract;
bool paused;
std::string rsa_pubkey;
bytes meta;
uint64_t primary_key() const { return id; }
uint64_t by_address() const { return contract.value; }
};
using casino_table = eosio::multi_index<
"casino"_n,
casino_row,
eosio::indexed_by<"address"_n, eosio::const_mem_fun<casino_row, uint64_t, &casino_row::by_address>>
>;
struct [[eosio::table("game"), eosio::contract("platform")]] game_row {
uint64_t id;
name contract;
uint16_t params_cnt;
bool paused;
uint32_t profit_margin;
name beneficiary;
bytes meta;
uint64_t primary_key() const { return id; }
uint64_t by_address() const { return contract.value; }
};
using game_table = eosio::multi_index<
"game"_n,
game_row,
eosio::indexed_by<"address"_n, eosio::const_mem_fun<game_row, uint64_t, &game_row::by_address>>
>;
static uint64_t get_token_pk(const std::string& token_name) {
// https://github.com/EOSIO/eosio.cdt/blob/1ba675ef4fe6dedc9f57a9982d1227a098bcaba9/libraries/eosiolib/core/eosio/symbol.hpp
uint64_t value = 0;
for( auto itr = token_name.rbegin(); itr != token_name.rend(); ++itr ) {
if( *itr < 'A' || *itr > 'Z') {
eosio::check( false, "only uppercase letters allowed in symbol_code string" );
}
value <<= 8;
value |= *itr;
}
return value;
}
struct [[eosio::table("token"), eosio::contract("platform")]] token_row {
std::string token_name;
name contract;
uint64_t primary_key() const {
return get_token_pk(token_name);
}
};
using token_table = eosio::multi_index<"token"_n, token_row>;
struct [[eosio::table("banlist"), eosio::contract("platform")]] ban_list_row {
name player;
uint64_t primary_key() const { return player.value; }
};
using ban_list_table = eosio::multi_index<"banlist"_n, ban_list_row>;
class [[eosio::contract("platform")]] platform: public eosio::contract {
public:
using eosio::contract::contract;
platform(name receiver, name code, eosio::datastream<const char*> ds);
[[eosio::action("setrsakey")]]
void set_rsa_pubkey(const std::string& rsa_pubkey);
[[eosio::action("addcas")]]
void add_casino(name contract, bytes meta);
[[eosio::action("delcas")]]
void del_casino(uint64_t id);
[[eosio::action("pausecas")]]
void pause_casino(uint64_t id, bool pause);
[[eosio::action("setcontrcas")]]
void set_contract_casino(uint64_t id, name contract);
[[eosio::action("setmetacas")]]
void set_meta_casino(uint64_t id, bytes meta);
[[eosio::action("setrsacas")]]
void set_rsa_pubkey_casino(uint64_t id, const std::string& rsa_pubkey);
[[eosio::action("addgame")]]
void add_game(name contract, uint16_t params_cnt, bytes meta);
[[eosio::action("delgame")]]
void del_game(uint64_t id);
[[eosio::action("pausegame")]]
void pause_game(uint64_t id, bool pause);
[[eosio::action("setcontrgame")]]
void set_contract_game(uint64_t id, name contract);
[[eosio::action("setmetagame")]]
void set_meta_game(uint64_t id, bytes meta);
[[eosio::action("setmargin")]]
void set_profit_margin_game(uint64_t id, uint32_t profit_margin);
[[eosio::action("setbenefic")]]
void set_beneficiary_game(uint64_t id, name beneficiary);
[[eosio::action("addtoken")]]
void add_token(std::string token_name, name contract);
[[eosio::action("deltoken")]]
void del_token(std::string token_name);
[[eosio::action("banplayer")]]
void ban_player(name player);
[[eosio::action("unbanplayer")]]
void unban_player(name player);
private:
version_singleton version;
global_singleton global;
casino_table casinos;
game_table games;
token_table tokens;
ban_list_table ban_list;
};
// external non-writing functions
namespace read {
static std::string get_rsa_pubkey(name platform_contract) {
global_singleton global(platform_contract, platform_contract.value);
auto gl = global.get_or_default();
return gl.rsa_pubkey;
}
static casino_row get_casino(name platform_contract, uint64_t casino_id) {
casino_table casinos(platform_contract, platform_contract.value);
return casinos.get(casino_id, "casino not found");
}
static casino_row get_casino(name platform_contract, name casino_address) {
casino_table casinos(platform_contract, platform_contract.value);
auto casino_idx = casinos.get_index<"address"_n>();
return casino_idx.get(casino_address.value, "casino not found");
}
static game_row get_game(name platform_contract, uint64_t game_id) {
game_table games(platform_contract, platform_contract.value);
return games.get(game_id, "game not found");
}
static game_row get_game(name platform_contract, name game_address) {
game_table games(platform_contract, platform_contract.value);
auto games_idx = games.get_index<"address"_n>();
return games_idx.get(game_address.value, "no game found for a given account");
}
static bool is_active_casino(name platform_contract, uint64_t casino_id) {
casino_table casinos(platform_contract, platform_contract.value);
const auto casino_itr = casinos.find(casino_id);
if (casino_itr == casinos.end()) {
return false;
}
return !(casino_itr->paused);
}
static bool is_active_game(name platform_contract, uint64_t game_id) {
game_table games(platform_contract, platform_contract.value);
const auto game_itr = games.find(game_id);
if (game_itr == games.end()) {
return false;
}
return !(game_itr->paused);
}
static token_row get_token(name platform_contract, std::string token_name) {
token_table tokens(platform_contract, platform_contract.value);
return tokens.get(get_token_pk(token_name), "no token found");
}
static void verify_token(name platform_contract, std::string token_name) {
token_table tokens(platform_contract, platform_contract.value);
eosio::check(tokens.find(get_token_pk(token_name)) != tokens.end(), "token is not in the list");
}
} // namespace read
} // namespace platform
| 30.792952 | 128 | 0.688269 | [
"vector"
] |
c6785ab68776a847691502c08352660be1ff886a | 850 | cpp | C++ | src/controller/connectivity.cpp | bdmendes/feup-cal-parking | 57e793d32a176c43c93bbf03a1b863bbe5b7a3e3 | [
"MIT"
] | null | null | null | src/controller/connectivity.cpp | bdmendes/feup-cal-parking | 57e793d32a176c43c93bbf03a1b863bbe5b7a3e3 | [
"MIT"
] | null | null | null | src/controller/connectivity.cpp | bdmendes/feup-cal-parking | 57e793d32a176c43c93bbf03a1b863bbe5b7a3e3 | [
"MIT"
] | null | null | null | #include "connectivity.h"
bool isStronglyConnected(const StreetMap &map) {
return kosaraju(map);
}
static bool pointsAreAccessible(const std::vector<Node<MapPoint>*> &stopPoints, const StreetMap &map){
for(unsigned int i = 0; i < stopPoints.size(); ++i){
auto res = dfsFromNode(stopPoints.at(i), stopPoints, map);
if(res.size() != stopPoints.size()) return false;
}
return true;
}
static bool existsPath(Node<MapPoint> *source, const std::vector<Node<MapPoint>*> &stopPoints, StreetMap &map) {
std::vector<Node<MapPoint> *> res = dfsFromNode(source, stopPoints, map);
return res.size() == stopPoints.size();
}
bool isConnected(StreetMap &map, const std::vector<Node<MapPoint>*> &stopPoints, Node<MapPoint> *source){
return pointsAreAccessible(stopPoints, map) && existsPath(source, stopPoints, map);
}
| 36.956522 | 112 | 0.698824 | [
"vector"
] |
c67af17b8e47bfd212d837fd68deebb05f44040c | 61,914 | cpp | C++ | src/Core/Managers/CImageManager.cpp | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | 1 | 2018-01-06T04:44:36.000Z | 2018-01-06T04:44:36.000Z | src/Core/Managers/CImageManager.cpp | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | null | null | null | src/Core/Managers/CImageManager.cpp | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | null | null | null | #include "Core/Managers/CImageManager.h"
#include "Core/Managers/CFileManager.h"
#include "Core/Resources/CImage.h"
#include "RenderSystem/CRenderSystem.h"
#if VKE_USE_DEVIL
#include "IL/il.h"
#include "IL/ilu.h"
#include "IL/ilut.h"
#endif
#if VKE_USE_DIRECTXTEX
# include "ThirdParty/DirectXTex/DirectXTex/DirectXTex.h"
#endif
namespace VKE
{
namespace Core
{
#if DXGI_FORMAT_DEFINED
vke_force_inline RenderSystem::FORMAT MapDXGIFormatToRenderSystemFormat( DXGI_FORMAT fmt )
{
using namespace RenderSystem;
static const RenderSystem::FORMAT aFormats[] =
{
Formats::UNDEFINED, // unknown
Formats::R32G32B32A32_SFLOAT, // r32g32b32a32 typeless
Formats::R32G32B32A32_SFLOAT, //
Formats::R32G32B32A32_UINT, //
Formats::R32G32B32A32_SINT, //
Formats::R32G32B32_SFLOAT, // r32g32b32 typeless
Formats::R32G32B32_SFLOAT, //
Formats::R32G32B32_UINT, //
Formats::R32G32B32_SINT, //
Formats::R16G16B16A16_SFLOAT, // r16g16b16a16 typeless
Formats::R16G16B16A16_SFLOAT, //
Formats::R16G16B16A16_UNORM, //
Formats::R16G16B16A16_UINT, //
Formats::R16G16B16A16_SNORM, //
Formats::R16G16B16A16_SINT, //
Formats::R32G32_SFLOAT, // r32g32 typeless
Formats::R32G32_SFLOAT, //
Formats::R32G32_UINT, //
Formats::R32G32_SINT, //
Formats::UNDEFINED, // r32g8x24 typeless
Formats::UNDEFINED, // d32 float s8x24 uint
Formats::UNDEFINED, // r32 float x8x24 uint
Formats::UNDEFINED, // x32 typeless g8x24 uint
Formats::A2R10G10B10_UNORM_PACK32, // r10g10b10a2 typeless
Formats::A2R10G10B10_UNORM_PACK32, //
Formats::A2R10G10B10_UINT_PACK32, //
Formats::B10G11R11_UFLOAT_PACK32, //
Formats::UNDEFINED, // r8g8b8a8 typeless
Formats::R8G8B8A8_UNORM, //
Formats::R8G8B8A8_SRGB, //
Formats::R8G8B8A8_UINT, //
Formats::R8G8B8A8_SNORM, //
Formats::R8G8B8A8_SINT, //
Formats::UNDEFINED, // r16g16 typeless
Formats::R16G16_SFLOAT, //
Formats::R16G16_UNORM, //
Formats::R16G16_UINT, //
Formats::R16G16_SNORM, //
Formats::R16G16_SINT, //
Formats::UNDEFINED, // r32 typeless
Formats::D32_SFLOAT, //
Formats::R32_SFLOAT, //
Formats::R32_UINT, //
Formats::R32_SINT, //
Formats::UNDEFINED, // r24g8 typeless
Formats::D24_UNORM_S8_UINT, //
Formats::X8_D24_UNORM_PACK32, //
Formats::UNDEFINED, // x24 typeless g8 uint
Formats::UNDEFINED, // r8g8 typeless
Formats::R8G8_UNORM, //
Formats::R8G8_UINT, //
Formats::R8G8_SNORM, //
Formats::R8G8_SINT, //
Formats::UNDEFINED, // r16 typeless
Formats::R16_SFLOAT, //
Formats::D16_UNORM, //
Formats::R16_UNORM, //
Formats::R16_UINT, //
Formats::R16_SNORM, //
Formats::R16_SINT, //
Formats::UNDEFINED, // r8 typeless
Formats::R8_UNORM, //
Formats::R8_UINT, //
Formats::R8_SNORM, //
Formats::R8_SINT, //
Formats::UNDEFINED, // a8 unorm
Formats::UNDEFINED, // r1 unorm
Formats::UNDEFINED, // r9g9b9e5 sharedxp
Formats::UNDEFINED, // r8g8 b8g8 unorm
Formats::UNDEFINED, // g8r8 g8b8 unorm
Formats::UNDEFINED, // bc1 typeless
Formats::BC1_RGB_UNORM_BLOCK, //
Formats::BC1_RGB_SRGB_BLOCK, //
Formats::UNDEFINED, // bc2 typeless
Formats::BC2_UNORM_BLOCK, //
Formats::BC2_SRGB_BLOCK, //
Formats::BC3_UNORM_BLOCK, // bc3 typeless
Formats::BC3_UNORM_BLOCK, //
Formats::BC3_SRGB_BLOCK, //
Formats::BC4_UNORM_BLOCK, //
Formats::BC4_UNORM_BLOCK, //
Formats::BC4_SNORM_BLOCK, //
Formats::BC5_UNORM_BLOCK, // typeless
Formats::BC5_UNORM_BLOCK, //
Formats::BC5_SNORM_BLOCK, //
Formats::B5G6R5_UNORM_PACK16, //
Formats::B5G5R5A1_UNORM_PACK16, //
Formats::B8G8R8A8_UNORM, //
Formats::B8G8R8A8_UNORM, // b8g8r8x8 unorm
Formats::UNDEFINED, // r10g10b10 xr bias a2 unorm
Formats::B8G8R8A8_UNORM, // b8g8r8a8 typeless
Formats::B8G8R8A8_SRGB, //
Formats::B8G8R8A8_UNORM, // b8g8r8x8 typeless
Formats::B8G8R8A8_SRGB, // b8g8r8x8 srgb
Formats::BC6H_SFLOAT_BLOCK, // bc6h typeless
Formats::BC6H_UFLOAT_BLOCK, //
Formats::BC6H_SFLOAT_BLOCK, //
Formats::BC7_UNORM_BLOCK, // bc7 typeless
Formats::BC7_UNORM_BLOCK, //
Formats::BC7_SRGB_BLOCK, //
Formats::UNDEFINED, // ayuv
Formats::UNDEFINED, // y410
Formats::UNDEFINED, // y416
Formats::UNDEFINED, // nv12
Formats::UNDEFINED, // p010
Formats::UNDEFINED, // p016
Formats::UNDEFINED, // 420 opaque
Formats::UNDEFINED, // yuv2
Formats::UNDEFINED, // y210
Formats::UNDEFINED, // y216
Formats::UNDEFINED, // nv11
Formats::UNDEFINED, // ai44
Formats::UNDEFINED, // ia44
Formats::UNDEFINED, // p8
Formats::UNDEFINED, // a8p8
Formats::B4G4R4A4_UNORM_PACK16, //
Formats::UNDEFINED, // p208
Formats::UNDEFINED, // v208
Formats::UNDEFINED // v408
};
return aFormats[ fmt ];
}
vke_force_inline DXGI_FORMAT MapPixelFormatToDXGIFormat( const PIXEL_FORMAT& fmt )
{
static const DXGI_FORMAT aFormats[] =
{
DXGI_FORMAT_UNKNOWN, // UNDEFINED,
DXGI_FORMAT_UNKNOWN, // R4G4_UNORM_PACK8,
DXGI_FORMAT_UNKNOWN, // R4G4B4A4_UNORM_PACK16,
DXGI_FORMAT_B4G4R4A4_UNORM, // B4G4R4A4_UNORM_PACK16,
DXGI_FORMAT_UNKNOWN, // R5G6B5_UNORM_PACK16,
DXGI_FORMAT_B5G6R5_UNORM, // B5G6R5_UNORM_PACK16,
DXGI_FORMAT_B5G5R5A1_UNORM, // R5G5B5A1_UNORM_PACK16,
DXGI_FORMAT_UNKNOWN, // B5G5R5A1_UNORM_PACK16,
DXGI_FORMAT_UNKNOWN, // A1R5G5B5_UNORM_PACK16,
DXGI_FORMAT_R8_UNORM, // R8_UNORM,
DXGI_FORMAT_R8_SNORM, // R8_SNORM,
DXGI_FORMAT_UNKNOWN, // R8_USCALED,
DXGI_FORMAT_UNKNOWN, // R8_SSCALED,
DXGI_FORMAT_R8_UINT, // R8_UINT,
DXGI_FORMAT_R8_SINT, // R8_SINT,
DXGI_FORMAT_R8_TYPELESS, // R8_SRGB,
DXGI_FORMAT_R8G8_UNORM, // R8G8_UNORM,
DXGI_FORMAT_R8G8_SNORM, // R8G8_SNORM,
DXGI_FORMAT_UNKNOWN, // R8G8_USCALED,
DXGI_FORMAT_UNKNOWN, // R8G8_SSCALED,
DXGI_FORMAT_R8G8_UINT, // R8G8_UINT,
DXGI_FORMAT_R8G8_SINT, // R8G8_SINT,
DXGI_FORMAT_R8G8_TYPELESS, // R8G8_SRGB,
DXGI_FORMAT_UNKNOWN, // R8G8B8_UNORM,
DXGI_FORMAT_UNKNOWN, // R8G8B8_SNORM,
DXGI_FORMAT_UNKNOWN, // R8G8B8_USCALED,
DXGI_FORMAT_UNKNOWN, // R8G8B8_SSCALED,
DXGI_FORMAT_UNKNOWN, // R8G8B8_UINT,
DXGI_FORMAT_UNKNOWN, // R8G8B8_SINT,
DXGI_FORMAT_UNKNOWN, // R8G8B8_SRGB,
DXGI_FORMAT_B8G8R8X8_UNORM, // B8G8R8_UNORM,
DXGI_FORMAT_B8G8R8X8_UNORM_SRGB, // B8G8R8_SNORM,
DXGI_FORMAT_UNKNOWN, // B8G8R8_USCALED,
DXGI_FORMAT_UNKNOWN, // B8G8R8_SSCALED,
DXGI_FORMAT_UNKNOWN, // B8G8R8_UINT,
DXGI_FORMAT_UNKNOWN, // B8G8R8_SINT,
DXGI_FORMAT_UNKNOWN, // B8G8R8_SRGB,
DXGI_FORMAT_R8G8B8A8_UNORM, // R8G8B8A8_UNORM,
DXGI_FORMAT_R8G8B8A8_SNORM, // R8G8B8A8_SNORM,
DXGI_FORMAT_UNKNOWN, // R8G8B8A8_USCALED,
DXGI_FORMAT_UNKNOWN, // R8G8B8A8_SSCALED,
DXGI_FORMAT_R8G8B8A8_UINT, // R8G8B8A8_UINT,
DXGI_FORMAT_R8G8B8A8_SINT, // R8G8B8A8_SINT,
DXGI_FORMAT_R8G8B8A8_TYPELESS, // R8G8B8A8_SRGB,
DXGI_FORMAT_B8G8R8A8_UNORM, // B8G8R8A8_UNORM,
DXGI_FORMAT_UNKNOWN, // B8G8R8A8_SNORM,
DXGI_FORMAT_UNKNOWN, // B8G8R8A8_USCALED,
DXGI_FORMAT_UNKNOWN, // B8G8R8A8_SSCALED,
DXGI_FORMAT_UNKNOWN, // B8G8R8A8_UINT,
DXGI_FORMAT_UNKNOWN, // B8G8R8A8_SINT,
DXGI_FORMAT_B8G8R8A8_UNORM_SRGB, // B8G8R8A8_SRGB,
DXGI_FORMAT_UNKNOWN, // A8B8G8R8_UNORM_PACK32,
DXGI_FORMAT_UNKNOWN, // A8B8G8R8_SNORM_PACK32,
DXGI_FORMAT_UNKNOWN, // A8B8G8R8_USCALED_PACK32,
DXGI_FORMAT_UNKNOWN, // A8B8G8R8_SSCALED_PACK32,
DXGI_FORMAT_UNKNOWN, // A8B8G8R8_UINT_PACK32,
DXGI_FORMAT_UNKNOWN, // A8B8G8R8_SINT_PACK32,
DXGI_FORMAT_UNKNOWN, // A8B8G8R8_SRGB_PACK32,
DXGI_FORMAT_UNKNOWN, // A2R10G10B10_UNORM_PACK32,
DXGI_FORMAT_UNKNOWN, // A2R10G10B10_SNORM_PACK32,
DXGI_FORMAT_UNKNOWN, // A2R10G10B10_USCALED_PACK32,
DXGI_FORMAT_UNKNOWN, // A2R10G10B10_SSCALED_PACK32,
DXGI_FORMAT_UNKNOWN, // A2R10G10B10_UINT_PACK32,
DXGI_FORMAT_UNKNOWN, // A2R10G10B10_SINT_PACK32,
DXGI_FORMAT_UNKNOWN, // A2B10G10R10_UNORM_PACK32,
DXGI_FORMAT_UNKNOWN, // A2B10G10R10_SNORM_PACK32,
DXGI_FORMAT_UNKNOWN, // A2B10G10R10_USCALED_PACK32,
DXGI_FORMAT_UNKNOWN, // A2B10G10R10_SSCALED_PACK32,
DXGI_FORMAT_UNKNOWN, // A2B10G10R10_UINT_PACK32,
DXGI_FORMAT_UNKNOWN, // A2B10G10R10_SINT_PACK32,
DXGI_FORMAT_R16_UNORM, // R16_UNORM,
DXGI_FORMAT_R16_SNORM, // R16_SNORM,
DXGI_FORMAT_UNKNOWN, // R16_USCALED,
DXGI_FORMAT_UNKNOWN, // R16_SSCALED,
DXGI_FORMAT_R16_UINT, // R16_UINT,
DXGI_FORMAT_R16_SINT, // R16_SINT,
DXGI_FORMAT_R16_FLOAT, // R16_SFLOAT,
DXGI_FORMAT_R16G16_UNORM, // R16G16_UNORM,
DXGI_FORMAT_R16G16_SNORM, // R16G16_SNORM,
DXGI_FORMAT_UNKNOWN, // R16G16_USCALED,
DXGI_FORMAT_UNKNOWN, // R16G16_SSCALED,
DXGI_FORMAT_R16G16_UINT, // R16G16_UINT,
DXGI_FORMAT_R16G16_SINT, // R16G16_SINT,
DXGI_FORMAT_R16G16_FLOAT, // R16G16_SFLOAT,
DXGI_FORMAT_UNKNOWN, // R16G16B16_UNORM,
DXGI_FORMAT_UNKNOWN, // R16G16B16_SNORM,
DXGI_FORMAT_UNKNOWN, // R16G16B16_USCALED,
DXGI_FORMAT_UNKNOWN, // R16G16B16_SSCALED,
DXGI_FORMAT_UNKNOWN, // R16G16B16_UINT,
DXGI_FORMAT_UNKNOWN, // R16G16B16_SINT,
DXGI_FORMAT_UNKNOWN, // R16G16B16_SFLOAT,
DXGI_FORMAT_R16G16B16A16_UNORM, // R16G16B16A16_UNORM,
DXGI_FORMAT_R16G16B16A16_SNORM, // R16G16B16A16_SNORM,
DXGI_FORMAT_UNKNOWN, // R16G16B16A16_USCALED,
DXGI_FORMAT_UNKNOWN, // R16G16B16A16_SSCALED,
DXGI_FORMAT_R16G16B16A16_UINT, // R16G16B16A16_UINT,
DXGI_FORMAT_R16G16B16A16_SINT, // R16G16B16A16_SINT,
DXGI_FORMAT_R16G16B16A16_FLOAT, // R16G16B16A16_SFLOAT,
DXGI_FORMAT_R32_UINT, // R32_UINT,
DXGI_FORMAT_R32_SINT, // R32_SINT,
DXGI_FORMAT_R32_FLOAT, // R32_SFLOAT,
DXGI_FORMAT_R32G32_UINT, // R32G32_UINT,
DXGI_FORMAT_R32G32_SINT, // R32G32_SINT,
DXGI_FORMAT_R32G32_FLOAT, // R32G32_SFLOAT,
DXGI_FORMAT_R32G32B32_UINT, // R32G32B32_UINT,
DXGI_FORMAT_R32G32B32_SINT, // R32G32B32_SINT,
DXGI_FORMAT_R32G32B32_FLOAT, // R32G32B32_SFLOAT,
DXGI_FORMAT_R32G32B32A32_UINT, // R32G32B32A32_UINT,
DXGI_FORMAT_R32G32B32A32_SINT, // R32G32B32A32_SINT,
DXGI_FORMAT_R32G32B32A32_FLOAT, // R32G32B32A32_SFLOAT,
DXGI_FORMAT_UNKNOWN, // R64_UINT,
DXGI_FORMAT_UNKNOWN, // R64_SINT,
DXGI_FORMAT_UNKNOWN, // R64_SFLOAT,
DXGI_FORMAT_UNKNOWN, // R64G64_UINT,
DXGI_FORMAT_UNKNOWN, // R64G64_SINT,
DXGI_FORMAT_UNKNOWN, // R64G64_SFLOAT,
DXGI_FORMAT_UNKNOWN, // R64G64B64_UINT,
DXGI_FORMAT_UNKNOWN, // R64G64B64_SINT,
DXGI_FORMAT_UNKNOWN, // R64G64B64_SFLOAT,
DXGI_FORMAT_UNKNOWN, // R64G64B64A64_UINT,
DXGI_FORMAT_UNKNOWN, // R64G64B64A64_SINT,
DXGI_FORMAT_UNKNOWN, // R64G64B64A64_SFLOAT,
DXGI_FORMAT_UNKNOWN, // B10G11R11_UFLOAT_PACK32,
DXGI_FORMAT_R9G9B9E5_SHAREDEXP, // E5B9G9R9_UFLOAT_PACK32,
DXGI_FORMAT_D16_UNORM, // D16_UNORM,
DXGI_FORMAT_R24_UNORM_X8_TYPELESS, // X8_D24_UNORM_PACK32,
DXGI_FORMAT_D32_FLOAT, // D32_SFLOAT,
DXGI_FORMAT_D32_FLOAT_S8X24_UINT, // S8_UINT,
DXGI_FORMAT_UNKNOWN, // D16_UNORM_S8_UINT,
DXGI_FORMAT_D24_UNORM_S8_UINT, // D24_UNORM_S8_UINT,
DXGI_FORMAT_D32_FLOAT_S8X24_UINT, // D32_SFLOAT_S8_UINT,
DXGI_FORMAT_BC1_UNORM, // BC1_RGB_UNORM_BLOCK,
DXGI_FORMAT_BC1_UNORM_SRGB, // BC1_RGB_SRGB_BLOCK,
DXGI_FORMAT_BC1_UNORM, // BC1_RGBA_UNORM_BLOCK,
DXGI_FORMAT_BC1_UNORM_SRGB, // BC1_RGBA_SRGB_BLOCK,
DXGI_FORMAT_BC2_UNORM, // BC2_UNORM_BLOCK,
DXGI_FORMAT_BC2_UNORM_SRGB, // BC2_SRGB_BLOCK,
DXGI_FORMAT_BC3_UNORM, // BC3_UNORM_BLOCK,
DXGI_FORMAT_BC2_UNORM_SRGB, // BC3_SRGB_BLOCK,
DXGI_FORMAT_BC4_UNORM, // BC4_UNORM_BLOCK,
DXGI_FORMAT_BC4_SNORM, // BC4_SNORM_BLOCK,
DXGI_FORMAT_BC5_UNORM, // BC5_UNORM_BLOCK,
DXGI_FORMAT_BC5_SNORM, // BC5_SNORM_BLOCK,
DXGI_FORMAT_BC6H_UF16, // BC6H_UFLOAT_BLOCK,
DXGI_FORMAT_BC6H_SF16, // BC6H_SFLOAT_BLOCK,
DXGI_FORMAT_BC7_UNORM, // BC7_UNORM_BLOCK,
DXGI_FORMAT_BC7_UNORM_SRGB, // BC7_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ETC2_R8G8B8_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ETC2_R8G8B8_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ETC2_R8G8B8A1_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ETC2_R8G8B8A1_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ETC2_R8G8B8A8_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ETC2_R8G8B8A8_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // EAC_R11_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // EAC_R11_SNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // EAC_R11G11_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // EAC_R11G11_SNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_4x4_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_4x4_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_5x4_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_5x4_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_5x5_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_5x5_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_6x5_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_6x5_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_6x6_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_6x6_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_8x5_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_8x5_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_8x6_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_8x6_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_8x8_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_8x8_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_10x5_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_10x5_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_10x6_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_10x6_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_10x8_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_10x8_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_10x10_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_10x10_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_12x10_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_12x10_SRGB_BLOCK,
DXGI_FORMAT_UNKNOWN, // ASTC_12x12_UNORM_BLOCK,
DXGI_FORMAT_UNKNOWN // ASTC_12x12_SRGB_BLOCK,
};
return aFormats[ fmt ];
}
vke_force_inline RenderSystem::TEXTURE_TYPE MapTexDimmensionToTextureType( const DirectX::TEX_DIMENSION& dimm )
{
static const RenderSystem::TEXTURE_TYPE aTypes[] =
{
RenderSystem::TextureTypes::TEXTURE_1D, //
RenderSystem::TextureTypes::TEXTURE_1D, //
RenderSystem::TextureTypes::TEXTURE_1D, // TEX_DIMENSION_TEXTURE1D = 2,
RenderSystem::TextureTypes::TEXTURE_2D, // TEX_DIMENSION_TEXTURE2D = 3,
RenderSystem::TextureTypes::TEXTURE_3D, // TEX_DIMENSION_TEXTURE3D = 4,
};
return aTypes[ dimm ];
}
#endif
#if VKE_USE_DIRECTXTEX
bool IsCompressed( DXGI_FORMAT fmt )
{
bool ret = false;
switch( fmt )
{
case DXGI_FORMAT_BC1_TYPELESS:
case DXGI_FORMAT_BC1_UNORM:
case DXGI_FORMAT_BC1_UNORM_SRGB:
case DXGI_FORMAT_BC2_TYPELESS:
case DXGI_FORMAT_BC2_UNORM:
case DXGI_FORMAT_BC2_UNORM_SRGB:
case DXGI_FORMAT_BC3_TYPELESS:
case DXGI_FORMAT_BC3_UNORM:
case DXGI_FORMAT_BC3_UNORM_SRGB:
case DXGI_FORMAT_BC4_SNORM:
case DXGI_FORMAT_BC4_TYPELESS:
case DXGI_FORMAT_BC4_UNORM:
case DXGI_FORMAT_BC5_SNORM:
case DXGI_FORMAT_BC5_TYPELESS:
case DXGI_FORMAT_BC5_UNORM:
case DXGI_FORMAT_BC6H_SF16:
case DXGI_FORMAT_BC6H_TYPELESS:
case DXGI_FORMAT_BC6H_UF16:
case DXGI_FORMAT_BC7_TYPELESS:
case DXGI_FORMAT_BC7_UNORM:
case DXGI_FORMAT_BC7_UNORM_SRGB:
{
ret = true;
break;
}
};
return ret;
}
#endif
bool IsCompressed( PIXEL_FORMAT fmt )
{
#if VKE_USE_DIRECTXTEX
DXGI_FORMAT dxFmt = MapPixelFormatToDXGIFormat( fmt );
return IsCompressed( dxFmt );
#else
#error "implement"
#endif
}
CImageManager::CImageManager()
{
}
CImageManager::~CImageManager()
{
_Destroy();
}
Result CImageManager::_Create(const SImageManagerDesc& Desc)
{
Result ret = VKE_OK;
VKE_ASSERT(Desc.pFileMgr, "");
m_pFileMgr = Desc.pFileMgr;
m_MemoryPool.Create( Desc.maxImageCount, sizeof(CImage), 1 );
#if VKE_USE_DEVIL
ret = _InitDevIL();
#elif VKE_USE_DIRECTXTEX
ret = _InitDirectXTex();
#endif
return ret;
}
Result CImageManager::_InitDevIL()
{
Result ret = VKE_FAIL;
#if VKE_USE_DEVIL
ilInit();
iluInit();
ret = VKE_OK;
#endif
return ret;
}
Result CImageManager::_InitDirectXTex()
{
Result ret = VKE_FAIL;
#if VKE_USE_DIRECTXTEX
::HRESULT hr = ::CoInitializeEx(nullptr, COINIT_MULTITHREADED);
if (hr != S_OK)
{
VKE_LOG_ERR("Unable to initialize COM library.");
ret = VKE_FAIL;
}
else
{
ret = VKE_OK;
}
#endif
return ret;
}
void CImageManager::_Destroy()
{
uint32_t i = 0;
for( auto& Itr : m_Buffer.Resources.Container )
{
auto pImg = Itr.second;
VKE_LOG( "destroy: " << i++ << " " << pImg->m_Desc.Size.width << " " << pImg->GetHandle().handle );
_DestroyImage( &pImg );
}
m_MemoryPool.Destroy();
}
void CImageManager::_DestroyImage(Core::CImage** ppImgInOut)
{
VKE_ASSERT( ppImgInOut != nullptr && *ppImgInOut != nullptr, "Invalid image" );
CImage* pImg = *ppImgInOut;
pImg->_Destroy();
Memory::DestroyObject( &m_MemoryPool, &pImg );
*ppImgInOut = nullptr;
}
void CImageManager::DestroyImage(ImageHandle* phImg)
{
CImage* pImg = GetImage(*phImg).Get();
_FreeImage( pImg );
*phImg = INVALID_HANDLE;
}
hash_t CalcImageHash(const SLoadFileInfo& Info)
{
hash_t ret = 0;
const hash_t h1 = CResource::CalcHash( Info.FileInfo );
ret = h1;
return ret;
}
hash_t CalcImageHash(const SImageDesc& Desc)
{
Utils::SHash Hash;
Hash.Combine(Desc.depth, Desc.format, Desc.Name.GetData(), Desc.Size.width, Desc.Size.height, Desc.type);
return Hash.value;
}
Result CImageManager::_CreateImage(const hash_t& hash, CImage** ppOut)
{
Result ret = VKE_FAIL;
CImage* pImage = nullptr;
if(!m_Buffer.Find(hash, &pImage))
{
//if (!m_Buffer.TryToReuse(0, &pImage))
auto Itr = m_Buffer.GetFree( &pImage );
//if( !m_Buffer.IsValid( Itr ) )
if(true )
{
if (VKE_SUCCEEDED(Memory::CreateObject(&m_MemoryPool, &pImage, this)))
{
if (m_Buffer.Add(hash, pImage))
{
pImage->m_Handle.handle = hash;
VKE_LOG("Create image: " << hash);
ret = VKE_OK;
}
else
{
Memory::DestroyObject(&m_MemoryPool, &pImage);
}
}
else
{
VKE_LOG_ERR("Unable to allocate memory for CImage object");
ret = VKE_ENOMEMORY;
}
}
else
{
m_Buffer.Remove( Itr );
if( m_Buffer.Add( hash, pImage ) )
{
pImage->m_Handle.handle = hash;
ret = VKE_OK;
}
}
}
*ppOut = pImage;
return ret;
}
ImageHandle CImageManager::Load(const SLoadFileInfo& Info)
{
// Check if such image is already loaded
const hash_t hash = CalcImageHash( Info );
CImage* pImage = nullptr;
ImageHandle hRet = INVALID_HANDLE;
if( !m_Buffer.Find( hash, &pImage ) )
{
if( !m_Buffer.Reuse( INVALID_HANDLE, hash, &pImage ) )
{
if( VKE_FAILED( Memory::CreateObject( &m_MemoryPool, &pImage, this ) ) )
{
VKE_LOG_ERR("Unable to create memory for CImage object: " << Info.FileInfo.pFileName);
}
else
{
if( !m_Buffer.Add( hash, pImage ) )
{
Memory::DestroyObject( &m_MemoryPool, &pImage );
VKE_LOG_ERR("Unable to add Image resource to the resource buffer.");
}
}
}
if( pImage != nullptr )
{
{
FilePtr pFile = m_pFileMgr->LoadFile(Info);
if (pFile.IsValid())
{
if (VKE_SUCCEEDED(_CreateImage(pFile.Get(), &pImage)))
{
pImage->m_Handle.handle = hash;
hRet = pImage->GetHandle();
}
else
{
pImage->Release();
}
pFile->Release();
}
}
}
}
return hRet;
}
void CImageManager::_FreeImage(CImage* pImg)
{
//pImg->_Destroy();
m_Buffer.AddFree( pImg->GetHandle().handle );
}
vke_force_inline BITS_PER_PIXEL MapBitsPerPixel(uint32_t bpp)
{
BITS_PER_PIXEL ret = BitsPerPixels::UNKNOWN;
#if VKE_USE_DEVIL
ret = (BitsPerPixels::BPP)bpp;
#endif
return ret;
}
vke_force_inline uint32_t GetImageFormatChannelCount(const PIXEL_FORMAT& format)
{
static const uint32_t aChannels[] =
{
0, // unknown
1, // red
2, // rg
3, // rgb
4, // rgba
1, // alpha
3, // bgr
4, // bgra
1, // luminance
};
return aChannels[format];
}
struct SImageExtValue
{
cstr_t pExt;
IMAGE_FILE_FORMAT format;
};
static const SImageExtValue g_aFileExtensions[ImageFileFormats::_MAX_COUNT] =
{
{ "", ImageFileFormats::UNKNOWN },
{ "bmp", ImageFileFormats::BMP },
{ "dds", ImageFileFormats::DDS },
{ "gif", ImageFileFormats::GIF },
{ "hdr", ImageFileFormats::HDR },
{ "jpg", ImageFileFormats::JPG },
{ "jpeg", ImageFileFormats::JPG },
{ "png", ImageFileFormats::PNG },
{ "tif", ImageFileFormats::TIFF },
{ "tiff", ImageFileFormats::TIFF },
{ "tga", ImageFileFormats::TGA },
};
IMAGE_FILE_FORMAT CImageManager::_DetermineFileFormat(const CFile* pFile) const
{
IMAGE_FILE_FORMAT ret = ImageFileFormats::UNKNOWN;
// Try use name extension
cstr_t pExt = pFile->GetExtension();
if( pExt != nullptr )
{
for (uint32_t i = 0; i < ImageFileFormats::_MAX_COUNT; ++i)
{
if (strcmp(pExt, g_aFileExtensions[i].pExt) == 0)
{
ret = g_aFileExtensions[i].format;
break;
}
}
}
else
{
// If file name ext doesn't exists, use file data
/// TODO: determine file format by its header
}
return ret;
}
#if VKE_USE_DIRECTXTEX
vke_force_inline DirectX::WICCodecs MapFileFormatToWICCodec(IMAGE_FILE_FORMAT fmt)
{
static const DirectX::WICCodecs aCodecs[] =
{
(DirectX::WICCodecs)0, // unknown
DirectX::WIC_CODEC_BMP,
(DirectX::WICCodecs)0, // dds
DirectX::WIC_CODEC_GIF,
(DirectX::WICCodecs)0, // hdr
DirectX::WIC_CODEC_JPEG,
DirectX::WIC_CODEC_PNG,
DirectX::WIC_CODEC_TIFF,
(DirectX::WICCodecs)0, // tga
};
return aCodecs[fmt];
}
vke_force_inline IMAGE_TYPE MapDXGIDimmensionToImageType(DirectX::TEX_DIMENSION dimm)
{
static const IMAGE_TYPE aTypes[] =
{
RenderSystem::TextureTypes::TEXTURE_1D, // 0 unused
RenderSystem::TextureTypes::TEXTURE_1D, // 1 unused
RenderSystem::TextureTypes::TEXTURE_1D, // 1d
RenderSystem::TextureTypes::TEXTURE_2D, // 2d
RenderSystem::TextureTypes::TEXTURE_3D // 3d
};
return aTypes[dimm];
}
#endif
Result CImageManager::_CreateDirectXTexImage(const CFile* pFile, CImage** ppInOut)
{
Result ret = VKE_FAIL;
#if VKE_USE_DIRECTXTEX
CImage* pImg = *ppInOut;
const void* pData = pFile->GetData();
const auto dataSize = pFile->GetDataSize();
IMAGE_FILE_FORMAT fileFormat = _DetermineFileFormat(pFile);
cstr_t pFileName = pFile->GetDesc().pFileName;
DirectX::TexMetadata Metadata;
auto& Image = pImg->m_DXImage;
SImageDesc Desc;
if( fileFormat == ImageFileFormats::DDS )
{
static const DirectX::DDS_FLAGS ddsFlags = DirectX::DDS_FLAGS_ALLOW_LARGE_FILES |
DirectX::DDS_FLAGS_LEGACY_DWORD;
::HRESULT hr = DirectX::LoadFromDDSMemory(pData, dataSize, ddsFlags, &Metadata, Image);
if( SUCCEEDED( hr ) )
{
if( DirectX::IsTypeless( Metadata.format ) )
{
Metadata.format = DirectX::MakeTypelessUNORM( Metadata.format );
if (!DirectX::IsTypeless(Metadata.format))
{
Image.OverrideFormat(Metadata.format);
}
else
{
VKE_LOG_ERR("Failed to load DDS image: " << pFileName << " due to typeless format.");
goto ERR;
}
}
ret = VKE_OK;
}
else
{
VKE_LOG_ERR( "Failed to load DDS image: " << pFileName << " error: " << hr );
goto ERR;
}
}
else if (fileFormat == ImageFileFormats::TGA)
{
::HRESULT hr = DirectX::LoadFromTGAMemory(pData, dataSize, &Metadata, Image);
if( SUCCEEDED( hr ) )
{
ret = VKE_OK;
}
}
else if (fileFormat == ImageFileFormats::HDR)
{
::HRESULT hr = DirectX::LoadFromHDRMemory(pData, dataSize, &Metadata, Image);
if (SUCCEEDED(hr))
{
ret = VKE_OK;
}
}
else // Copied from Texconv.cpp
{
// WIC shares the same filter values for mode and dither
static_assert(static_cast<int>(DirectX::WIC_FLAGS_DITHER) == static_cast<int>(DirectX::TEX_FILTER_DITHER), "WIC_FLAGS_* & TEX_FILTER_* should match");
static_assert(static_cast<int>(DirectX::WIC_FLAGS_DITHER_DIFFUSION) == static_cast<int>(DirectX::TEX_FILTER_DITHER_DIFFUSION), "WIC_FLAGS_* & TEX_FILTER_* should match");
static_assert(static_cast<int>(DirectX::WIC_FLAGS_FILTER_POINT) == static_cast<int>(DirectX::TEX_FILTER_POINT), "WIC_FLAGS_* & TEX_FILTER_* should match");
static_assert(static_cast<int>(DirectX::WIC_FLAGS_FILTER_LINEAR) == static_cast<int>(DirectX::TEX_FILTER_LINEAR), "WIC_FLAGS_* & TEX_FILTER_* should match");
static_assert(static_cast<int>(DirectX::WIC_FLAGS_FILTER_CUBIC) == static_cast<int>(DirectX::TEX_FILTER_CUBIC), "WIC_FLAGS_* & TEX_FILTER_* should match");
static_assert(static_cast<int>(DirectX::WIC_FLAGS_FILTER_FANT) == static_cast<int>(DirectX::TEX_FILTER_FANT), "WIC_FLAGS_* & TEX_FILTER_* should match");
const DirectX::TEX_FILTER_FLAGS texFilter = DirectX::TEX_FILTER_DEFAULT;
DirectX::WIC_FLAGS wicFlags = DirectX::WIC_FLAGS_NONE | texFilter;
//hr = LoadFromWICFile(pConv->szSrc, wicFlags, &Metadata, Image);
::HRESULT hr = LoadFromWICMemory(pData, dataSize, wicFlags, &Metadata, Image);
if( SUCCEEDED( hr ) )
{
ret = VKE_OK;
}
else
{
VKE_LOG_ERR( "Failed to load WIC image: " << pFileName << " error: " << hr );
goto ERR;
}
}
if (VKE_SUCCEEDED(ret))
{
Desc.Size.width = (image_dimm_t)Metadata.width;
Desc.Size.height = (image_dimm_t)Metadata.height;
Desc.depth = (image_dimm_t)Metadata.depth;
Desc.type = MapDXGIDimmensionToImageType(Metadata.dimension);
Desc.format = MapDXGIFormatToRenderSystemFormat(Metadata.format);
pImg->_Init( Desc );
}
#endif
return ret;
#if VKE_USE_DIRECTXTEX
ERR:
ret = VKE_FAIL;
return ret;
#endif
}
Result CImageManager::_CreateImage(CFile* pFile, CImage** ppInOut)
{
Result ret = VKE_FAIL;
CImage* pImg = *ppInOut;
SImageDesc Desc;
#if VKE_USE_DEVIL
auto idx = ilGenImage();
ilBindImage( idx );
void* pData = (void*)pFile->GetData();
uint32_t size = pFile->GetDataSize();
if( ilLoadL( IL_TYPE_UNKNOWN, pData, size ) )
{
pImg->m_hNative = idx;
auto bpp = ilGetInteger(IL_IMAGE_BITS_PER_PIXEL);
auto format = ilGetInteger(IL_IMAGE_FORMAT);
auto type = ilGetInteger(IL_IMAGE_TYPE);
Desc.bitsPerPixel = MapBitsPerPixel( bpp );
Desc.Size.width = (image_dimm_t)ilGetInteger(IL_IMAGE_WIDTH);
Desc.Size.height = (image_dimm_t)ilGetInteger(IL_IMAGE_HEIGHT);
Desc.format = MapImageFormat( format );
Desc.type = MapImageDataType( type );
if (pImg->m_hNative != 0)
{
pImg->_Init(Desc);
ret = VKE_OK;
}
}
else
{
ilDeleteImage(idx);
VKE_LOG_ERR( "Unable to create DevIL image for image: " << pFile->GetDesc().pFileName );
}
#elif VKE_USE_DIRECTXTEX
ret = _CreateDirectXTexImage( pFile, &pImg );
#endif
if (VKE_SUCCEEDED(ret))
{
pImg->m_Desc.Name = pFile->GetDesc().pFileName;
}
return ret;
}
ImageRefPtr CImageManager::GetImage(const ImageHandle& hImg)
{
CImage* pImg = nullptr;
m_Buffer.Find( hImg.handle, &pImg );
return ImageRefPtr( pImg );
}
ImageHandle CImageManager::Copy( const SCreateCopyImageInfo& Info )
{
ImageHandle hRet = INVALID_HANDLE;
CImage* pImg = _Copy( Info );
if( pImg != nullptr )
{
hRet = pImg->GetHandle();
}
return hRet;
}
CImage* CImageManager::_Copy(const SCreateCopyImageInfo& Info)
{
ImageHandle hRet = INVALID_HANDLE;
ImagePtr pSrcImg = GetImage(Info.hSrcImage);
const hash_t& srcHash = Info.hSrcImage.handle;
CImage* pDstImg = nullptr;
if( pSrcImg.IsValid() )
{
SImageRegion Region;
Region.Size = Info.DstSize;
Region.Offset = Info.SrcOffset;
Utils::SHash Hash;
Hash.Combine( srcHash, Region.Size.width, Region.Size.height, Region.Offset.x,
Region.Offset.y );
Result res = _CreateImage( Hash.value, &pDstImg );
if( res == VKE_OK )
{
#if VKE_USE_DIRECTXTEX
const auto& SrcMetadata = pSrcImg->m_DXImage.GetMetadata();
DirectX::CP_FLAGS flags = DirectX::CP_FLAGS_NONE;
//DXGI_FORMAT format = MapPixelFormatToDXGIFormat( Desc.format );
::HRESULT hr = S_OK;
if( hr == S_OK )
{
DirectX::ScratchImage* pSrcDx = &pSrcImg->m_DXImage;
DirectX::ScratchImage DecompressedImage;
const auto* pSrcMeta = &pSrcDx->GetMetadata();
DirectX::ScratchImage TmpDstImg, *pDstDx = nullptr;
const bool needDecompress = IsCompressed( pSrcMeta->format );
DirectX::Rect Rect;
Rect.w = Region.Size.width;
Rect.h = Region.Size.height;
Rect.x = Region.Offset.x;
Rect.y = Region.Offset.y;
if( needDecompress )
{
hr = DirectX::Decompress( pSrcDx->GetImages(), pSrcDx->GetImageCount(),
*pSrcMeta, DXGI_FORMAT_UNKNOWN, DecompressedImage );
if( hr == S_OK )
{
pSrcDx = &DecompressedImage;
pSrcMeta = &DecompressedImage.GetMetadata();
hr = TmpDstImg.Initialize2D( pSrcMeta->format, Rect.w, Rect.h,
pSrcMeta->arraySize, pSrcMeta->mipLevels );
if( hr == S_OK )
{
pDstDx = &TmpDstImg;
}
}
}
else
{
hr = pDstImg->m_DXImage.Initialize2D( pSrcMeta->format, Rect.w, Rect.h,
pSrcMeta->arraySize,
pSrcMeta->mipLevels, flags );
if( hr == S_OK )
{
pDstDx = &pDstImg->m_DXImage;
}
}
if( hr == S_OK )
{
VKE_ASSERT( pDstImg != nullptr, "" );
hr = DirectX::CopyRectangle( *pSrcDx->GetImage( 0, 0, 0 ), Rect,
*pDstDx->GetImage( 0, 0, 0 ),
DirectX::TEX_FILTER_DEFAULT, 0, 0 );
if( hr == S_OK )
{
DXGI_FORMAT dstFmt = MapPixelFormatToDXGIFormat( Info.dstFormat );
const bool isDstFormatCompressed = IsCompressed( dstFmt );
dstFmt = ( isDstFormatCompressed ) ? dstFmt : SrcMetadata.format;
if( needDecompress || isDstFormatCompressed )
{
hr = DirectX::Compress( pDstDx->GetImages(), pDstDx->GetImageCount(),
SrcMetadata, SrcMetadata.format,
DirectX::TEX_COMPRESS_DEFAULT,
DirectX::TEX_THRESHOLD_DEFAULT,
pSrcImg->m_DXImage );
}
else
{
}
if( hr == S_OK )
{
const auto& SrcDesc = pSrcImg->GetDesc();
auto& Desc = pDstImg->m_Desc;
Desc.depth = SrcDesc.depth;
Desc.format = SrcDesc.format;
Desc.Size = Region.Size;
Desc.type = SrcDesc.type;
}
}
}
}
else
{
VKE_LOG_ERR( "Failed to DirectX::ScratchImage::Initialize2D: " << hr );
}
}
#else
#endif
}
return pDstImg;
}
Result CImageManager::Slice(const SSliceImageInfo& Info, ImageHandle* pOut)
{
Result ret = VKE_OK;
ImagePtr pImg = GetImage(Info.hSrcImage);
const auto& SrcDesc = pImg->GetDesc();
#if VKE_USE_DIRECTXTEX
const bool needDecompress = IsCompressed( pImg->m_DXImage.GetMetadata().format );
if( !needDecompress )
{
for( uint32_t i = 0; i < Info.vRegions.GetCount(); ++i )
{
const SImageRegion& Region = Info.vRegions[ i ];
{
SCreateCopyImageInfo CopyInfo;
CopyInfo.hSrcImage = Info.hSrcImage;
CopyInfo.DstSize = Region.Size;
CopyInfo.SrcOffset = Region.Offset;
CImage* pCopyImg = _Copy( CopyInfo );
if( pCopyImg != nullptr )
{
pCopyImg->m_Desc.Name.Format( "%s_%d", SrcDesc.Name.GetData(), i );
}
else
{
ret = VKE_FAIL;
break;
}
pOut[ i ] = pCopyImg->GetHandle();
}
}
}
else
{
ret = _SliceCompressed( pImg.Get(), Info, pOut );
}
#else
#error "implement"
#endif
return ret;
}
Result CImageManager::_SliceCompressed( CImage* pImg, const SSliceImageInfo& Info,
ImageHandle* pOut )
{
Result ret = VKE_FAIL;
ImageHandle hRet = INVALID_HANDLE;
#if VKE_USE_DIRECTXTEX
const auto& SrcMeta = pImg->m_DXImage.GetMetadata();
const DirectX::ScratchImage* pSrcDx = &pImg->m_DXImage;
const auto srcHash = pImg->GetHandle().handle;
DirectX::ScratchImage DecompressedImg, TmpImg;
::HRESULT hr = DirectX::Decompress( pSrcDx->GetImages(), pSrcDx->GetImageCount(),
SrcMeta, DXGI_FORMAT_UNKNOWN, DecompressedImg );
if( hr == S_OK )
{
const auto& DecompressedMeta = DecompressedImg.GetMetadata();
Utils::TCString< wchar_t, 1 > Path, Name, FullPath;
Utils::TCString< char, 1 > Dir, FileName;
for( uint32_t i = 0; i < Info.vRegions.GetCount(); ++i )
{
const SImageRegion& Region = Info.vRegions[ i ];
const DirectX::TexMetadata* pTmpMeta = &TmpImg.GetMetadata();
if( pTmpMeta->width != Region.Size.width || pTmpMeta->height != Region.Size.height )
{
hr = TmpImg.Initialize2D( DecompressedMeta.format, Region.Size.width,
Region.Size.height, DecompressedMeta.arraySize,
DecompressedMeta.mipLevels );
pTmpMeta = &TmpImg.GetMetadata();
}
if( hr == S_OK )
{
DirectX::Rect Rect;
Rect.w = Region.Size.width;
Rect.h = Region.Size.height;
Rect.x = Region.Offset.x;
Rect.y = Region.Offset.y;
hr = DirectX::CopyRectangle( *DecompressedImg.GetImage( 0, 0, 0 ), Rect,
*TmpImg.GetImage( 0, 0, 0 ),
DirectX::TEX_FILTER_DEFAULT, 0, 0 );
if( hr == S_OK )
{
Utils::SHash Hash;
Hash.Combine( srcHash, Region.Size.width, Region.Size.height, Region.Offset.x,
Region.Offset.y, i );
CImage* pDstImg;
ret = _CreateImage( Hash.value, &pDstImg );
if( VKE_SUCCEEDED( ret ) )
{
auto& DstDx = pDstImg->m_DXImage;
const auto& TmpMeta = TmpImg.GetMetadata();
hr = DstDx.Initialize2D( SrcMeta.format, TmpMeta.width, TmpMeta.height,
TmpMeta.arraySize, TmpMeta.mipLevels );
if( hr == S_OK )
{
hr = DirectX::Compress( TmpImg.GetImages(), TmpImg.GetImageCount(),
TmpImg.GetMetadata(), SrcMeta.format,
DirectX::TEX_COMPRESS_DEFAULT,
DirectX::TEX_THRESHOLD_DEFAULT,
pDstImg->m_DXImage );
if( hr == S_OK )
{
const auto& DestMeta = pDstImg->m_DXImage.GetMetadata();
auto& Desc = pDstImg->m_Desc;
Desc.depth = ( image_dimm_t )SrcMeta.depth;
Desc.format = MapDXGIFormatToRenderSystemFormat( DestMeta.format );
char name[ Config::Resource::MAX_NAME_LENGTH ];
cstr_t pName = Info.pSaveName ? Info.pSaveName : pImg->GetDesc().Name.GetData();
char* pTmpName = name;
Platform::File::GetFileName( pName, false, &pTmpName );
Desc.Name.Format( "%s_%d_%d", pTmpName, Region.Offset.x, Region.Offset.y );
Desc.Size = Region.Size;
Desc.type = ImageTypes::TEXTURE_2D;
pOut[ i ] = pDstImg->GetHandle();
if( Info.pSavePath )
{
Dir.Resize( Config::Resource::MAX_NAME_LENGTH );
char* pDir = Dir.GetData();
Platform::File::GetDirectory( Info.pSavePath,
(uint32_t)strlen( Info.pSavePath ), &pDir );
if( Platform::File::CreateDir( pDir ) )
{
Path.Resize( Config::Resource::MAX_NAME_LENGTH );
Name.Resize( Config::Resource::MAX_NAME_LENGTH );
FileName.Resize( Config::Resource::MAX_NAME_LENGTH );
FullPath.Resize( Config::Resource::MAX_NAME_LENGTH );
Path.Convert( Info.pSavePath );
pTmpName = FileName.GetData();
Platform::File::GetFileName( Desc.Name.GetData(), false, &pTmpName );
Name.Convert( pTmpName );
FullPath.Format( L"%s/%s.dds", Path.GetData(), Name.GetData() );
hr = DirectX::SaveToDDSFile( DstDx.GetImages(),
DstDx.GetImageCount(),
DestMeta,
DirectX::DDS_FLAGS_NONE,
FullPath.GetData() );
}
}
}
else
{
pOut[ i ] = INVALID_HANDLE;
break;
}
}
else
{
pOut[ i ] = INVALID_HANDLE;
break;
}
}
else
{
pOut[ i ] = INVALID_HANDLE;
break;
}
}
else
{
pOut[ i ] = INVALID_HANDLE;
break;
}
}
else
{
pOut[ i ] = INVALID_HANDLE;
break;
}
}
}
#else
#error "implement"
#endif
return ret;
}
ImageHandle CImageManager::CreateNormalMap(const ImageHandle& hSrcImg)
{
ImageHandle hRet = INVALID_HANDLE;
#if VKE_USE_DIRECTXTEX
CImage* pImg = GetImage(hSrcImg).Get();
const auto& Meta = pImg->m_DXImage.GetMetadata();
SImageDesc ImgDesc = pImg->GetDesc();
ImgDesc.format = RenderSystem::Formats::R8G8B8A8_UNORM;
ImgDesc.Name += "_normal";
hash_t dstHash = CalcImageHash(ImgDesc);
CImage* pDstImg;
Result res = _CreateImage(dstHash, &pDstImg);
if (VKE_SUCCEEDED(res))
{
pImg->_Init(ImgDesc);
auto& DstImage = pDstImg->m_DXImage;
::HRESULT hr = DstImage.Initialize2D(DXGI_FORMAT_R8G8B8A8_UNORM, Meta.width, Meta.height, Meta.arraySize, Meta.mipLevels);
if (hr == S_OK)
{
hr = DirectX::ComputeNormalMap(pImg->m_DXImage.GetImages(), pImg->m_DXImage.GetImageCount(), Meta,
DirectX::CNMAP_DEFAULT, 0.0f, DXGI_FORMAT_R8G8B8A8_UNORM, DstImage);
if (hr == S_OK)
{
hRet = pDstImg->GetHandle();
}
else
{
}
}
else
{
}
}
#else
#endif
return hRet;
}
#if VKE_USE_DIRECTXTEX
DirectX::WICCodecs MapImageFormatToCodec(const IMAGE_FILE_FORMAT& fmt)
{
static const DirectX::WICCodecs aCodecs[] =
{
(DirectX::WICCodecs)0, // UNKNOWN,
DirectX::WIC_CODEC_BMP, // BMP,
(DirectX::WICCodecs)0, // DDS,
DirectX::WIC_CODEC_GIF, // GIF,
(DirectX::WICCodecs)0, // HDR,
DirectX::WIC_CODEC_JPEG, // JPG,
DirectX::WIC_CODEC_JPEG, // JPEG,
DirectX::WIC_CODEC_PNG, // PNG,
DirectX::WIC_CODEC_TIFF, // TIFF,
DirectX::WIC_CODEC_TIFF, // TIF,
(DirectX::WICCodecs)0, // TGA,
};
return aCodecs[fmt];
}
#endif
Result CImageManager::Save(const SSaveImageInfo& Info)
{
Result ret = VKE_FAIL;
#if VKE_USE_DIRECTXTEX
DirectX::Image Img;
if (Info.hImage != INVALID_HANDLE)
{
ImagePtr pImg = GetImage(Info.hImage);
const auto& DxImage = pImg->m_DXImage;
//const DirectX::Image* pDxImg = DxImage.GetImage(0, 0, 0);
const auto& Metadata = DxImage.GetMetadata();
size_t dataSize = DxImage.GetPixelsSize();
Img.format = Metadata.format;
Img.width = Metadata.width;
Img.height = Metadata.height;
Img.rowPitch = dataSize / Img.height;
Img.slicePitch = dataSize;
Img.pixels = DxImage.GetPixels();
}
else
{
auto pData = Info.pData;
Img.format = MapPixelFormatToDXGIFormat(pData->format);
Img.width = pData->Size.width;
Img.height = pData->Size.height;
Img.rowPitch = pData->rowPitch;
Img.slicePitch = pData->slicePitch;
Img.pixels = pData->pPixels;
}
Utils::TCString< wchar_t, Config::Resource::MAX_NAME_LENGTH > Name;
Name.Convert( Info.pFileName );
DirectX::WICCodecs codec = MapImageFormatToCodec(Info.format);
if(codec != 0)
{
REFGUID guid = DirectX::GetWICCodec(codec);
::HRESULT hr = DirectX::SaveToWICFile(Img, DirectX::WIC_FLAGS_NONE, guid,
Name.GetData(), nullptr);
if (hr == S_OK)
{
ret = VKE_OK;
}
}
else if (Info.format == ImageFileFormats::TGA)
{
::HRESULT hr = DirectX::SaveToTGAFile(Img, Name.GetData(), nullptr);
if (hr == S_OK)
{
ret = VKE_OK;
}
}
else if (Info.format == ImageFileFormats::HDR)
{
::HRESULT hr = DirectX::SaveToHDRFile(Img, Name.GetData());
if (hr == S_OK)
{
ret = VKE_OK;
}
}
else if (Info.format == ImageFileFormats::DDS)
{
::HRESULT hr = DirectX::SaveToDDSFile(Img, DirectX::DDS_FLAGS_NONE, Name.GetData());
if (hr == S_OK)
{
ret = VKE_OK;
}
}
if (VKE_FAILED(ret))
{
VKE_LOG_ERR("Unable to save image to file: " << Info.pFileName);
}
#else
#error "implement"
#endif
return ret;
}
void CImageManager::_GetTextureDesc(const CImage* pImg, RenderSystem::STextureDesc* pOut) const
{
#if VKE_USE_DIRECTXTEX
const auto& Metadata = pImg->m_DXImage.GetMetadata();
pOut->arrayElementCount = (uint16_t)Metadata.arraySize;
pOut->format = MapDXGIFormatToRenderSystemFormat(Metadata.format);
pOut->Size.width = (RenderSystem::TextureSizeType)Metadata.width;
pOut->Size.height = (RenderSystem::TextureSizeType)Metadata.height;
pOut->memoryUsage = RenderSystem::MemoryUsages::GPU_ACCESS | RenderSystem::MemoryUsages::TEXTURE | RenderSystem::MemoryUsages::STATIC;
pOut->mipmapCount = (uint16_t)Metadata.mipLevels;
pOut->multisampling = RenderSystem::SampleCounts::SAMPLE_1;
pOut->sliceCount = (uint16_t)Metadata.depth;
pOut->type = MapTexDimmensionToTextureType(Metadata.dimension);
pOut->usage = RenderSystem::TextureUsages::SAMPLED | RenderSystem::TextureUsages::TRANSFER_DST;
pOut->Name = pImg->GetDesc().Name;
VKE_RENDER_SYSTEM_SET_DEBUG_NAME(*pOut, pOut->Name.GetData());
#else
#error "implement"
#endif
}
Result CImageManager::_Resize(const ImageSize& NewSize, CImage** ppInOut)
{
Result ret = VKE_FAIL;
VKE_ASSERT( ppInOut != nullptr && *ppInOut != nullptr, "" );
CImage* pImg = *ppInOut;
const auto& Desc = pImg->GetDesc();
if( Desc.Size == NewSize )
{
ret = VKE_OK;
return ret;
}
#if VKE_USE_DIRECTXTEX
const auto& Meta = pImg->m_DXImage.GetMetadata();
DirectX::ScratchImage NewImage;
::HRESULT hr = NewImage.Initialize2D(Meta.format, NewSize.width, NewSize.height, Meta.arraySize,
Meta.mipLevels);
if (hr == S_OK)
{
const bool needDecompress = IsCompressed(Meta.format);
DirectX::ScratchImage TmpImg;
DirectX::ScratchImage* pSrcImg = &pImg->m_DXImage;
const DirectX::TexMetadata* pSrcMetadata = &pSrcImg->GetMetadata();
if (needDecompress)
{
hr = DirectX::Decompress(pImg->m_DXImage.GetImages(), pImg->m_DXImage.GetImageCount(), Meta,
DXGI_FORMAT_UNKNOWN, TmpImg);
if (hr == S_OK)
{
pSrcImg = &TmpImg;
pSrcMetadata = &TmpImg.GetMetadata();
}
}
hr = DirectX::Resize(pSrcImg->GetImages(), pSrcImg->GetImageCount(), *pSrcMetadata,
(size_t)NewSize.width, (size_t)NewSize.height, DirectX::TEX_FILTER_DEFAULT, NewImage);
if (hr == S_OK)
{
/*REFGUID guid = DirectX::GetWICCodec(DirectX::WIC_CODEC_PNG);
DirectX::SaveToWICFile(*NewImage.GetImage(0,0,0), DirectX::WIC_FLAGS_NONE,
guid,
L"resize.png");*/
if (needDecompress)
{
DirectX::ScratchImage NewCompressed;
hr = DirectX::Compress(NewImage.GetImages(), NewImage.GetImageCount(), NewImage.GetMetadata(),
Meta.format, DirectX::TEX_COMPRESS_BC7_QUICK, 0.0f, NewCompressed);
if (hr == S_OK)
{
NewImage.Release();
NewImage = std::move(NewCompressed);
}
}
if (hr == S_OK)
{
pImg->m_DXImage.Release();
//hr = pImg->m_DXImage.Initialize(NewImage.GetMetadata());
pImg->m_DXImage = std::move(NewImage);
if (hr == S_OK)
{
const auto w = pImg->m_DXImage.GetMetadata().width;
ret = VKE_OK;
}
else
{
VKE_LOG_ERR("Unable to reinitialize image.");
}
}
}
else
{
VKE_LOG_ERR("Unable to Resize DirectX Tex image.");
}
}
else
{
VKE_LOG_ERR("Unable to initialize2D new image for resize.");
}
#else
#error "implement"
#endif
return ret;
}
Result CImageManager::Resize(const ImageSize& NewSize, ImagePtr* ppInOut)
{
CImage* pImg = ppInOut->Get();
return _Resize(NewSize, &pImg);
}
Result CImageManager::Resize(const ImageSize& NewSize, ImageHandle* pInOut)
{
CImage* pImg = GetImage(*pInOut).Get();
return _Resize( NewSize, &pImg );
}
} // Core
} // VKE | 43.115599 | 186 | 0.47931 | [
"object",
"3d"
] |
c67c0a99a1f9471fcd3bcd8dbfc2326e8e7730a4 | 9,163 | cpp | C++ | src/synthesis/DFA.cpp | saffiepig/Syft | 121a9a1f6ac818138963d92889f44e0f98b59796 | [
"MIT"
] | 4 | 2018-10-30T18:40:21.000Z | 2020-03-24T15:19:27.000Z | src/synthesis/DFA.cpp | Shufang-Zhu/Syft | 121a9a1f6ac818138963d92889f44e0f98b59796 | [
"MIT"
] | 1 | 2020-08-04T03:45:30.000Z | 2020-08-04T03:45:30.000Z | src/synthesis/DFA.cpp | Shufang-Zhu/Syft | 121a9a1f6ac818138963d92889f44e0f98b59796 | [
"MIT"
] | 4 | 2018-09-17T15:59:05.000Z | 2020-05-03T13:57:12.000Z | #include "DFA.h"
#include <string>
using namespace std;
using namespace boost;
//update test
DFA::DFA(Cudd* m){
mgr = m;
//ctor
}
DFA::~DFA()
{
//dtor
delete mgr;// = NULL;
}
void DFA::initialize(string filename, string partfile){
//ctor
read_from_file(filename);
if(DFAflag == true) {
cout<<"Number of DFA states: "<<nstates-1<<endl;
nbits = state2bin(nstates-2).length();
construct_bdd_new();
cout << "Number of state variables: " << nbits << endl;
read_partfile(partfile);
initbv = new int[nbits];
int temp = init;
for (int i = nbits - 1; i >= 0; i--) {
initbv[i] = temp % 2;
temp = temp / 2;
}
}else{
cout<<"DFA with no accepting traces"<<endl;
}
}
void DFA::read_partfile(string partfile){
ifstream f(partfile.c_str());
vector<string> inputs;
vector<string> outputs;
string line;
while(getline(f, line)){
if(f.is_open()){
if(strfind(line, "inputs")){
split(inputs, line, is_any_of(" "));
//print(inputs);
}
else if(strfind(line, "outputs")){
split(outputs, line, is_any_of(" "));
//print(outputs);
}
else{
cout<<"read partfile error!"<<endl;
cout<<partfile<<endl;
cout<<line<<endl;
}
}
}
f.close();
set<string> input_set;
set<string> output_set;
for(int i = 1; i < inputs.size(); i++){
string c = boost::algorithm::to_upper_copy(inputs[i]);
input_set.insert(c);
}
for(int i = 1; i < outputs.size(); i++){
string c = boost::algorithm::to_upper_copy(outputs[i]);
output_set.insert(c);
}
for(int i = 1; i < variables.size(); i++){
if(input_set.find(variables[i]) != input_set.end())
input.push_back(nbits+i-1);
else if(output_set.find(variables[i]) != output_set.end())
output.push_back(nbits+i-1);
else if(variables[i] == "ALIVE")
output.push_back(nbits+i-1);
else
cout<<"error: "<<variables[i]<<endl;
}
//print_int(input);
//print_int(output);
}
void DFA::read_from_file(string filename){
ifstream f(filename.c_str());
if(f.is_open()){
bool flag = 0;
string line;
vector<int> tmp;
vector <string> fields; //temporary varibale
while(getline(f, line)){
if(flag == 0){
if(strfind(line, "number of variables")){
split(fields, line, is_any_of(" "));
nvars = stoi(fields[3]);
//cout<<nvars<<endl;
}
if(strfind(line, "variables") && !strfind(line, "number")){
split(variables, line, is_any_of(" "));
}
else if(strfind(line, "states")){
split(fields, line, is_any_of(" "));
nstates = stoi(fields[1]);
// cout<<nstates<<endl;
}
else if(strfind(line, "initial")){
split(fields, line, is_any_of(" "));
init = stoi(fields[1]);
//cout<<init<<endl;
}
else if(strfind(line, "bdd nodes")){
split(fields, line, is_any_of(" "));
nodes = stoi(fields[2]);
//cout<<nodes<<endl;
}
else if(strfind(line, "final")){
split(fields, line, is_any_of(" "));
int i = 1; // start at 1 to ignore "final" token
while(i < fields.size()){
if(fields[i] == "1") {
finalstates.push_back(i - 1);
DFAflag = true;
}
i = i + 1;
}
//print_int(finalstates);
}
else if(strfind(line, "behaviour")){
split(fields, line, is_any_of(" "));
int i = 1;
while(i < fields.size()){
behaviour.push_back(stoi(fields[i]));
i = i + 1;
}
//print_int(behaviour);
}
else if(strfind(line, "bdd:"))
flag = 1;
else
continue;
}
else{
if(strfind(line, "end"))
break;
split(fields, line, is_any_of(" "));
for(int i = 1; i < fields.size(); i++)
tmp.push_back(stoi(fields[i]));
smtbdd.push_back(tmp);
tmp.clear();
}
}
}
f.close();
//print_vec(smtbdd);
}
void DFA::print(vector<auto> v)
{
for (size_t n = 0; n < v.size(); n++)
cout<< v[ n ] << " ";
cout << endl;
}
bool DFA::strfind(string str, string target){
size_t found = str.find(target);
if(found != string::npos)
return true;
else
return false;
}
string DFA::state2bin(int n){
string res;
while (n)
{
res.push_back((n & 1) + '0');
n >>= 1;
}
if (res.empty())
res = "0";
else
reverse(res.begin(), res.end());
//cout<<res<<endl;
return res;
}
//return positive or nagative bdd variable index
BDD DFA::var2bddvar(int v, int index){
if(v == 0){
return !bddvars[index];
}
else{
return bddvars[index];
}
}
void DFA::construct_bdd_new(){
for(int i = 0; i < nbits+nvars; i++){
BDD b = mgr->bddVar();
bddvars.push_back(b);
//dumpdot(b, to_string(i));
}
for(int i = 0; i < nbits; i++){
BDD d = mgr->bddZero();
res.push_back(d);
}
tBDD.resize(smtbdd.size());
for(int i = 0; i < tBDD.size(); i++){
if(tBDD[i].size() == 0){
vbdd b = try_get(i);
}
}
for(int i = 0; i < nbits; i++){
for(int j = 1; j < nstates; j++){
BDD tmp = mgr->bddOne();
string bins = state2bin(j-1);
int offset = nbits - bins.size();
for(int m = 0; m < offset; m++){
tmp = tmp * var2bddvar(0, m);
}
for(int m = 0; m < bins.size(); m++){
tmp = tmp * var2bddvar(int(bins[m])-48, m + offset);
}
//dumpdot(tmp, "res-state "+to_string(behaviour[j])+to_string(i));
//dumpdot(tBDD[behaviour[j]][i], "res-bdd "+to_string(behaviour[j])+to_string(i));
tmp = tmp * tBDD[behaviour[j]][i];
res[i] = res[i] + tmp;
//dumpdot(res[i], "res "+to_string(i));
}
//dumpdot(res[i], "res "+to_string(i));
}
finalstatesBDD = mgr->bddZero();
for(int i = 0; i < finalstates.size(); i++){
BDD ac = state2bdd(finalstates[i]-1);
finalstatesBDD += ac;
}
}
BDD DFA::state2bdd(int s){
string bin = state2bin(s);
BDD b = mgr->bddOne();
int nzero = nbits - bin.length();
//cout<<nzero<<endl;
for(int i = 0; i < nzero; i++){
b *= !bddvars[i];
}
for(int i = 0; i < bin.length(); i++){
if(bin[i] == '0')
b *= !bddvars[i+nzero];
else
b *= bddvars[i+nzero];
}
return b;
}
vbdd DFA::try_get(int index){
if(tBDD[index].size() != 0)
return tBDD[index];
vbdd b;
if(smtbdd[index][0] == -1){
int s = smtbdd[index][1];
string bins = state2bin(s-1);
for(int m = 0; m < nbits - bins.size(); m++){
b.push_back(mgr->bddZero());
}
for(int i = 0; i < bins.size(); i++){
if(bins[i] == '0')
b.push_back(mgr->bddZero());
else if(bins[i] == '1')
b.push_back(mgr->bddOne());
else
cout<<"error binary state"<<endl;
}
tBDD[index] = b;
return b;
}
else{
int rootindex = smtbdd[index][0];
int leftindex = smtbdd[index][1];
int rightindex = smtbdd[index][2];
BDD root = bddvars[rootindex+nbits];
//dumpdot(root, "test");
vbdd left = try_get(leftindex);
//for(int l = 0; l < left.size(); l++)
// dumpdot(left[l], "left"+to_string(l));
vbdd right = try_get(rightindex);
//for(int l = 0; l < left.size(); l++)
// dumpdot(right[l], "right"+to_string(l));
assert(left.size() == right.size());
for(int i = 0; i < left.size(); i++){
BDD tmp;
tmp = root.Ite(right[i], left[i]);//Assume this is correct
//dumpdot(tmp, "tmp");
b.push_back(tmp);
}
tBDD[index] = b;
return b;
}
}
void DFA::dumpdot(BDD &b, string filename){
FILE *fp = fopen(filename.c_str(), "w");
CUDD::ADD a=b.Add();
vector<CUDD::ADD> single(1);
single[0] = a;
this->mgr->DumpDot(single, NULL, NULL, fp);
fclose(fp);
}
| 27.189911 | 94 | 0.455855 | [
"vector"
] |
c68e629aa71a195615b25efc66344f0c1aaeb6f4 | 3,142 | cpp | C++ | core/src/main.cpp | ccarels/mapp | 3ab5ee4cd4c5eae5f13edc942e87ff2cee43e8b2 | [
"BSD-3-Clause"
] | null | null | null | core/src/main.cpp | ccarels/mapp | 3ab5ee4cd4c5eae5f13edc942e87ff2cee43e8b2 | [
"BSD-3-Clause"
] | null | null | null | core/src/main.cpp | ccarels/mapp | 3ab5ee4cd4c5eae5f13edc942e87ff2cee43e8b2 | [
"BSD-3-Clause"
] | null | null | null | #include <Python.h>
#include <google/protobuf/api.pb.h>
#include <future>
#include <iostream>
#include "mapp/algorithm/managed.hpp"
#include "mapp/algorithm/processor.hpp"
#include "mapp/filesystem/fs.hpp"
#include "mapp/library/locator.hpp"
#include "mapp/library/provider.hpp"
#include "mapp/model/data_model_interface.hpp"
#include "mapp/pipeline/sequence.hpp"
#include "mapp/services/service_locator.hpp"
/**
* \brief main executable to try out features during development.
* \return 0 on success, 1 otherwise.
*/
auto main() -> int {
using mapp::core::algorithm::managed;
using mapp::core::algorithm::processor;
using mapp::core::filesystem::fs;
using mapp::core::library::loader;
using mapp::core::library::locator;
using mapp::core::library::provider;
using mapp::core::model::data_model;
using mapp::core::pipeline::sequence;
using mapp::core::services::service;
using mapp::core::services::service_locator;
GOOGLE_PROTOBUF_VERIFY_VERSION;
/// Create a service filesystem that contains service locators
auto svc_fs = std::make_shared<fs<fs<mapp::core::services::service>>>();
auto svc_locator = std::make_shared<service_locator>(svc_fs);
/// Create the algorithm service filesystem
auto algo_fs = std::make_shared<fs<service>>();
svc_locator->_svc_fs->put("algo_svc", algo_fs); /// Put the algorithm filesystem in the filesystem of filesystems
/// Configure the provider for library locators
auto lloc = std::make_shared<locator>();
lloc->load_config_file("./config.txt");
const auto provide = provider<processor, managed<processor>>(lloc); /// Tells the provider where to find libraries
/// Configure a pipeline
auto pipeline = sequence();
auto mymodule = provide.get("mymodule");
svc_locator->_svc_fs->get("algo_svc")._res->register_loader(mymodule);
auto mymodule_ptr = mymodule->instance();
pipeline.put_module_init(mymodule_ptr, "", svc_locator);
pipeline.put_module_exec(mymodule_ptr, "", svc_locator);
auto null_module = provide.get("null_algorithm");
svc_locator->_svc_fs->get("algo_svc")._res->register_loader(null_module);
auto null_module_ptr = null_module->instance();
pipeline.put_module_init(null_module_ptr, "", svc_locator);
pipeline.put_module_exec(null_module_ptr, "", svc_locator);
// Uncomment these lines to run a Python module
//auto pymodule = provide.get("pymodule_template");
//svc_locator->_svc_fs->register_loader(pymodule);
//auto pyptr = pymodule->instance();
//pipeline.put_module_init(pyptr, "/pymodule_template/config", svc_locator);
//pipeline.put_module_exec(pyptr, "", svc_locator);
/// Run two pipelines on separate threads
// Py_Initialize();
// PyThreadState *_save = nullptr;
//_save = PyEval_SaveThread();
auto p2 = pipeline;
auto f1 = std::async(std::launch::async, &sequence::execute, &pipeline);
auto f2 = std::async(std::launch::async, &sequence::execute, &p2);
f1.get();
f2.get();
// PyEval_RestoreThread(_save);
// auto gstate = PyGILState_Ensure();
// if(gstate == PyGILState_LOCKED) { Py_FinalizeEx(); }
google::protobuf::ShutdownProtobufLibrary();
return 0;
}
| 36.534884 | 117 | 0.729472 | [
"model"
] |
578eaa610b241e03d8db94a7c169ef5188eda367 | 1,400 | tcc | C++ | include/material_points.tcc | cb-geo/mpm-point-generator | 5ee7fc1655a405c20960ce2fc28551ee7d66e5a0 | [
"MIT"
] | null | null | null | include/material_points.tcc | cb-geo/mpm-point-generator | 5ee7fc1655a405c20960ce2fc28551ee7d66e5a0 | [
"MIT"
] | 71 | 2017-05-24T18:53:39.000Z | 2020-03-19T04:06:04.000Z | include/material_points.tcc | cb-geo/mpm-point-generator | 5ee7fc1655a405c20960ce2fc28551ee7d66e5a0 | [
"MIT"
] | 4 | 2017-05-24T18:37:55.000Z | 2020-02-26T18:08:10.000Z | //! Compute stresses of the material points
//! \tparam Tdim Dimension
template <unsigned Tdim>
void MaterialPoints<Tdim>::compute_stress() {
//! Gravity
const double gravity = 9.81;
//! Compute maximum height of the points
//! [2D], y is the vertical direction
//! [3D], z is the vertical direction
//! In general, [Tdim - 1]
double max_height = std::numeric_limits<double>::min();
for (const auto& point : points_) {
const double height = point->coordinates()[Tdim - 1];
if (height > max_height) max_height = height;
}
//! Loop through the points to get vertical and horizontal stresses
//! Note that tau (shear stress) is assumed 0
//! [2D], y is the vertical direction
//! [3D], z is the vertical direction
for (const auto& point : points_) {
//! Obtain density and k0 from material properties;
const double density = material_properties_->density();
const double k0 = material_properties_->k0();
//! Compute the height of the point
const double height = point->coordinates()[Tdim - 1];
//! Compute and store stresses
Eigen::VectorXd stress(Tdim * 2);
stress.setZero();
const auto coordinates = point->coordinates();
stress[Tdim - 1] = gravity * (-(max_height - height)) * density;
for (unsigned i = 2; i <= Tdim; ++i) {
stress[Tdim - i] = stress[Tdim - 1] * k0;
}
point->stress(stress);
}
}
| 31.111111 | 69 | 0.650714 | [
"3d"
] |
579323f94e6ff381bac47f0b4157dfc43a4a4eff | 10,628 | cpp | C++ | src/feedhq_api.cpp | bojoer/newsbeuter | 1427bdb0705806368db39576a9b803df82fa0415 | [
"MIT"
] | 1 | 2017-04-12T16:28:07.000Z | 2017-04-12T16:28:07.000Z | src/feedhq_api.cpp | bojoer/newsbeuter | 1427bdb0705806368db39576a9b803df82fa0415 | [
"MIT"
] | null | null | null | src/feedhq_api.cpp | bojoer/newsbeuter | 1427bdb0705806368db39576a9b803df82fa0415 | [
"MIT"
] | null | null | null | #include <vector>
#include <cstring>
#include <iostream>
#include <wordexp.h>
#include <feedhq_api.h>
#include <config.h>
#include <utils.h>
#include <unistd.h>
#include <curl/curl.h>
#include <json.h>
#define FEEDHQ_LOGIN "https://feedhq.org/accounts/ClientLogin"
#define FEEDHQ_API_PREFIX "https://feedhq.org/reader/api/0/"
#define FEEDHQ_FEED_PREFIX "https://feedhq.org/reader/atom/"
#define FEEDHQ_OUTPUT_SUFFIX "?output=json"
#define FEEDHQ_SUBSCRIPTION_LIST FEEDHQ_API_PREFIX "subscription/list" FEEDHQ_OUTPUT_SUFFIX
#define FEEDHQ_API_MARK_ALL_READ_URL FEEDHQ_API_PREFIX "mark-all-as-read"
#define FEEDHQ_API_EDIT_TAG_URL FEEDHQ_API_PREFIX "edit-tag"
#define FEEDHQ_API_TOKEN_URL FEEDHQ_API_PREFIX "token"
namespace newsbeuter {
feedhq_api::feedhq_api(configcontainer * c) : remote_api(c) {
// TODO
}
feedhq_api::~feedhq_api() {
// TODO
}
bool feedhq_api::authenticate() {
auth = retrieve_auth();
LOG(LOG_DEBUG, "feedhq_api::authenticate: Auth = %s", auth.c_str());
return auth != "";
}
static size_t my_write_data(void *buffer, size_t size, size_t nmemb, void *userp) {
std::string * pbuf = static_cast<std::string *>(userp);
pbuf->append(static_cast<const char *>(buffer), size * nmemb);
return size * nmemb;
}
std::string feedhq_api::retrieve_auth() {
CURL * handle = curl_easy_init();
std::string user = cfg->get_configvalue("feedhq-login");
bool flushed = false;
if (user == "") {
std::cout << std::endl;
std::cout.flush();
flushed = true;
std::cout << "Username for FeedHQ: ";
std::cin >> user;
if (user == "") {
return "";
}
}
std::string pass = cfg->get_configvalue("feedhq-password");
if( pass == "" ) {
wordexp_t exp;
std::ifstream ifs;
wordexp(cfg->get_configvalue("feedhq-passwordfile").c_str(),&exp,0);
ifs.open(exp.we_wordv[0]);
wordfree(&exp);
if (!ifs) {
if(!flushed) {
std::cout << std::endl;
std::cout.flush();
}
// Find a way to do this in C++ by removing cin echoing.
pass = std::string( getpass("Password for FeedHQ: ") );
} else {
ifs >> pass;
if(pass == "") {
return "";
}
}
}
char * username = curl_easy_escape(handle, user.c_str(), 0);
char * password = curl_easy_escape(handle, pass.c_str(), 0);
std::string postcontent = utils::strprintf("service=reader&Email=%s&Passwd=%s&source=%s%2F%s&accountType=HOSTED_OR_GOOGLE&continue=http://www.google.com/",
username, password, PROGRAM_NAME, PROGRAM_VERSION);
curl_free(username);
curl_free(password);
std::string result;
utils::set_common_curl_options(handle, cfg);
curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, my_write_data);
curl_easy_setopt(handle, CURLOPT_WRITEDATA, &result);
curl_easy_setopt(handle, CURLOPT_POSTFIELDS, postcontent.c_str());
curl_easy_setopt(handle, CURLOPT_URL, FEEDHQ_LOGIN);
curl_easy_perform(handle);
curl_easy_cleanup(handle);
std::vector<std::string> lines = utils::tokenize(result);
for (std::vector<std::string>::iterator it=lines.begin();it!=lines.end();++it) {
LOG(LOG_DEBUG, "feedhq_api::retrieve_auth: line = %s", it->c_str());
if (it->substr(0,5)=="Auth=") {
std::string auth = it->substr(5, it->length()-5);
return auth;
}
}
return "";
}
std::vector<tagged_feedurl> feedhq_api::get_subscribed_urls() {
std::vector<tagged_feedurl> urls;
CURL * handle = curl_easy_init();
std::string result;
configure_handle(handle);
utils::set_common_curl_options(handle, cfg);
curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, my_write_data);
curl_easy_setopt(handle, CURLOPT_WRITEDATA, &result);
curl_easy_setopt(handle, CURLOPT_URL, FEEDHQ_SUBSCRIPTION_LIST);
curl_easy_perform(handle);
curl_easy_cleanup(handle);
LOG(LOG_DEBUG, "feedhq_api::get_subscribed_urls: document = %s", result.c_str());
// TODO: parse result
struct json_object * reply = json_tokener_parse(result.c_str());
if (is_error(reply)) {
LOG(LOG_ERROR, "feedhq_api::get_subscribed_urls: failed to parse response as JSON.");
return urls;
}
struct json_object * subscription_obj = json_object_object_get(reply, "subscriptions");
struct array_list * subscriptions = json_object_get_array(subscription_obj);
int len = array_list_length(subscriptions);
for (int i=0;i<len;i++) {
std::vector<std::string> tags;
struct json_object * sub = json_object_array_get_idx(subscription_obj, i);
const char * id = json_object_get_string(json_object_object_get(sub, "id"));
const char * title = json_object_get_string(json_object_object_get(sub, "title"));
tags.push_back(std::string("~") + title);
char * escaped_id = curl_easy_escape(handle, id, 0);
urls.push_back(tagged_feedurl(utils::strprintf("%s%s?n=%u", FEEDHQ_FEED_PREFIX, escaped_id, cfg->get_configvalue_as_int("feedhq-min-items")), tags));
curl_free(escaped_id);
}
json_object_put(reply);
return urls;
}
void feedhq_api::configure_handle(CURL * handle) {
struct curl_slist *chunk = NULL;
std::string header = utils::strprintf("Authorization: GoogleLogin auth=%s", auth.c_str());
LOG(LOG_DEBUG, "feedhq_api::configure_handle header = %s", header.c_str());
chunk = curl_slist_append(chunk, header.c_str());
curl_easy_setopt(handle, CURLOPT_HTTPHEADER, chunk);
}
bool feedhq_api::mark_all_read(const std::string& feedurl) {
std::string real_feedurl = feedurl.substr(strlen(FEEDHQ_FEED_PREFIX), feedurl.length() - strlen(FEEDHQ_FEED_PREFIX));
std::vector<std::string> elems = utils::tokenize(real_feedurl, "?");
real_feedurl = utils::unescape_url(elems[0]);
std::string token = get_new_token();
std::string postcontent = utils::strprintf("s=%s&T=%s", real_feedurl.c_str(), token.c_str());
std::string result = post_content(FEEDHQ_API_MARK_ALL_READ_URL, postcontent);
return result == "OK";
}
std::vector<std::string> feedhq_api::bulk_mark_articles_read(const std::vector<google_replay_pair>& actions) {
std::vector<std::string> successful_tokens;
std::string token = get_new_token();
for (std::vector<google_replay_pair>::const_iterator it=actions.begin();it!=actions.end();++it) {
bool read;
if (it->second == GOOGLE_MARK_READ) {
read = true;
} else if (it->second == GOOGLE_MARK_UNREAD) {
read = false;
} else {
continue;
}
if (mark_article_read_with_token(it->first, read, token)) {
successful_tokens.push_back(it->first);
}
}
return successful_tokens;
}
bool feedhq_api::mark_article_read(const std::string& guid, bool read) {
std::string token = get_new_token();
return mark_article_read_with_token(guid, read, token);
}
bool feedhq_api::mark_article_read_with_token(const std::string& guid, bool read, const std::string& token) {
std::string postcontent;
if (read) {
postcontent = utils::strprintf("i=%s&a=user/-/state/com.google/read&r=user/-/state/com.google/kept-unread&ac=edit&T=%s", guid.c_str(), token.c_str());
} else {
postcontent = utils::strprintf("i=%s&r=user/-/state/com.google/read&a=user/-/state/com.google/kept-unread&a=user/-/state/com.google/tracking-kept-unread&ac=edit&T=%s", guid.c_str(), token.c_str());
}
std::string result = post_content(FEEDHQ_API_EDIT_TAG_URL, postcontent);
LOG(LOG_DEBUG, "feedhq_api::mark_article_read_with_token: postcontent = %s result = %s", postcontent.c_str(), result.c_str());
return result == "OK";
}
std::string feedhq_api::get_new_token() {
CURL * handle = curl_easy_init();
std::string result;
utils::set_common_curl_options(handle, cfg);
configure_handle(handle);
curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, my_write_data);
curl_easy_setopt(handle, CURLOPT_WRITEDATA, &result);
curl_easy_setopt(handle, CURLOPT_URL, FEEDHQ_API_TOKEN_URL);
curl_easy_perform(handle);
curl_easy_cleanup(handle);
LOG(LOG_DEBUG, "feedhq_api::get_new_token: token = %s", result.c_str());
return result;
}
bool feedhq_api::update_article_flags(const std::string& oldflags, const std::string& newflags, const std::string& guid) {
std::string star_flag = cfg->get_configvalue("feedhq-flag-star");
std::string share_flag = cfg->get_configvalue("feedhq-flag-share");
bool success = true;
if (star_flag.length() > 0) {
if (strchr(oldflags.c_str(), star_flag[0])==NULL && strchr(newflags.c_str(), star_flag[0])!=NULL) {
success = star_article(guid, true);
} else if (strchr(oldflags.c_str(), star_flag[0])!=NULL && strchr(newflags.c_str(), star_flag[0])==NULL) {
success = star_article(guid, false);
}
}
if (share_flag.length() > 0) {
if (strchr(oldflags.c_str(), share_flag[0])==NULL && strchr(newflags.c_str(), share_flag[0])!=NULL) {
success = share_article(guid, true);
} else if (strchr(oldflags.c_str(), share_flag[0])!=NULL && strchr(newflags.c_str(), share_flag[0])==NULL) {
success = share_article(guid, false);
}
}
return success;
}
bool feedhq_api::star_article(const std::string& guid, bool star) {
std::string token = get_new_token();
std::string postcontent;
if (star) {
postcontent = utils::strprintf("i=%s&a=user/-/state/com.google/starred&ac=edit&T=%s", guid.c_str(), token.c_str());
} else {
postcontent = utils::strprintf("i=%s&r=user/-/state/com.google/starred&ac=edit&T=%s", guid.c_str(), token.c_str());
}
std::string result = post_content(FEEDHQ_API_EDIT_TAG_URL, postcontent);
return result == "OK";
}
bool feedhq_api::share_article(const std::string& guid, bool share) {
std::string token = get_new_token();
std::string postcontent;
if (share) {
postcontent = utils::strprintf("i=%s&a=user/-/state/com.google/broadcast&ac=edit&T=%s", guid.c_str(), token.c_str());
} else {
postcontent = utils::strprintf("i=%s&r=user/-/state/com.google/broadcast&ac=edit&T=%s", guid.c_str(), token.c_str());
}
std::string result = post_content(FEEDHQ_API_EDIT_TAG_URL, postcontent);
return result == "OK";
}
std::string feedhq_api::post_content(const std::string& url, const std::string& postdata) {
std::string result;
CURL * handle = curl_easy_init();
utils::set_common_curl_options(handle, cfg);
configure_handle(handle);
curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, my_write_data);
curl_easy_setopt(handle, CURLOPT_WRITEDATA, &result);
curl_easy_setopt(handle, CURLOPT_POSTFIELDS, postdata.c_str());
curl_easy_setopt(handle, CURLOPT_URL, url.c_str());
curl_easy_perform(handle);
curl_easy_cleanup(handle);
LOG(LOG_DEBUG, "feedhq_api::post_content: url = %s postdata = %s result = %s", url.c_str(), postdata.c_str(), result.c_str());
return result;
}
}
| 33.526814 | 199 | 0.702578 | [
"vector"
] |
57957898709bdd6e452cb341bb124967f6c5d7dc | 55,574 | cpp | C++ | Cbc/Cbc/src/CbcHeuristicDive.cpp | fadi-alkhoury/coin-or-cbc-with-cmake | b4a216118d8e773b694b44c5f27cd75a251cc2cb | [
"MIT"
] | null | null | null | Cbc/Cbc/src/CbcHeuristicDive.cpp | fadi-alkhoury/coin-or-cbc-with-cmake | b4a216118d8e773b694b44c5f27cd75a251cc2cb | [
"MIT"
] | null | null | null | Cbc/Cbc/src/CbcHeuristicDive.cpp | fadi-alkhoury/coin-or-cbc-with-cmake | b4a216118d8e773b694b44c5f27cd75a251cc2cb | [
"MIT"
] | null | null | null | /* $Id: CbcHeuristicDive.cpp 2467 2019-01-03 21:26:29Z unxusr $ */
// Copyright (C) 2008, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#if defined(_MSC_VER)
// Turn off compiler warning about long names
#pragma warning(disable : 4786)
#endif
#include "CbcStrategy.hpp"
#include "CbcModel.hpp"
#include "CbcSubProblem.hpp"
#include "CbcSimpleInteger.hpp"
#include "OsiAuxInfo.hpp"
#include "CoinTime.hpp"
#ifdef COIN_HAS_CLP
#include "OsiClpSolverInterface.hpp"
#endif
#include "CbcHeuristicDive.hpp"
//#define DIVE_FIX_BINARY_VARIABLES
//#define DIVE_DEBUG
#ifdef DIVE_DEBUG
#define DIVE_PRINT = 2
#endif
// Default Constructor
CbcHeuristicDive::CbcHeuristicDive()
: CbcHeuristic()
{
// matrix and row copy will automatically be empty
downLocks_ = NULL;
upLocks_ = NULL;
downArray_ = NULL;
upArray_ = NULL;
priority_ = NULL;
percentageToFix_ = 0.2;
maxIterations_ = 100;
maxSimplexIterations_ = 10000;
maxSimplexIterationsAtRoot_ = 1000000;
maxTime_ = 600;
whereFrom_ = 255 - 2 - 16 + 256;
decayFactor_ = 1.0;
smallObjective_ = 1.0e-10;
}
// Constructor from model
CbcHeuristicDive::CbcHeuristicDive(CbcModel &model)
: CbcHeuristic(model)
{
downLocks_ = NULL;
upLocks_ = NULL;
downArray_ = NULL;
upArray_ = NULL;
priority_ = NULL;
// Get a copy of original matrix
assert(model.solver());
// model may have empty matrix - wait until setModel
const CoinPackedMatrix *matrix = model.solver()->getMatrixByCol();
if (matrix) {
matrix_ = *matrix;
matrixByRow_ = *model.solver()->getMatrixByRow();
validate();
}
percentageToFix_ = 0.2;
maxTime_ = 600;
smallObjective_ = 1.0e-10;
maxIterations_ = 100;
maxSimplexIterations_ = 10000;
maxSimplexIterationsAtRoot_ = 1000000;
whereFrom_ = 255 - 2 - 16 + 256;
decayFactor_ = 1.0;
smallObjective_ = 1.0e-10;
}
// Destructor
CbcHeuristicDive::~CbcHeuristicDive()
{
delete[] downLocks_;
delete[] upLocks_;
delete[] priority_;
assert(!downArray_);
}
// Create C++ lines to get to current state
void CbcHeuristicDive::generateCpp(FILE *fp, const char *heuristic)
{
// hard coded as CbcHeuristic virtual
CbcHeuristic::generateCpp(fp, heuristic);
if (percentageToFix_ != 0.2)
fprintf(fp, "3 %s.setPercentageToFix(%.f);\n", heuristic, percentageToFix_);
else
fprintf(fp, "4 %s.setPercentageToFix(%.f);\n", heuristic, percentageToFix_);
if (maxIterations_ != 100)
fprintf(fp, "3 %s.setMaxIterations(%d);\n", heuristic, maxIterations_);
else
fprintf(fp, "4 %s.setMaxIterations(%d);\n", heuristic, maxIterations_);
if (maxSimplexIterations_ != 10000)
fprintf(fp, "3 %s.setMaxSimplexIterations(%d);\n", heuristic, maxSimplexIterations_);
else
fprintf(fp, "4 %s.setMaxSimplexIterations(%d);\n", heuristic, maxSimplexIterations_);
if (maxTime_ != 600)
fprintf(fp, "3 %s.setMaxTime(%.2f);\n", heuristic, maxTime_);
else
fprintf(fp, "4 %s.setMaxTime(%.2f);\n", heuristic, maxTime_);
}
// Copy constructor
CbcHeuristicDive::CbcHeuristicDive(const CbcHeuristicDive &rhs)
: CbcHeuristic(rhs)
, matrix_(rhs.matrix_)
, matrixByRow_(rhs.matrixByRow_)
, percentageToFix_(rhs.percentageToFix_)
, maxTime_(rhs.maxTime_)
, smallObjective_(rhs.smallObjective_)
, maxIterations_(rhs.maxIterations_)
, maxSimplexIterations_(rhs.maxSimplexIterations_)
, maxSimplexIterationsAtRoot_(rhs.maxSimplexIterationsAtRoot_)
{
downArray_ = NULL;
upArray_ = NULL;
if (rhs.downLocks_) {
int numberIntegers = model_->numberIntegers();
downLocks_ = CoinCopyOfArray(rhs.downLocks_, numberIntegers);
upLocks_ = CoinCopyOfArray(rhs.upLocks_, numberIntegers);
priority_ = CoinCopyOfArray(rhs.priority_, numberIntegers);
} else {
downLocks_ = NULL;
upLocks_ = NULL;
priority_ = NULL;
}
}
// Assignment operator
CbcHeuristicDive &
CbcHeuristicDive::operator=(const CbcHeuristicDive &rhs)
{
if (this != &rhs) {
CbcHeuristic::operator=(rhs);
matrix_ = rhs.matrix_;
matrixByRow_ = rhs.matrixByRow_;
percentageToFix_ = rhs.percentageToFix_;
maxIterations_ = rhs.maxIterations_;
maxSimplexIterations_ = rhs.maxSimplexIterations_;
maxSimplexIterationsAtRoot_ = rhs.maxSimplexIterationsAtRoot_;
maxTime_ = rhs.maxTime_;
smallObjective_ = rhs.smallObjective_;
delete[] downLocks_;
delete[] upLocks_;
delete[] priority_;
if (rhs.downLocks_) {
int numberIntegers = model_->numberIntegers();
downLocks_ = CoinCopyOfArray(rhs.downLocks_, numberIntegers);
upLocks_ = CoinCopyOfArray(rhs.upLocks_, numberIntegers);
priority_ = CoinCopyOfArray(rhs.priority_, numberIntegers);
} else {
downLocks_ = NULL;
upLocks_ = NULL;
priority_ = NULL;
}
}
return *this;
}
// Resets stuff if model changes
void CbcHeuristicDive::resetModel(CbcModel *model)
{
model_ = model;
assert(model_->solver());
// Get a copy of original matrix
const CoinPackedMatrix *matrix = model_->solver()->getMatrixByCol();
// model may have empty matrix - wait until setModel
if (matrix) {
matrix_ = *matrix;
matrixByRow_ = *model->solver()->getMatrixByRow();
validate();
}
setPriorities();
}
// update model
void CbcHeuristicDive::setModel(CbcModel *model)
{
model_ = model;
assert(model_->solver());
// Get a copy of original matrix
const CoinPackedMatrix *matrix = model_->solver()->getMatrixByCol();
if (matrix) {
matrix_ = *matrix;
matrixByRow_ = *model->solver()->getMatrixByRow();
// make sure model okay for heuristic
validate();
}
setPriorities();
}
// Sets priorities if any
void CbcHeuristicDive::setPriorities()
{
delete[] priority_;
assert(model_);
priority_ = NULL;
if (!model_->objects())
return;
bool gotPriorities = false;
int numberIntegers = model_->numberIntegers();
int priority1 = -COIN_INT_MAX;
int priority2 = COIN_INT_MAX;
smallObjective_ = 0.0;
const double *objective = model_->solver()->getObjCoefficients();
int numberObjects = model_->numberObjects();
for (int i = 0; i < numberObjects; i++) {
OsiObject *object = model_->modifiableObject(i);
const CbcSimpleInteger *thisOne = dynamic_cast< const CbcSimpleInteger * >(object);
if (!thisOne)
continue; // Not integer
int iColumn = thisOne->columnNumber();
smallObjective_ += objective[iColumn];
int level = thisOne->priority();
priority1 = CoinMax(priority1, level);
priority2 = CoinMin(priority2, level);
if (thisOne->preferredWay() != 0)
gotPriorities = true;
}
smallObjective_ = CoinMax(1.0e-10, 1.0e-5 * (smallObjective_ / numberIntegers));
if (gotPriorities || priority1 > priority2) {
priority_ = new PriorityType[numberIntegers];
int nInteger = 0;
for (int i = 0; i < numberObjects; i++) {
OsiObject *object = model_->modifiableObject(i);
const CbcSimpleInteger *thisOne = dynamic_cast< const CbcSimpleInteger * >(object);
if (!thisOne)
continue; // Not integer
int level = thisOne->priority() - priority2;
assert(level < (1 << 29));
assert(nInteger < numberIntegers);
priority_[nInteger].priority = static_cast< unsigned int >(level);
int direction = 0;
if (thisOne->preferredWay() < 0)
direction = 1;
else if (thisOne->preferredWay() > 0)
direction = 1 | 1;
// at present don't try other way is not used
priority_[nInteger++].direction = static_cast< unsigned char >(direction);
}
assert(nInteger == numberIntegers);
}
}
bool CbcHeuristicDive::canHeuristicRun()
{
if (model_->bestSolution() || model_->getNodeCount()) {
if (when_ == 3 || (when_ == 4 && numberSolutionsFound_))
return false;
}
return shouldHeurRun_randomChoice();
}
inline bool compareBinaryVars(const PseudoReducedCost obj1,
const PseudoReducedCost obj2)
{
return obj1.pseudoRedCost > obj2.pseudoRedCost;
}
// inner part of dive
int CbcHeuristicDive::solution(double &solutionValue, int &numberNodes,
int &numberCuts, OsiRowCut **cuts,
CbcSubProblem **&nodes,
double *newSolution)
{
#if DIVE_PRINT
int nRoundInfeasible = 0;
int nRoundFeasible = 0;
printf("Entering %s - fix %.1f%% maxTime %.2f maxPasses %d - max iterations %d (at root %d) - when to do %d\n",
heuristicName_.c_str(), percentageToFix_ * 100.0, maxTime_, maxIterations_,
maxSimplexIterations_, maxSimplexIterationsAtRoot_, when());
#endif
int reasonToStop = 0;
double time1 = CoinCpuTime();
int numberSimplexIterations = 0;
int maxSimplexIterations = (model_->getNodeCount()) ? maxSimplexIterations_
: maxSimplexIterationsAtRoot_;
int maxIterationsInOneSolve = (maxSimplexIterations < 1000000) ? 1000 : 10000;
// but can't be exactly coin_int_max
maxSimplexIterations = CoinMin(maxSimplexIterations, COIN_INT_MAX >> 3);
bool fixGeneralIntegers = false;
int maxIterations = maxIterations_;
int saveSwitches = switches_;
if ((maxIterations_ % 10) != 0) {
int digit = maxIterations_ % 10;
maxIterations -= digit;
switches_ |= 65536;
if ((digit & 3) != 0)
fixGeneralIntegers = true;
}
OsiSolverInterface *solver = cloneBut(6); // was model_->solver()->clone();
#ifdef COIN_HAS_CLP
OsiClpSolverInterface *clpSolver
= dynamic_cast< OsiClpSolverInterface * >(solver);
if (clpSolver) {
ClpSimplex *clpSimplex = clpSolver->getModelPtr();
int oneSolveIts = clpSimplex->maximumIterations();
oneSolveIts = CoinMin(1000 + 2 * (clpSimplex->numberRows() + clpSimplex->numberColumns()), oneSolveIts);
if (maxSimplexIterations > 1000000)
maxIterationsInOneSolve = oneSolveIts;
clpSimplex->setMaximumIterations(oneSolveIts);
if (!nodes) {
// say give up easily
clpSimplex->setMoreSpecialOptions(clpSimplex->moreSpecialOptions() | 64);
} else {
// get ray
int specialOptions = clpSimplex->specialOptions();
specialOptions &= ~0x3100000;
specialOptions |= 32;
clpSimplex->setSpecialOptions(specialOptions);
clpSolver->setSpecialOptions(clpSolver->specialOptions() | 1048576);
if ((model_->moreSpecialOptions() & 16777216) != 0) {
// cutoff is constraint
clpSolver->setDblParam(OsiDualObjectiveLimit, COIN_DBL_MAX);
}
}
}
#endif
const double *lower = solver->getColLower();
const double *upper = solver->getColUpper();
const double *rowLower = solver->getRowLower();
const double *rowUpper = solver->getRowUpper();
const double *solution = solver->getColSolution();
const double *objective = solver->getObjCoefficients();
double integerTolerance = model_->getDblParam(CbcModel::CbcIntegerTolerance);
double primalTolerance;
solver->getDblParam(OsiPrimalTolerance, primalTolerance);
int numberRows = matrix_.getNumRows();
assert(numberRows <= solver->getNumRows());
int numberIntegers = model_->numberIntegers();
const int *integerVariable = model_->integerVariable();
double direction = solver->getObjSense(); // 1 for min, -1 for max
double newSolutionValue = direction * solver->getObjValue();
int returnCode = 0;
// Column copy
const double *element = matrix_.getElements();
const int *row = matrix_.getIndices();
const CoinBigIndex *columnStart = matrix_.getVectorStarts();
const int *columnLength = matrix_.getVectorLengths();
#ifdef DIVE_FIX_BINARY_VARIABLES
// Row copy
const double *elementByRow = matrixByRow_.getElements();
const int *column = matrixByRow_.getIndices();
const CoinBigIndex *rowStart = matrixByRow_.getVectorStarts();
const int *rowLength = matrixByRow_.getVectorLengths();
#endif
// Get solution array for heuristic solution
int numberColumns = solver->getNumCols();
memcpy(newSolution, solution, numberColumns * sizeof(double));
// vectors to store the latest variables fixed at their bounds
int *columnFixed = new int[numberIntegers + numberColumns];
int *back = columnFixed + numberIntegers;
double *originalBound = new double[numberIntegers + 2 * numberColumns];
double *lowerBefore = originalBound + numberIntegers;
double *upperBefore = lowerBefore + numberColumns;
memcpy(lowerBefore, lower, numberColumns * sizeof(double));
memcpy(upperBefore, upper, numberColumns * sizeof(double));
double *lastDjs = newSolution + numberColumns;
bool *fixedAtLowerBound = new bool[numberIntegers];
PseudoReducedCost *candidate = new PseudoReducedCost[numberIntegers];
double *random = new double[numberIntegers];
int maxNumberAtBoundToFix = static_cast< int >(floor(percentageToFix_ * numberIntegers));
assert(!maxNumberAtBoundToFix || !nodes);
// count how many fractional variables
int numberFractionalVariables = 0;
for (int i = 0; i < numberColumns; i++)
back[i] = -1;
for (int i = 0; i < numberIntegers; i++) {
random[i] = randomNumberGenerator_.randomDouble() + 0.3;
int iColumn = integerVariable[i];
if (!isHeuristicInteger(solver, iColumn))
continue;
back[iColumn] = i;
double value = newSolution[iColumn];
// clean
value = CoinMin(value, upperBefore[iColumn]);
value = CoinMax(value, lowerBefore[iColumn]);
newSolution[iColumn] = value;
if (fabs(floor(value + 0.5) - value) > integerTolerance) {
numberFractionalVariables++;
}
}
const double *reducedCost = NULL;
// See if not NLP
if (!model_->solverCharacteristics() || model_->solverCharacteristics()->reducedCostsAccurate())
reducedCost = solver->getReducedCost();
int iteration = 0;
int numberAtBoundFixed = 0;
int numberGeneralFixed = 0; // fixed as satisfied but not at bound
int numberReducedCostFixed = 0;
while (numberFractionalVariables) {
iteration++;
// initialize any data
initializeData();
// select a fractional variable to bound
int bestColumn = -1;
int bestRound; // -1 rounds down, +1 rounds up
bool canRound = selectVariableToBranch(solver, newSolution,
bestColumn, bestRound);
// if the solution is not trivially roundable, we don't try to round;
// if the solution is trivially roundable, we try to round. However,
// if the rounded solution is worse than the current incumbent,
// then we don't round and proceed normally. In this case, the
// bestColumn will be a trivially roundable variable
if (canRound) {
// check if by rounding all fractional variables
// we get a solution with an objective value
// better than the current best integer solution
double delta = 0.0;
for (int i = 0; i < numberIntegers; i++) {
int iColumn = integerVariable[i];
if (!isHeuristicInteger(solver, iColumn))
continue;
double value = newSolution[iColumn];
if (fabs(floor(value + 0.5) - value) > integerTolerance) {
assert(downLocks_[i] == 0 || upLocks_[i] == 0);
double obj = objective[iColumn];
if (downLocks_[i] == 0 && upLocks_[i] == 0) {
if (direction * obj >= 0.0)
delta += (floor(value) - value) * obj;
else
delta += (ceil(value) - value) * obj;
} else if (downLocks_[i] == 0)
delta += (floor(value) - value) * obj;
else
delta += (ceil(value) - value) * obj;
}
}
if (direction * (solver->getObjValue() + delta) < solutionValue) {
#if DIVE_PRINT
nRoundFeasible++;
#endif
if (!nodes || bestColumn < 0) {
// Round all the fractional variables
for (int i = 0; i < numberIntegers; i++) {
int iColumn = integerVariable[i];
if (!isHeuristicInteger(solver, iColumn))
continue;
double value = newSolution[iColumn];
if (fabs(floor(value + 0.5) - value) > integerTolerance) {
assert(downLocks_[i] == 0 || upLocks_[i] == 0);
if (downLocks_[i] == 0 && upLocks_[i] == 0) {
if (direction * objective[iColumn] >= 0.0)
newSolution[iColumn] = floor(value);
else
newSolution[iColumn] = ceil(value);
} else if (downLocks_[i] == 0)
newSolution[iColumn] = floor(value);
else
newSolution[iColumn] = ceil(value);
}
}
break;
} else {
// can't round if going to use in branching
int i;
for (i = 0; i < numberIntegers; i++) {
int iColumn = integerVariable[i];
if (!isHeuristicInteger(solver, iColumn))
continue;
double value = newSolution[bestColumn];
if (fabs(floor(value + 0.5) - value) > integerTolerance) {
if (iColumn == bestColumn) {
assert(downLocks_[i] == 0 || upLocks_[i] == 0);
double obj = objective[bestColumn];
if (downLocks_[i] == 0 && upLocks_[i] == 0) {
if (direction * obj >= 0.0)
bestRound = -1;
else
bestRound = 1;
} else if (downLocks_[i] == 0)
bestRound = -1;
else
bestRound = 1;
break;
}
}
}
}
}
#if DIVE_PRINT
else
nRoundInfeasible++;
#endif
}
// do reduced cost fixing
#if DIVE_PRINT > 1
numberReducedCostFixed = reducedCostFix(solver);
#else
reducedCostFix(solver);
#endif
numberAtBoundFixed = 0;
numberGeneralFixed = 0; // fixed as satisfied but not at bound
#ifdef DIVE_FIX_BINARY_VARIABLES
// fix binary variables based on pseudo reduced cost
if (binVarIndex_.size()) {
int cnt = 0;
int n = static_cast< int >(binVarIndex_.size());
for (int j = 0; j < n; j++) {
int iColumn1 = binVarIndex_[j];
double value = newSolution[iColumn1];
if (fabs(value) <= integerTolerance && lower[iColumn1] != upper[iColumn1]) {
double maxPseudoReducedCost = 0.0;
#ifdef DIVE_DEBUG
std::cout << "iColumn1 = " << iColumn1 << ", value = " << value << std::endl;
#endif
int iRow = vbRowIndex_[j];
double chosenValue = 0.0;
for (int k = rowStart[iRow]; k < rowStart[iRow] + rowLength[iRow]; k++) {
int iColumn2 = column[k];
#ifdef DIVE_DEBUG
std::cout << "iColumn2 = " << iColumn2 << std::endl;
#endif
if (iColumn1 != iColumn2) {
double pseudoReducedCost = fabs(reducedCost[iColumn2] * elementByRow[k]);
#ifdef DIVE_DEBUG
int k2;
for (k2 = rowStart[iRow]; k2 < rowStart[iRow] + rowLength[iRow]; k2++) {
if (column[k2] == iColumn1)
break;
}
std::cout << "reducedCost[" << iColumn2 << "] = "
<< reducedCost[iColumn2]
<< ", elementByRow[" << iColumn2 << "] = " << elementByRow[k]
<< ", elementByRow[" << iColumn1 << "] = " << elementByRow[k2]
<< ", pseudoRedCost = " << pseudoReducedCost
<< std::endl;
#endif
if (pseudoReducedCost > maxPseudoReducedCost)
maxPseudoReducedCost = pseudoReducedCost;
} else {
// save value
chosenValue = fabs(elementByRow[k]);
}
}
assert(chosenValue);
maxPseudoReducedCost /= chosenValue;
#ifdef DIVE_DEBUG
std::cout << ", maxPseudoRedCost = " << maxPseudoReducedCost << std::endl;
#endif
candidate[cnt].var = iColumn1;
candidate[cnt++].pseudoRedCost = maxPseudoReducedCost;
}
}
#ifdef DIVE_DEBUG
std::cout << "candidates for rounding = " << cnt << std::endl;
#endif
std::sort(candidate, candidate + cnt, compareBinaryVars);
for (int i = 0; i < cnt; i++) {
int iColumn = candidate[i].var;
if (numberAtBoundFixed < maxNumberAtBoundToFix) {
columnFixed[numberAtBoundFixed] = iColumn;
originalBound[numberAtBoundFixed] = upper[iColumn];
fixedAtLowerBound[numberAtBoundFixed] = true;
solver->setColUpper(iColumn, lower[iColumn]);
numberAtBoundFixed++;
if (numberAtBoundFixed == maxNumberAtBoundToFix)
break;
}
}
}
#endif
// fix other integer variables that are at their bounds
int cnt = 0;
#ifdef GAP
double gap = 1.0e30;
#endif
int fixPriority = COIN_INT_MAX;
if (reducedCost && true) {
#ifndef JJF_ONE
cnt = fixOtherVariables(solver, solution, candidate, random);
if (priority_) {
for (int i = 0; i < cnt; i++) {
int iColumn = candidate[i].var;
if (upper[iColumn] > lower[iColumn]) {
int j = back[iColumn];
fixPriority = CoinMin(fixPriority, static_cast< int >(priority_[j].priority));
}
}
}
#else
#ifdef GAP
double cutoff = model_->getCutoff();
if (cutoff < 1.0e20 && false) {
double direction = solver->getObjSense();
gap = cutoff - solver->getObjValue() * direction;
gap *= 0.1; // Fix more if plausible
double tolerance;
solver->getDblParam(OsiDualTolerance, tolerance);
if (gap <= 0.0)
gap = tolerance;
gap += 100.0 * tolerance;
}
int nOverGap = 0;
#endif
int numberFree = 0;
int numberFixed = 0;
for (int i = 0; i < numberIntegers; i++) {
int iColumn = integerVariable[i];
if (!isHeuristicInteger(solver, iColumn))
continue;
if (upper[iColumn] > lower[iColumn]) {
numberFree++;
if (priority_) {
fixPriority = CoinMin(fixPriority, static_cast< int >(priority_[i].priority));
}
double value = newSolution[iColumn];
if (fabs(floor(value + 0.5) - value) <= integerTolerance) {
candidate[cnt].var = iColumn;
candidate[cnt++].pseudoRedCost = fabs(reducedCost[iColumn] * random[i]);
#ifdef GAP
if (fabs(reducedCost[iColumn]) > gap)
nOverGap++;
#endif
}
} else {
numberFixed++;
}
}
#ifdef GAP
int nLeft = maxNumberAtBoundToFix - numberAtBoundFixed;
#ifdef CLP_INVESTIGATE4
printf("cutoff %g obj %g nover %d - %d free, %d fixed\n",
cutoff, solver->getObjValue(), nOverGap, numberFree, numberFixed);
#endif
if (nOverGap > nLeft && true) {
nOverGap = CoinMin(nOverGap, nLeft + maxNumberAtBoundToFix / 2);
maxNumberAtBoundToFix += nOverGap - nLeft;
}
#else
#ifdef CLP_INVESTIGATE4
printf("cutoff %g obj %g - %d free, %d fixed\n",
model_->getCutoff(), solver->getObjValue(), numberFree, numberFixed);
#endif
#endif
#endif
} else {
for (int i = 0; i < numberIntegers; i++) {
int iColumn = integerVariable[i];
if (!isHeuristicInteger(solver, iColumn))
continue;
if (upper[iColumn] > lower[iColumn]) {
if (priority_) {
fixPriority = CoinMin(fixPriority, static_cast< int >(priority_[i].priority));
}
double value = newSolution[iColumn];
if (fabs(floor(value + 0.5) - value) <= integerTolerance) {
candidate[cnt].var = iColumn;
candidate[cnt++].pseudoRedCost = numberIntegers - i;
}
}
}
}
std::sort(candidate, candidate + cnt, compareBinaryVars);
// If getting on fix all
if (iteration * 3 > maxIterations_ * 2)
fixPriority = COIN_INT_MAX;
for (int i = 0; i < cnt; i++) {
int iColumn = candidate[i].var;
if (upper[iColumn] > lower[iColumn]) {
double value = newSolution[iColumn];
if (fabs(floor(value + 0.5) - value) <= integerTolerance && numberAtBoundFixed < maxNumberAtBoundToFix) {
// fix the variable at one of its bounds
if (fabs(lower[iColumn] - value) <= integerTolerance || fixGeneralIntegers) {
if (priority_) {
int j = back[iColumn];
if (priority_[j].priority > fixPriority)
continue; // skip - only fix ones at high priority
int thisRound = static_cast< int >(priority_[j].direction);
if ((thisRound & 1) != 0) {
// for now force way
if ((thisRound & 2) != 0)
continue;
}
}
if (fabs(lower[iColumn] - value) <= integerTolerance) {
columnFixed[numberAtBoundFixed] = iColumn;
originalBound[numberAtBoundFixed] = upper[iColumn];
fixedAtLowerBound[numberAtBoundFixed] = true;
solver->setColUpper(iColumn, lower[iColumn]);
} else {
// fix to interior value
numberGeneralFixed++;
double fixValue = floor(value + 0.5);
columnFixed[numberAtBoundFixed] = iColumn;
originalBound[numberAtBoundFixed] = upper[iColumn];
fixedAtLowerBound[numberAtBoundFixed] = true;
solver->setColUpper(iColumn, fixValue);
numberAtBoundFixed++;
columnFixed[numberAtBoundFixed] = iColumn;
originalBound[numberAtBoundFixed] = lower[iColumn];
fixedAtLowerBound[numberAtBoundFixed] = false;
solver->setColLower(iColumn, fixValue);
}
//if (priority_)
//printf("fixing %d (priority %d) to lower bound of %g\n",
// iColumn,priority_[back[iColumn]].priority,lower[iColumn]);
numberAtBoundFixed++;
} else if (fabs(upper[iColumn] - value) <= integerTolerance) {
if (priority_) {
int j = back[iColumn];
if (priority_[j].priority > fixPriority)
continue; // skip - only fix ones at high priority
int thisRound = static_cast< int >(priority_[j].direction);
if ((thisRound & 1) != 0) {
// for now force way
if ((thisRound & 2) == 0)
continue;
}
}
columnFixed[numberAtBoundFixed] = iColumn;
originalBound[numberAtBoundFixed] = lower[iColumn];
fixedAtLowerBound[numberAtBoundFixed] = false;
solver->setColLower(iColumn, upper[iColumn]);
//if (priority_)
//printf("fixing %d (priority %d) to upper bound of %g\n",
// iColumn,priority_[back[iColumn]].priority,upper[iColumn]);
numberAtBoundFixed++;
}
if (numberAtBoundFixed == maxNumberAtBoundToFix)
break;
}
}
}
double originalBoundBestColumn;
double bestColumnValue;
int whichWay;
if (bestColumn >= 0) {
bestColumnValue = newSolution[bestColumn];
if (bestRound < 0) {
originalBoundBestColumn = upper[bestColumn];
solver->setColUpper(bestColumn, floor(bestColumnValue));
#ifdef DIVE_DEBUG
if (priority_) {
printf("setting %d (priority %d) upper bound to %g (%g)\n",
bestColumn, priority_[back[bestColumn]].priority, floor(bestColumnValue), bestColumnValue);
}
#endif
whichWay = 0;
} else {
originalBoundBestColumn = lower[bestColumn];
solver->setColLower(bestColumn, ceil(bestColumnValue));
#ifdef DIVE_DEBUG
if (priority_) {
printf("setting %d (priority %d) lower bound to %g (%g)\n",
bestColumn, priority_[back[bestColumn]].priority, ceil(bestColumnValue), bestColumnValue);
}
#endif
whichWay = 1;
}
} else {
break;
}
int originalBestRound = bestRound;
int saveModelOptions = model_->specialOptions();
while (1) {
model_->setSpecialOptions(saveModelOptions | 2048);
solver->resolve();
numberSimplexIterations += solver->getIterationCount();
#if DIVE_PRINT > 1
int numberFractionalVariables = 0;
double sumFractionalVariables = 0.0;
int numberFixed = 0;
for (int i = 0; i < numberIntegers; i++) {
int iColumn = integerVariable[i];
if (!isHeuristicInteger(solver, iColumn))
continue;
double value = newSolution[iColumn];
double away = fabs(floor(value + 0.5) - value);
if (away > integerTolerance) {
numberFractionalVariables++;
sumFractionalVariables += away;
}
if (upper[iColumn] == lower[iColumn])
numberFixed++;
}
printf("pass %d obj %g %s its %d total %d fixed %d +(%d,%d)", iteration,
solver->getObjValue(), solver->isProvenOptimal() ? "opt" : "infeasible",
solver->getIterationCount(),
solver->getIterationCount() + numberSimplexIterations,
numberFixed,
numberReducedCostFixed,
numberAtBoundFixed - numberGeneralFixed);
if (solver->isProvenOptimal()) {
printf(" - %d at bound, %d away (sum %g)\n",
numberIntegers - numberFixed - numberFractionalVariables,
numberFractionalVariables, sumFractionalVariables);
} else {
printf("\n");
if (fixGeneralIntegers) {
int digit = maxIterations_ % 10;
if (digit == 1) {
// switch off for now
switches_ = saveSwitches;
fixGeneralIntegers = false;
} else if (digit == 2) {
// switch off always
switches_ = saveSwitches;
fixGeneralIntegers = false;
maxIterations_ -= digit;
}
}
}
#else
if (!solver->isProvenOptimal()) {
if (fixGeneralIntegers) {
int digit = maxIterations_ % 10;
if (digit == 1) {
// switch off for now
switches_ = saveSwitches;
fixGeneralIntegers = false;
} else if (digit == 2) {
// switch off always
switches_ = saveSwitches;
fixGeneralIntegers = false;
maxIterations_ -= digit;
}
}
}
#endif
model_->setSpecialOptions(saveModelOptions);
if (!solver->isAbandoned() && !solver->isIterationLimitReached()) {
//numberSimplexIterations += solver->getIterationCount();
} else {
numberSimplexIterations = maxSimplexIterations + 1;
reasonToStop += 100;
break;
}
if (!solver->isProvenOptimal()) {
if (nodes) {
if (solver->isProvenPrimalInfeasible()) {
if (maxSimplexIterationsAtRoot_ != COIN_INT_MAX) {
// stop now
printf("stopping on first infeasibility\n");
break;
} else if (cuts) {
// can do conflict cut
printf("could do intermediate conflict cut\n");
bool localCut;
OsiRowCut *cut = model_->conflictCut(solver, localCut);
if (cut) {
if (!localCut) {
model_->makePartialCut(cut, solver);
cuts[numberCuts++] = cut;
} else {
delete cut;
}
}
}
} else {
reasonToStop += 10;
break;
}
}
if (numberAtBoundFixed > 0) {
// Remove the bound fix for variables that were at bounds
for (int i = 0; i < numberAtBoundFixed; i++) {
int iColFixed = columnFixed[i];
if (fixedAtLowerBound[i])
solver->setColUpper(iColFixed, originalBound[i]);
else
solver->setColLower(iColFixed, originalBound[i]);
}
numberAtBoundFixed = 0;
} else if (bestRound == originalBestRound) {
bestRound *= (-1);
whichWay |= 2;
if (bestRound < 0) {
solver->setColLower(bestColumn, originalBoundBestColumn);
solver->setColUpper(bestColumn, floor(bestColumnValue));
} else {
solver->setColLower(bestColumn, ceil(bestColumnValue));
solver->setColUpper(bestColumn, originalBoundBestColumn);
}
} else
break;
} else
break;
}
if (!solver->isProvenOptimal() || direction * solver->getObjValue() >= solutionValue) {
reasonToStop += 1;
} else if (iteration > maxIterations_) {
reasonToStop += 2;
} else if (CoinCpuTime() - time1 > maxTime_) {
reasonToStop += 3;
} else if (numberSimplexIterations > maxSimplexIterations) {
reasonToStop += 4;
// also switch off
#if DIVE_PRINT
printf("switching off diving as too many iterations %d, %d allowed\n",
numberSimplexIterations, maxSimplexIterations);
#endif
when_ = 0;
} else if (solver->getIterationCount() > maxIterationsInOneSolve && iteration > 3 && !nodes) {
reasonToStop += 5;
// also switch off
#if DIVE_PRINT
printf("switching off diving one iteration took %d iterations (total %d)\n",
solver->getIterationCount(), numberSimplexIterations);
#endif
when_ = 0;
}
memcpy(newSolution, solution, numberColumns * sizeof(double));
numberFractionalVariables = 0;
double sumFractionalVariables = 0.0;
for (int i = 0; i < numberIntegers; i++) {
int iColumn = integerVariable[i];
if (!isHeuristicInteger(solver, iColumn))
continue;
double value = newSolution[iColumn];
double away = fabs(floor(value + 0.5) - value);
if (away > integerTolerance) {
numberFractionalVariables++;
sumFractionalVariables += away;
}
}
if (nodes) {
// save information
//branchValues[numberNodes]=bestColumnValue;
//statuses[numberNodes]=whichWay+(bestColumn<<2);
//bases[numberNodes]=solver->getWarmStart();
ClpSimplex *simplex = clpSolver->getModelPtr();
CbcSubProblem *sub = new CbcSubProblem(clpSolver, lowerBefore, upperBefore,
simplex->statusArray(), numberNodes);
nodes[numberNodes] = sub;
// other stuff
sub->branchValue_ = bestColumnValue;
sub->problemStatus_ = whichWay;
sub->branchVariable_ = bestColumn;
sub->objectiveValue_ = simplex->objectiveValue();
sub->sumInfeasibilities_ = sumFractionalVariables;
sub->numberInfeasibilities_ = numberFractionalVariables;
printf("DiveNode %d column %d way %d bvalue %g obj %g\n",
numberNodes, sub->branchVariable_, sub->problemStatus_,
sub->branchValue_, sub->objectiveValue_);
numberNodes++;
if (solver->isProvenOptimal()) {
memcpy(lastDjs, solver->getReducedCost(), numberColumns * sizeof(double));
memcpy(lowerBefore, lower, numberColumns * sizeof(double));
memcpy(upperBefore, upper, numberColumns * sizeof(double));
}
}
if (!numberFractionalVariables || reasonToStop)
break;
}
if (nodes) {
printf("Exiting dive for reason %d\n", reasonToStop);
if (reasonToStop > 1) {
printf("problems in diving\n");
int whichWay = nodes[numberNodes - 1]->problemStatus_;
CbcSubProblem *sub;
if ((whichWay & 2) == 0) {
// leave both ways
sub = new CbcSubProblem(*nodes[numberNodes - 1]);
nodes[numberNodes++] = sub;
} else {
sub = nodes[numberNodes - 1];
}
if ((whichWay & 1) == 0)
sub->problemStatus_ = whichWay | 1;
else
sub->problemStatus_ = whichWay & ~1;
}
if (!numberNodes) {
// was good at start! - create fake
clpSolver->resolve();
numberSimplexIterations += clpSolver->getIterationCount();
ClpSimplex *simplex = clpSolver->getModelPtr();
CbcSubProblem *sub = new CbcSubProblem(clpSolver, lowerBefore, upperBefore,
simplex->statusArray(), numberNodes);
nodes[numberNodes] = sub;
// other stuff
sub->branchValue_ = 0.0;
sub->problemStatus_ = 0;
sub->branchVariable_ = -1;
sub->objectiveValue_ = simplex->objectiveValue();
sub->sumInfeasibilities_ = 0.0;
sub->numberInfeasibilities_ = 0;
printf("DiveNode %d column %d way %d bvalue %g obj %g\n",
numberNodes, sub->branchVariable_, sub->problemStatus_,
sub->branchValue_, sub->objectiveValue_);
numberNodes++;
assert(solver->isProvenOptimal());
}
nodes[numberNodes - 1]->problemStatus_ |= 256 * reasonToStop;
// use djs as well
if (solver->isProvenPrimalInfeasible() && cuts) {
// can do conflict cut and re-order
printf("could do final conflict cut\n");
bool localCut;
OsiRowCut *cut = model_->conflictCut(solver, localCut);
if (cut) {
printf("cut - need to use conflict and previous djs\n");
if (!localCut) {
model_->makePartialCut(cut, solver);
cuts[numberCuts++] = cut;
} else {
delete cut;
}
} else {
printf("bad conflict - just use previous djs\n");
}
}
}
// re-compute new solution value
double objOffset = 0.0;
solver->getDblParam(OsiObjOffset, objOffset);
newSolutionValue = -objOffset;
for (int i = 0; i < numberColumns; i++)
newSolutionValue += objective[i] * newSolution[i];
newSolutionValue *= direction;
//printf("new solution value %g %g\n",newSolutionValue,solutionValue);
if (newSolutionValue < solutionValue && !reasonToStop) {
double *rowActivity = new double[numberRows];
memset(rowActivity, 0, numberRows * sizeof(double));
// paranoid check
memset(rowActivity, 0, numberRows * sizeof(double));
for (int i = 0; i < numberColumns; i++) {
CoinBigIndex j;
double value = newSolution[i];
if (value) {
for (j = columnStart[i];
j < columnStart[i] + columnLength[i]; j++) {
int iRow = row[j];
rowActivity[iRow] += value * element[j];
}
}
}
// check was approximately feasible
bool feasible = true;
for (int i = 0; i < numberRows; i++) {
if (rowActivity[i] < rowLower[i]) {
if (rowActivity[i] < rowLower[i] - 1000.0 * primalTolerance)
feasible = false;
} else if (rowActivity[i] > rowUpper[i]) {
if (rowActivity[i] > rowUpper[i] + 1000.0 * primalTolerance)
feasible = false;
}
}
for (int i = 0; i < numberIntegers; i++) {
int iColumn = integerVariable[i];
if (!isHeuristicInteger(solver, iColumn))
continue;
double value = newSolution[iColumn];
if (fabs(floor(value + 0.5) - value) > integerTolerance) {
feasible = false;
break;
}
}
if (feasible) {
// new solution
solutionValue = newSolutionValue;
//printf("** Solution of %g found by CbcHeuristicDive\n",newSolutionValue);
//if (cuts)
//clpSolver->getModelPtr()->writeMps("good8.mps", 2);
returnCode = 1;
} else {
// Can easily happen
//printf("Debug CbcHeuristicDive giving bad solution\n");
}
delete[] rowActivity;
}
#if DIVE_PRINT
std::cout << heuristicName_
<< " nRoundInfeasible = " << nRoundInfeasible
<< ", nRoundFeasible = " << nRoundFeasible
<< ", returnCode = " << returnCode
<< ", reasonToStop = " << reasonToStop
<< ", simplexIts = " << numberSimplexIterations
<< ", iterations = " << iteration << std::endl;
#endif
delete[] columnFixed;
delete[] originalBound;
delete[] fixedAtLowerBound;
delete[] candidate;
delete[] random;
delete[] downArray_;
downArray_ = NULL;
delete[] upArray_;
upArray_ = NULL;
delete solver;
switches_ = saveSwitches;
return returnCode;
}
// See if diving will give better solution
// Sets value of solution
// Returns 1 if solution, 0 if not
int CbcHeuristicDive::solution(double &solutionValue,
double *betterSolution)
{
int nodeCount = model_->getNodeCount();
if (feasibilityPumpOptions_ > 0 && (nodeCount % feasibilityPumpOptions_) != 0)
return 0;
++numCouldRun_;
// test if the heuristic can run
if (!canHeuristicRun())
return 0;
#ifdef JJF_ZERO
// See if to do
if (!when() || (when() % 10 == 1 && model_->phase() != 1) || (when() % 10 == 2 && (model_->phase() != 2 && model_->phase() != 3)))
return 0; // switched off
#endif
#ifdef HEURISTIC_INFORM
printf("Entering heuristic %s - nRuns %d numCould %d when %d\n",
heuristicName(), numRuns_, numCouldRun_, when_);
#endif
#ifdef DIVE_DEBUG
std::cout << "solutionValue = " << solutionValue << std::endl;
#endif
// Get solution array for heuristic solution
int numberColumns = model_->solver()->getNumCols();
double *newSolution = CoinCopyOfArray(model_->solver()->getColSolution(),
numberColumns);
int numberCuts = 0;
int numberNodes = -1;
CbcSubProblem **nodes = NULL;
int returnCode = solution(solutionValue, numberNodes, numberCuts,
NULL, nodes,
newSolution);
if (returnCode == 1)
memcpy(betterSolution, newSolution, numberColumns * sizeof(double));
delete[] newSolution;
return returnCode;
}
/* returns 0 if no solution, 1 if valid solution
with better objective value than one passed in
also returns list of nodes
This does Fractional Diving
*/
int CbcHeuristicDive::fathom(CbcModel *model, int &numberNodes,
CbcSubProblem **&nodes)
{
double solutionValue = model->getCutoff();
numberNodes = 0;
// Get solution array for heuristic solution
int numberColumns = model_->solver()->getNumCols();
double *newSolution = new double[4 * numberColumns];
double *lastDjs = newSolution + numberColumns;
double *originalLower = lastDjs + numberColumns;
double *originalUpper = originalLower + numberColumns;
memcpy(originalLower, model_->solver()->getColLower(),
numberColumns * sizeof(double));
memcpy(originalUpper, model_->solver()->getColUpper(),
numberColumns * sizeof(double));
int numberCuts = 0;
OsiRowCut **cuts = NULL; //new OsiRowCut * [maxIterations_];
nodes = new CbcSubProblem *[maxIterations_ + 2];
int returnCode = solution(solutionValue, numberNodes, numberCuts,
cuts, nodes,
newSolution);
if (returnCode == 1) {
// copy to best solution ? or put in solver
printf("Solution from heuristic fathom\n");
}
int numberFeasibleNodes = numberNodes;
if (returnCode != 1)
numberFeasibleNodes--;
if (numberFeasibleNodes > 0) {
CoinWarmStartBasis *basis = nodes[numberFeasibleNodes - 1]->status_;
//double * sort = new double [numberFeasibleNodes];
//int * whichNode = new int [numberFeasibleNodes];
//int numberNodesNew=0;
// use djs on previous unless feasible
for (int iNode = 0; iNode < numberFeasibleNodes; iNode++) {
CbcSubProblem *sub = nodes[iNode];
double branchValue = sub->branchValue_;
int iStatus = sub->problemStatus_;
int iColumn = sub->branchVariable_;
bool secondBranch = (iStatus & 2) != 0;
bool branchUp;
if (!secondBranch)
branchUp = (iStatus & 1) != 0;
else
branchUp = (iStatus & 1) == 0;
double djValue = lastDjs[iColumn];
sub->djValue_ = fabs(djValue);
if (!branchUp && floor(branchValue) == originalLower[iColumn]
&& basis->getStructStatus(iColumn) == CoinWarmStartBasis::atLowerBound) {
if (djValue > 0.0) {
// naturally goes to LB
printf("ignoring branch down on %d (node %d) from value of %g - branch was %s - dj %g\n",
iColumn, iNode, branchValue, secondBranch ? "second" : "first",
djValue);
sub->problemStatus_ |= 4;
//} else {
// put on list
//sort[numberNodesNew]=djValue;
//whichNode[numberNodesNew++]=iNode;
}
} else if (branchUp && ceil(branchValue) == originalUpper[iColumn]
&& basis->getStructStatus(iColumn) == CoinWarmStartBasis::atUpperBound) {
if (djValue < 0.0) {
// naturally goes to UB
printf("ignoring branch up on %d (node %d) from value of %g - branch was %s - dj %g\n",
iColumn, iNode, branchValue, secondBranch ? "second" : "first",
djValue);
sub->problemStatus_ |= 4;
//} else {
// put on list
//sort[numberNodesNew]=-djValue;
//whichNode[numberNodesNew++]=iNode;
}
}
}
// use conflict to order nodes
for (int iCut = 0; iCut < numberCuts; iCut++) {
}
//CoinSort_2(sort,sort+numberNodesNew,whichNode);
// create nodes
// last node will have one way already done
}
for (int iCut = 0; iCut < numberCuts; iCut++) {
delete cuts[iCut];
}
delete[] cuts;
delete[] newSolution;
return returnCode;
}
// Validate model i.e. sets when_ to 0 if necessary (may be NULL)
void CbcHeuristicDive::validate()
{
if (model_ && (when() % 100) < 10) {
if (model_->numberIntegers() != model_->numberObjects() && (model_->numberObjects() || (model_->specialOptions() & 1024) == 0)) {
int numberOdd = 0;
for (int i = 0; i < model_->numberObjects(); i++) {
if (!model_->object(i)->canDoHeuristics())
numberOdd++;
}
if (numberOdd)
setWhen(0);
}
}
int numberIntegers = model_->numberIntegers();
const int *integerVariable = model_->integerVariable();
delete[] downLocks_;
delete[] upLocks_;
downLocks_ = new unsigned short[numberIntegers];
upLocks_ = new unsigned short[numberIntegers];
// Column copy
const double *element = matrix_.getElements();
const int *row = matrix_.getIndices();
const CoinBigIndex *columnStart = matrix_.getVectorStarts();
OsiSolverInterface *solver = model_->solver();
const int *columnLength = matrix_.getVectorLengths();
const double *rowLower = solver->getRowLower();
const double *rowUpper = solver->getRowUpper();
for (int i = 0; i < numberIntegers; i++) {
int iColumn = integerVariable[i];
if (!isHeuristicInteger(solver, iColumn))
continue;
int down = 0;
int up = 0;
if (columnLength[iColumn] > 65535) {
setWhen(0);
break; // unlikely to work
}
for (CoinBigIndex j = columnStart[iColumn];
j < columnStart[iColumn] + columnLength[iColumn]; j++) {
int iRow = row[j];
if (rowLower[iRow] > -1.0e20 && rowUpper[iRow] < 1.0e20) {
up++;
down++;
} else if (element[j] > 0.0) {
if (rowUpper[iRow] < 1.0e20)
up++;
else
down++;
} else {
if (rowLower[iRow] > -1.0e20)
up++;
else
down++;
}
}
downLocks_[i] = static_cast< unsigned short >(down);
upLocks_[i] = static_cast< unsigned short >(up);
}
#ifdef DIVE_FIX_BINARY_VARIABLES
selectBinaryVariables();
#endif
}
// Select candidate binary variables for fixing
void CbcHeuristicDive::selectBinaryVariables()
{
// Row copy
const double *elementByRow = matrixByRow_.getElements();
const int *column = matrixByRow_.getIndices();
const CoinBigIndex *rowStart = matrixByRow_.getVectorStarts();
const int *rowLength = matrixByRow_.getVectorLengths();
const int numberRows = matrixByRow_.getNumRows();
const int numberCols = matrixByRow_.getNumCols();
OsiSolverInterface *solver = model_->solver();
const double *lower = solver->getColLower();
const double *upper = solver->getColUpper();
const double *rowLower = solver->getRowLower();
const double *rowUpper = solver->getRowUpper();
// const char * integerType = model_->integerType();
// const int numberIntegers = model_->numberIntegers();
// const int * integerVariable = model_->integerVariable();
const double *objective = solver->getObjCoefficients();
// vector to store the row number of variable bound rows
int *rowIndexes = new int[numberCols];
memset(rowIndexes, -1, numberCols * sizeof(int));
for (int i = 0; i < numberRows; i++) {
int positiveBinary = -1;
int negativeBinary = -1;
int nPositiveOther = 0;
int nNegativeOther = 0;
for (CoinBigIndex k = rowStart[i]; k < rowStart[i] + rowLength[i]; k++) {
int iColumn = column[k];
if (isHeuristicInteger(solver, iColumn) && lower[iColumn] == 0.0 && upper[iColumn] == 1.0 && objective[iColumn] == 0.0 && elementByRow[k] > 0.0 && positiveBinary < 0)
positiveBinary = iColumn;
else if (isHeuristicInteger(solver, iColumn) && lower[iColumn] == 0.0 && upper[iColumn] == 1.0 && objective[iColumn] == 0.0 && elementByRow[k] < 0.0 && negativeBinary < 0)
negativeBinary = iColumn;
else if ((elementByRow[k] > 0.0 && lower[iColumn] >= 0.0) || (elementByRow[k] < 0.0 && upper[iColumn] <= 0.0))
nPositiveOther++;
else if ((elementByRow[k] > 0.0 && lower[iColumn] <= 0.0) || (elementByRow[k] < 0.0 && upper[iColumn] >= 0.0))
nNegativeOther++;
if (nPositiveOther > 0 && nNegativeOther > 0)
break;
}
int binVar = -1;
if (positiveBinary >= 0 && (negativeBinary >= 0 || nNegativeOther > 0) && nPositiveOther == 0 && rowLower[i] == 0.0 && rowUpper[i] > 0.0)
binVar = positiveBinary;
else if (negativeBinary >= 0 && (positiveBinary >= 0 || nPositiveOther > 0) && nNegativeOther == 0 && rowLower[i] < 0.0 && rowUpper[i] == 0.0)
binVar = negativeBinary;
if (binVar >= 0) {
if (rowIndexes[binVar] == -1)
rowIndexes[binVar] = i;
else if (rowIndexes[binVar] >= 0)
rowIndexes[binVar] = -2;
}
}
for (int j = 0; j < numberCols; j++) {
if (rowIndexes[j] >= 0) {
binVarIndex_.push_back(j);
vbRowIndex_.push_back(rowIndexes[j]);
}
}
#ifdef DIVE_DEBUG
std::cout << "number vub Binary = " << binVarIndex_.size() << std::endl;
#endif
delete[] rowIndexes;
}
/*
Perform reduced cost fixing on integer variables.
The variables in question are already nonbasic at bound. We're just nailing
down the current situation.
*/
int CbcHeuristicDive::reducedCostFix(OsiSolverInterface *solver)
{
//return 0; // temp
#ifndef JJF_ONE
if (!model_->solverCharacteristics()->reducedCostsAccurate())
return 0; //NLP
#endif
double cutoff = model_->getCutoff();
if (cutoff > 1.0e20)
return 0;
#ifdef DIVE_DEBUG
std::cout << "cutoff = " << cutoff << std::endl;
#endif
double direction = solver->getObjSense();
double gap = cutoff - solver->getObjValue() * direction;
gap *= 0.5; // Fix more
double tolerance;
solver->getDblParam(OsiDualTolerance, tolerance);
if (gap <= 0.0)
gap = tolerance; //return 0;
gap += 100.0 * tolerance;
double integerTolerance = model_->getDblParam(CbcModel::CbcIntegerTolerance);
const double *lower = solver->getColLower();
const double *upper = solver->getColUpper();
const double *solution = solver->getColSolution();
const double *reducedCost = solver->getReducedCost();
int numberIntegers = model_->numberIntegers();
const int *integerVariable = model_->integerVariable();
int numberFixed = 0;
#ifdef COIN_HAS_CLP
OsiClpSolverInterface *clpSolver
= dynamic_cast< OsiClpSolverInterface * >(solver);
ClpSimplex *clpSimplex = NULL;
if (clpSolver)
clpSimplex = clpSolver->getModelPtr();
#endif
for (int i = 0; i < numberIntegers; i++) {
int iColumn = integerVariable[i];
if (!isHeuristicInteger(solver, iColumn))
continue;
double djValue = direction * reducedCost[iColumn];
if (upper[iColumn] - lower[iColumn] > integerTolerance) {
if (solution[iColumn] < lower[iColumn] + integerTolerance && djValue > gap) {
#ifdef COIN_HAS_CLP
// may just have been fixed before
if (clpSimplex) {
if (clpSimplex->getColumnStatus(iColumn) == ClpSimplex::basic) {
#ifdef COIN_DEVELOP
printf("DJfix %d has status of %d, dj of %g gap %g, bounds %g %g\n",
iColumn, clpSimplex->getColumnStatus(iColumn),
djValue, gap, lower[iColumn], upper[iColumn]);
#endif
} else {
assert(clpSimplex->getColumnStatus(iColumn) == ClpSimplex::atLowerBound || clpSimplex->getColumnStatus(iColumn) == ClpSimplex::isFixed);
}
}
#endif
solver->setColUpper(iColumn, lower[iColumn]);
numberFixed++;
} else if (solution[iColumn] > upper[iColumn] - integerTolerance && -djValue > gap) {
#ifdef COIN_HAS_CLP
// may just have been fixed before
if (clpSimplex) {
if (clpSimplex->getColumnStatus(iColumn) == ClpSimplex::basic) {
#ifdef COIN_DEVELOP
printf("DJfix %d has status of %d, dj of %g gap %g, bounds %g %g\n",
iColumn, clpSimplex->getColumnStatus(iColumn),
djValue, gap, lower[iColumn], upper[iColumn]);
#endif
} else {
assert(clpSimplex->getColumnStatus(iColumn) == ClpSimplex::atUpperBound || clpSimplex->getColumnStatus(iColumn) == ClpSimplex::isFixed);
}
}
#endif
solver->setColLower(iColumn, upper[iColumn]);
numberFixed++;
}
}
}
return numberFixed;
}
// Fix other variables at bounds
int CbcHeuristicDive::fixOtherVariables(OsiSolverInterface *solver,
const double *solution,
PseudoReducedCost *candidate,
const double *random)
{
const double *lower = solver->getColLower();
const double *upper = solver->getColUpper();
double integerTolerance = model_->getDblParam(CbcModel::CbcIntegerTolerance);
double primalTolerance;
solver->getDblParam(OsiPrimalTolerance, primalTolerance);
int numberIntegers = model_->numberIntegers();
const int *integerVariable = model_->integerVariable();
const double *reducedCost = solver->getReducedCost();
// fix other integer variables that are at their bounds
int cnt = 0;
#ifdef GAP
double direction = solver->getObjSense(); // 1 for min, -1 for max
double gap = 1.0e30;
#endif
#ifdef GAP
double cutoff = model_->getCutoff();
if (cutoff < 1.0e20 && false) {
double direction = solver->getObjSense();
gap = cutoff - solver->getObjValue() * direction;
gap *= 0.1; // Fix more if plausible
double tolerance;
solver->getDblParam(OsiDualTolerance, tolerance);
if (gap <= 0.0)
gap = tolerance;
gap += 100.0 * tolerance;
}
int nOverGap = 0;
#endif
int numberFree = 0;
int numberFixedAlready = 0;
for (int i = 0; i < numberIntegers; i++) {
int iColumn = integerVariable[i];
if (!isHeuristicInteger(solver, iColumn))
continue;
if (upper[iColumn] > lower[iColumn]) {
numberFree++;
double value = solution[iColumn];
if (fabs(floor(value + 0.5) - value) <= integerTolerance) {
candidate[cnt].var = iColumn;
candidate[cnt++].pseudoRedCost = fabs(reducedCost[iColumn] * random[i]);
#ifdef GAP
if (fabs(reducedCost[iColumn]) > gap)
nOverGap++;
#endif
}
} else {
numberFixedAlready++;
}
}
#ifdef GAP
int nLeft = maxNumberToFix - numberFixedAlready;
#ifdef CLP_INVESTIGATE4
printf("cutoff %g obj %g nover %d - %d free, %d fixed\n",
cutoff, solver->getObjValue(), nOverGap, numberFree,
numberFixedAlready);
#endif
if (nOverGap > nLeft && true) {
nOverGap = CoinMin(nOverGap, nLeft + maxNumberToFix / 2);
maxNumberToFix += nOverGap - nLeft;
}
#else
#ifdef CLP_INVESTIGATE4
printf("cutoff %g obj %g - %d free, %d fixed\n",
model_->getCutoff(), solver->getObjValue(), numberFree,
numberFixedAlready);
#endif
#endif
return cnt;
}
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
*/
| 35.555982 | 177 | 0.621946 | [
"object",
"vector",
"model"
] |
57a8bdb024c37837df92a249d74ee5026f817988 | 25,257 | cpp | C++ | src/ros_live_vio.cpp | chengguizi/basalt-mirror | d46d5d777cea5194c53af48c9ec547371329c8ab | [
"BSD-3-Clause"
] | null | null | null | src/ros_live_vio.cpp | chengguizi/basalt-mirror | d46d5d777cea5194c53af48c9ec547371329c8ab | [
"BSD-3-Clause"
] | null | null | null | src/ros_live_vio.cpp | chengguizi/basalt-mirror | d46d5d777cea5194c53af48c9ec547371329c8ab | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <chrono>
#include <condition_variable>
#include <iostream>
#include <memory>
#include <thread>
#include <stdlib.h>
#include <sophus/se3.hpp>
#include <tbb/concurrent_unordered_map.h>
#include <tbb/tbb.h>
#include <pangolin/display/image_view.h>
#include <pangolin/gl/gldraw.h>
#include <pangolin/image/image.h>
#include <pangolin/image/image_io.h>
#include <pangolin/image/typed_image.h>
#include <pangolin/pangolin.h>
#include <CLI/CLI.hpp>
#include <basalt/io/dataset_io.h>
#include <basalt/io/marg_data_io.h>
#include <basalt/spline/se3_spline.h>
#include <basalt/vi_estimator/vio_estimator.h>
#include <basalt/calibration/calibration.hpp>
#include <basalt/serialization/headers_serialization.h>
#include <basalt/utils/vis_utils.h>
#include <ros/ros.h>
#include <basalt/imu/imu_types.h>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/PoseWithCovarianceStamped.h>
#include <nav_msgs/Odometry.h>
#include <sensor_msgs/Imu.h>
#include <basalt/io/stereo_processor.h>
// GUI functions
void draw_image_overlay(pangolin::View& v, size_t cam_id);
void draw_scene(basalt::VioVisualizationData::Ptr);
void load_data(const std::string& calib_path);
void draw_plots();
// Pangolin variables
constexpr int UI_WIDTH = 200;
using Button = pangolin::Var<std::function<void(void)>>;
pangolin::DataLog imu_data_log, vio_data_log, error_data_log;
pangolin::Plotter* plotter;
pangolin::Var<bool> show_obs("ui.show_obs", true, false, true);
pangolin::Var<bool> show_ids("ui.show_ids", false, false, true);
pangolin::Var<bool> show_est_pos("ui.show_est_pos", true, false, true);
pangolin::Var<bool> show_est_vel("ui.show_est_vel", false, false, true);
pangolin::Var<bool> show_est_bg("ui.show_est_bg", false, false, true);
pangolin::Var<bool> show_est_ba("ui.show_est_ba", false, false, true);
pangolin::Var<bool> show_gt("ui.show_gt", true, false, true);
pangolin::Var<bool> follow("ui.follow", true, false, true);
// Visualization variables
basalt::VioVisualizationData::Ptr curr_vis_data;
tbb::concurrent_bounded_queue<basalt::VioVisualizationData::Ptr> out_vis_queue;
tbb::concurrent_bounded_queue<basalt::PoseVelBiasState::Ptr> out_state_queue;
tbb::concurrent_bounded_queue<basalt::ImuData::Ptr>* imu_data_queue = nullptr;
std::vector<int64_t> vio_t_ns;
Eigen::aligned_vector<Eigen::Vector3d> vio_t_w_i;
std::mutex m;
bool step_by_step = false;
int64_t last_t_ns = -1;
int64_t first_t_ns = -1;
// VIO variables
basalt::Calibration<double> calib;
basalt::VioConfig vio_config;
basalt::OpticalFlowBase::Ptr opt_flow_ptr;
basalt::VioEstimatorBase::Ptr vio;
basalt::OpticalFlowInput::Ptr last_img_data;
void imuCallback(const sensor_msgs::Imu::ConstPtr& imu_msg){
static int64_t pre_imu_seq = 0;
static int64_t pre_ts = 0;
// std::cout<<" got imu msgs"<<std::endl;
if(!pre_imu_seq) {
pre_imu_seq = imu_msg->header.seq;
pre_ts = imu_msg->header.stamp.toNSec();
return;
}
// std::cout<<"pre_imu_seq: "<<pre_imu_seq<<", cur_imu_seq: "<<imu_msg->header.seq<<std::endl;
if(imu_msg->header.seq != pre_imu_seq + 1){
std::cout << "IMU packet loss, sequence number not continuous, now" << imu_msg->header.seq << " and previous " << pre_imu_seq << std::endl;
throw std::runtime_error("abort because of bad IMU stream");
}
pre_imu_seq = imu_msg->header.seq;
basalt::ImuData::Ptr data(new basalt::ImuData);
data->t_ns = imu_msg->header.stamp.toNSec();
// 1 second jump
if (pre_ts >= data->t_ns || data->t_ns - pre_ts >= 1000e6 ){
std::cout << "IMU time jump detected, aborting()" << std::endl;
std::cout << "pre_ts = " << double(pre_ts) / 1e9 << ", now_ts = " << double(data->t_ns) / 1e9 << std::endl;
abort();
}
data->accel[0] = imu_msg->linear_acceleration.x;
data->accel[1] = imu_msg->linear_acceleration.y;
data->accel[2] = imu_msg->linear_acceleration.z;
data->gyro[0] = imu_msg->angular_velocity.x;
data->gyro[1] = imu_msg->angular_velocity.y;
data->gyro[2] = imu_msg->angular_velocity.z;
if (data->accel.norm() > 50){
std::cout << imu_msg->linear_acceleration.x << " " << imu_msg->linear_acceleration.y << " " << imu_msg->linear_acceleration.z << std::endl;
std::cout << "Detect greater than 5G acceleration in raw data, corrupted?" << std::endl;
// throw std::runtime_error("Detect greater than 5G acceleration in raw data, corrupted?");
return; // hm: ignore this data point
}
pre_ts = data->t_ns;
if (imu_data_queue) {
if(imu_data_queue->try_push(data)){
// if(vio_config.vio_debug)
// std::cout<< "got imu msg at time "<< imu_msg->header.stamp <<std::endl;
}
else{
std::cout<<"imu data buffer is full: "<<imu_data_queue->size()<<std::endl;
// abort();
}
}
}
int main(int argc, char** argv) {
ros::init(argc, argv, "vio_ros");
ros::NodeHandle nh;
ros::NodeHandle local_nh("~");
std::string cam_calib_path;
std::string config_path;
bool terminate = false;
bool show_gui = true;
bool print_queue = false;
int num_threads = 0;
bool use_imu = true;
local_nh.param<std::string>("calib_file", cam_calib_path, "basalt_ws/src/basalt/data/zed_calib.json");
local_nh.param<std::string>("config_path", config_path, "basalt_ws/src/basalt/data/zed_config.json");
local_nh.param("show_gui", show_gui, true);
local_nh.param("print_queue", print_queue, false);
local_nh.param("terminate", terminate, false);
local_nh.param("use_imu", use_imu, true);
if (!config_path.empty()) {
vio_config.load(config_path);
} else {
vio_config.optical_flow_skip_frames = 2;
}
StereoProcessor::Parameters stereoParam;
stereoParam.queue_size = 3;
stereoParam.left_topic = "/zed/left/image_raw_color";
stereoParam.right_topic = "/zed/right/image_raw_color";
stereoParam.left_info_topic = "/zed/left/camera_info_raw";
stereoParam.right_info_topic = "/zed/right/camera_info_raw";
StereoProcessor stereo_sub(vio_config, stereoParam);
last_img_data = stereo_sub.last_img_data;
ros::Subscriber Imusub = nh.subscribe("/mavros/imu/data/sys_id_9", 200, imuCallback); // 2 seconds of buffering
if (num_threads > 0) {
tbb::task_scheduler_init init(num_threads);
}
// load calibration
load_data(cam_calib_path);
std::cout<<"calib.T_i_c: " << calib.T_i_c[0].translation().x() << ","
<< calib.T_i_c[0].translation().y() << ","
<< calib.T_i_c[0].translation().z() << ","
<< calib.T_i_c[0].unit_quaternion().w() << ","
<< calib.T_i_c[0].unit_quaternion().x() << ","
<< calib.T_i_c[0].unit_quaternion().y() << ","
<< calib.T_i_c[0].unit_quaternion().z() << std::endl<<std::endl;
opt_flow_ptr = basalt::OpticalFlowFactory::getOpticalFlow(vio_config, calib);
stereo_sub.image_data_queue = &opt_flow_ptr->input_queue;
vio = basalt::VioEstimatorFactory::getVioEstimator(
vio_config, calib, basalt::constants::g, use_imu);
vio->initialize(Eigen::Vector3d::Zero(), Eigen::Vector3d::Zero());
imu_data_queue = &vio->imu_data_queue;
opt_flow_ptr->output_queue = &vio->vision_data_queue;
if (show_gui) vio->out_vis_queue = &out_vis_queue;
vio->out_state_queue = &out_state_queue;
vio_data_log.Clear();
// std::shared_ptr<std::thread> t3;
// if (show_gui)
// t3.reset(new std::thread([&]() {
// while (true) {
// out_vis_queue.pop(curr_vis_data);
// if (!curr_vis_data.get()) break;
// }
// std::cout << "Finished t3" << std::endl;
// }));
ros::Publisher pose_cov_pub = nh.advertise<geometry_msgs::PoseWithCovarianceStamped>("/basalt/pose_nwu", 10);
ros::Publisher pose_pub = nh.advertise<geometry_msgs::PoseStamped>("/basalt/pose_cov_nwu", 10);
ros::Publisher pose_map_pub = nh.advertise<geometry_msgs::PoseStamped>("/basalt/pose_enu", 10);
ros::Publisher pose_cov_map_pub = nh.advertise<geometry_msgs::PoseWithCovarianceStamped>("/basalt/pose_cov_enu", 10);
ros::Publisher odom_pub = nh.advertise<nav_msgs::Odometry>("/basalt/odom_nwu", 10);
ros::Publisher odom_ned_pub = nh.advertise<nav_msgs::Odometry>("/basalt/odom_ned", 10);
std::thread t4([&]() {
basalt::PoseVelBiasState::Ptr data;
try{
while (true) {
out_state_queue.pop(data);
if (!data.get()) break;
int64_t t_ns = data->t_ns;
Sophus::SE3d T_w_i = data->T_w_i;
Eigen::Vector3d vel_w_i = data->vel_w_i;
Eigen::Vector3d bg = data->bias_gyro;
Eigen::Vector3d ba = data->bias_accel;
vio_t_ns.emplace_back(data->t_ns);
if (last_t_ns > 0){
// hm: abort if speed greater than 15 m/s, probably a failure
if (vel_w_i.norm() > 15 )
{
std::cout << "detect speed too fast > 15 m/s : " << vel_w_i.norm() << std::endl;
abort();
}
// hm: detect big change in estimated position accross frames, > 4m accross frame
if ( (vio_t_w_i.back() - T_w_i.translation()).norm() > 3){
std::cout << "detect translation change > than 3: " << (vio_t_w_i.back() - T_w_i.translation()).norm() << std::endl;
// abort();
}
}else{
first_t_ns = t_ns;
}
last_t_ns = t_ns;
vio_t_w_i.emplace_back(T_w_i.translation());
// the w_i here is referring to vision world (for now, it is the same as IMU frame, which is FLU / NWU )
// we want to follow ROS convention on the map coordinate, which is NEU
Sophus::Matrix3d R_m_w, R_ned_nwu;
// change of coordinates from NWU to ENU
R_m_w << 0,-1,0,
1,0,0,
0,0,1;
// change of coordinates from NWU to NED
R_ned_nwu << 1,0,0,
0,-1,0,
0,0,-1;
// reference: https://dev.px4.io/master/en/ros/external_position_estimation.html#ros_reference_frames
// T_w_i: i is in NWU, and w(basalt local frame) is in NWU
// T_m_i: i is in NUW, and m(ROS map) is in ENU
// for ROS
Sophus::SE3d T_m_i;
T_m_i.translation() = R_m_w * T_w_i.translation();
T_m_i.setRotationMatrix(R_m_w * T_w_i.rotationMatrix() * R_m_w.inverse());
// for MAVLink Odom message
Sophus::SE3d T_ned_frd;
T_ned_frd.translation() = R_ned_nwu * T_w_i.translation();
T_ned_frd.setRotationMatrix(R_ned_nwu * T_w_i.rotationMatrix() * R_ned_nwu.inverse());
// vel_w_i is in NWU
Eigen::Vector3d vel_body_ned = R_ned_nwu * T_w_i.rotationMatrix().inverse() * vel_w_i;
geometry_msgs::Pose pose, pose_enu, pose_ned;
geometry_msgs::Twist twist, twist_ned;
nav_msgs::Odometry odom, odom_ned;
// basalt frame
{
pose.position.x = T_w_i.translation()[0];
pose.position.y = T_w_i.translation()[1];
pose.position.z = T_w_i.translation()[2];
pose.orientation.w = T_w_i.unit_quaternion().w();
pose.orientation.x = T_w_i.unit_quaternion().x();
pose.orientation.y = T_w_i.unit_quaternion().y();
pose.orientation.z = T_w_i.unit_quaternion().z();
twist.linear.x = vel_w_i[0];
twist.linear.y = vel_w_i[1];
twist.linear.z = vel_w_i[2];
}
// ROS ENU frame
{
pose_enu.position.x = T_m_i.translation()[0];
pose_enu.position.y = T_m_i.translation()[1];
pose_enu.position.z = T_m_i.translation()[2];
pose_enu.orientation.w = T_m_i.unit_quaternion().w();
pose_enu.orientation.x = T_m_i.unit_quaternion().x();
pose_enu.orientation.y = T_m_i.unit_quaternion().y();
pose_enu.orientation.z = T_m_i.unit_quaternion().z();
}
// PX4 NED frame
{
pose_ned.position.x = T_ned_frd.translation()[0];
pose_ned.position.y = T_ned_frd.translation()[1];
pose_ned.position.z = T_ned_frd.translation()[2];
pose_ned.orientation.w = T_ned_frd.unit_quaternion().w();
pose_ned.orientation.x = T_ned_frd.unit_quaternion().x();
pose_ned.orientation.y = T_ned_frd.unit_quaternion().y();
pose_ned.orientation.z = T_ned_frd.unit_quaternion().z();
twist_ned.linear.x = vel_body_ned[0];
twist_ned.linear.y = vel_body_ned[1];
twist_ned.linear.z = vel_body_ned[2];
}
// pose in local world frame
{
geometry_msgs::PoseStamped poseMsg;
poseMsg.header.stamp.fromNSec(t_ns);
poseMsg.header.frame_id = "odom";
poseMsg.pose = pose;
pose_pub.publish(poseMsg);
}
// pose with covariance in local world frame
{
geometry_msgs::PoseWithCovarianceStamped poseMsg;
poseMsg.header.stamp.fromNSec(t_ns);
poseMsg.header.frame_id = "odom";
poseMsg.pose.pose = pose;
odom.header = poseMsg.header;
odom.child_frame_id = "base_link";
odom.pose.pose = pose;
odom.twist.twist = twist;
pose_cov_pub.publish(poseMsg);
odom_pub.publish(odom);
}
// pose in ROS enu world frame
{
geometry_msgs::PoseStamped poseMsg;
poseMsg.header.stamp.fromNSec(t_ns);
poseMsg.header.frame_id = "map";
poseMsg.pose = pose_enu;
pose_map_pub.publish(poseMsg);
}
// pose with covariance in ROS enu world frame
{
geometry_msgs::PoseWithCovarianceStamped poseMsg;
poseMsg.header.stamp.fromNSec(t_ns);
poseMsg.header.frame_id = "map";
poseMsg.pose.pose = pose_enu;
pose_cov_map_pub.publish(poseMsg);
}
{
odom_ned.header.stamp.fromNSec(t_ns);
odom_ned.header.frame_id = "odom_ned";
odom_ned.child_frame_id = "base_link_frd";
odom_ned.pose.pose = pose_ned;
odom_ned.twist.twist = twist_ned;
odom_ned_pub.publish(odom_ned);
}
if (show_gui) {
std::vector<float> vals;
vals.push_back((t_ns - first_t_ns) * 1e-9);
for (int i = 0; i < 3; i++) vals.push_back(vel_w_i[i]);
for (int i = 0; i < 3; i++) vals.push_back(T_w_i.translation()[i]);
for (int i = 0; i < 3; i++) vals.push_back(bg[i]);
for (int i = 0; i < 3; i++) vals.push_back(ba[i]);
vio_data_log.Log(vals);
}
}
}catch(const std::exception& e){
throw std::runtime_error("visualisation thread runtime error");
}
std::cout << "Finished t4" << std::endl;
});
std::shared_ptr<std::thread> t5;
if (print_queue) {
t5.reset(new std::thread([&]() {
while (!terminate) {
std::cout << "opt_flow_ptr->input_queue "
<< opt_flow_ptr->input_queue.size()
<< " opt_flow_ptr->output_queue "
<< opt_flow_ptr->output_queue->size() << " out_state_queue "
<< out_state_queue.size() << std::endl;
std::this_thread::sleep_for(std::chrono::seconds(1));
}
}));
}
ros::AsyncSpinner spinner(2);
spinner.start();
if (show_gui) {
pangolin::CreateWindowAndBind("ROS Live Vio", 1800, 1000);
glEnable(GL_DEPTH_TEST);
pangolin::View& img_view_display =
pangolin::CreateDisplay()
.SetBounds(0.4, 1.0, pangolin::Attach::Pix(UI_WIDTH), 0.4)
.SetLayout(pangolin::LayoutEqual);
pangolin::View& plot_display = pangolin::CreateDisplay().SetBounds(
0.0, 0.4, pangolin::Attach::Pix(UI_WIDTH), 1.0);
plotter =
new pangolin::Plotter(&imu_data_log, 0.0, 100, -3.0, 3.0, 0.01f, 0.01f);
plot_display.AddDisplay(*plotter);
pangolin::CreatePanel("ui").SetBounds(0.0, 1.0, 0.0,
pangolin::Attach::Pix(UI_WIDTH));
std::vector<std::shared_ptr<pangolin::ImageView>> img_view;
while (img_view.size() < calib.intrinsics.size()) {
std::shared_ptr<pangolin::ImageView> iv(new pangolin::ImageView);
size_t idx = img_view.size();
img_view.push_back(iv);
img_view_display.AddDisplay(*iv);
iv->extern_draw_function =
std::bind(&draw_image_overlay, std::placeholders::_1, idx);
}
Eigen::Vector3d cam_p(2, -8, -8);
cam_p = vio->getT_w_i_init().so3() * calib.T_i_c[0].so3() * cam_p;
cam_p[2] = 4;
pangolin::OpenGlRenderState camera(
pangolin::ProjectionMatrix(640, 480, 400, 400, 320, 240, 0.001, 10000),
pangolin::ModelViewLookAt(cam_p[0], cam_p[1], cam_p[2], 0, 0, 0,
pangolin::AxisZ));
pangolin::View& display3D =
pangolin::CreateDisplay()
.SetAspect(-640 / 480.0)
.SetBounds(0.4, 1.0, 0.4, 1.0)
.SetHandler(new pangolin::Handler3D(camera));
while (ros::ok()) {
if(out_vis_queue.try_pop(curr_vis_data))
if (!curr_vis_data.get()) break;
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
if (follow) {
if (curr_vis_data.get()) {
auto T_w_i = curr_vis_data->states.back();
T_w_i.so3() = Sophus::SO3d();
camera.Follow(T_w_i.matrix());
}
}
display3D.Activate(camera);
glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
draw_scene(curr_vis_data);
img_view_display.Activate();
{
pangolin::GlPixFormat fmt;
fmt.glformat = GL_LUMINANCE;
fmt.gltype = GL_UNSIGNED_SHORT;
fmt.scalable_internal_format = GL_LUMINANCE16;
if (curr_vis_data.get() && curr_vis_data->opt_flow_res.get() &&
curr_vis_data->opt_flow_res->input_images.get()) {
auto& img_data = curr_vis_data->opt_flow_res->input_images->img_data;
for (size_t cam_id = 0; cam_id < 2;
cam_id++) {
if (img_data[cam_id].img.get())
img_view[cam_id]->SetImage(
img_data[cam_id].img->ptr, img_data[cam_id].img->w,
img_data[cam_id].img->h, img_data[cam_id].img->pitch, fmt);
}
}
draw_plots();
}
if (show_est_vel.GuiChanged() || show_est_pos.GuiChanged() ||
show_est_ba.GuiChanged() || show_est_bg.GuiChanged()) {
draw_plots();
}
pangolin::FinishFrame();
}
}else
ros::waitForShutdown();
terminate = true;
std::cout<<"terminate!!!"<<std::endl;
if (stereo_sub.image_data_queue) stereo_sub.image_data_queue->push(nullptr);
if (imu_data_queue) imu_data_queue->push(nullptr);
// if (t3.get()) t3->join();
t4.join();
if (t5.get()) t5->join();
return 0;
}
void draw_image_overlay(pangolin::View& v, size_t cam_id) {
UNUSED(v);
if (show_obs) {
glLineWidth(1.0);
glColor3f(1.0, 0.0, 0.0);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
if (curr_vis_data.get() && cam_id < curr_vis_data->projections.size()) {
const auto& points = curr_vis_data->projections[cam_id];
const auto& optical_flow_obs = curr_vis_data->opt_flow_res->observations[cam_id];
double min_id = 1, max_id = 1;
if (!points.empty()) {
min_id = points[0][2];
max_id = points[0][2];
// hm: for each point, first 2 number is the coordinate, 3rd number is the inverse distance
// hm: the last number not used?
for (const auto& points2 : curr_vis_data->projections)
for (const auto& p : points2) {
min_id = std::min(min_id, p[2]);
max_id = std::max(max_id, p[2]);
}
//hm: set the coloring to be constant
// min_id = 0.002; // blue color
// max_id = 1; // red color
const double blue_id = 0.002; // blue color
const double red_id = 0.5; // red color
for (const auto& c : points) {
const float radius = 6.5;
float r, g, b;
double scale = c[2] - blue_id;
if (scale < 0.0)
scale = 0;
else if (c[2] > red_id)
scale = red_id - blue_id;
getcolor(scale , red_id - blue_id, b, g, r);
glColor3f(r, g, b);
pangolin::glDrawCirclePerimeter(c[0], c[1], radius);
// hm: above plot the observation after optimisation, now we want to project the original observation too
// hm: the fourth element of the visualisation data, shows the id keypoint
const uint32_t kpt_id = int(c[3]);
if (show_ids)
pangolin::GlFont::I().Text("%u", kpt_id).Draw(c[0], c[1]);
// hm: in rare cases, if the landmark is no longer observed, skip
if(!optical_flow_obs.count(kpt_id))
continue;
auto vec = optical_flow_obs.at(kpt_id).translation().cast<double>();
pangolin::glDrawCircle(vec, 1.0);
if(vio_config.vio_debug){
if(!calib.intrinsics[cam_id].inBound(c.head(2))){
std::cout << c.transpose() << " optimised point is out of bound at cam " << cam_id << std::endl;
// abort();
}
if(!calib.intrinsics[cam_id].inBound(vec)){
std::cout << vec << " flow obs is out of bound at cam " << cam_id << std::endl;
abort();
}
}
pangolin::glDrawLine(c[0], c[1],vec[0], vec[1]);
}
}
glColor3f(1.0, 0.8, 0.0);
pangolin::GlFont::I()
.Text("Tracked %d points, mixd = %.2lf maxd = %.2lf", points.size(), 1/max_id, 1/min_id)
.Draw(5, 40);
}
}
}
void draw_scene(basalt::VioVisualizationData::Ptr curr_vis_data) {
glPointSize(3);
glColor3f(1.0, 0.0, 0.0);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glColor3ubv(cam_color);
Eigen::aligned_vector<Eigen::Vector3d> sub_gt(vio_t_w_i.begin(),
vio_t_w_i.end());
pangolin::glDrawLineStrip(sub_gt);
if (curr_vis_data.get()) {
for (const auto& p : curr_vis_data->states)
for (const auto& t_i_c : calib.T_i_c)
render_camera((p * t_i_c).matrix(), 2.0f, state_color, 0.1f);
for (const auto& p : curr_vis_data->frames)
for (const auto& t_i_c : calib.T_i_c)
render_camera((p * t_i_c).matrix(), 2.0f, pose_color, 0.1f);
for (const auto& t_i_c : calib.T_i_c)
render_camera((curr_vis_data->states.back() * t_i_c).matrix(), 2.0f,
cam_color, 0.1f);
glColor3ubv(pose_color);
pangolin::glDrawPoints(curr_vis_data->points);
}
pangolin::glDrawAxis(Sophus::SE3d().matrix(), 1.0);
}
void load_data(const std::string& calib_path) {
std::ifstream os(calib_path, std::ios::binary);
if (os.is_open()) {
cereal::JSONInputArchive archive(os);
archive(calib);
std::cout << "Loaded camera with " << calib.intrinsics.size() << " cameras"
<< std::endl;
} else {
std::cerr << "could not load camera calibration " << calib_path
<< std::endl;
std::abort();
}
}
void draw_plots() {
plotter->ClearSeries();
plotter->ClearMarkers();
if (show_est_pos) {
plotter->AddSeries("$0", "$4", pangolin::DrawingModeLine,
pangolin::Colour::Red(), "position x", &vio_data_log);
plotter->AddSeries("$0", "$5", pangolin::DrawingModeLine,
pangolin::Colour::Green(), "position y", &vio_data_log);
plotter->AddSeries("$0", "$6", pangolin::DrawingModeLine,
pangolin::Colour::Blue(), "position z", &vio_data_log);
}
if (show_est_vel) {
plotter->AddSeries("$0", "$1", pangolin::DrawingModeLine,
pangolin::Colour::Red(), "velocity x", &vio_data_log);
plotter->AddSeries("$0", "$2", pangolin::DrawingModeLine,
pangolin::Colour::Green(), "velocity y", &vio_data_log);
plotter->AddSeries("$0", "$3", pangolin::DrawingModeLine,
pangolin::Colour::Blue(), "velocity z", &vio_data_log);
}
if (show_est_bg) {
plotter->AddSeries("$0", "$7", pangolin::DrawingModeLine,
pangolin::Colour::Red(), "gyro bias x", &vio_data_log);
plotter->AddSeries("$0", "$8", pangolin::DrawingModeLine,
pangolin::Colour::Green(), "gyro bias y", &vio_data_log);
plotter->AddSeries("$0", "$9", pangolin::DrawingModeLine,
pangolin::Colour::Blue(), "gyro bias z", &vio_data_log);
}
if (show_est_ba) {
plotter->AddSeries("$0", "$10", pangolin::DrawingModeLine,
pangolin::Colour::Red(), "accel bias x", &vio_data_log);
plotter->AddSeries("$0", "$11", pangolin::DrawingModeLine,
pangolin::Colour::Green(), "accel bias y",
&vio_data_log);
plotter->AddSeries("$0", "$12", pangolin::DrawingModeLine,
pangolin::Colour::Blue(), "accel bias z", &vio_data_log);
}
if (last_img_data.get()) {
double t = last_img_data->t_ns * 1e-9;
plotter->AddMarker(pangolin::Marker::Vertical, t, pangolin::Marker::Equal,
pangolin::Colour::White());
}
}
| 33.902013 | 143 | 0.611632 | [
"vector"
] |
57b62f8db430197bab1b7369297f5888f1c6e9d3 | 673 | cpp | C++ | Problems/0073. Set Matrix Zeroes.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0073. Set Matrix Zeroes.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0073. Set Matrix Zeroes.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | class Solution {
public:
void setZeroes(vector<vector<int>>& matrix) {
set<int> rows{}, cols{};
int n = matrix.size(), m = matrix[0].size();
//getting indices of 0's
for(int i=0; i<n; i++)
for(int j=0; j<m; j++)
if(matrix[i][j] == 0){
rows.insert(i);
cols.insert(j);
}
// replacing each row
for(auto r:rows)
for(int j=0; j<m; j++)
matrix[r][j] = 0;
// replacing each col
for(auto c:cols)
for(int i=0; i<n; i++)
matrix[i][c] = 0;
}
};
| 25.884615 | 52 | 0.389302 | [
"vector"
] |
57b912d24c6049c1f0a5bff7807231f2ecb10a1c | 1,413 | cpp | C++ | Current/986_Interval_List_Intersections/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | 3 | 2019-09-21T16:25:44.000Z | 2021-08-29T20:43:57.000Z | Current/986_Interval_List_Intersections/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | null | null | null | Current/986_Interval_List_Intersections/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<vector<int>> intervalIntersection(vector<vector<int>>& A, vector<vector<int>>& B) {
vector<vector<int>> ans;
int i = 0, j = 0;
while (i < A.size() && j < B.size()) {
if (A[i][0] <= B[j][0] && A[i][1] >= B[j][0] && A[i][1] <= B[j][1]) {
ans.push_back(vector<int>{B[j][0], A[i][1]});
++i;
} else if (B[j][0] <= A[i][0] && B[j][1] >= A[i][0] && B[j][1] <= A[i][1]) {
ans.push_back(vector<int>{A[i][0], B[j][1]});
++j;
} else if (A[i][0] >= B[j][0] && A[i][1] <= B[j][1]) {
ans.push_back(vector<int>{A[i]});
++i;
} else if (B[j][0] >= A[i][0] && B[j][1] <= A[i][1]) {
ans.push_back(vector<int>{B[j]});
++j;
} else if (A[i][0] > B[j][1]) {
++j;
} else if (B[j][0] > A[i][1]) {
++i;
}
}
return ans;
}
};
int main() {
Solution test;
vector<vector<int>> A{{3,5},{9,20}};
vector<vector<int>> B{{4,5},{7,10},{11,12},{14,15},{16,20}};
vector<vector<int>> expected_ans = {{4,5},{9,10},{11,12},{14,15},{16,20}};
vector<vector<int>> ans = test.intervalIntersection(A, B);
assert(ans == expected_ans);
return 0;
}
| 32.860465 | 94 | 0.411182 | [
"vector"
] |
57bbd5a40c61593d73d7b29c541d6bf20e37fa52 | 2,838 | cpp | C++ | Chapter04/qtbuild/gallery/desktop/moc_PictureDelegate.cpp | Syneltec/Mastering-Qt-5-Second-Editon | 003dbe33c1f8686ef1c5a9da318056af30c6c1e0 | [
"MIT"
] | null | null | null | Chapter04/qtbuild/gallery/desktop/moc_PictureDelegate.cpp | Syneltec/Mastering-Qt-5-Second-Editon | 003dbe33c1f8686ef1c5a9da318056af30c6c1e0 | [
"MIT"
] | null | null | null | Chapter04/qtbuild/gallery/desktop/moc_PictureDelegate.cpp | Syneltec/Mastering-Qt-5-Second-Editon | 003dbe33c1f8686ef1c5a9da318056af30c6c1e0 | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'PictureDelegate.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include <memory>
#include "../../../gallery-desktop/PictureDelegate.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'PictureDelegate.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_PictureDelegate_t {
QByteArrayData data[1];
char stringdata0[16];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_PictureDelegate_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_PictureDelegate_t qt_meta_stringdata_PictureDelegate = {
{
QT_MOC_LITERAL(0, 0, 15) // "PictureDelegate"
},
"PictureDelegate"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_PictureDelegate[] = {
// content:
8, // revision
0, // classname
0, 0, // classinfo
0, 0, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
0 // eod
};
void PictureDelegate::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
Q_UNUSED(_o);
Q_UNUSED(_id);
Q_UNUSED(_c);
Q_UNUSED(_a);
}
QT_INIT_METAOBJECT const QMetaObject PictureDelegate::staticMetaObject = { {
QMetaObject::SuperData::link<QStyledItemDelegate::staticMetaObject>(),
qt_meta_stringdata_PictureDelegate.data,
qt_meta_data_PictureDelegate,
qt_static_metacall,
nullptr,
nullptr
} };
const QMetaObject *PictureDelegate::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *PictureDelegate::qt_metacast(const char *_clname)
{
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_PictureDelegate.stringdata0))
return static_cast<void*>(this);
return QStyledItemDelegate::qt_metacast(_clname);
}
int PictureDelegate::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QStyledItemDelegate::qt_metacall(_c, _id, _a);
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
| 29.5625 | 96 | 0.664553 | [
"object"
] |
57c2afe126c47a2b41a1924d5da87b10e0786d7e | 3,070 | cpp | C++ | ActiveCampaignCpp/test/Test.cpp | icarus3/ActiveCampaignCpp | c2389b4c9469251e6f3adb6b574402eca2e353ac | [
"MIT"
] | null | null | null | ActiveCampaignCpp/test/Test.cpp | icarus3/ActiveCampaignCpp | c2389b4c9469251e6f3adb6b574402eca2e353ac | [
"MIT"
] | null | null | null | ActiveCampaignCpp/test/Test.cpp | icarus3/ActiveCampaignCpp | c2389b4c9469251e6f3adb6b574402eca2e353ac | [
"MIT"
] | null | null | null | #include <functional>
#include "gtest/gtest.h"
#include "Config.hpp"
#include "UrlHandler.hpp"
#include "ActiveCampaign.hpp"
#include "ActiveCampaignFactory.hpp"
#include "json.hpp"
using json = nlohmann::json;
TEST(JsonConstructionTest, NonNestedJsonConstruction)
{
json postData = {
{ "name", "Dr Who" },
{ "sender_name", "Bleh Bleh" },
{ "sender_zip", 12345 }
};
EXPECT_EQ("Dr Who", postData["name"]);
EXPECT_EQ("Bleh Bleh", postData["sender_name"]);
EXPECT_EQ(12345, postData["sender_zip"]);
}
TEST(ConfigTest, ConfirmConfigParameters)
{
std::shared_ptr<Config> config = std::make_shared<Config>("a", "b");
EXPECT_EQ("a", config->getUrl());
EXPECT_EQ("b", config->getApiKey());
EXPECT_EQ("json", config->getFormat());
}
TEST(UrlHandlerTest, CheckReturnValuesOfURL)
{
std::shared_ptr<Config> config = std::make_shared<Config>("http://a.b.com", "xyz");
json data = {
{ "name", "Dr Who" },
{ "sender_name", "Bleh Bleh" },
{ "sender_zip", 12345 }
};
std::string url = UrlHandler::makeUrl("test_action", config);
std::string expectedUrl = "http://a.b.com/admin/api.php?api_action=test_action&api_output=json&api_key=xyz";
EXPECT_EQ(url, expectedUrl);
std::string params = UrlHandler::makeParameters(config, data);
std::string expectedParams = "name=Dr%20Who&sender_name=Bleh%20Bleh&sender_zip=12345";
EXPECT_EQ(params, expectedParams);
std::string urlWithParams = UrlHandler::makeUrlWithParameters("test_action", config, data);
std::string expectedurlWithParams = "http://a.b.com/admin/api.php?api_action=test_action&api_output=json&api_key=xyz&name=Dr%20Who&sender_name=Bleh%20Bleh&sender_zip=12345";
EXPECT_EQ(urlWithParams, expectedurlWithParams);
}
TEST(ActiveCampaignTest, GetSupportedActionsAndAPI)
{
std::shared_ptr<Config> config = std::make_shared<Config>("http://a.b.com", "xyz");
std::function < json(const std::string & action, const json & data) > handler = [](const std::string & action, const json & data) { json res = { {"ret", 0} }; return res; };
auto actions = { std::string("test_action") };
auto handlers = { handler };
std::unique_ptr<ActiveCampaign> ac = std::make_unique<ActiveCampaign>(config, actions, handlers);
std::vector<std::string> res;
ac->getSupportedActions(res);
ASSERT_EQ(res.size(), 1);
EXPECT_EQ(res[0], "test_action");
json jsonResponse = ac->api("test_action");
ASSERT_EQ(jsonResponse["ret"], 0);
}
TEST(ActiveCampaignTest, AutoRegisterTest)
{
std::vector< std::string > expected = {"Account","Address", "Automation", "Branding", "Campaign", "Contact", "Deal",
"Form", "Group", "List", "Message", "Organization", "Settings", "SingleSignOn",
"Tags", "Tasks", "User", "WebHook"};
std::shared_ptr<Config> config = std::make_shared<Config>("http://a.b.com", "xyz");
for (auto str : expected)
{
//In case of a problem, it will throw an exception
auto ac = ActiveCampaignFactory::Create(str, config);
}
}
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
} | 32.315789 | 174 | 0.691205 | [
"vector"
] |
57c367b1b11468125d3c1d198f6a162cd521df10 | 1,028 | cc | C++ | examples/hello/hello.cc | darrenjs/jalson | 096ef631f859c645e2ac4ddb8357d33c79643a7b | [
"MIT"
] | 2 | 2018-02-07T02:40:38.000Z | 2019-03-15T08:17:41.000Z | examples/hello/hello.cc | darrenjs/jalson | 096ef631f859c645e2ac4ddb8357d33c79643a7b | [
"MIT"
] | null | null | null | examples/hello/hello.cc | darrenjs/jalson | 096ef631f859c645e2ac4ddb8357d33c79643a7b | [
"MIT"
] | null | null | null | /* Basic example of use jalson */
#include <jalson/jalson.h>
#include <iostream>
int main(int, char**)
{
// obtain details about the JSON implementation wrapped inside jalson
jalson::vendor_details details;
jalson::get_vendor_details(&details);
std::cout << "JSON implementation: "
<< details.vendor << " "
<< details.major_version << "."
<< details.minor_version << "."
<< details.micro_version << "\n";
// --- Build a JSON object ---
jalson::json_value v = jalson::decode("[\"hello\", {}, 2015]");
// --- Add some items programmatically ---
// using methods of the stl container
v.as_array().push_back("world");
v.as_array().push_back(1);
v.as_array().push_back(true);
v.as_array().push_back( jalson::json_object() );
v.as_array().push_back( jalson::json_array() );
// using helper methods of json_value type
v[1]["vendor"] = details.vendor;
v[1]["version"] = details.major_version;
// Print
std::cout << v << "\n";
return 0;
}
| 25.073171 | 71 | 0.618677 | [
"object"
] |
57c7af948d60d64d29378ebf4aa68fa2b1aaa5b4 | 3,429 | hxx | C++ | main/framework/inc/uiconfiguration/globalsettings.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/framework/inc/uiconfiguration/globalsettings.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/framework/inc/uiconfiguration/globalsettings.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef __FRAMEWORK_UICONFIGURATION_GLOBALSETTINGS_HXX_
#define __FRAMEWORK_UICONFIGURATION_GLOBALSETTINGS_HXX_
/** Attention: stl headers must(!) be included at first. Otherwise it can make trouble
with solaris headers ...
*/
#include <vector>
#include <list>
#include <hash_map>
//_________________________________________________________________________________________________________________
// my own includes
//_________________________________________________________________________________________________________________
#include <threadhelp/threadhelpbase.hxx>
#include <macros/generic.hxx>
#include <macros/xinterface.hxx>
#include <macros/xtypeprovider.hxx>
#include <macros/xserviceinfo.hxx>
#include <stdtypes.h>
//_________________________________________________________________________________________________________________
// interface includes
//_________________________________________________________________________________________________________________
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
//_________________________________________________________________________________________________________________
// other includes
//_________________________________________________________________________________________________________________
#include <cppuhelper/weak.hxx>
#include <rtl/ustring.hxx>
namespace framework
{
class GlobalSettings
{
public:
GlobalSettings( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rSrvMgr );
~GlobalSettings();
enum UIElementType
{
UIELEMENT_TYPE_TOOLBAR,
UIELEMENT_TYPE_DOCKWINDOW,
UIELEMENT_TYPE_STATUSBAR
};
enum StateInfo
{
STATEINFO_LOCKED,
STATEINFO_DOCKED
};
// settings access
sal_Bool HasStatesInfo( UIElementType eElementType );
sal_Bool GetStateInfo( UIElementType eElementType, StateInfo eStateInfo, ::com::sun::star::uno::Any& aValue );
private:
GlobalSettings();
GlobalSettings(const GlobalSettings&);
GlobalSettings& operator=(const GlobalSettings& );
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xSrvMgr;
};
} // namespace framework
#endif // __FRAMEWORK_UIELEMENT_WINDOWSTATECONFIGURATION_HXX_
| 36.478723 | 122 | 0.7352 | [
"vector"
] |
57d11f5606918e28dd3c20452d4958ab62c4d35f | 4,327 | cpp | C++ | mqtt.cpp | kpfleming/garaduino | 82a882f81613c69c22af21514ef1d0dbf5d79d17 | [
"Apache-2.0"
] | null | null | null | mqtt.cpp | kpfleming/garaduino | 82a882f81613c69c22af21514ef1d0dbf5d79d17 | [
"Apache-2.0"
] | 3 | 2020-10-23T12:49:19.000Z | 2020-10-25T11:56:37.000Z | mqtt.cpp | kpfleming/garaduino | 82a882f81613c69c22af21514ef1d0dbf5d79d17 | [
"Apache-2.0"
] | null | null | null | // SPDX-FileCopyrightText: 2020 Kevin P. Fleming <kevin@km6g.us>
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Kevin P. Fleming
//
// 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 "mqtt.hpp"
#include "config.hpp"
#include <vector>
#include <algorithm>
#include <cstring>
namespace {
struct subscription {
subscription(const char* topic, Garaduino::MQTT::subscriptionHandler&& handler) : topic(topic), handler(std::move(handler)) {};
const char* topic;
Garaduino::MQTT::subscriptionHandler handler;
};
std::vector<subscription> subscriptions{};
void callback(char* topic, byte* payload, unsigned int length) {
String safeTopic{topic};
payload[length] = '\0';
String safePayload{(char *)payload};
DEBUG_PRINT(F("MQTT: topic: "));
DEBUG_PRINT(safeTopic);
DEBUG_PRINT(F(" payload: "));
DEBUG_PRINTLN(safePayload);
for (auto& subscription: subscriptions) {
if (safeTopic.equals(subscription.topic)) {
subscription.handler(safePayload);
}
}
}
};
namespace Garaduino {
void MQTT::start(TimerSet& timers, Web& web) {
DEBUG_PRINT(F("MQTT: initializing..."));
subscriptions.reserve(8);
mqtt.setServer(MQTT_BROKER_NAME, MQTT_BROKER_PORT);
mqtt.setCallback(callback);
if (connect()) {
DEBUG_PRINTLN(F(" done"));
} else {
DEBUG_PRINTLN(F(" failed"));
}
web.addStatusItems("mqtt", statusItems);
timers.every(MQTT_POLL_SECS * 1000, [this]{ return maintain(); });
}
bool MQTT::connect() {
if (mqtt.connect(MQTT_CLIENT_NAME, MQTT_STATUS_TOPIC, 0, true, "offline")) {
mqtt.publish(MQTT_STATUS_TOPIC, "online", true);
for (auto& message: queue) {
if (message.topic != nullptr) {
mqtt.publish(message.topic, message.payload, message.retain);
message.topic = nullptr;
}
}
for (auto& subscription: subscriptions) {
if (subscription.topic != nullptr) {
mqtt.subscribe(subscription.topic);
}
}
lastStateString = "connected";
return true;
} else {
lastStateString = "not connected";
return false;
}
}
Timers::HandlerResult MQTT::maintain() {
mqtt.loop();
if (!mqtt.connected()) {
DEBUG_PRINT(F("MQTT: connecting..."));
if (connect()) {
DEBUG_PRINTLN(F(" done"));
} else {
DEBUG_PRINTLN(F(" failed"));
// try again on the next cycle
}
}
return Timers::TimerStatus::repeat;
}
MQTT::queuedMessageArray::iterator MQTT::findSlotForTopic(const char* topic) {
if (auto result = std::find_if(queue.begin(), queue.end(), [topic](queuedMessage& m) { return m.topic == topic; }); result != queue.end()) {
return result;
}
return std::find_if(queue.begin(), queue.end(), [](queuedMessage& m) { return m.topic == nullptr; });
}
bool MQTT::queueMessage(const char* topic, const char* payload, bool retain) {
if (auto slot = findSlotForTopic(topic); slot != queue.end()) {
slot->topic = topic;
slot->payload = payload;
slot->retain = retain;
return true;
} else {
return false;
}
}
bool MQTT::publish(const char* topic, const char* payload) {
if (mqtt.connected() && mqtt.publish(topic, payload, false)) {
return true;
} else {
return queueMessage(topic, payload, false);
}
}
bool MQTT::publish(const char* topic, const String& payload) {
return publish(topic, payload.c_str());
}
bool MQTT::publishAndRetain(const char* topic, const char* payload) {
if (mqtt.connected() && mqtt.publish(topic, payload, true)) {
return true;
} else {
return queueMessage(topic, payload, true);
}
}
bool MQTT::publishAndRetain(const char* topic, const String& payload) {
return publishAndRetain(topic, payload.c_str());
}
void MQTT::subscribe(const char* topic, subscriptionHandler&& handler) {
subscriptions.emplace_back(topic, std::move(handler));
mqtt.subscribe(topic);
}
};
| 26.546012 | 144 | 0.679223 | [
"vector"
] |
57d39918c1d48667bf79aa10fdcb018eac224a55 | 4,904 | cpp | C++ | Daemon.cpp | Aschen/DomainSocket | 2393590dfc055263d25e0fbb02fd971dab969406 | [
"Unlicense"
] | 5 | 2015-07-31T01:04:10.000Z | 2019-08-17T08:24:46.000Z | Daemon.cpp | Aschen/DomainSocket | 2393590dfc055263d25e0fbb02fd971dab969406 | [
"Unlicense"
] | null | null | null | Daemon.cpp | Aschen/DomainSocket | 2393590dfc055263d25e0fbb02fd971dab969406 | [
"Unlicense"
] | 1 | 2021-09-12T00:52:51.000Z | 2021-09-12T00:52:51.000Z | /*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
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 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.
For more information, please refer to <http://unlicense.org>
*/
#include "Daemon.hh"
Daemon::Daemon(const std::string &path)
: _local(path, DomainSocket::SERVER), _run(false)
{
}
Daemon::~Daemon(void)
{
for (unsigned int i = 0; i < _clients.size(); ++i)
{
delete _clients[i];
}
}
void Daemon::start(void)
{
_run = true;
while (_run)
{
handleSockets();
}
std::cout << "Server shutdown" << std::endl;
}
void Daemon::handleSockets(void)
{
fd_set readfds;
fd_set writefds;
int fd_max;
struct timeval tv;
fd_max = initSelect(&tv, &readfds, &writefds);
if (::select(fd_max, &readfds, NULL, NULL, &tv) == -1)
{
throw std::runtime_error(std::string("Select Error : ") + ::strerror(errno));
}
else
{
// If something to read on stdin
if (FD_ISSET(0, &readfds))
eventTerminal();
// If new client connect
if (FD_ISSET(_local.fd(), &readfds))
eventServer();
// Check clients's socket
eventClients(&readfds, &writefds);
}
}
int Daemon::initSelect(struct timeval *tv, fd_set *readfds, fd_set *writefds)
{
int fd_max = _local.fd();
// Timeout 100 ms
tv->tv_sec = 0;
tv->tv_usec = 100;
// Initialize bits field for select
FD_ZERO(readfds);
FD_SET(_local.fd(), readfds);
FD_SET(0, readfds);
if (writefds != NULL)
{
FD_ZERO(writefds);
FD_SET(_local.fd(), writefds);
}
for (unsigned int i = 0; i < _clients.size(); ++i)
{
FD_SET(_clients[i]->fd(), readfds);
if (writefds != NULL)
FD_SET(_clients[i]->fd(), writefds);
// Check if client's fd is greater than actual fd_max
fd_max = (fd_max < _clients[i]->fd()) ? _clients[i]->fd() : fd_max;
}
return fd_max + 1;
}
void Daemon::eventTerminal(void)
{
std::string msg;
std::cin >> msg;
if (msg == "exit")
{
_run = false;
}
}
void Daemon::eventServer(void)
{
DomainSocket *client;
try
{
client = _local.acceptClient();
_clients.push_back(client);
}
catch (std::runtime_error &e)
{
std::cout << e.what() << std::endl;
}
}
void Daemon::eventClients(fd_set *readfds, fd_set *writefds)
{
std::string msg;
for (std::vector<DomainSocket*>::iterator it = _clients.begin(); it < _clients.end(); ++it)
{
// Something to write on client socket
if (FD_ISSET((*it)->fd(), writefds))
{
if (_msgs.size())
{
try
{
(*it)->sendMsg(_msgs.back());
_msgs.pop_back();
}
catch (std::runtime_error &e)
{
std::cout << e.what() << std::endl;
}
}
}
// Something to read on client socket
if (FD_ISSET((*it)->fd(), readfds))
{
try
{
_msgs.push_back((*it)->recvMsg());
}
catch (DomainSocket::Disconnected &e)
{
delete (*it);
_clients.erase(it);
it = _clients.begin();
}
catch (std::runtime_error &e)
{
std::cout << e.what() << std::endl;
}
}
}
}
int main(int ac, char **av)
{
if (ac != 2)
{
std::cout << "Usage : " << av[0] << " <socket_path>" << std::endl;
return 1;
}
try
{
Daemon d(av[1]);
d.start();
}
catch (std::runtime_error &e)
{
}
return 0;
}
| 24.893401 | 95 | 0.556892 | [
"vector"
] |
57dd32fbc665b1a5bebb65db8a67533d73a72f3e | 4,932 | cpp | C++ | limbo/thirdparty/dlx/example/sudoku/SudokuType.cpp | RedFantom/limbo | 8d3e0d484a809fb4b3ff8aa72fd972d16cdab405 | [
"MIT"
] | 74 | 2017-10-19T03:10:52.000Z | 2022-03-28T17:51:54.000Z | limbo/thirdparty/dlx/example/sudoku/SudokuType.cpp | RedFantom/limbo | 8d3e0d484a809fb4b3ff8aa72fd972d16cdab405 | [
"MIT"
] | 3 | 2017-12-06T01:49:21.000Z | 2020-06-22T00:08:12.000Z | limbo/thirdparty/dlx/example/sudoku/SudokuType.cpp | RedFantom/limbo | 8d3e0d484a809fb4b3ff8aa72fd972d16cdab405 | [
"MIT"
] | 26 | 2017-11-07T10:32:54.000Z | 2021-10-02T02:22:37.000Z | #include "SudokuType.hpp"
#include "SudokuFormat.hpp"
#include <assert.h>
#include <functional>
#include <unordered_map>
#include <unordered_set>
SudokuType::SudokuType()
: SudokuType(9)
{
}
SudokuType::SudokuType(unsigned size)
: SudokuType(isqrt(size), isqrt(size))
{
}
SudokuType::SudokuType(unsigned region_width, unsigned region_height)
: SudokuType(box_regions(region_width, region_height))
{
}
SudokuType::SudokuType(std::initializer_list<unsigned> regions)
: SudokuType(std::vector<unsigned>(regions))
{
}
SudokuType::SudokuType(std::vector<unsigned> regions)
: n_(isqrt(regions.size())),
region_(normalize_regions(std::move(regions)))
{
if (n_ == 0) {
throw std::invalid_argument("Sudoku must have non-zero size");
}
}
std::shared_ptr<SudokuType> SudokuType::from_size(unsigned size) {
return std::make_shared<SudokuType>(isqrt(size));
}
std::shared_ptr<SudokuType> SudokuType::guess(const std::string& str) {
auto size = SudokuFormat::count_cells(str);
auto n = isqrt(size);
auto lines = std::vector<std::string>();
auto line = std::string();
auto cells = 0u;
for (char c : str) {
if (c == '\n') {
if (cells != 0 && cells != n) {
return SudokuType::from_size(size);
}
lines.push_back(std::move(line));
cells = 0;
line.clear();
continue;
}
if (SudokuFormat::is_valid_cell(c)) {
++cells;
}
if (cells > n) {
lines.push_back(std::move(line));
line.clear();
cells %= n;
}
line += c;
}
lines.push_back(std::move(line));
auto region = std::vector<std::vector<unsigned>>();
std::function<unsigned(unsigned, int, int)> find_region;
find_region = [&](unsigned id, int x, int y) -> unsigned {
if (x < 0 || y < 0 || y >= int(lines.size()) || x >= int(lines[y].size())) {
return 0;
}
while (region.size() <= unsigned(y)) {
region.emplace_back();
}
while (region[y].size() <= unsigned(x)) {
region[y].push_back(0);
}
if (region[y][x] != 0) {
return 0;
}
char c = lines[y][x];
if (!SudokuFormat::is_valid_cell(c) && c != ' ') {
return 0;
}
region[y][x] = id;
auto region_size = 1u;
region_size += find_region(id, x, y - 1);
region_size += find_region(id, x, y + 1);
region_size += find_region(id, x - 1, y);
region_size += find_region(id, x + 1, y);
return region_size;
};
auto next_id = 1u;
for (auto y = 0u; y < lines.size(); ++y) {
for (auto x = 0u; x < lines[y].size(); ++x) {
if (!SudokuFormat::is_valid_cell(lines[y][x])) {
continue;
}
auto region_size = find_region(next_id, x, y);
if (region_size > 0) {
++next_id;
}
}
}
auto region_size = std::unordered_map<unsigned, unsigned>();
auto final_regions = std::vector<unsigned>();
auto total_size = 0u;
for (auto y = 0u; y < lines.size(); ++y) {
for (auto x = 0u; x < lines[y].size(); ++x) {
if (SudokuFormat::is_valid_cell(lines[y][x])) {
++total_size;
++region_size[region[y][x]];
final_regions.push_back(region[y][x]);
}
}
}
assert(total_size == size);
for (auto p : region_size) {
if (p.second != n) {
return SudokuType::from_size(size);
}
}
return SudokuType::make(final_regions);
}
bool SudokuType::operator==(const SudokuType& other) const {
return region_ == other.region_;
}
bool SudokuType::operator!=(const SudokuType& other) const {
return !(region_ == other.region_);
}
unsigned SudokuType::n() const {
return n_;
}
unsigned SudokuType::size() const {
return n_ * n_;
}
unsigned SudokuType::region(unsigned pos) const {
assert(pos < size());
return region_[pos];
}
unsigned SudokuType::region(unsigned x, unsigned y) const {
assert(x < n_ && y < n_);
return region_[y * n_ + x];
}
std::vector<unsigned> SudokuType::box_regions(unsigned w, unsigned h) {
std::vector<unsigned> regions;
unsigned n = w * h;
for (unsigned y = 0; y < n; ++y) {
for (unsigned x = 0; x < n; ++x) {
regions.push_back(y / h * h + x / w);
}
}
return regions;
}
std::vector<unsigned> SudokuType::normalize_regions(std::vector<unsigned> regions) {
unsigned n = isqrt(regions.size());
std::unordered_map<unsigned, unsigned> ids;
std::unordered_map<unsigned, unsigned> areas;
for (unsigned id : regions) {
if (ids.find(id) == ids.end()) {
unsigned next_id = ids.size();
ids[id] = next_id;
}
if (++areas[id] > n) {
throw std::invalid_argument("Region has wrong size");
}
}
if (ids.size() != n) {
throw std::invalid_argument("Too many regions");
}
for (unsigned& id : regions) {
id = ids[id];
}
return regions;
}
unsigned SudokuType::isqrt(unsigned n) {
unsigned k = 0;
while ((k + 1) * (k + 1) <= n) ++k;
if (k * k != n) {
throw std::invalid_argument("Not a square");
}
return k;
}
| 24.415842 | 84 | 0.601784 | [
"vector"
] |
57f05481bc250303e10f905c5f55d9f4d7502d48 | 15,668 | hpp | C++ | include/kabamaru/registration_utilities.hpp | kzampog/kabamaru | e464d0046337fa336c000b9376f79cfc786f46b6 | [
"MIT"
] | 40 | 2017-11-06T22:11:55.000Z | 2022-02-25T07:50:14.000Z | include/kabamaru/registration_utilities.hpp | kzampog/kabamaru | e464d0046337fa336c000b9376f79cfc786f46b6 | [
"MIT"
] | 2 | 2019-05-09T15:13:19.000Z | 2019-11-02T20:31:09.000Z | include/kabamaru/registration_utilities.hpp | kzampog/kabamaru | e464d0046337fa336c000b9376f79cfc786f46b6 | [
"MIT"
] | 16 | 2017-07-19T07:27:19.000Z | 2021-03-31T07:18:55.000Z | #ifndef REGISTRATION_UTILITIES_HPP
#define REGISTRATION_UTILITIES_HPP
#include <pcl/filters/extract_indices.h>
#include <pcl/common/transforms.h>
#include <opencv2/core/eigen.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <kabamaru/sift_engine.hpp>
Eigen::Matrix4f homogeneousTransformationMatrixFromRt(const Eigen::Matrix3f &R, const Eigen::Vector3f &t);
int rigidlyAlignPoseSets(const std::vector<Eigen::Matrix4f> &src_poses, const std::vector<Eigen::Matrix4f> &dst_poses, Eigen::Matrix4f &tform);
Eigen::VectorXf transferErrorRigid3D(const Eigen::MatrixXf &src, const Eigen::MatrixXf &dst, const Eigen::Matrix3f &R, const Eigen::Vector3f &t);
int estimateRigidTransform3D(const Eigen::MatrixXf &src_in, const Eigen::MatrixXf &dst_in, Eigen::Matrix3f &R, Eigen::Vector3f &t);
int estimateRigidTransform3D(const Eigen::MatrixXf &src_in, const Eigen::MatrixXf &dst_in, Eigen::Matrix4f &tform);
int estimateRigidTransform3DRANSAC(const Eigen::MatrixXf &src, const Eigen::MatrixXf &dst, Eigen::Matrix3f &R, Eigen::Vector3f &t, std::vector<int> &inliers, int iter, int test_size, float dist_thresh, int inlier_thresh);
int estimateRigidTransform3DRANSAC(const Eigen::MatrixXf &src, const Eigen::MatrixXf &dst, Eigen::Matrix4f& tform, std::vector<int>& inliers, int iter, int test_size, float dist_thresh, int inlier_thresh);
Eigen::Vector3f projectiveToRealWorld(const Eigen::Vector3f &pt_pr, const Eigen::Matrix3f &K);
Eigen::Vector3f realWorldToProjective(const Eigen::Vector3f &pt_rw, const Eigen::Matrix3f &K);
void transformConvexPolytope(std::vector<Eigen::Vector4f> &polytope, const Eigen::Matrix4f &tform);
Eigen::MatrixXf extractMatrixColumnsFromIndices(const Eigen::MatrixXf &mat, const std::vector<int> &ind);
std::vector<float> extractSIFTDescriptorsFromIndices(const std::vector<float> &descr, const std::vector<int> &ind);
Eigen::MatrixXf extractSIFTKeypoint2DCoordinates(const std::vector<SiftGPU::SiftKeypoint> &keys);
int estimateRigidTransformSIFT3DTo3DRANSAC(const Eigen::MatrixXf &frame_loc, const std::vector<float> &frame_descr, const Eigen::MatrixXf &model_loc, const std::vector<float> &model_descr, SIFTEngine *sift_engine, int iter, float dist_thresh, int min_inlier_count, Eigen::Matrix3f &R, Eigen::Vector3f &t, std::vector<int> &inliers);
int estimateRigidTransformSIFT3DTo3DRANSAC(const Eigen::MatrixXf &frame_loc, const std::vector<float> &frame_descr, const Eigen::MatrixXf &model_loc, const std::vector<float> &model_descr, SIFTEngine *sift_engine, int iter, float dist_thresh, int min_inlier_count, Eigen::Matrix4f &tform, std::vector<int> &inliers);
int estimateRigidTransformSIFT2DTo3DRANSAC(const Eigen::MatrixXf &frame_loc, const std::vector<float> &frame_descr, const Eigen::MatrixXf &model_loc, const std::vector<float> &model_descr, const cv::Mat &K, const cv::Mat &d, SIFTEngine *sift_engine, int iter, float dist_thresh, int min_inlier_count, Eigen::Matrix3f &R, Eigen::Vector3f &t, std::vector<int> &inliers);
int estimateRigidTransformSIFT2DTo3DRANSAC(const Eigen::MatrixXf &frame_loc, const std::vector<float> &frame_descr, const Eigen::MatrixXf &model_loc, const std::vector<float> &model_descr, const cv::Mat &K, const cv::Mat &d, SIFTEngine *sift_engine, int iter, float dist_thresh, int min_inlier_count, Eigen::Matrix4f &tform, std::vector<int> &inliers);
template<typename PointT>
void extractKeypoint3DCoordinatesFromOrganizedPointCloud(const typename pcl::PointCloud<PointT>::ConstPtr &cloud, Eigen::MatrixXf &loc2d, std::vector<float> &descr, Eigen::MatrixXf &loc3d) {
int num = loc2d.cols();
std::vector<float> locv(3*num);
std::vector<int> ind(num);
int k = 0, r, c;
PointT pt;
for (int i = 0; i < num; i++) {
c = std::round(loc2d(0,i));
r = std::round(loc2d(1,i));
pt = cloud->at(c,r);
if (pt.z > 0) {
locv[3*k] = pt.x;
locv[3*k+1] = pt.y;
locv[3*k+2] = pt.z;
ind[k] = i;
k++;
}
}
locv.resize(3*k);
ind.resize(k);
loc2d = extractMatrixColumnsFromIndices(loc2d, ind);
descr = extractSIFTDescriptorsFromIndices(descr, ind);
loc3d = Eigen::Map<Eigen::MatrixXf>(&locv[0],3,k);
return;
}
template<typename PointT>
cv::Mat organizedPointCloudToRGBImage(const typename pcl::PointCloud<PointT>::ConstPtr &cloud) {
cv::Mat img;
if (cloud->isOrganized()) {
img = cv::Mat(cloud->height, cloud->width, CV_8UC3);
if (!cloud->empty()) {
for (int h = 0; h < img.rows; h++) {
for (int w = 0; w < img.cols; w++) {
Eigen::Vector3i rgb = cloud->at(w,h).getRGBVector3i();
img.at<cv::Vec3b>(h,w)[0] = rgb[2];
img.at<cv::Vec3b>(h,w)[1] = rgb[1];
img.at<cv::Vec3b>(h,w)[2] = rgb[0];
}
}
}
}
return img;
}
template<typename PointT>
cv::Mat organizedPointCloudToDepthImage(const typename pcl::PointCloud<PointT>::ConstPtr &cloud, bool float_depth = false) {
cv::Mat img;
if (cloud->isOrganized()) {
img = cv::Mat(cloud->height, cloud->width, CV_32F);
if (!cloud->empty()) {
for (int h = 0; h < img.rows; h++) {
for (int w = 0; w < img.cols; w++) {
img.at<float>(h,w) = cloud->at(w,h).z;
}
}
}
if (!float_depth) {
img.convertTo(img, CV_16U, 1000.0);
}
}
return img;
}
template<typename PointT>
typename pcl::PointCloud<PointT>::Ptr organizePointCloudToImageView(const typename pcl::PointCloud<PointT>::ConstPtr &cloud_in, const cv::Size &im_size, const cv::Mat &K, const cv::Mat &d) {
// PointT pt;
// pt.x = pt.y = pt.z = std::numeric_limits<float>::quiet_NaN();
// typename pcl::PointCloud<PointT>::Ptr cloud_out(new pcl::PointCloud<PointT>(im_size.width,im_size.height, pt));
typename pcl::PointCloud<PointT>::Ptr cloud_out(new pcl::PointCloud<PointT>(im_size.width,im_size.height));
// cloud_out->getMatrixXfMap().topRows(3) = Eigen::MatrixXf::Constant(3, im_size.width*im_size.height, std::numeric_limits<float>::quiet_NaN());
typename pcl::PointCloud<PointT>::Ptr cloud(new pcl::PointCloud<PointT>);
std::vector<int> tmp;
pcl::removeNaNFromPointCloud(*cloud_in, *cloud, tmp);
if (cloud->empty()) {
return cloud_out;
}
Eigen::MatrixXf pts3d_e = cloud->getMatrixXfMap().topRows(3).transpose();
Eigen::Matrix3f R_id_e = Eigen::Matrix3f::Identity();
Eigen::Vector3f t_id_e = Eigen::Vector3f::Zero();
cv::Mat pts2d, pts3d, rvec, R_id, t_id;
cv::eigen2cv(pts3d_e, pts3d);
cv::eigen2cv(R_id_e, R_id);
cv::eigen2cv(t_id_e, t_id);
cv::Rodrigues(R_id, rvec);
cv::projectPoints(pts3d, rvec, t_id, K, d, pts2d);
for (int i = 0; i < pts2d.rows; ++i) {
int col = std::round(pts2d.at<cv::Vec2f>(i,0)[0]);
int row = std::round(pts2d.at<cv::Vec2f>(i,0)[1]);
if (col >= 0 && col < cloud_out->width && row >= 0 && row < cloud_out->height) {
cloud_out->at(col,row) = cloud->points[i];
}
}
return cloud_out;
}
template<typename PointInT, typename PointOutT>
typename pcl::PointCloud<PointOutT>::Ptr colorOrganizedPointCloudFromImageView(const typename pcl::PointCloud<PointInT>::ConstPtr &cloud_in, const cv::Mat &img) {
typename pcl::PointCloud<PointOutT>::Ptr cloud_out(new pcl::PointCloud<PointOutT>);
pcl::copyPointCloud<PointInT,PointOutT>(*cloud_in, *cloud_out);
for (int row = 0; row < img.rows; ++row) {
for (int col = 0; col < img.cols; ++col) {
cloud_out->at(col,row).r = img.at<cv::Vec3b>(row,col)[2];
cloud_out->at(col,row).g = img.at<cv::Vec3b>(row,col)[1];
cloud_out->at(col,row).b = img.at<cv::Vec3b>(row,col)[0];
}
}
return cloud_out;
}
template<typename PointInT, typename PointOutT>
typename pcl::PointCloud<PointOutT>::Ptr colorPointCloudFromImageView(const typename pcl::PointCloud<PointInT>::ConstPtr &cloud_in, const cv::Mat &img, const cv::Mat &K, const cv::Mat &d) {
typename pcl::PointCloud<PointOutT>::Ptr cloud_out(new pcl::PointCloud<PointOutT>);
typename pcl::PointCloud<PointOutT>::Ptr cloud(new pcl::PointCloud<PointOutT>);
pcl::copyPointCloud<PointInT,PointOutT>(*cloud_in, *cloud);
std::vector<int> tmp;
pcl::removeNaNFromPointCloud(*cloud, *cloud, tmp);
if (cloud->empty()) {
return cloud_out;
}
Eigen::MatrixXf pts3d_e = cloud->getMatrixXfMap().topRows(3).transpose();
Eigen::Matrix3f R_id_e = Eigen::Matrix3f::Identity();
Eigen::Vector3f t_id_e = Eigen::Vector3f::Zero();
cv::Mat pts2d, pts3d, rvec, R_id, t_id;
cv::eigen2cv(pts3d_e, pts3d);
cv::eigen2cv(R_id_e, R_id);
cv::eigen2cv(t_id_e, t_id);
cv::Rodrigues(R_id, rvec);
cv::projectPoints(pts3d, rvec, t_id, K, d, pts2d);
PointOutT pt;
for (int i = 0; i < pts2d.rows; ++i) {
int col = std::round(pts2d.at<cv::Vec2f>(i,0)[0]);
int row = std::round(pts2d.at<cv::Vec2f>(i,0)[1]);
if (col >= 0 && col < img.cols && row >= 0 && row < img.rows) {
pt = cloud->points[i];
pt.r = img.at<cv::Vec3b>(row,col)[2];
pt.g = img.at<cv::Vec3b>(row,col)[1];
pt.b = img.at<cv::Vec3b>(row,col)[0];
cloud_out->push_back(pt);
}
}
return cloud_out;
}
template<typename PointT>
typename pcl::PointCloud<PointT>::Ptr pointCloudFromDepthImage(const cv::Mat &depth_img, const Eigen::Matrix3f &K, bool org) {
typename pcl::PointCloud<PointT>::Ptr res;
cv::Mat depth;
if (depth_img.type() == CV_16U) {
depth_img.convertTo(depth, CV_32F, 0.001);
} else {
depth = depth_img;
}
if (org) {
res = typename pcl::PointCloud<PointT>::Ptr(new pcl::PointCloud<PointT>(depth.cols, depth.rows));
for (int row = 0; row < depth.rows; ++row) {
for (int col = 0; col < depth.cols; ++col) {
float d = depth.at<float>(row,col);
PointT pt;
pt.x = (col - K(0,2)) * d / K(0,0);
pt.y = (row - K(1,2)) * d / K(1,1);
pt.z = d;
res->at(col,row) = pt;
}
}
} else {
res = typename pcl::PointCloud<PointT>::Ptr(new pcl::PointCloud<PointT>);
res->resize(depth.cols*depth.rows);
int num = 0;
for (int row = 0; row < depth.rows; ++row) {
for (int col = 0; col < depth.cols; ++col) {
float d = depth.at<float>(row,col);
if (d > 0.0) {
PointT pt;
pt.x = (col - K(0,2)) * d / K(0,0);
pt.y = (row - K(1,2)) * d / K(1,1);
pt.z = d;
res->at(num++) = pt;
}
}
}
res->resize(num);
}
return res;
}
template<typename PointT>
typename pcl::PointCloud<PointT>::Ptr pointCloudFromRGBDImages(const cv::Mat &rgb_img, const cv::Mat &depth_img, const Eigen::Matrix3f &K, bool org) {
typename pcl::PointCloud<PointT>::Ptr res;
cv::Mat depth;
if (depth_img.type() == CV_16U) {
depth_img.convertTo(depth, CV_32F, 0.001);
} else {
depth = depth_img;
}
if (org) {
res = typename pcl::PointCloud<PointT>::Ptr(new pcl::PointCloud<PointT>(depth.cols, depth.rows));
for (int row = 0; row < depth.rows; ++row) {
for (int col = 0; col < depth.cols; ++col) {
float d = depth.at<float>(row,col);
cv::Vec3b c = rgb_img.at<cv::Vec3b>(row,col);
PointT pt;
pt.x = (col - K(0,2)) * d / K(0,0);
pt.y = (row - K(1,2)) * d / K(1,1);
pt.z = d;
pt.r = c[2];
pt.g = c[1];
pt.b = c[0];
res->at(col,row) = pt;
}
}
} else {
res = typename pcl::PointCloud<PointT>::Ptr(new pcl::PointCloud<PointT>);
res->resize(depth.cols*depth.rows);
int num = 0;
for (int row = 0; row < depth.rows; ++row) {
for (int col = 0; col < depth.cols; ++col) {
float d = depth.at<float>(row,col);
cv::Vec3b c = rgb_img.at<cv::Vec3b>(row,col);
if (d > 0.0) {
PointT pt;
pt.x = (col - K(0,2)) * d / K(0,0);
pt.y = (row - K(1,2)) * d / K(1,1);
pt.z = d;
pt.r = c[2];
pt.g = c[1];
pt.b = c[0];
res->at(num++) = pt;
}
}
}
res->resize(num);
}
return res;
}
template<typename PointT>
void organizedPointCloudToCvMat(const typename pcl::PointCloud<PointT>::ConstPtr &cloud, cv::Mat &cv_xyz) {
cv_xyz = cv::Mat(cloud->height, cloud->width, CV_32FC3);
for (int row = 0; row < cv_xyz.rows; ++row) {
for (int col = 0; col < cv_xyz.cols; ++col) {
PointT pt = cloud->at(col,row);
cv_xyz.at<cv::Vec3f>(row,col) = cv::Vec3f(pt.x, pt.y, pt.z);
}
}
}
template<typename PointT>
void organizedColoredPointCloudToCvMats(const typename pcl::PointCloud<PointT>::ConstPtr &cloud, cv::Mat &cv_rgb, cv::Mat &cv_xyz) {
cv_rgb = cv::Mat(cloud->height, cloud->width, CV_8UC3);
cv_xyz = cv::Mat(cloud->height, cloud->width, CV_32FC3);
for (int row = 0; row < cv_xyz.rows; ++row) {
for (int col = 0; col < cv_xyz.cols; ++col) {
PointT pt = cloud->at(col,row);
cv_rgb.at<cv::Vec3b>(row,col) = cv::Vec3b(pt.b, pt.g, pt.r);
cv_xyz.at<cv::Vec3f>(row,col) = cv::Vec3f(pt.x, pt.y, pt.z);
}
}
}
template<typename PointT>
void cvMatToOrganizedPointCloud(const cv::Mat &cv_xyz, typename pcl::PointCloud<PointT>::Ptr &pcl_cloud) {
pcl_cloud = typename pcl::PointCloud<PointT>::Ptr(new pcl::PointCloud<PointT>(cv_xyz.cols, cv_xyz.rows));
for (int row = 0; row < cv_xyz.rows; ++row) {
for (int col = 0; col < cv_xyz.cols; ++col) {
cv::Vec3f pt_cv = cv_xyz.at<cv::Vec3f>(row,col);
PointT pt;
pt.x = pt_cv[0];
pt.y = pt_cv[1];
pt.z = pt_cv[2];
pcl_cloud->at(col,row) = pt;
}
}
}
template<typename PointT>
void cvMatsToOrganizedColoredPointCloud(const cv::Mat &cv_rgb, const cv::Mat &cv_xyz, typename pcl::PointCloud<PointT>::Ptr &pcl_cloud) {
pcl_cloud = typename pcl::PointCloud<PointT>::Ptr(new pcl::PointCloud<PointT>(cv_xyz.cols, cv_xyz.rows));
for (int row = 0; row < cv_xyz.rows; ++row) {
for (int col = 0; col < cv_xyz.cols; ++col) {
cv::Vec3b rgb = cv_rgb.at<cv::Vec3b>(row,col);
cv::Vec3f pt_cv = cv_xyz.at<cv::Vec3f>(row,col);
PointT pt;
pt.x = pt_cv[0];
pt.y = pt_cv[1];
pt.z = pt_cv[2];
pt.r = rgb[2];
pt.g = rgb[1];
pt.b = rgb[0];
pcl_cloud->at(col,row) = pt;
}
}
}
template <typename PointT>
void pointCloudToRGBDImages(const typename pcl::PointCloud<PointT>::ConstPtr &cloud, const cv::Size &im_size, const Eigen::Matrix3f &K, const Eigen::Matrix4f &pose, cv::Mat &rgb_img, cv::Mat &depth_img, bool float_depth = false) {
typename pcl::PointCloud<PointT>::Ptr cloud_t(new pcl::PointCloud<PointT>);
pcl::transformPointCloud(*cloud, *cloud_t, pose);
rgb_img = cv::Mat(im_size, CV_8UC3, cv::Scalar(0));
depth_img = cv::Mat(im_size, CV_32F, cv::Scalar(0));
PointT pt;
int row, col;
float d;
for (int i = 0; i < cloud_t->points.size(); ++i) {
pt = cloud_t->points[i];
row = std::round(pt.y*K(1,1)/pt.z + K(1,2));
col = std::round(pt.x*K(0,0)/pt.z + K(0,2));
if (row >= 0 && row < depth_img.rows && col >= 0 && col < depth_img.cols) {
d = depth_img.at<float>(row,col);
if (pt.z >= 0.0 && (d == 0.0 || pt.z < d)) {
depth_img.at<float>(row,col) = pt.z;
rgb_img.at<cv::Vec3b>(row,col)[0] = (unsigned char)pt.b;
rgb_img.at<cv::Vec3b>(row,col)[1] = (unsigned char)pt.g;
rgb_img.at<cv::Vec3b>(row,col)[2] = (unsigned char)pt.r;
}
}
}
if (!float_depth) {
depth_img.convertTo(depth_img, CV_16U, 1000.0);
}
}
template <typename PointT>
void pointCloudToDepthImage(const typename pcl::PointCloud<PointT>::ConstPtr &cloud, const cv::Size &im_size, const Eigen::Matrix3f &K, const Eigen::Matrix4f &pose, cv::Mat &depth_img, bool float_depth = false) {
typename pcl::PointCloud<PointT>::Ptr cloud_t(new pcl::PointCloud<PointT>);
pcl::transformPointCloud(*cloud, *cloud_t, pose);
depth_img = cv::Mat(im_size, CV_32F, cv::Scalar(0));
PointT pt;
int row, col;
float d;
for (int i = 0; i < cloud_t->points.size(); ++i) {
pt = cloud_t->points[i];
row = std::round(pt.y*K(1,1)/pt.z + K(1,2));
col = std::round(pt.x*K(0,0)/pt.z + K(0,2));
if (row >= 0 && row < depth_img.rows && col >= 0 && col < depth_img.cols) {
d = depth_img.at<float>(row,col);
if (pt.z >= 0.0 && (d == 0.0 || pt.z < d)) {
depth_img.at<float>(row,col) = pt.z;
}
}
}
if (!float_depth) {
depth_img.convertTo(depth_img, CV_16U, 1000.0);
}
}
#endif /* REGISTRATION_UTILITIES_HPP */
| 37.393795 | 368 | 0.664922 | [
"vector"
] |
57f2f5bb818170e2d9a8179b4ddee88082fc69fa | 9,058 | cpp | C++ | src/linux_parser.cpp | danishuzair/CppND-System-Monitor | a2ee41b4f0fb03d10f4402b96c186d06c99273ba | [
"MIT"
] | null | null | null | src/linux_parser.cpp | danishuzair/CppND-System-Monitor | a2ee41b4f0fb03d10f4402b96c186d06c99273ba | [
"MIT"
] | null | null | null | src/linux_parser.cpp | danishuzair/CppND-System-Monitor | a2ee41b4f0fb03d10f4402b96c186d06c99273ba | [
"MIT"
] | null | null | null | #include <dirent.h>
#include <unistd.h>
#include <string>
#include <vector>
#include "linux_parser.h"
using std::stof;
using std::string;
using std::to_string;
using std::vector;
// DONE: An example of how to read data from the filesystem
string LinuxParser::OperatingSystem() {
string line;
string key;
string value;
std::ifstream filestream(kOSPath);
if (filestream.is_open()) {
while (std::getline(filestream, line)) {
std::replace(line.begin(), line.end(), ' ', '_');
std::replace(line.begin(), line.end(), '=', ' ');
std::replace(line.begin(), line.end(), '"', ' ');
std::istringstream linestream(line);
while (linestream >> key >> value) {
if (key == "PRETTY_NAME") {
std::replace(value.begin(), value.end(), '_', ' ');
return value;
}
}
}
}
return string();
}
// DONE: An example of how to read data from the filesystem
string LinuxParser::Kernel() {
string os, version, kernel;
string line;
std::ifstream stream(kProcDirectory + kVersionFilename);
if (stream.is_open()) {
std::getline(stream, line);
std::istringstream linestream(line);
linestream >> os >> version >> kernel;
}
return kernel;
}
// BONUS: Update this to use std::filesystem
vector<int> LinuxParser::Pids() {
vector<int> pids;
DIR* directory = opendir(kProcDirectory.c_str());
struct dirent* file;
while ((file = readdir(directory)) != nullptr) {
// Is this a directory?
if (file->d_type == DT_DIR) {
// Is every character of the name a digit?
string filename(file->d_name);
if (std::all_of(filename.begin(), filename.end(), isdigit)) {
int pid = stoi(filename);
pids.push_back(pid);
}
}
}
closedir(directory);
return pids;
}
// TODO: Read and return the system memory utilization
float LinuxParser::MemoryUtilization() {
float memoryutilization;
std::string key, kB;
int memory, memorytotal=1, memoryfree=0;
string line;
std::ifstream stream(kProcDirectory + kMeminfoFilename);
if(stream.is_open()) {
while(std::getline(stream,line)) {
std::istringstream linestream(line);
while (linestream>>key>>memory>>kB) {
if (key == "MemTotal:") {
memorytotal = memory;
}
else if (key == "MemFree:") {
memoryfree = memory;
break;
}
}
}
}
memoryutilization = float(memorytotal - memoryfree) / float(memorytotal);
return memoryutilization;
}
// TODO: Read and return the system uptime
long LinuxParser::UpTime() {
long uptime = 0;
std::ifstream stream(kProcDirectory+kUptimeFilename);
string line;
std::getline(stream, line);
std::istringstream linestream(line);
std::istream_iterator<string> beginning(linestream), end;
std::vector<string> line_content(beginning, end);
uptime = std::stol(line_content[0]);// + std::stol(line_content[1]); // + value3;
return uptime;
}
//// TODO: Read and return the number of jiffies for the system
//long LinuxParser::Jiffies() { return 0; }
//
//// TODO: Read and return the number of active jiffies for a PID
//// REMOVE: [[maybe_unused]] once you define the function
//long LinuxParser::ActiveJiffies(int pid[[maybe_unused]]) { return 0; }
//
//// TODO: Read and return the number of active jiffies for the system
//long LinuxParser::ActiveJiffies() { return 0; }
//
//// TODO: Read and return the number of idle jiffies for the system
//long LinuxParser::IdleJiffies() { return 0; }
// TODO: Read and return CPU utilization
float LinuxParser::ProcessUtilization(int pid) {
std::ifstream stream(kProcDirectory+std::to_string(pid)+kStatFilename);
string line;
std::getline(stream, line);
std::istringstream linestream(line);
std::istream_iterator<string> beginning(linestream), end;
std::vector<string> line_content(beginning, end);
float hertz = float(sysconf(_SC_CLK_TCK));
float total_time = (std::stof(line_content[13]) + std::stof(line_content[14]) + std::stof(line_content[15]) + std::stof(line_content[16]))/hertz;
float seconds = float(UpTime()) - (std::stof(line_content[21])/ hertz);
float processutilization = (total_time / seconds);
return processutilization;
}
std::vector<std::string> LinuxParser::CpuUtilization() {
std::vector<std::string> cpuutilization;
string s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, key;
string line;
std::ifstream stream(kProcDirectory + kStatFilename);
if (stream.is_open()) {
while(std::getline(stream, line)) {
std::istringstream linestream(line);
linestream >> key >>s1>>s2>>s3>>s4>>s5>>s6>>s7>>s8>>s9>>s10;
if (key == "cpu") {
break;
}
}
}
cpuutilization.push_back(s1);
cpuutilization.push_back(s2);
cpuutilization.push_back(s3);
cpuutilization.push_back(s4);
cpuutilization.push_back(s5);
cpuutilization.push_back(s6);
cpuutilization.push_back(s7);
cpuutilization.push_back(s8);
cpuutilization.push_back(s9);
cpuutilization.push_back(s10);
return cpuutilization;
}
// TODO: Read and return the total number of processes
int LinuxParser::TotalProcesses() {
string line;
string key;
int value=0;
std::ifstream filestream(kProcDirectory+kStatFilename);
if (filestream.is_open()) {
while (std::getline(filestream, line)) {
std::istringstream linestream(line);
while (linestream >> key >> value) {
if (key == "processes") {
return value;
}
}
}
}
return value;
}
// TODO: Read and return the number of running processes
int LinuxParser::RunningProcesses() {
string line;
string key;
int value=0;
std::ifstream filestream(kProcDirectory+kStatFilename);
if (filestream.is_open()) {
while (std::getline(filestream, line)) {
std::istringstream linestream(line);
while (linestream >> key >> value) {
if (key == "procs_running") {
return value;
}
}
}
}
return value;
}
// TODO: Read and return the command associated with a process
// REMOVE: [[maybe_unused]] once you define the function
string LinuxParser::Command(int pid) {
string line;
std::ifstream stream(kProcDirectory+std::to_string(pid)+kCmdlineFilename);
if (stream.is_open()) {
std::getline (stream, line);
return line;
}
return string();
}
// TODO: Read and return the memory used by a process
// REMOVE: [[maybe_unused]] once you define the function
string LinuxParser::Ram(int pid) {
string line, key, ram;
std::ifstream stream(kProcDirectory+std::to_string(pid)+kStatusFilename);
if (stream.is_open()) {
while (std::getline(stream,line)) {
std::istringstream linestream(line);
while (linestream >> key >> ram) {
if (key == "VmSize:") {
return ram;
}
}
}
}
return string();
}
// TODO: Read and return the user ID associated with a process
// REMOVE: [[maybe_unused]] once you define the function
string LinuxParser::Uid(int pid) {
string uid;
string line, key;
std::ifstream stream(kProcDirectory+std::to_string(pid)+kStatusFilename);
if(stream.is_open()) {
while (std::getline(stream, line)) {
std::istringstream linestream(line);
while (linestream >> key >> uid) {
if (key == "Uid:") {
return uid;
}
}
}
}
return string();
}
// TODO: Read and return the user associated with a process
// REMOVE: [[maybe_unused]] once you define the function
string LinuxParser::User(int uid) {
string line, username, uid_tofind=std::to_string(uid), donotcare, uid_found;
std::ifstream stream(kPasswordPath);
if(stream.is_open()) {
while(std::getline(stream, line)) {
std::replace(line.begin(), line.end(), ':', ' ');
std::istringstream linestream(line);
while (linestream >> username >> donotcare >> uid_found) {
if (uid_found == uid_tofind) {
return username;
}
}
}
}
return string();
}
// TODO: Read and return the uptime of a process
// REMOVE: [[maybe_unused]] once you define the function
long LinuxParser::UpTime(int pid) {
std::ifstream stream(kProcDirectory+std::to_string(pid)+kStatFilename);
string line;
std::getline(stream, line);
std::istringstream linestream(line);
std::istream_iterator<string> beginning(linestream), end;
std::vector<string> line_content(beginning, end);
int long hertz = sysconf(_SC_CLK_TCK);
int long uptime = UpTime() - std::stol(line_content[21]) / hertz;
return uptime;
} | 32.120567 | 149 | 0.615809 | [
"vector"
] |
57f7ab08c8a5ab9980d507459689c178f9aa28f6 | 10,833 | cpp | C++ | text/text-expression-cmds.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 10 | 2016-12-28T22:06:31.000Z | 2021-05-24T13:42:30.000Z | text/text-expression-cmds.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 4 | 2015-10-09T23:55:10.000Z | 2020-04-04T08:09:22.000Z | text/text-expression-cmds.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | null | null | null | // -*- coding: us-ascii-unix -*-
// Copyright 2014 Lukas Kemmer
//
// 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 <functional>
#include <map>
#include <sstream>
#include "geo/tri.hh"
#include "objects/object.hh"
#include "text/char-constants.hh"
#include "text/formatting.hh"
#include "text/slice.hh"
#include "text/string-util.hh"
#include "text/text-expression.hh"
#include "text/text-expression-cmds.hh"
#include "text/text-expression-conversions.hh"
#include "util/object-util.hh"
#include "util/optional.hh"
#include "generated/text-expression-constants.hh"
namespace faint{
constexpr Precision EXPRESSION_FLOAT_PRECISION(2);
template<Optional<coord>(*func)(const ExpressionContext&)>
static coord or_throw(const utf8_string& unit, const ExpressionContext& c){
return func(c).Visit(
[](coord factor){
return factor;
},
[&]() -> coord{
throw ExpressionEvalError(space_sep("Coordinate system not calibrated,",
unit, "not available."));
});
}
static const Object* get_object_or_throw(const ExpressionContext& ctx,
const utf8_string& name)
{
const Object* obj = ctx.GetObject(name);
if (obj == nullptr){
throw ExpressionEvalError(space_sep("No object named",
quoted(name) + "."));
}
return obj;
}
static void throw_if_wrong_arg_count(const utf8_string& command,
size_t expected,
const expr_list& args)
{
size_t size = args.size();
if (size != expected){
throw CommandParseError(space_sep(command,
"expects",
pluralize_count(expected, "argument")));
}
}
using MeasureFunc = const std::function<coord(const Object*,
const ExpressionContext&)>;
template<typename T>
class MeasureExpression : public TextExpression{
public:
// Base for measurement expressions. Derived classes must specialize
// some private virtuals.
//
// Templated on the derived type, to allow cloning.
MeasureExpression(const utf8_string& name,
const MeasureFunc& func,
expr_list& args)
: m_func(func),
m_name(name)
{
throw_if_wrong_arg_count(name,
2, args);
m_object = std::move(args[0]);
m_unit = std::move(args[1]);
}
TextExpression* Clone() const override{
expr_list args;
args.emplace_back(m_object->Clone());
args.emplace_back(m_unit->Clone());
return new T(m_name, m_func, args);
}
utf8_string Evaluate(const ExpressionContext& ctx) const override{
const Object* object = get_object_or_throw(ctx, m_object->Evaluate(ctx));
utf8_string wantedUnit = m_unit->Evaluate(ctx);
coord pixels = m_func(object, ctx);
if (wantedUnit.empty()){
throw ExpressionEvalError(space_sep("No unit specified"));
}
const auto& conversions = length_conversions();
CheckUnit(wantedUnit, conversions);
const utf8_string intrinsicUnit(IntrinsicUnit(wantedUnit));
const faint::coord value = intrinsicUnit == unit_px ?
pixels :
ctx.GetCalibration().Visit(
[&](const Calibration& c) -> coord{
coord calibratedMeasure = pixels / AdjustConversion(c.Scale());
auto it = conversions.find(intrinsicUnit);
if (it == end(conversions)){
throw ExpressionEvalError(space_sep("Unknown unit:",
wantedUnit + "."));
}
else{
return it->second[c.unit].Visit(
[&](coord calibratedToWanted){
return calibratedMeasure * calibratedToWanted;
},
[&]() -> coord{
throw ExpressionEvalError(space_sep("No known conversion",
"from", wantedUnit, "to", c.unit));
});
}
},
[&]() -> coord{
throw ExpressionEvalError(space_sep("Coordinate system not",
"calibrated,", wantedUnit,
"not available."));
});
return str(value, EXPRESSION_FLOAT_PRECISION);
}
MeasureExpression() = delete;
private:
// Check that the unit is acceptable for the derived type (T).
// Should throw ExpressionEvalError otherwise.
virtual void CheckUnit(const utf8_string&,
const conversions_map_t&) const = 0;
// Returns the "intrinsic" unit that makes up unit, e.g. mm for mm2
virtual utf8_string IntrinsicUnit(const utf8_string& unit) const = 0;
// Adjust the conversion from pixels to calibrated measure,
// allows squaring the measure for area measurements.
virtual coord AdjustConversion(coord conversion) const = 0;
private:
MeasureFunc m_func;
const utf8_string& m_name;
expr_ptr m_object;
expr_ptr m_unit;
};
class AreaExpression : public MeasureExpression<AreaExpression>{
public:
using MeasureExpression::MeasureExpression;
private:
void CheckUnit(const utf8_string& unit,
const conversions_map_t& c) const override
{
if (!ends(unit, with("2"))){
if (unit != unit_px && c.find(unit) == end(c)){
throw ExpressionEvalError(space_sep("Unknown unit:", unit + "."));
}
else{
throw ExpressionEvalError(space_sep("Length unit", unit,
"specified for area. Use", no_sep(unit, "2"), "instead."));
}
}
}
utf8_string IntrinsicUnit(const utf8_string& unit) const override{
assert(!unit.empty());
// Strip "2" (for square)., e.g. mm2->mm
return slice_up_to(unit, -1);
}
coord AdjustConversion(coord conversion) const override{
// Use conversion^2 for area conversions
return conversion * conversion;
}
};
class LengthExpression : public MeasureExpression<LengthExpression>{
public:
using MeasureExpression::MeasureExpression;
private:
void CheckUnit(const utf8_string& unit,
const conversions_map_t& c) const override
{
if (ends(unit, with("2"))){
auto desquared(slice_up_to(unit, -1));
if (desquared != unit_px && c.find(desquared) == end(c)){
throw ExpressionEvalError(space_sep("Unknown unit:", unit + "."));
}
else{
throw ExpressionEvalError(space_sep("Area unit", unit,
"specified for length. Use", desquared, "instead."));
}
}
}
utf8_string IntrinsicUnit(const utf8_string& unit) const override{
// Unit used as is for looking up measurement conversions.
return unit;
}
coord AdjustConversion(coord conversion) const override{
// Used as is for lengths.
return conversion;
}
};
static bool is_hex(const utf8_string& str_u8){
if (!is_ascii(str_u8)){
return false;
}
std::string s(str_u8.str());
return s.find_first_not_of("0123456789abcdefABCDEF") == std::string::npos;
}
static unsigned int from_hex_str(const utf8_string& s){
if (!is_hex(s)){
throw ExpressionEvalError(space_sep(s, "is not a hexadecimal value."));
}
std::istringstream ss(s.str());
ss >> std::hex;
unsigned int value = 0;
if (!(ss >> value)){
throw ExpressionEvalError(space_sep(s, "is not a hexadecimal value."));
}
return value;
}
class UnicodeExpression : public TextExpression{
public:
explicit UnicodeExpression(expr_list& args){
throw_if_wrong_arg_count(Name(),
1, args);
m_arg = std::move(args[0]);
}
utf8_string Evaluate(const ExpressionContext& ctx) const override{
utf8_string text = m_arg->Evaluate(ctx);
unsigned int cp = from_hex_str(text);
if (surrogate_codepoint(cp)){
throw ExpressionEvalError(space_sep("Invalid code point:",
text, "(UTF-16 surrogate pair)."));
}
else if (cp > 0x10ffff){
throw ExpressionEvalError(space_sep("Invalid code point:",
text, " > 10FFFF"));
}
return utf8_string(1, utf8_char(cp));
}
TextExpression* Clone() const override{
expr_list args;
args.emplace_back(m_arg->Clone());
return new UnicodeExpression(args);
}
static utf8_string Name(){
return "u";
}
private:
expr_ptr m_arg;
};
class CommandExpressions{
// Factory for commands (e.g. AreaExpression).
public:
using creation_func = std::function<TextExpression*(expr_list& args)>;
void Add(const utf8_string& s, const creation_func& f){
m_creators[s] = f;
}
TextExpression* Create(const utf8_string& name, expr_list& args) const{
auto it = m_creators.find(name);
if (it == m_creators.end()){
return nullptr;
}
return it->second(args);
}
std::vector<utf8_string> GetNames() const{
std::vector<utf8_string> v;
for (const auto& item : m_creators){
v.emplace_back(item.first);
}
return v;
}
private:
std::map<utf8_string, creation_func> m_creators;
};
static CommandExpressions init_command_expressions(){
CommandExpressions c;
c.Add("perimeter",
[](expr_list& args){
return new LengthExpression("perimeter",
[](const Object* obj, const ExpressionContext& ctx){
if (is_text(*obj)){
// \ref(err1): Checking perimeter of self could lead to infinite
// recursion, as ObjText::GetPath evaluates its
// expression. Referring to other text objects should be
// OK but I have no way to test this.
return 0.0;
}
return perimeter(obj, ctx);
}, args);
});
c.Add("width",
[](expr_list& args){
return new LengthExpression("width",
[](const Object* obj, const ExpressionContext&){
return obj->GetTri().Width();
}, args);});
c.Add("height",
[](expr_list& args){
return new LengthExpression("height",
[](const Object* obj, const ExpressionContext&){
return obj->GetTri().Height();
}, args);});
c.Add("area",
[](expr_list& args){
return new AreaExpression("area",
[](const Object* obj, const ExpressionContext&){
return object_area(obj);
}, args);});
c.Add(UnicodeExpression::Name(),
[](expr_list& args){
return new UnicodeExpression(args);
});
return c;
}
const CommandExpressions& command_expressions(){
static CommandExpressions c(init_command_expressions());
return c;
}
std::vector<utf8_string> command_expr_names(){
return command_expressions().GetNames();
}
TextExpression* create_command_expr(const utf8_string& name, expr_list& args){
return command_expressions().Create(name, args);
}
bool is_text_expression_constant(const utf8_string& name){
auto e = constant_exprs();
return e.find(name) != e.end();
}
} // namespace
| 28.433071 | 78 | 0.66279 | [
"object",
"vector"
] |
57fafaf7883b5f2be2a0eb3afe1cbe32fe42923d | 1,354 | hpp | C++ | unicode/transform.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | unicode/transform.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | unicode/transform.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | // Andrew Naplavkov
#ifndef BRIG_UNICODE_TRANSFORM_HPP
#define BRIG_UNICODE_TRANSFORM_HPP
#include <brig/unicode/detail/transform_impl.hpp>
#include <brig/unicode/detail/transformer.hpp>
namespace brig { namespace unicode {
template <typename OutputCodeUnit, typename InputCodeUnit, typename Mapping>
std::basic_string<OutputCodeUnit> transform(const InputCodeUnit* ptr, Mapping mapping)
{
return detail::transform_impl<OutputCodeUnit>(ptr, mapping);
}
template <typename OutputCodeUnit, typename InputCodeUnit, typename Mapping>
std::basic_string<OutputCodeUnit> transform(const std::basic_string<InputCodeUnit>& str, Mapping mapping)
{
return detail::transform_impl<OutputCodeUnit>(str.c_str(), mapping);
}
template <typename OutputCodeUnit, typename InputCodeUnit>
std::basic_string<OutputCodeUnit> transform(const InputCodeUnit* ptr)
{
return detail::transformer<OutputCodeUnit, InputCodeUnit, sizeof(InputCodeUnit) == sizeof(OutputCodeUnit)>::apply(ptr);
}
template <typename OutputCodeUnit, typename InputCodeUnit>
std::basic_string<OutputCodeUnit> transform(const std::basic_string<InputCodeUnit>& str)
{
return detail::transformer<OutputCodeUnit, InputCodeUnit, sizeof(InputCodeUnit) == sizeof(OutputCodeUnit)>::apply(str.c_str());
}
} } // brig::unicode
#endif // BRIG_UNICODE_TRANSFORM_HPP
| 35.631579 | 130 | 0.783604 | [
"transform"
] |
57ff01ee07d330defb4e57a28d636f6b51d83268 | 276,647 | cpp | C++ | source/games/blood/src/nnexts.cpp | Quake-Backup/Raze | 16c81f0b1f409436ebf576d2c23f2459a29b34b4 | [
"RSA-MD"
] | 1 | 2022-03-30T15:53:09.000Z | 2022-03-30T15:53:09.000Z | source/games/blood/src/nnexts.cpp | Quake-Backup/Raze | 16c81f0b1f409436ebf576d2c23f2459a29b34b4 | [
"RSA-MD"
] | null | null | null | source/games/blood/src/nnexts.cpp | Quake-Backup/Raze | 16c81f0b1f409436ebf576d2c23f2459a29b34b4 | [
"RSA-MD"
] | null | null | null | //-------------------------------------------------------------------------
/*
Copyright (C) 2010-2019 EDuke32 developers and contributors
Copyright (C) 2019 Nuke.YKT
Copyright (C) NoOne
This file is part of NBlood.
NBlood is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 2
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
//-------------------------------------------------------------------------
///////////////////////////////////////////////////////////////////
// This file provides modern features for mappers.
// For full documentation please visit http://cruo.bloodgame.ru/xxsystem
///////////////////////////////////////////////////////////////////
#include "ns.h"
#ifdef NOONE_EXTENSIONS
#include <random>
#include "blood.h"
#include "savegamehelp.h"
BEGIN_BLD_NS
inline int mulscale8(int a, int b) { return MulScale(a, b, 8); }
bool gAllowTrueRandom = false;
bool gEventRedirectsUsed = false;
short gEffectGenCallbacks[] = {
kCallbackFXFlameLick,
kCallbackFXFlareSpark,
kCallbackFXFlareSparkLite,
kCallbackFXZombieSpurt,
kCallbackFXBloodSpurt,
kCallbackFXArcSpark,
kCallbackFXTeslaAlt,
};
TRPLAYERCTRL gPlayerCtrl[kMaxPlayers];
TRCONDITION gCondition[kMaxTrackingConditions];
int gTrackingCondsCount;
std::default_random_engine gStdRandom;
const VECTORINFO_EXTRA gVectorInfoExtra[] = {
1207,1207, 1001,1001, 4001,4002,
431,431, 1002,1002, 359,359,
521,521, 513,513, 499,499,
9012,9014, 1101,1101, 1207,1207,
499,495, 495,496, 9013,499,
1307,1308, 499,499, 499,499,
499,499, 499,499, 351,351,
0,0, 357,499
};
const MISSILEINFO_EXTRA gMissileInfoExtra[] = {
1207, 1207, false, false, false, false, false, true, false, true,
420, 420, false, true, true, false, false, false, false, true,
471, 471, false, false, false, false, false, false, true, false,
421, 421, false, true, false, true, false, false, false, false,
1309, 351, false, true, false, false, false, false, false, true,
480, 480, false, true, false, true, false, false, false, false,
470, 470, false, false, false, false, false, false, true, true,
489, 490, false, false, false, false, false, true, false, true,
462, 351, false, true, false, false, false, false, false, true,
1203, 172, false, false, true, false, false, false, false, true,
0,0, false, false, true, false, false, false, false, true,
1457, 249, false, false, false, false, false, true, false, true,
480, 489, false, true, false, true, false, false, false, false,
480, 489, false, false, false, true, false, false, false, false,
480, 489, false, false, false, true, false, false, false, false,
491, 491, true, true, true, true, true, true, true, true,
520, 520, false, false, false, false, false, true, false, true,
520, 520, false, false, false, false, false, true, false, true,
};
const THINGINFO_EXTRA gThingInfoExtra[] = {
true, true, true, false, false,
false, false, false, false, false,
false, false, false, false, false,
true, false, false, true, true,
true, true, false, false, false,
false, false, true, true, true,
true, true, true, true, true,
true,
};
const DUDEINFO_EXTRA gDudeInfoExtra[] = {
{ false, false, -1, -1, -1, -1, -1, -1 }, // 200
{ false, false, 0, 9, 13, 13, 17, 14 }, // 201
{ false, false, 0, 9, 13, 13, 17, 14 }, // 202
{ false, true, 0, 8, 0, 8, -1, -1 }, // 203
{ false, false, 0, 8, 0, 8, -1, -1 }, // 204
{ false, true, 1, -1, -1, -1, -1, -1 }, // 205
{ true, true, 0, 0, 0, 0, -1, -1 }, // 206
{ true, false, 0, 0, 0, 0, -1, -1 }, // 207
{ true, false, 1, -1, -1, -1, -1, -1 }, // 208
{ true, false, 1, -1, -1, -1, -1, -1 }, // 209
{ true, true, 0, 0, 0, 0, -1, -1 }, // 210
{ false, true, 0, 8, 0, 8, -1, -1 }, // 211
{ false, true, 0, 6, 0, 6, -1, -1 }, // 212
{ false, true, 0, 7, 0, 7, -1, -1 }, // 213
{ false, true, 0, 7, 0, 7, -1, -1 }, // 214
{ false, true, 0, 7, 0, 7, -1, -1 }, // 215
{ false, true, 0, 7, 0, 7, -1, -1 }, // 216
{ false, true, 0, 9, 10, 10, -1, -1 }, // 217
{ false, true, 0, 0, 0, 0, -1, -1 }, // 218
{ true, false, 7, 7, 7, 7, -1, -1 }, // 219
{ false, true, 0, 7, 0, 7, -1, -1 }, // 220
{ false, false, -1, -1, -1, -1, -1, -1 }, // 221
{ false, true, -1, -1, -1, -1, -1, -1 }, // 222
{ false, false, -1, -1, -1, -1, -1, -1 }, // 223
{ false, true, -1, -1, -1, -1, -1, -1 }, // 224
{ false, false, -1, -1, -1, -1, -1, -1 }, // 225
{ false, false, -1, -1, -1, -1, -1, -1 }, // 226
{ false, false, 0, 7, 0, 7, -1, -1 }, // 227
{ false, false, 0, 7, 0, 7, -1, -1 }, // 228
{ false, false, 0, 8, 0, 8, -1, -1 }, // 229
{ false, false, 0, 9, 13, 13, 17, 14 }, // 230
{ false, false, -1, -1, -1, -1, -1, -1 }, // 231
{ false, false, -1, -1, -1, -1, -1, -1 }, // 232
{ false, false, -1, -1, -1, -1, -1, -1 }, // 233
{ false, false, -1, -1, -1, -1, -1, -1 }, // 234
{ false, false, -1, -1, -1, -1, -1, -1 }, // 235
{ false, false, -1, -1, -1, -1, -1, -1 }, // 236
{ false, false, -1, -1, -1, -1, -1, -1 }, // 237
{ false, false, -1, -1, -1, -1, -1, -1 }, // 238
{ false, false, -1, -1, -1, -1, -1, -1 }, // 239
{ false, false, -1, -1, -1, -1, -1, -1 }, // 240
{ false, false, -1, -1, -1, -1, -1, -1 }, // 241
{ false, false, -1, -1, -1, -1, -1, -1 }, // 242
{ false, false, -1, -1, -1, -1, -1, -1 }, // 243
{ false, true, -1, -1, -1, -1, -1, -1 }, // 244
{ false, true, 0, 6, 0, 6, -1, -1 }, // 245
{ false, false, 0, 9, 13, 13, 17, 14 }, // 246
{ false, false, 0, 9, 13, 13, 14, 14 }, // 247
{ false, false, 0, 9, 13, 13, 14, 14 }, // 248
{ false, false, 0, 9, 13, 13, 17, 14 }, // 249
{ false, true, 0, 6, 8, 8, 10, 9 }, // 250
{ false, true, 0, 8, 9, 9, 11, 10 }, // 251
{ false, false, -1, -1, -1, -1, -1, -1 }, // 252
{ false, false, -1, -1, -1, -1, -1, -1 }, // 253
{ false, false, 0, 9, 17, 13, 17, 14 }, // 254
{ false, false, -1, -1, -1, -1, -1, -1 }, // 255
};
AISTATE genPatrolStates[] = {
//-------------------------------------------------------------------------------
{ kAiStatePatrolWaitL, 0, -1, 0, NULL, NULL, aiPatrolThink, NULL },
{ kAiStatePatrolWaitL, 7, -1, 0, NULL, NULL, aiPatrolThink, NULL },
{ kAiStatePatrolMoveL, 9, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolMoveL, 8, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolMoveL, 0, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolMoveL, 6, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolMoveL, 7, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolTurnL, 9, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
{ kAiStatePatrolTurnL, 8, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
{ kAiStatePatrolTurnL, 0, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
{ kAiStatePatrolTurnL, 6, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
{ kAiStatePatrolTurnL, 7, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
//-------------------------------------------------------------------------------
{ kAiStatePatrolWaitW, 0, -1, 0, NULL, NULL, aiPatrolThink, NULL },
{ kAiStatePatrolWaitW, 10, -1, 0, NULL, NULL, aiPatrolThink, NULL },
{ kAiStatePatrolWaitW, 13, -1, 0, NULL, NULL, aiPatrolThink, NULL },
{ kAiStatePatrolWaitW, 17, -1, 0, NULL, NULL, aiPatrolThink, NULL },
{ kAiStatePatrolWaitW, 8, -1, 0, NULL, NULL, aiPatrolThink, NULL },
{ kAiStatePatrolWaitW, 9, -1, 0, NULL, NULL, aiPatrolThink, NULL },
{ kAiStatePatrolMoveW, 0, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolMoveW, 10, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolMoveW, 13, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolMoveW, 8, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolMoveW, 9, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolMoveW, 7, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolMoveW, 6, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolTurnW, 0, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
{ kAiStatePatrolTurnW, 10, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
{ kAiStatePatrolTurnW, 13, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
{ kAiStatePatrolTurnW, 8, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
{ kAiStatePatrolTurnW, 9, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
{ kAiStatePatrolTurnW, 7, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
{ kAiStatePatrolTurnW, 6, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
//-------------------------------------------------------------------------------
{ kAiStatePatrolWaitC, 17, -1, 0, NULL, NULL, aiPatrolThink, NULL },
{ kAiStatePatrolWaitC, 11, -1, 0, NULL, NULL, aiPatrolThink, NULL },
{ kAiStatePatrolWaitC, 10, -1, 0, NULL, NULL, aiPatrolThink, NULL },
{ kAiStatePatrolWaitC, 14, -1, 0, NULL, NULL, aiPatrolThink, NULL },
{ kAiStatePatrolMoveC, 14, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolMoveC, 10, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolMoveC, 9, -1, 0, NULL, aiPatrolMove, aiPatrolThink, NULL },
{ kAiStatePatrolTurnC, 14, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
{ kAiStatePatrolTurnC, 10, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
{ kAiStatePatrolTurnC, 9, -1, 0, aiPatrolRandGoalAng, aiPatrolTurn, aiPatrolThink, NULL },
//-------------------------------------------------------------------------------
};
CONDITION_TYPE_NAMES gCondTypeNames[7] = {
{kCondGameBase, kCondGameMax, "Game"},
{kCondMixedBase, kCondMixedMax, "Mixed"},
{kCondWallBase, kCondWallMax, "Wall"},
{kCondSectorBase, kCondSectorMax, "Sector"},
{kCondPlayerBase, kCondPlayerMax, "Player"},
{kCondDudeBase, kCondDudeMax, "Enemy"},
{kCondSpriteBase, kCondSpriteMax, "Sprite"},
};
// for actor.cpp
//-------------------------------------------------------------------------
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
static DBloodActor* nnExtSpawnDude(DBloodActor* sourceactor, DBloodActor* origin, int nType, int a3, int a4)
{
DBloodActor* pDudeActor = nullptr;
if (nType < kDudeBase || nType >= kDudeMax || (pDudeActor = actSpawnSprite(origin, kStatDude)) == NULL)
return NULL;
int angle = origin->spr.ang;
int x, y, z = a4 + origin->spr.pos.Z;
if (a3 < 0)
{
x = origin->spr.pos.X;
y = origin->spr.pos.Y;
}
else
{
x = origin->spr.pos.X + mulscale30r(Cos(angle), a3);
y = origin->spr.pos.Y + mulscale30r(Sin(angle), a3);
}
vec3_t pos = { x, y, z };
SetActor(pDudeActor, &pos);
pDudeActor->spr.type = nType;
pDudeActor->spr.ang = angle;
pDudeActor->spr.cstat |= CSTAT_SPRITE_BLOOD_BIT1 | CSTAT_SPRITE_BLOCK_ALL;
pDudeActor->spr.clipdist = getDudeInfo(nType)->clipdist;
pDudeActor->xspr.respawn = 1;
pDudeActor->xspr.health = getDudeInfo(nType)->startHealth << 4;
if (fileSystem.FindResource(getDudeInfo(nType)->seqStartID, "SEQ"))
seqSpawn(getDudeInfo(nType)->seqStartID, pDudeActor, -1);
// add a way to inherit some values of spawner by dude.
if (sourceactor->spr.flags & kModernTypeFlag1) {
//inherit pal?
if (pDudeActor->spr.pal <= 0)
pDudeActor->spr.pal = sourceactor->spr.pal;
// inherit spawn sprite trigger settings, so designer can count monsters.
pDudeActor->xspr.txID = sourceactor->xspr.txID;
pDudeActor->xspr.command = sourceactor->xspr.command;
pDudeActor->xspr.triggerOn = sourceactor->xspr.triggerOn;
pDudeActor->xspr.triggerOff = sourceactor->xspr.triggerOff;
// inherit drop items
pDudeActor->xspr.dropMsg = sourceactor->xspr.dropMsg;
// inherit dude flags
pDudeActor->xspr.dudeDeaf = sourceactor->xspr.dudeDeaf;
pDudeActor->xspr.dudeGuard = sourceactor->xspr.dudeGuard;
pDudeActor->xspr.dudeAmbush = sourceactor->xspr.dudeAmbush;
pDudeActor->xspr.dudeFlag4 = sourceactor->xspr.dudeFlag4;
pDudeActor->xspr.unused1 = sourceactor->xspr.unused1;
}
aiInitSprite(pDudeActor);
gKillMgr.AddNewKill(1);
bool burning = IsBurningDude(pDudeActor);
if (burning) {
pDudeActor->xspr.burnTime = 10;
pDudeActor->SetTarget(nullptr);
}
if ((burning || (sourceactor->spr.flags & kModernTypeFlag3)) && !pDudeActor->xspr.dudeFlag4)
aiActivateDude(pDudeActor);
return pDudeActor;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool nnExtIsImmune(DBloodActor* actor, int dmgType, int minScale)
{
if (dmgType >= kDmgFall && dmgType < kDmgMax && actor->hasX() && actor->xspr.locked != 1)
{
if (actor->spr.type >= kThingBase && actor->spr.type < kThingMax)
{
return (thingInfo[actor->spr.type - kThingBase].dmgControl[dmgType] <= minScale);
}
else if (actor->IsDudeActor())
{
if (actor->IsPlayerActor()) return (gPlayer[actor->spr.type - kDudePlayer1].damageControl[dmgType]);
else if (actor->spr.type == kDudeModernCustom) return (actor->genDudeExtra.dmgControl[dmgType] <= minScale);
else return (getDudeInfo(actor->spr.type)->damageVal[dmgType] <= minScale);
}
}
return true;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool nnExtEraseModernStuff(DBloodActor* actor)
{
bool erased = false;
switch (actor->spr.type) {
// erase all modern types if the map is not extended
case kModernSpriteDamager:
case kModernCustomDudeSpawn:
case kModernRandomTX:
case kModernSequentialTX:
case kModernSeqSpawner:
case kModernObjPropertiesChanger:
case kModernObjPicnumChanger:
case kModernObjSizeChanger:
case kModernDudeTargetChanger:
case kModernSectorFXChanger:
case kModernObjDataChanger:
case kModernObjDataAccumulator:
case kModernEffectSpawner:
case kModernWindGenerator:
case kModernPlayerControl:
case kModernCondition:
case kModernConditionFalse:
case kModernSlopeChanger:
case kModernStealthRegion:
actor->spr.type = kSpriteDecoration;
erased = true;
break;
case kItemModernMapLevel:
case kDudeModernCustom:
case kDudeModernCustomBurning:
case kModernThingTNTProx:
case kModernThingEnemyLifeLeech:
actor->spr.type = kSpriteDecoration;
ChangeActorStat(actor, kStatDecoration);
erased = true;
break;
// also erase some modernized vanilla types which was not active
case kMarkerWarpDest:
if (actor->spr.statnum == kStatMarker) break;
actor->spr.type = kSpriteDecoration;
erased = true;
break;
}
if (actor->xspr.Sight)
{
actor->xspr.Sight = false; // it does not work in vanilla at all
erased = true;
}
if (actor->xspr.Proximity)
{
// proximity works only for things and dudes in vanilla
switch (actor->spr.statnum)
{
case kStatThing:
case kStatDude:
break;
default:
actor->xspr.Proximity = false;
erased = true;
break;
}
}
return erased;
}
//---------------------------------------------------------------------------
//
//
//---------------------------------------------------------------------------
void nnExtTriggerObject(EventObject& eob, int command)
{
if (eob.isSector())
{
trTriggerSector(eob.sector(), command);
}
else if (eob.isWall())
{
trTriggerWall(eob.wall(), command);
}
else if (eob.isActor())
{
auto objActor = eob.actor();
if (!objActor || !objActor->hasX()) return;
trTriggerSprite(objActor, command);
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void nnExtResetGlobals()
{
gAllowTrueRandom = gEventRedirectsUsed = false;
// reset counters
gProxySpritesCount = gSightSpritesCount = gPhysSpritesCount = gImpactSpritesCount = 0;
// fill arrays with negative values to avoid index 0 situation
memset(gSightSpritesList, 0, sizeof(gSightSpritesList));
memset(gProxySpritesList, 0, sizeof(gProxySpritesList));
memset(gPhysSpritesList, 0, sizeof(gPhysSpritesList));
memset(gImpactSpritesList, 0, sizeof(gImpactSpritesList));
// reset tracking conditions, if any
for (size_t i = 0; i < countof(gCondition); i++)
{
TRCONDITION* pCond = &gCondition[i];
for (unsigned k = 0; k < kMaxTracedObjects; k++)
{
pCond->obj[k].obj = EventObject(nullptr);
}
pCond->actor = nullptr;
pCond->length = 0;
}
gTrackingCondsCount = 0;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void nnExtInitModernStuff(TArray<DBloodActor*>& actors)
{
nnExtResetGlobals();
// use true random only for single player mode, otherwise use Blood's default one.
if (gGameOptions.nGameType == 0 && !VanillaMode())
{
gStdRandom.seed(std::random_device()());
// since true random is not working if compiled with old mingw versions, we should
// check if it works in game and if not - switch to using in-game random function.
for (int i = kMaxRandomizeRetries; i >= 0; i--)
{
std::uniform_int_distribution<int> dist_a_b(0, 100);
if (gAllowTrueRandom || i <= 0) break;
else if (dist_a_b(gStdRandom) != 0)
gAllowTrueRandom = true;
}
}
for (auto actor : actors)
{
if (!actor->exists() || !actor->hasX()) continue;
switch (actor->spr.type) {
case kModernRandomTX:
case kModernSequentialTX:
if (actor->xspr.command == kCmdLink) gEventRedirectsUsed = true;
break;
case kDudeModernCustom:
case kDudeModernCustomBurning:
getSpriteMassBySize(actor); // create mass cache
break;
case kModernCondition:
case kModernConditionFalse:
if (!actor->xspr.rxID && actor->xspr.data1 > kCondGameMax) condError(actor, "\nThe condition must have RX ID!\nSPRITE #%d", actor->GetIndex());
else if (!actor->xspr.txID && !actor->spr.flags)
{
Printf(PRINT_HIGH, "The condition must have TX ID or hitag to be set: RX ID %d, SPRITE #%d", actor->xspr.rxID, actor->GetIndex());
}
break;
}
// auto set going On and going Off if both are empty
if (actor->xspr.txID && !actor->xspr.triggerOn && !actor->xspr.triggerOff)
actor->xspr.triggerOn = actor->xspr.triggerOff = true;
// copy custom start health to avoid overwrite by kThingBloodChunks
if (actor->IsDudeActor())
actor->xspr.sysData2 = actor->xspr.data4;
// check reserved statnums
if (actor->spr.statnum >= kStatModernBase && actor->spr.statnum < kStatModernMax)
{
bool sysStat = true;
switch (actor->spr.statnum)
{
case kStatModernStealthRegion:
sysStat = (actor->spr.type != kModernStealthRegion);
break;
case kStatModernDudeTargetChanger:
sysStat = (actor->spr.type != kModernDudeTargetChanger);
break;
case kStatModernCondition:
sysStat = (actor->spr.type != kModernCondition && actor->spr.type != kModernConditionFalse);
break;
case kStatModernEventRedirector:
sysStat = (actor->spr.type != kModernRandomTX && actor->spr.type != kModernSequentialTX);
break;
case kStatModernWindGen:
sysStat = (actor->spr.type != kModernWindGenerator);
break;
case kStatModernPlayerLinker:
case kStatModernQavScene:
sysStat = (actor->spr.type != kModernPlayerControl);
break;
}
if (sysStat)
I_Error("Sprite statnum %d on sprite #%d is in a range of reserved (%d - %d)!", actor->spr.statnum, actor->GetIndex(), kStatModernBase, kStatModernMax);
}
switch (actor->spr.type)
{
case kModernRandomTX:
case kModernSequentialTX:
if (actor->xspr.command != kCmdLink) break;
// add statnum for faster redirects search
ChangeActorStat(actor, kStatModernEventRedirector);
break;
case kModernWindGenerator:
actor->spr.cstat &= ~CSTAT_SPRITE_BLOCK;
ChangeActorStat(actor, kStatModernWindGen);
break;
case kModernDudeTargetChanger:
case kModernObjDataAccumulator:
case kModernRandom:
case kModernRandom2:
case kModernStealthRegion:
actor->spr.cstat &= ~CSTAT_SPRITE_BLOCK;
actor->spr.cstat |= CSTAT_SPRITE_INVISIBLE;
switch (actor->spr.type)
{
// stealth regions for patrolling enemies
case kModernStealthRegion:
ChangeActorStat(actor, kStatModernStealthRegion);
break;
// add statnum for faster dude searching
case kModernDudeTargetChanger:
ChangeActorStat(actor, kStatModernDudeTargetChanger);
if (actor->xspr.busyTime <= 0) actor->xspr.busyTime = 5;
actor->xspr.command = kCmdLink;
break;
// remove kStatItem status from random item generators
case kModernRandom:
case kModernRandom2:
ChangeActorStat(actor, kStatDecoration);
actor->xspr.sysData1 = actor->xspr.command; // save the command so spawned item can inherit it
actor->xspr.command = kCmdLink; // generator itself can't send commands
break;
}
break;
case kModernThingTNTProx:
actor->xspr.Proximity = true;
break;
case kDudeModernCustom:
{
if (actor->xspr.txID <= 0) break;
int found = 0;
BloodStatIterator it(kStatDude);
while (DBloodActor* iactor = it.Next())
{
if (iactor->xspr.rxID != actor->xspr.txID) continue;
else if (found) I_Error("\nCustom dude (TX ID %d):\nOnly one incarnation allowed per channel!", actor->xspr.txID);
ChangeActorStat(iactor, kStatInactive);
found++;
}
break;
}
case kDudePodMother:
case kDudeTentacleMother:
actor->xspr.state = 1;
break;
case kModernPlayerControl:
switch (actor->xspr.command)
{
case kCmdLink:
{
if (actor->xspr.data1 < 1 || actor->xspr.data1 > kMaxPlayers)
I_Error("\nPlayer Control (SPRITE #%d):\nPlayer out of a range (data1 = %d)", actor->GetIndex(), actor->xspr.data1);
//if (numplayers < actor->xspr.data1)
//I_Error("\nPlayer Control (SPRITE #%d):\n There is no player #%d", actor->GetIndex(), actor->xspr.data1);
if (actor->xspr.rxID && actor->xspr.rxID != kChannelLevelStart)
I_Error("\nPlayer Control (SPRITE #%d) with Link command should have no RX ID!", actor->GetIndex());
if (actor->xspr.txID && actor->xspr.txID < kChannelUser)
I_Error("\nPlayer Control (SPRITE #%d):\nTX ID should be in range of %d and %d!", actor->GetIndex(), kChannelUser, kChannelMax);
// only one linker per player allowed
BloodStatIterator it(kStatModernPlayerLinker);
while (auto iactor = it.Next())
{
if (actor->xspr.data1 == iactor->xspr.data1)
I_Error("\nPlayer Control (SPRITE #%d):\nPlayer %d already linked with different player control sprite #%d!", actor->GetIndex(), actor->xspr.data1, iactor->GetIndex());
}
actor->xspr.sysData1 = -1;
actor->spr.cstat &= ~CSTAT_SPRITE_BLOCK;
ChangeActorStat(actor, kStatModernPlayerLinker);
break;
}
case 67: // play qav animation
if (actor->xspr.txID && !actor->xspr.waitTime) actor->xspr.waitTime = 1;
ChangeActorStat(actor, kStatModernQavScene);
break;
}
break;
case kModernCondition:
case kModernConditionFalse:
if (actor->xspr.busyTime > 0)
{
if (actor->xspr.waitTime > 0)
{
actor->xspr.busyTime += ClipHigh(((actor->xspr.waitTime * 120) / 10), 4095); actor->xspr.waitTime = 0;
Printf(PRINT_HIGH, "Summing busyTime and waitTime for tracking condition #%d, RX ID %d. Result = %d ticks", actor->GetIndex(), actor->xspr.rxID, actor->xspr.busyTime);
}
actor->xspr.busy = actor->xspr.busyTime;
}
if (actor->xspr.waitTime && actor->xspr.command >= kCmdNumberic)
condError(actor, "Delay is not available when using numberic commands (%d - %d)", kCmdNumberic, 255);
actor->xspr.Decoupled = false; // must go through operateSprite always
actor->xspr.Sight = actor->xspr.Impact = actor->xspr.Touch = actor->xspr.triggerOff = false;
actor->xspr.Proximity = actor->xspr.Push = actor->xspr.Vector = actor->xspr.triggerOn = false;
actor->xspr.state = actor->xspr.restState = 0;
actor->xspr.TargetPos.X = actor->xspr.TargetPos.Y = actor->xspr.TargetPos.Z = actor->xspr.sysData2 = -1;
actor->SetTarget(nullptr);
ChangeActorStat(actor, kStatModernCondition);
auto oldStat = actor->spr.cstat;
actor->spr.cstat = CSTAT_SPRITE_ALIGNMENT_SLOPE;
if (oldStat & CSTAT_SPRITE_BLOCK)
actor->spr.cstat |= CSTAT_SPRITE_BLOCK;
if (oldStat & CSTAT_SPRITE_MOVE_FORWARD) actor->spr.cstat |= CSTAT_SPRITE_MOVE_FORWARD;
else if (oldStat & CSTAT_SPRITE_MOVE_REVERSE) actor->spr.cstat |= CSTAT_SPRITE_MOVE_REVERSE;
actor->spr.cstat |= CSTAT_SPRITE_INVISIBLE;
break;
}
// the following trigger flags are senseless to have together
if ((actor->xspr.Touch && (actor->xspr.Proximity || actor->xspr.Sight) && actor->xspr.DudeLockout)
|| (actor->xspr.Touch && actor->xspr.Proximity && !actor->xspr.Sight)) actor->xspr.Touch = false;
if (actor->xspr.Proximity && actor->xspr.Sight && actor->xspr.DudeLockout)
actor->xspr.Proximity = false;
// very quick fix for floor sprites with Touch trigger flag if their Z is equals sector floorz / ceilgz
if (actor->insector() && actor->xspr.Touch && (actor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_FLOOR)) {
if (actor->spr.pos.Z == actor->sector()->floorz) actor->spr.pos.Z--;
else if (actor->spr.pos.Z == actor->sector()->ceilingz) actor->spr.pos.Z++;
}
// make Proximity flag work not just for dudes and things...
if (actor->xspr.Proximity && gProxySpritesCount < kMaxSuperXSprites)
{
switch (actor->spr.statnum)
{
case kStatFX: case kStatExplosion: case kStatItem:
case kStatPurge: case kStatSpares: case kStatFlare:
case kStatInactive: case kStatFree: case kStatMarker:
case kStatPathMarker: case kStatThing: case kStatDude:
case kStatModernPlayerLinker:
break;
default:
gProxySpritesList[gProxySpritesCount++] = actor;
if (gProxySpritesCount == kMaxSuperXSprites)
I_Error("Max (%d) *additional* Proximity sprites reached!", kMaxSuperXSprites);
break;
}
}
// make Sight, Screen, Aim flags work not just for dudes and things...
if ((actor->xspr.Sight || actor->xspr.unused3) && gSightSpritesCount < kMaxSuperXSprites)
{
switch (actor->spr.statnum)
{
case kStatFX: case kStatExplosion: case kStatItem:
case kStatPurge: case kStatSpares: case kStatFlare:
case kStatInactive: case kStatFree: case kStatMarker:
case kStatPathMarker: case kStatModernPlayerLinker:
break;
default:
gSightSpritesList[gSightSpritesCount++] = actor;
if (gSightSpritesCount == kMaxSuperXSprites)
I_Error("Max (%d) Sight sprites reached!", kMaxSuperXSprites);
break;
}
}
// make Impact flag work for sprites that affected by explosions...
if (actor->xspr.Impact && gImpactSpritesCount < kMaxSuperXSprites)
{
switch (actor->spr.statnum)
{
case kStatFX: case kStatExplosion: case kStatItem:
case kStatPurge: case kStatSpares: case kStatFlare:
case kStatInactive: case kStatFree: case kStatMarker:
case kStatPathMarker: case kStatModernPlayerLinker:
break;
default:
gImpactSpritesList[gImpactSpritesCount++] = actor;
if (gImpactSpritesCount == kMaxSuperXSprites)
I_Error("Max (%d) *additional* Impact sprites reached!", kMaxSuperXSprites);
break;
}
}
}
// collect objects for tracking conditions
BloodStatIterator it2(kStatModernCondition);
while (auto iactor = it2.Next())
{
if (iactor->xspr.busyTime <= 0 || iactor->xspr.isTriggered) continue;
else if (gTrackingCondsCount >= kMaxTrackingConditions)
I_Error("\nMax (%d) tracking conditions reached!", kMaxTrackingConditions);
int count = 0;
TRCONDITION* pCond = &gCondition[gTrackingCondsCount];
for (auto iactor2 : actors)
{
if (!iactor->exists() || !iactor2->hasX() || iactor2->xspr.txID != iactor->xspr.rxID || iactor2 == iactor)
continue;
switch (iactor2->spr.type)
{
case kSwitchToggle: // exceptions
case kSwitchOneWay: // exceptions
continue;
}
if (iactor2->spr.type == kModernCondition || iactor2->spr.type == kModernConditionFalse)
condError(iactor, "Tracking condition always must be first in condition sequence!");
if (count >= kMaxTracedObjects)
condError(iactor, "Max(%d) objects to track reached for condition #%d, RXID: %d!");
pCond->obj[count].obj = EventObject(iactor2);
pCond->obj[count++].cmd = (uint8_t)iactor2->xspr.command;
}
for (auto& sect : sector)
{
if (!sect.hasX() || sect.xs().txID != iactor->xspr.rxID) continue;
else if (count >= kMaxTracedObjects)
condError(iactor, "Max(%d) objects to track reached for condition #%d, RXID: %d!");
pCond->obj[count].obj = EventObject(§);
pCond->obj[count++].cmd = sect.xs().command;
}
for (auto& wal : wall)
{
if (!wal.hasX() || wal.xw().txID != iactor->xspr.rxID)
continue;
switch (wal.type) {
case kSwitchToggle: // exceptions
case kSwitchOneWay: // exceptions
continue;
}
if (count >= kMaxTracedObjects)
condError(iactor, "Max(%d) objects to track reached for condition #%d, RXID: %d!");
pCond->obj[count].obj = EventObject(&wal);
pCond->obj[count++].cmd = wal.xw().command;
}
if (iactor->xspr.data1 > kCondGameMax && count == 0)
Printf(PRINT_HIGH, "No objects to track found for condition #%d, RXID: %d!", iactor->GetIndex(), iactor->xspr.rxID);
pCond->length = count;
pCond->actor = iactor;
gTrackingCondsCount++;
}
}
// The following functions required for random event features
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
int nnExtRandom(int a, int b)
{
if (!gAllowTrueRandom) return Random(((b + 1) - a)) + a;
// used for better randomness in single player
std::uniform_int_distribution<int> dist_a_b(a, b);
return dist_a_b(gStdRandom);
}
static int GetDataVal(DBloodActor* actor, int data)
{
if (!actor->hasX()) return -1;
switch (data) {
case 0: return actor->xspr.data1;
case 1: return actor->xspr.data2;
case 2: return actor->xspr.data3;
case 3: return actor->xspr.data4;
}
return -1;
}
//---------------------------------------------------------------------------
//
// tries to get random data field of sprite
//
//---------------------------------------------------------------------------
static int randomGetDataValue(DBloodActor* actor, int randType)
{
if (actor == NULL || !actor->hasX()) return -1;
int random = 0; int bad = 0; int maxRetries = kMaxRandomizeRetries;
int rData[4];
rData[0] = actor->xspr.data1; rData[2] = actor->xspr.data3;
rData[1] = actor->xspr.data2; rData[3] = actor->xspr.data4;
// randomize only in case if at least 2 data fields fits.
for (int i = 0; i < 4; i++)
{
switch (randType) {
case kRandomizeItem:
if (rData[i] >= kItemWeaponBase && rData[i] < kItemMax) break;
else bad++;
break;
case kRandomizeDude:
if (rData[i] >= kDudeBase && rData[i] < kDudeMax) break;
else bad++;
break;
case kRandomizeTX:
if (rData[i] > kChannelZero && rData[i] < kChannelUserMax) break;
else bad++;
break;
default:
bad++;
break;
}
}
if (bad < 3)
{
// try randomize few times
while (maxRetries > 0)
{
random = nnExtRandom(0, 3);
if (rData[random] > 0) return rData[random];
else maxRetries--;
}
}
return -1;
}
//---------------------------------------------------------------------------
//
// this function drops random item using random pickup generator(s)
//
//---------------------------------------------------------------------------
static DBloodActor* randomDropPickupObject(DBloodActor* sourceactor, int prevItem)
{
DBloodActor* spawned = nullptr;
int selected = -1;
int maxRetries = 9;
if (sourceactor->hasX())
{
while ((selected = randomGetDataValue(sourceactor, kRandomizeItem)) == prevItem) if (maxRetries-- <= 0) break;
if (selected > 0)
{
spawned = actDropObject(sourceactor, selected);
if (spawned)
{
sourceactor->xspr.dropMsg = uint8_t(spawned->spr.type); // store dropped item type in dropMsg
spawned->spr.pos.X = sourceactor->spr.pos.X;
spawned->spr.pos.Y = sourceactor->spr.pos.Y;
spawned->spr.pos.Z = sourceactor->spr.pos.Z;
if ((sourceactor->spr.flags & kModernTypeFlag1) && (sourceactor->xspr.txID > 0 || (sourceactor->xspr.txID != 3 && sourceactor->xspr.lockMsg > 0)))
{
spawned->addX();
// inherit spawn sprite trigger settings, so designer can send command when item picked up.
spawned->xspr.txID = sourceactor->xspr.txID;
spawned->xspr.command = sourceactor->xspr.sysData1;
spawned->xspr.triggerOn = sourceactor->xspr.triggerOn;
spawned->xspr.triggerOff = sourceactor->xspr.triggerOff;
spawned->xspr.Pickup = true;
}
}
}
}
return spawned;
}
//---------------------------------------------------------------------------
//
// this function spawns random dude using dudeSpawn
//
//---------------------------------------------------------------------------
DBloodActor* randomSpawnDude(DBloodActor* sourceactor, DBloodActor* origin, int a3, int a4)
{
DBloodActor* spawned = NULL; int selected = -1;
if ((selected = randomGetDataValue(sourceactor, kRandomizeDude)) > 0)
spawned = nnExtSpawnDude(sourceactor, origin, selected, a3, 0);
return spawned;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
static void windGenDoVerticalWind(int factor, sectortype* pSector)
{
int val, maxZ = 0, zdiff; bool maxZfound = false;
// find maxz marker first
BloodSectIterator it(pSector);
while (auto actor = it.Next())
{
if (actor->spr.type == kMarkerOn && actor->spr.statnum != kStatMarker)
{
maxZ = actor->spr.pos.Z;
maxZfound = true;
break;
}
}
it.Reset(pSector);
while (auto actor = it.Next())
{
switch (actor->spr.statnum)
{
case kStatFree:
continue;
case kStatFX:
if (actor->vel.Z) break;
continue;
case kStatThing:
case kStatDude:
if (actor->spr.flags & kPhysGravity) break;
continue;
default:
if (actor->hasX() && actor->xspr.physAttr & kPhysGravity) break;
continue;
}
if (maxZfound && actor->spr.pos.Z <= maxZ)
{
zdiff = actor->spr.pos.Z - maxZ;
if (actor->vel.Z < 0) actor->vel.Z += MulScale(actor->vel.Z >> 4, zdiff, 16);
continue;
}
val = -MulScale(factor * 64, 0x10000, 16);
if (actor->vel.Z >= 0) actor->vel.Z += val;
else actor->vel.Z = val;
actor->spr.pos.Z += actor->vel.Z >> 12;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void nnExtProcessSuperSprites()
{
// process tracking conditions
if (gTrackingCondsCount > 0)
{
for (int i = 0; i < gTrackingCondsCount; i++)
{
TRCONDITION const* pCond = &gCondition[i];
auto aCond = pCond->actor;
if (aCond->xspr.locked || aCond->xspr.isTriggered || ++aCond->xspr.busy < aCond->xspr.busyTime)
continue;
if (aCond->xspr.data1 >= kCondGameBase && aCond->xspr.data1 < kCondGameMax)
{
EVENT evn;
evn.target = EventObject(pCond->actor);
evn.cmd = (int8_t)aCond->xspr.command;
evn.funcID = kCallbackMax;
useCondition(pCond->actor, evn);
}
else if (pCond->length > 0)
{
aCond->xspr.busy = 0;
for (unsigned k = 0; k < pCond->length; k++)
{
EVENT evn;
evn.target = pCond->obj[k].obj;
evn.cmd = pCond->obj[k].cmd;
evn.funcID = kCallbackMax;
useCondition(pCond->actor, evn);
}
}
}
}
// process floor oriented kModernWindGenerator to create a vertical wind in the sectors
BloodStatIterator it(kStatModernWindGen);
while (auto windactor = it.Next())
{
if (!(windactor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_FLOOR) || windactor->spr.statnum >= kMaxStatus || !windactor->hasX())
continue;
if (!windactor->xspr.state || windactor->xspr.locked)
continue;
int j, rx;
bool fWindAlways = (windactor->spr.flags & kModernTypeFlag1);
if (windactor->xspr.txID) {
rx = windactor->xspr.txID;
for (j = bucketHead[rx]; j < bucketHead[rx + 1]; j++)
{
if (!rxBucket[j].isSector()) continue;
auto pSector = rxBucket[j].sector();
XSECTOR* pXSector = &pSector->xs();
if ((!pXSector->locked) && (fWindAlways || pXSector->windAlways || pXSector->busy))
windGenDoVerticalWind(windactor->xspr.sysData2, pSector);
}
DBloodActor* pXRedir = nullptr; // check redirected TX buckets
while ((pXRedir = evrListRedirectors(OBJ_SPRITE, nullptr, nullptr, windactor, pXRedir, &rx)) != nullptr)
{
for (j = bucketHead[rx]; j < bucketHead[rx + 1]; j++)
{
if (!rxBucket[j].isSector()) continue;
auto pSector = rxBucket[j].sector();
XSECTOR* pXSector = &pSector->xs();
if ((!pXSector->locked) && (fWindAlways || pXSector->windAlways || pXSector->busy))
windGenDoVerticalWind(windactor->xspr.sysData2, pSector);
}
}
}
else if (windactor->insector())
{
sectortype* pSect = windactor->sector();
XSECTOR* pXSector = (pSect->hasX()) ? &pSect->xs() : nullptr;
if ((fWindAlways) || (pXSector && !pXSector->locked && (pXSector->windAlways || pXSector->busy)))
windGenDoVerticalWind(windactor->xspr.sysData2, windactor->sector());
}
}
// process additional proximity sprites
if (gProxySpritesCount > 0)
{
for (int i = 0; i < gProxySpritesCount; i++)
{
DBloodActor* pProx = gProxySpritesList[i];
if (!pProx || !pProx->hasX()) continue;
if (!pProx->xspr.Proximity || (!pProx->xspr.Interrutable && pProx->xspr.state != pProx->xspr.restState) || pProx->xspr.locked == 1
|| pProx->xspr.isTriggered) continue; // don't process locked or triggered sprites
int okDist = (pProx->IsDudeActor()) ? 96 : ClipLow(pProx->spr.clipdist * 3, 32);
int x = pProx->spr.pos.X;
int y = pProx->spr.pos.Y;
int z = pProx->spr.pos.Z;
auto pSect = pProx->sector();
if (!pProx->xspr.DudeLockout)
{
BloodStatIterator itr(kStatDude);
while (auto affected = itr.Next())
{
if (!affected->hasX() || affected->xspr.health <= 0) continue;
else if (CheckProximity(affected, x, y, z, pSect, okDist))
{
trTriggerSprite(pProx, kCmdSpriteProximity);
break;
}
}
}
else
{
for (int a = connecthead; a >= 0; a = connectpoint2[a])
{
PLAYER* pPlayer = &gPlayer[a];
if (!pPlayer || !pPlayer->actor->hasX() || pPlayer->actor->xspr.health <= 0)
continue;
if (pPlayer->actor->xspr.health > 0 && CheckProximity(gPlayer->actor, x, y, z, pSect, okDist))
{
trTriggerSprite(pProx, kCmdSpriteProximity);
break;
}
}
}
}
}
// process sight sprites (for players only)
if (gSightSpritesCount > 0)
{
for (int i = 0; i < gSightSpritesCount; i++)
{
DBloodActor* pSight = gSightSpritesList[i];
if (!pSight || !pSight->hasX()) continue;
if ((!pSight->xspr.Interrutable && pSight->xspr.state != pSight->xspr.restState) || pSight->xspr.locked == 1 ||
pSight->xspr.isTriggered) continue; // don't process locked or triggered sprites
// sprite is drawn for one of players
if ((pSight->xspr.unused3 & kTriggerSpriteScreen) && (pSight->spr.cstat2 & CSTAT2_SPRITE_MAPPED))
{
trTriggerSprite(pSight, kCmdSpriteSight);
pSight->spr.cstat2 &= ~CSTAT2_SPRITE_MAPPED;
continue;
}
int x = pSight->spr.pos.X;
int y = pSight->spr.pos.Y;
int z = pSight->spr.pos.Z;
auto pSightSect = pSight->sector();
int ztop2, zbot2;
for (int a = connecthead; a >= 0; a = connectpoint2[a])
{
PLAYER* pPlayer = &gPlayer[a];
if (!pPlayer || !pPlayer->actor->hasX() || pPlayer->actor->xspr.health <= 0)
continue;
auto plActor = pPlayer->actor;
GetActorExtents(plActor, &ztop2, &zbot2);
if (cansee(x, y, z, pSightSect, plActor->spr.pos.X, plActor->spr.pos.Y, ztop2, plActor->sector()))
{
if (pSight->xspr.Sight)
{
trTriggerSprite(pSight, kCmdSpriteSight);
break;
}
if (pSight->xspr.unused3 & kTriggerSpriteAim)
{
bool vector = (pSight->spr.cstat & CSTAT_SPRITE_BLOCK_HITSCAN);
if (!vector)
pSight->spr.cstat |= CSTAT_SPRITE_BLOCK_HITSCAN;
HitScan(pPlayer->actor, pPlayer->zWeapon, pPlayer->aim.dx, pPlayer->aim.dy, pPlayer->aim.dz, CLIPMASK0 | CLIPMASK1, 0);
if (!vector)
pSight->spr.cstat &= ~CSTAT_SPRITE_BLOCK_HITSCAN;
if (gHitInfo.actor() == pSight)
{
trTriggerSprite(gHitInfo.actor(), kCmdSpriteSight);
break;
}
}
}
}
}
}
// process Debris sprites for movement
if (gPhysSpritesCount > 0)
{
for (int i = 0; i < gPhysSpritesCount; i++)
{
DBloodActor* debrisactor = gPhysSpritesList[i];
if (debrisactor == nullptr || !debrisactor->hasX()) continue;
if (debrisactor->spr.statnum == kStatFree || (debrisactor->spr.flags & kHitagFree) != 0)
{
gPhysSpritesList[i] = nullptr;
continue;
}
if (!(debrisactor->xspr.physAttr & kPhysMove) && !(debrisactor->xspr.physAttr & kPhysGravity))
{
gPhysSpritesList[i] = nullptr;
continue;
}
XSECTOR* pXSector = (debrisactor->sector()->hasX()) ? &debrisactor->sector()->xs() : nullptr;
viewBackupSpriteLoc(debrisactor);
bool uwater = false;
int mass = debrisactor->spriteMass.mass;
int airVel = debrisactor->spriteMass.airVel;
int top, bottom;
GetActorExtents(debrisactor, &top, &bottom);
if (pXSector != nullptr)
{
if ((uwater = pXSector->Underwater) != 0) airVel <<= 6;
if (pXSector->panVel != 0 && getflorzofslopeptr(debrisactor->sector(), debrisactor->spr.pos.X, debrisactor->spr.pos.Y) <= bottom)
{
int angle = pXSector->panAngle; int speed = 0;
if (pXSector->panAlways || pXSector->state || pXSector->busy)
{
speed = pXSector->panVel << 9;
if (!pXSector->panAlways && pXSector->busy)
speed = MulScale(speed, pXSector->busy, 16);
}
if (debrisactor->sector()->floorstat & CSTAT_SECTOR_ALIGN)
angle = (angle + GetWallAngle(debrisactor->sector()->firstWall()) + 512) & 2047;
int dx = MulScale(speed, Cos(angle), 30);
int dy = MulScale(speed, Sin(angle), 30);
debrisactor->vel.X += dx;
debrisactor->vel.Y += dy;
}
}
actAirDrag(debrisactor, airVel);
if (debrisactor->xspr.physAttr & kPhysDebrisTouch)
{
PLAYER* pPlayer = NULL;
for (int a = connecthead; a != -1; a = connectpoint2[a])
{
pPlayer = &gPlayer[a];
DBloodActor* pact = pPlayer->actor;
if (pact && pact->hit.hit.type == kHitSprite && pact->hit.hit.actor() == debrisactor)
{
int nSpeed = approxDist(pact->vel.X, pact->vel.Y);
nSpeed = ClipLow(nSpeed - MulScale(nSpeed, mass, 6), 0x9000 - (mass << 3));
debrisactor->vel.X += MulScale(nSpeed, Cos(pPlayer->actor->spr.ang), 30);
debrisactor->vel.Y += MulScale(nSpeed, Sin(pPlayer->actor->spr.ang), 30);
debrisactor->hit.hit.setSprite(pPlayer->actor);
}
}
}
if (debrisactor->xspr.physAttr & kPhysGravity) debrisactor->xspr.physAttr |= kPhysFalling;
if ((debrisactor->xspr.physAttr & kPhysFalling) || debrisactor->vel.X || debrisactor->vel.Y || debrisactor->vel.Z || debrisactor->sector()->velFloor || debrisactor->sector()->velCeil)
debrisMove(i);
if (debrisactor->vel.X || debrisactor->vel.Y)
debrisactor->xspr.goalAng = getangle(debrisactor->vel.X, debrisactor->vel.Y) & 2047;
int ang = debrisactor->spr.ang & 2047;
if ((uwater = spriteIsUnderwater(debrisactor)) == false) evKillActor(debrisactor, kCallbackEnemeyBubble);
else if (Chance(0x1000 - mass))
{
if (debrisactor->vel.Z > 0x100) debrisBubble(debrisactor);
if (ang == debrisactor->xspr.goalAng)
{
debrisactor->xspr.goalAng = (debrisactor->spr.ang + Random3(kAng60)) & 2047;
debrisBubble(debrisactor);
}
}
int angStep = ClipLow(mulscale8(1, ((abs(debrisactor->vel.X) + abs(debrisactor->vel.Y)) >> 5)), (uwater) ? 1 : 0);
if (ang < debrisactor->xspr.goalAng) debrisactor->spr.ang = ClipHigh(ang + angStep, debrisactor->xspr.goalAng);
else if (ang > debrisactor->xspr.goalAng) debrisactor->spr.ang = ClipLow(ang - angStep, debrisactor->xspr.goalAng);
auto pSector = debrisactor->sector();
int cz = getceilzofslopeptr(pSector, debrisactor->spr.pos.X, debrisactor->spr.pos.Y);
int fz = getflorzofslopeptr(pSector, debrisactor->spr.pos.X, debrisactor->spr.pos.Y);
GetActorExtents(debrisactor, &top, &bottom);
if (fz >= bottom && pSector->lowerLink == nullptr && !(pSector->ceilingstat & CSTAT_SECTOR_SKY)) debrisactor->spr.pos.Z += ClipLow(cz - top, 0);
if (cz <= top && pSector->upperLink == nullptr && !(pSector->floorstat & CSTAT_SECTOR_SKY)) debrisactor->spr.pos.Z += ClipHigh(fz - bottom, 0);
}
}
}
//---------------------------------------------------------------------------
//
// this function plays sound predefined in missile info
//
//---------------------------------------------------------------------------
void sfxPlayMissileSound(DBloodActor* actor, int missileId)
{
const MISSILEINFO_EXTRA* pMissType = &gMissileInfoExtra[missileId - kMissileBase];
sfxPlay3DSound(actor, Chance(0x5000) ? pMissType->fireSound[0] : pMissType->fireSound[1], -1, 0);
}
//---------------------------------------------------------------------------
//
// this function plays sound predefined in vector info
//
//---------------------------------------------------------------------------
void sfxPlayVectorSound(DBloodActor* actor, int vectorId)
{
const VECTORINFO_EXTRA* pVectorData = &gVectorInfoExtra[vectorId];
sfxPlay3DSound(actor, Chance(0x5000) ? pVectorData->fireSound[0] : pVectorData->fireSound[1], -1, 0);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
int getSpriteMassBySize(DBloodActor* actor)
{
int mass = 0; int seqId = -1; int clipDist = actor->spr.clipdist;
if (!actor->hasX())
{
I_Error("getSpriteMassBySize: actor->spr.hasX == false");
}
else if (actor->IsDudeActor())
{
switch (actor->spr.type)
{
case kDudePodMother: // fake dude, no seq
break;
case kDudeModernCustom:
case kDudeModernCustomBurning:
seqId = actor->xspr.data2;
clipDist = actor->genDudeExtra.initVals[2];
break;
default:
seqId = getDudeInfo(actor->spr.type)->seqStartID;
break;
}
}
else
{
seqId = seqGetID(actor);
}
SPRITEMASS* cached = &actor->spriteMass;
if (((seqId >= 0 && seqId == cached->seqId) || actor->spr.picnum == cached->picnum) && actor->spr.xrepeat == cached->xrepeat &&
actor->spr.yrepeat == cached->yrepeat && clipDist == cached->clipdist)
{
return cached->mass;
}
int picnum = actor->spr.picnum;
int massDiv = 30;
int addMul = 2;
int subMul = 2;
if (seqId >= 0)
{
auto pSeq = getSequence(seqId);
if (pSeq)
{
picnum = seqGetTile(&pSeq->frames[0]);
}
else
picnum = actor->spr.picnum;
}
clipDist = ClipLow(actor->spr.clipdist, 1);
int x = tileWidth(picnum);
int y = tileHeight(picnum);
int xrepeat = actor->spr.xrepeat;
int yrepeat = actor->spr.yrepeat;
// take surface type into account
switch (tileGetSurfType(actor->spr.picnum))
{
case 1: massDiv = 16; break; // stone
case 2: massDiv = 18; break; // metal
case 3: massDiv = 21; break; // wood
case 4: massDiv = 25; break; // flesh
case 5: massDiv = 28; break; // water
case 6: massDiv = 26; break; // dirt
case 7: massDiv = 27; break; // clay
case 8: massDiv = 35; break; // snow
case 9: massDiv = 22; break; // ice
case 10: massDiv = 37; break; // leaves
case 11: massDiv = 33; break; // cloth
case 12: massDiv = 36; break; // plant
case 13: massDiv = 24; break; // goo
case 14: massDiv = 23; break; // lava
}
mass = ((x + y) * (clipDist / 2)) / massDiv;
if (xrepeat > 64) mass += ((xrepeat - 64) * addMul);
else if (xrepeat < 64 && mass > 0)
{
for (int i = 64 - xrepeat; i > 0; i--)
{
if ((mass -= subMul) <= 100 && subMul-- <= 1)
{
mass -= i;
break;
}
}
}
if (yrepeat > 64) mass += ((yrepeat - 64) * addMul);
else if (yrepeat < 64 && mass > 0)
{
for (int i = 64 - yrepeat; i > 0; i--)
{
if ((mass -= subMul) <= 100 && subMul-- <= 1)
{
mass -= i;
break;
}
}
}
if (mass <= 0) cached->mass = 1 + Random(10);
else cached->mass = ClipRange(mass, 1, 65535);
cached->airVel = ClipRange(400 - cached->mass, 32, 400);
cached->fraction = ClipRange(60000 - (cached->mass << 7), 8192, 60000);
cached->xrepeat = actor->spr.xrepeat;
cached->yrepeat = actor->spr.yrepeat;
cached->picnum = actor->spr.picnum;
cached->seqId = seqId;
cached->clipdist = actor->spr.clipdist;
return cached->mass;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
static int debrisGetIndex(DBloodActor* actor)
{
if (!actor->hasX() || actor->xspr.physAttr == 0)
return -1;
for (int i = 0; i < gPhysSpritesCount; i++)
{
if (gPhysSpritesList[i] != actor) continue;
return i;
}
return -1;
}
int debrisGetFreeIndex(void)
{
for (int i = 0; i < kMaxSuperXSprites; i++)
{
if (gPhysSpritesList[i] == nullptr) return i;
auto actor = gPhysSpritesList[i];
if (actor->spr.statnum == kStatFree) return i;
else if ((actor->spr.flags & kHitagFree) || !gPhysSpritesList[i]->hasX()) return i;
else if (gPhysSpritesList[i]->xspr.physAttr == 0) return i;
}
return -1;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void debrisConcuss(DBloodActor* owneractor, int listIndex, int x, int y, int z, int dmg)
{
DBloodActor* actor = gPhysSpritesList[listIndex];
if (actor != nullptr && actor->hasX())
{
int dx = actor->spr.pos.X - x; int dy = actor->spr.pos.Y - y; int dz = (actor->spr.pos.Z - z) >> 4;
dmg = Scale(0x40000, dmg, 0x40000 + dx * dx + dy * dy + dz * dz);
bool thing = (actor->spr.type >= kThingBase && actor->spr.type < kThingMax);
int size = (tileWidth(actor->spr.picnum) * actor->spr.xrepeat * tileHeight(actor->spr.picnum) * actor->spr.yrepeat) >> 1;
if (actor->xspr.physAttr & kPhysDebrisExplode)
{
if (actor->spriteMass.mass > 0)
{
int t = Scale(dmg, size, actor->spriteMass.mass);
actor->vel.X += MulScale(t, dx, 16);
actor->vel.Y += MulScale(t, dy, 16);
actor->vel.Z += MulScale(t, dz, 16);
}
if (thing)
actor->spr.statnum = kStatThing; // temporary change statnum property
}
actDamageSprite(owneractor, actor, kDamageExplode, dmg);
if (thing)
actor->spr.statnum = kStatDecoration; // return statnum property back
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void debrisBubble(DBloodActor* actor)
{
int top, bottom;
GetActorExtents(actor, &top, &bottom);
for (unsigned int i = 0; i < 1 + Random(5); i++) {
int nDist = (actor->spr.xrepeat * (tileWidth(actor->spr.picnum) >> 1)) >> 2;
int nAngle = Random(2048);
int x = actor->spr.pos.X + MulScale(nDist, Cos(nAngle), 30);
int y = actor->spr.pos.Y + MulScale(nDist, Sin(nAngle), 30);
int z = bottom - Random(bottom - top);
auto pFX = gFX.fxSpawnActor((FX_ID)(FX_23 + Random(3)), actor->sector(), x, y, z, 0);
if (pFX) {
pFX->vel.X = actor->vel.X + Random2(0x1aaaa);
pFX->vel.Y = actor->vel.Y + Random2(0x1aaaa);
pFX->vel.Z = actor->vel.Z + Random2(0x1aaaa);
}
}
if (Chance(0x2000))
evPostActor(actor, 0, kCallbackEnemeyBubble);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void debrisMove(int listIndex)
{
DBloodActor* actor = gPhysSpritesList[listIndex];
auto pSector = actor->sector();
if (!actor->hasX() || !pSector)
{
gPhysSpritesList[listIndex] = nullptr;
return;
}
int top, bottom;
GetActorExtents(actor, &top, &bottom);
Collision moveHit;
moveHit.setNone();
int floorDist = (bottom - actor->spr.pos.Z) >> 2;
int ceilDist = (actor->spr.pos.Z - top) >> 2;
int clipDist = actor->spr.clipdist << 2;
int mass = actor->spriteMass.mass;
bool uwater = false;
int tmpFraction = actor->spriteMass.fraction;
if (pSector->hasX() && pSector->xs().Underwater)
{
tmpFraction >>= 1;
uwater = true;
}
if (actor->vel.X || actor->vel.Y)
{
auto oldcstat = actor->spr.cstat;
actor->spr.cstat &= ~(CSTAT_SPRITE_BLOCK | CSTAT_SPRITE_BLOCK_HITSCAN);
ClipMove(actor->spr.pos, &pSector, actor->vel.X >> 12,
actor->vel.Y >> 12, clipDist, ceilDist, floorDist, CLIPMASK0, moveHit);
actor->hit.hit = moveHit;
actor->spr.cstat = oldcstat;
if (actor->sector() != pSector)
{
if (!pSector) return;
else ChangeActorSect(actor, pSector);
}
if (pSector->type >= kSectorPath && pSector->type <= kSectorRotate)
{
auto pSector2 = pSector;
if (pushmove(&actor->spr.pos, &pSector2, clipDist, ceilDist, floorDist, CLIPMASK0) != -1)
pSector = pSector2;
}
if (actor->hit.hit.type == kHitWall)
{
moveHit = actor->hit.hit;
actWallBounceVector(&actor->vel.X, &actor->vel.Y, moveHit.hitWall, tmpFraction);
}
}
else if (!FindSector(actor->spr.pos.X, actor->spr.pos.Y, actor->spr.pos.Z, &pSector))
{
return;
}
if (actor->sector() != pSector)
{
assert(pSector);
ChangeActorSect(actor, pSector);
pSector = actor->sector();
}
if (pSector->hasX())
uwater = pSector->xs().Underwater;
if (actor->vel.Z)
actor->spr.pos.Z += actor->vel.Z >> 8;
int ceilZ, floorZ;
Collision ceilColl, floorColl;
GetZRange(actor, &ceilZ, &ceilColl, &floorZ, &floorColl, clipDist, CLIPMASK0, PARALLAXCLIP_CEILING | PARALLAXCLIP_FLOOR);
GetActorExtents(actor, &top, &bottom);
if ((actor->xspr.physAttr & kPhysDebrisSwim) && uwater)
{
int vc = 0;
int cz = getceilzofslopeptr(pSector, actor->spr.pos.X, actor->spr.pos.Y);
int fz = getflorzofslopeptr(pSector, actor->spr.pos.X, actor->spr.pos.Y);
int div = ClipLow(bottom - top, 1);
if (pSector->lowerLink) cz += (cz < 0) ? 0x500 : -0x500;
if (top > cz && (!(actor->xspr.physAttr & kPhysDebrisFloat) || fz <= bottom << 2))
actor->vel.Z -= DivScale((bottom - ceilZ) >> 6, mass, 8);
if (fz < bottom)
vc = 58254 + ((bottom - fz) * -80099) / div;
if (vc)
{
actor->spr.pos.Z += ((vc << 2) >> 1) >> 8;
actor->vel.Z += vc;
}
}
else if ((actor->xspr.physAttr & kPhysGravity) && bottom < floorZ)
{
actor->spr.pos.Z += 455;
actor->vel.Z += 58254;
}
int i;
if ((i = CheckLink(actor)) != 0)
{
GetZRange(actor, &ceilZ, &ceilColl, &floorZ, &floorColl, clipDist, CLIPMASK0, PARALLAXCLIP_CEILING | PARALLAXCLIP_FLOOR);
if (!(actor->spr.cstat & CSTAT_SPRITE_INVISIBLE))
{
switch (i)
{
case kMarkerUpWater:
case kMarkerUpGoo:
int pitch = (150000 - (actor->spriteMass.mass << 9)) + Random3(8192);
sfxPlay3DSoundCP(actor, 720, -1, 0, pitch, 75 - Random(40));
if (!spriteIsUnderwater(actor))
{
evKillActor(actor, kCallbackEnemeyBubble);
}
else
{
evPostActor(actor, 0, kCallbackEnemeyBubble);
for (int ii = 2; ii <= 5; ii++)
{
if (Chance(0x5000 * ii))
evPostActor(actor, Random(5), kCallbackEnemeyBubble);
}
}
break;
}
}
}
GetActorExtents(actor, &top, &bottom);
if (floorZ <= bottom) {
actor->hit.florhit = floorColl;
int v30 = actor->vel.Z - actor->sector()->velFloor;
if (v30 > 0)
{
actor->xspr.physAttr |= kPhysFalling;
actFloorBounceVector(&actor->vel.X, &actor->vel.Y, &v30, actor->sector(), tmpFraction);
actor->vel.Z = v30;
if (abs(actor->vel.Z) < 0x10000)
{
actor->vel.Z = actor->sector()->velFloor;
actor->xspr.physAttr &= ~kPhysFalling;
}
moveHit = floorColl;
DBloodActor* pFX = NULL, * pFX2 = NULL;
switch (tileGetSurfType(floorColl))
{
case kSurfLava:
if ((pFX = gFX.fxSpawnActor(FX_10, actor->sector(), actor->spr.pos.X, actor->spr.pos.Y, floorZ, 0)) == NULL) break;
for (i = 0; i < 7; i++)
{
if ((pFX2 = gFX.fxSpawnActor(FX_14, pFX->sector(), pFX->spr.pos.X, pFX->spr.pos.Y, pFX->spr.pos.Z, 0)) == NULL) continue;
pFX2->vel.X = Random2(0x6aaaa);
pFX2->vel.Y = Random2(0x6aaaa);
pFX2->vel.Z = -(int)Random(0xd5555);
}
break;
case kSurfWater:
gFX.fxSpawnActor(FX_9, actor->sector(), actor->spr.pos.X, actor->spr.pos.Y, floorZ, 0);
break;
}
}
else if (actor->vel.Z == 0)
{
actor->xspr.physAttr &= ~kPhysFalling;
}
}
else
{
actor->hit.florhit.setNone();
if (actor->xspr.physAttr & kPhysGravity)
actor->xspr.physAttr |= kPhysFalling;
}
if (top <= ceilZ)
{
actor->hit.ceilhit = moveHit = ceilColl;
actor->spr.pos.Z += ClipLow(ceilZ - top, 0);
if (actor->vel.Z <= 0 && (actor->xspr.physAttr & kPhysFalling))
actor->vel.Z = MulScale(-actor->vel.Z, 0x2000, 16);
}
else
{
actor->hit.ceilhit.setNone();
GetActorExtents(actor, &top, &bottom);
}
if (moveHit.type != kHitNone && actor->xspr.Impact && !actor->xspr.locked && !actor->xspr.isTriggered && (actor->xspr.state == actor->xspr.restState || actor->xspr.Interrutable)) {
if (actor->spr.type >= kThingBase && actor->spr.type < kThingMax)
ChangeActorStat(actor, kStatThing);
trTriggerSprite(actor, kCmdToggle);
}
if (!actor->vel.X && !actor->vel.Y) return;
else if (floorColl.type == kHitSprite)
{
if ((floorColl.actor()->spr.cstat & CSTAT_SPRITE_ALIGNMENT_MASK) == 0)
{
actor->vel.X += MulScale(4, actor->spr.pos.X - floorColl.actor()->spr.pos.X, 2);
actor->vel.Y += MulScale(4, actor->spr.pos.Y - floorColl.actor()->spr.pos.Y, 2);
return;
}
}
actor->xspr.height = ClipLow(floorZ - bottom, 0) >> 8;
if (uwater || actor->xspr.height >= 0x100)
return;
int nDrag = 0x2a00;
if (actor->xspr.height > 0)
nDrag -= Scale(nDrag, actor->xspr.height, 0x100);
actor->vel.X -= mulscale16r(actor->vel.X, nDrag);
actor->vel.Y -= mulscale16r(actor->vel.Y, nDrag);
if (approxDist(actor->vel.X, actor->vel.Y) < 0x1000)
actor->vel.X = actor->vel.Y = 0;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool ceilIsTooLow(DBloodActor* actor)
{
if (actor != nullptr)
{
sectortype* pSector = actor->sector();
int a = pSector->ceilingz - pSector->floorz;
int top, bottom;
GetActorExtents(actor, &top, &bottom);
int b = top - bottom;
if (a > b) return true;
}
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void aiSetGenIdleState(DBloodActor* actor)
{
switch (actor->spr.type)
{
case kDudeModernCustom:
case kDudeModernCustomBurning:
aiGenDudeNewState(actor, &genIdle);
break;
default:
aiNewState(actor, &genIdle);
break;
}
}
//---------------------------------------------------------------------------
//
// this function stops wind on all TX sectors affected by WindGen after it goes off state.
//
//---------------------------------------------------------------------------
void windGenStopWindOnSectors(DBloodActor* sourceactor)
{
if (sourceactor->xspr.txID <= 0 && sourceactor->sector()->hasX())
{
sourceactor->sector()->xs().windVel = 0;
return;
}
for (int i = bucketHead[sourceactor->xspr.txID]; i < bucketHead[sourceactor->xspr.txID + 1]; i++)
{
if (!rxBucket[i].isSector()) continue;
auto pSector = rxBucket[i].sector();
XSECTOR* pXSector = &pSector->xs();
if ((pXSector->state == 1 && !pXSector->windAlways)
|| ((sourceactor->spr.flags & kModernTypeFlag1) && !(sourceactor->spr.flags & kModernTypeFlag2)))
{
pXSector->windVel = 0;
}
}
// check redirected TX buckets
int rx = -1;
DBloodActor* pXRedir = nullptr;
while ((pXRedir = evrListRedirectors(OBJ_SPRITE, nullptr, nullptr, sourceactor, pXRedir, &rx)) != nullptr)
{
for (int i = bucketHead[rx]; i < bucketHead[rx + 1]; i++)
{
if (!rxBucket[i].isSector()) continue;
auto pSector = rxBucket[i].sector();
XSECTOR* pXSector = &pSector->xs();
if ((pXSector->state == 1 && !pXSector->windAlways) || (sourceactor->spr.flags & kModernTypeFlag2))
pXSector->windVel = 0;
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void trPlayerCtrlStartScene(DBloodActor* sourceactor, PLAYER* pPlayer, bool force)
{
TRPLAYERCTRL* pCtrl = &gPlayerCtrl[pPlayer->nPlayer];
if (pCtrl->qavScene.initiator != nullptr && !force) return;
QAV* pQav = playerQavSceneLoad(sourceactor->xspr.data2);
if (pQav != nullptr)
{
// save current weapon
sourceactor->xspr.dropMsg = pPlayer->curWeapon;
auto initiator = pCtrl->qavScene.initiator;
if (initiator != nullptr && initiator != sourceactor && initiator->hasX())
sourceactor->xspr.dropMsg = initiator->xspr.dropMsg;
if (initiator == nullptr)
WeaponLower(pPlayer);
sourceactor->xspr.sysData1 = ClipLow((pQav->duration * sourceactor->xspr.waitTime) / 4, 0); // how many times animation should be played
pCtrl->qavScene.initiator = sourceactor;
pCtrl->qavScene.qavResrc = pQav;
pCtrl->qavScene.dummy = -1;
//pCtrl->qavScene.qavResrc->Preload();
pPlayer->sceneQav = sourceactor->xspr.data2;
pPlayer->weaponTimer = pCtrl->qavScene.qavResrc->duration;
pPlayer->qavCallback = (sourceactor->xspr.data3 > 0) ? ClipRange(sourceactor->xspr.data3 - 1, 0, 32) : -1;
pPlayer->qavLoop = false;
pPlayer->qavLastTick = I_GetTime(pCtrl->qavScene.qavResrc->ticrate);
pPlayer->qavTimer = pCtrl->qavScene.qavResrc->duration;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void trPlayerCtrlStopScene(PLAYER* pPlayer)
{
TRPLAYERCTRL* pCtrl = &gPlayerCtrl[pPlayer->nPlayer];
auto initiator = pCtrl->qavScene.initiator;
if (initiator->hasX())
{
initiator->xspr.sysData1 = 0;
}
if (pCtrl->qavScene.initiator != nullptr)
{
pCtrl->qavScene.initiator = nullptr;
pCtrl->qavScene.qavResrc = nullptr;
pPlayer->sceneQav = -1;
// restore weapon
if (pPlayer->actor->xspr.health > 0)
{
int oldWeapon = (initiator->hasX() && initiator->xspr.dropMsg != 0) ? initiator->xspr.dropMsg : 1;
pPlayer->newWeapon = pPlayer->curWeapon = oldWeapon;
WeaponRaise(pPlayer);
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void trPlayerCtrlLink(DBloodActor* sourceactor, PLAYER* pPlayer, bool checkCondition)
{
// save player's sprite index to let the tracking condition know it after savegame loading...
auto actor = pPlayer->actor;
sourceactor->prevmarker = actor;
actor->xspr.txID = sourceactor->xspr.txID;
actor->xspr.command = kCmdToggle;
actor->xspr.triggerOn = sourceactor->xspr.triggerOn;
actor->xspr.triggerOff = sourceactor->xspr.triggerOff;
actor->xspr.busyTime = sourceactor->xspr.busyTime;
actor->xspr.waitTime = sourceactor->xspr.waitTime;
actor->xspr.restState = sourceactor->xspr.restState;
actor->xspr.Push = sourceactor->xspr.Push;
actor->xspr.Impact = sourceactor->xspr.Impact;
actor->xspr.Vector = sourceactor->xspr.Vector;
actor->xspr.Touch = sourceactor->xspr.Touch;
actor->xspr.Sight = sourceactor->xspr.Sight;
actor->xspr.Proximity = sourceactor->xspr.Proximity;
actor->xspr.Decoupled = sourceactor->xspr.Decoupled;
actor->xspr.Interrutable = sourceactor->xspr.Interrutable;
actor->xspr.DudeLockout = sourceactor->xspr.DudeLockout;
actor->xspr.data1 = sourceactor->xspr.data1;
actor->xspr.data2 = sourceactor->xspr.data2;
actor->xspr.data3 = sourceactor->xspr.data3;
actor->xspr.data4 = sourceactor->xspr.data4;
actor->xspr.key = sourceactor->xspr.key;
actor->xspr.dropMsg = sourceactor->xspr.dropMsg;
// let's check if there is tracking condition expecting objects with this TX id
if (checkCondition && sourceactor->xspr.txID >= kChannelUser)
{
for (int i = 0; i < gTrackingCondsCount; i++)
{
TRCONDITION* pCond = &gCondition[i];
if (pCond->actor->xspr.rxID != sourceactor->xspr.txID)
continue;
// search for player control sprite and replace it with actual player sprite
for (unsigned k = 0; k < pCond->length; k++)
{
if (!pCond->obj[k].obj.isActor() || pCond->obj[k].obj.actor() != sourceactor) continue;
pCond->obj[k].obj = EventObject(pPlayer->actor);
pCond->obj[k].cmd = (uint8_t)pPlayer->actor->xspr.command;
break;
}
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void trPlayerCtrlSetRace(int value, PLAYER* pPlayer)
{
playerSetRace(pPlayer, value);
switch (pPlayer->lifeMode)
{
case kModeHuman:
case kModeBeast:
playerSizeReset(pPlayer);
break;
case kModeHumanShrink:
playerSizeShrink(pPlayer, 2);
break;
case kModeHumanGrown:
playerSizeGrow(pPlayer, 2);
break;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void trPlayerCtrlSetMoveSpeed(int value, PLAYER* pPlayer)
{
int speed = ClipRange(value, 0, 500);
for (int i = 0; i < kModeMax; i++)
{
for (int a = 0; a < kPostureMax; a++)
{
POSTURE* curPosture = &pPlayer->pPosture[i][a]; POSTURE* defPosture = &gPostureDefaults[i][a];
curPosture->frontAccel = (defPosture->frontAccel * speed) / kPercFull;
curPosture->sideAccel = (defPosture->sideAccel * speed) / kPercFull;
curPosture->backAccel = (defPosture->backAccel * speed) / kPercFull;
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void trPlayerCtrlSetJumpHeight(int value, PLAYER* pPlayer)
{
int jump = ClipRange(value, 0, 500);
for (int i = 0; i < kModeMax; i++)
{
POSTURE* curPosture = &pPlayer->pPosture[i][kPostureStand]; POSTURE* defPosture = &gPostureDefaults[i][kPostureStand];
curPosture->normalJumpZ = (defPosture->normalJumpZ * jump) / kPercFull;
curPosture->pwupJumpZ = (defPosture->pwupJumpZ * jump) / kPercFull;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void trPlayerCtrlSetScreenEffect(int value, int timeval, PLAYER* pPlayer)
{
int eff = ClipLow(value, 0);
int time = (eff > 0) ? timeval : 0;
switch (eff) {
case 0: // clear all
case 1: // tilting
pPlayer->tiltEffect = ClipRange(time, 0, 220);
if (eff) break;
[[fallthrough]];
case 2: // pain
pPlayer->painEffect = ClipRange(time, 0, 2048);
if (eff) break;
[[fallthrough]];
case 3: // blind
pPlayer->blindEffect = ClipRange(time, 0, 2048);
if (eff) break;
[[fallthrough]];
case 4: // pickup
pPlayer->pickupEffect = ClipRange(time, 0, 2048);
if (eff) break;
[[fallthrough]];
case 5: // quakeEffect
pPlayer->quakeEffect = ClipRange(time, 0, 2048);
if (eff) break;
[[fallthrough]];
case 6: // visibility
pPlayer->visibility = ClipRange(time, 0, 2048);
if (eff) break;
[[fallthrough]];
case 7: // delirium
pPlayer->pwUpTime[kPwUpDeliriumShroom] = ClipHigh(time << 1, 432000);
break;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void trPlayerCtrlSetLookAngle(int value, PLAYER* pPlayer)
{
double const upAngle = 289;
double const downAngle = -347;
double const lookStepUp = 4.0 * upAngle / 60.0;
double const lookStepDown = -4.0 * downAngle / 60.0;
double const look = value << 5;
double adjustment;
if (look > 0)
{
adjustment = min(MulScaleF(lookStepUp, look, 8), upAngle);
}
else if (look < 0)
{
adjustment = -max(MulScaleF(lookStepDown, abs(look), 8), downAngle);
}
else
{
adjustment = 0;
}
pPlayer->horizon.settarget(100. * tan(adjustment * pi::pi() / 1024.));
pPlayer->horizon.lockinput();
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void trPlayerCtrlEraseStuff(int value, PLAYER* pPlayer)
{
switch (value)
{
case 0: // erase all
[[fallthrough]];
case 1: // erase weapons
WeaponLower(pPlayer);
for (int i = 0; i < 14; i++) {
pPlayer->hasWeapon[i] = false;
// also erase ammo
if (i < 12) pPlayer->ammoCount[i] = 0;
}
pPlayer->hasWeapon[kWeapPitchFork] = true;
pPlayer->curWeapon = kWeapNone;
pPlayer->nextWeapon = kWeapPitchFork;
WeaponRaise(pPlayer);
if (value) break;
[[fallthrough]];
case 2: // erase all armor
for (int i = 0; i < 3; i++) pPlayer->armor[i] = 0;
if (value) break;
[[fallthrough]];
case 3: // erase all pack items
for (int i = 0; i < 5; i++) {
pPlayer->packSlots[i].isActive = false;
pPlayer->packSlots[i].curAmount = 0;
}
pPlayer->packItemId = -1;
if (value) break;
[[fallthrough]];
case 4: // erase all keys
for (int i = 0; i < 8; i++) pPlayer->hasKey[i] = false;
if (value) break;
[[fallthrough]];
case 5: // erase powerups
for (int i = 0; i < kMaxPowerUps; i++) pPlayer->pwUpTime[i] = 0;
break;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void trPlayerCtrlGiveStuff(int data2, int weapon, int data4, PLAYER* pPlayer, TRPLAYERCTRL* pCtrl)
{
switch (data2)
{
case 1: // give N weapon and default ammo for it
case 2: // give just N ammo for selected weapon
if (weapon <= 0 || weapon > 13)
{
Printf(PRINT_HIGH, "Weapon #%d is out of a weapons range!", weapon);
break;
}
else if (data2 == 2 && data4 == 0)
{
Printf(PRINT_HIGH, "Zero ammo for weapon #%d is specified!", weapon);
break;
}
switch (weapon)
{
case kWeapProximity: // remote bomb
case kWeapRemote: // prox bomb
pPlayer->hasWeapon[weapon] = true;
weapon--;
pPlayer->ammoCount[weapon] = ClipHigh(pPlayer->ammoCount[weapon] + ((data2 == 2) ? data4 : 1), gAmmoInfo[weapon].max);
weapon++;
break;
default:
for (int i = 0; i < 11; i++)
{
if (gWeaponItemData[i].type != weapon) continue;
const WEAPONITEMDATA* pWeaponData = &gWeaponItemData[i];
int nAmmoType = pWeaponData->ammoType;
switch (data2) {
case 1:
pPlayer->hasWeapon[weapon] = true;
if (pPlayer->ammoCount[nAmmoType] >= pWeaponData->count) break;
pPlayer->ammoCount[nAmmoType] = ClipHigh(pPlayer->ammoCount[nAmmoType] + pWeaponData->count, gAmmoInfo[nAmmoType].max);
break;
case 2:
pPlayer->ammoCount[nAmmoType] = ClipHigh(pPlayer->ammoCount[nAmmoType] + data4, gAmmoInfo[nAmmoType].max);
break;
}
break;
}
break;
}
if (pPlayer->hasWeapon[weapon] && data4 == 0) // switch on it
{
pPlayer->nextWeapon = kWeapNone;
if (pPlayer->sceneQav >= 0 && pCtrl->qavScene.initiator && pCtrl->qavScene.initiator->hasX())
{
pCtrl->qavScene.initiator->xspr.dropMsg = weapon;
}
else if (pPlayer->curWeapon != weapon)
{
pPlayer->newWeapon = weapon;
WeaponRaise(pPlayer);
}
}
break;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void trPlayerCtrlUsePackItem(int data2, int data3, int data4, PLAYER* pPlayer, int evCmd)
{
unsigned int invItem = data2 - 1;
switch (evCmd)
{
case kCmdOn:
if (!pPlayer->packSlots[invItem].isActive) packUseItem(pPlayer, invItem);
break;
case kCmdOff:
if (pPlayer->packSlots[invItem].isActive) packUseItem(pPlayer, invItem);
break;
default:
packUseItem(pPlayer, invItem);
break;
}
switch (data4)
{
case 2: // both
case 0: // switch on it
if (pPlayer->packSlots[invItem].curAmount > 0) pPlayer->packItemId = invItem;
if (!data4) break;
[[fallthrough]];
case 1: // force remove after use
pPlayer->packSlots[invItem].isActive = false;
pPlayer->packSlots[invItem].curAmount = 0;
break;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void trPlayerCtrlUsePowerup(DBloodActor* sourceactor, PLAYER* pPlayer, int evCmd)
{
bool relative = (sourceactor->spr.flags & kModernTypeFlag1);
int nPower = (kMinAllowedPowerup + sourceactor->xspr.data2) - 1;
int nTime = ClipRange(abs(sourceactor->xspr.data3) * 100, -gPowerUpInfo[nPower].maxTime, gPowerUpInfo[nPower].maxTime);
if (sourceactor->xspr.data3 < 0)
nTime = -nTime;
if (pPlayer->pwUpTime[nPower])
{
if (!relative && nTime <= 0)
powerupDeactivate(pPlayer, nPower);
}
if (nTime != 0)
{
if (pPlayer->pwUpTime[nPower] <= 0)
powerupActivate(pPlayer, nPower); // MUST activate first for powerups like kPwUpDeathMask
// ...so we able to change time amount
if (relative) pPlayer->pwUpTime[nPower] += nTime;
else pPlayer->pwUpTime[nPower] = nTime;
}
if (pPlayer->pwUpTime[nPower] <= 0)
powerupDeactivate(pPlayer, nPower);
return;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useObjResizer(DBloodActor* sourceactor, int targType, sectortype* targSect, walltype* targWall, DBloodActor* targetactor)
{
switch (targType)
{
// for sectors
case OBJ_SECTOR:
if (!targSect) return;
if (valueIsBetween(sourceactor->xspr.data1, -1, 32767))
targSect->floorxpan_ = (float)ClipRange(sourceactor->xspr.data1, 0, 255);
if (valueIsBetween(sourceactor->xspr.data2, -1, 32767))
targSect->floorypan_ = (float)ClipRange(sourceactor->xspr.data2, 0, 255);
if (valueIsBetween(sourceactor->xspr.data3, -1, 32767))
targSect->ceilingxpan_ = (float)ClipRange(sourceactor->xspr.data3, 0, 255);
if (valueIsBetween(sourceactor->xspr.data4, -1, 65535))
targSect->ceilingypan_ = (float)ClipRange(sourceactor->xspr.data4, 0, 255);
break;
// for sprites
case OBJ_SPRITE:
{
bool fit = false;
// resize by seq scaling
if (sourceactor->spr.flags & kModernTypeFlag1)
{
if (valueIsBetween(sourceactor->xspr.data1, -255, 32767))
{
int mulDiv = (valueIsBetween(sourceactor->xspr.data2, 0, 257)) ? sourceactor->xspr.data2 : 256;
if (sourceactor->xspr.data1 > 0) targetactor->xspr.scale = mulDiv * ClipHigh(sourceactor->xspr.data1, 25);
else if (sourceactor->xspr.data1 < 0) targetactor->xspr.scale = mulDiv / ClipHigh(abs(sourceactor->xspr.data1), 25);
else targetactor->xspr.scale = 0;
fit = true;
}
// resize by repeats
}
else
{
if (valueIsBetween(sourceactor->xspr.data1, -1, 32767))
{
targetactor->spr.xrepeat = ClipRange(sourceactor->xspr.data1, 0, 255);
fit = true;
}
if (valueIsBetween(sourceactor->xspr.data2, -1, 32767))
{
targetactor->spr.yrepeat = ClipRange(sourceactor->xspr.data2, 0, 255);
fit = true;
}
}
if (fit && (targetactor->spr.type == kDudeModernCustom || targetactor->spr.type == kDudeModernCustomBurning))
{
// request properties update for custom dude
targetactor->genDudeExtra.updReq[kGenDudePropertySpriteSize] = true;
targetactor->genDudeExtra.updReq[kGenDudePropertyAttack] = true;
targetactor->genDudeExtra.updReq[kGenDudePropertyMass] = true;
targetactor->genDudeExtra.updReq[kGenDudePropertyDmgScale] = true;
evPostActor(targetactor, kGenDudeUpdTimeRate, kCallbackGenDudeUpdate);
}
if (valueIsBetween(sourceactor->xspr.data3, -1, 32767))
targetactor->spr.xoffset = ClipRange(sourceactor->xspr.data3, 0, 255);
if (valueIsBetween(sourceactor->xspr.data4, -1, 65535))
targetactor->spr.yoffset = ClipRange(sourceactor->xspr.data4, 0, 255);
break;
}
case OBJ_WALL:
if (!targWall) return;
if (valueIsBetween(sourceactor->xspr.data1, -1, 32767))
targWall->xrepeat = ClipRange(sourceactor->xspr.data1, 0, 255);
if (valueIsBetween(sourceactor->xspr.data2, -1, 32767))
targWall->yrepeat = ClipRange(sourceactor->xspr.data2, 0, 255);
if (valueIsBetween(sourceactor->xspr.data3, -1, 32767))
targWall->xpan_ = (float)ClipRange(sourceactor->xspr.data3, 0, 255);
if (valueIsBetween(sourceactor->xspr.data4, -1, 65535))
targWall->ypan_ = (float)ClipRange(sourceactor->xspr.data4, 0, 255);
break;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void usePropertiesChanger(DBloodActor* sourceactor, int objType, sectortype* pSector, walltype* pWall, DBloodActor* targetactor)
{
switch (objType)
{
case OBJ_WALL:
{
if (!pWall) return;
// data3 = set wall hitag
if (valueIsBetween(sourceactor->xspr.data3, -1, 32767))
{
if ((sourceactor->spr.flags & kModernTypeFlag1)) pWall->hitag |= sourceactor->xspr.data3;
else pWall->hitag = sourceactor->xspr.data3;
}
// data4 = set wall cstat
if (valueIsBetween(sourceactor->xspr.data4, -1, 65535))
{
auto old = pWall->cstat;
// set new cstat
if ((sourceactor->spr.flags & kModernTypeFlag1)) pWall->cstat |= EWallFlags::FromInt(sourceactor->xspr.data4); // relative
else pWall->cstat = EWallFlags::FromInt(sourceactor->xspr.data4); // absolute
// and hanlde exceptions
pWall->cstat |= old & (CSTAT_WALL_BOTTOM_SWAP | CSTAT_WALL_ALIGN_BOTTOM | CSTAT_WALL_1WAY);
pWall->cstat = (pWall->cstat & ~CSTAT_WALL_MOVE_MASK) | (old & CSTAT_WALL_MOVE_MASK);
#if 0
// old code for reference. This does not look right.
if (old & 0xc000) {
if (!(pWall->cstat & 0xc000))
pWall->cstat |= 0xc000; // kWallMoveMask
if ((old & 0x0) && !(pWall->cstat & 0x0)) pWall->cstat |= 0x0; // kWallMoveNone
else if ((old & 0x4000) && !(pWall->cstat & 0x4000)) pWall->cstat |= 0x4000; // kWallMoveForward
else if ((old & 0x8000) && !(pWall->cstat & CSTAT_SPRITE_INVISIBLE)) pWall->cstat |= CSTAT_SPRITE_INVISIBLE; // kWallMoveBackward
}
#endif
}
}
break;
case OBJ_SPRITE:
{
bool thing2debris = false;
int old = -1;
// data3 = set sprite hitag
if (valueIsBetween(sourceactor->xspr.data3, -1, 32767))
{
old = targetactor->spr.flags;
// set new hitag
if ((sourceactor->spr.flags & kModernTypeFlag1)) targetactor->spr.flags = sourceactor->spr.flags |= sourceactor->xspr.data3; // relative
else targetactor->spr.flags = sourceactor->xspr.data3; // absolute
// and handle exceptions
if ((old & kHitagFree) && !(targetactor->spr.flags & kHitagFree)) targetactor->spr.flags |= kHitagFree;
if ((old & kHitagRespawn) && !(targetactor->spr.flags & kHitagRespawn)) targetactor->spr.flags |= kHitagRespawn;
// prepare things for different (debris) physics.
if (targetactor->spr.statnum == kStatThing && debrisGetFreeIndex() >= 0) thing2debris = true;
}
// data2 = sprite physics settings
if (valueIsBetween(sourceactor->xspr.data2, -1, 32767) || thing2debris)
{
switch (targetactor->spr.statnum)
{
case kStatDude: // dudes already treating in game
case kStatFree:
case kStatMarker:
case kStatPathMarker:
break;
default:
// store physics attributes in xsprite to avoid setting hitag for modern types!
int flags = (targetactor->xspr.physAttr != 0) ? targetactor->xspr.physAttr : 0;
int oldFlags = flags;
if (thing2debris)
{
// converting thing to debris
if ((targetactor->spr.flags & kPhysMove) != 0) flags |= kPhysMove;
else flags &= ~kPhysMove;
if ((targetactor->spr.flags & kPhysGravity) != 0) flags |= (kPhysGravity | kPhysFalling);
else flags &= ~(kPhysGravity | kPhysFalling);
targetactor->spr.flags &= ~(kPhysMove | kPhysGravity | kPhysFalling);
targetactor->vel.X = targetactor->vel.Y = targetactor->vel.Z = 0;
targetactor->xspr.restState = targetactor->xspr.state;
}
else
{
// WTF is this?!?
char digits[6] = {};
snprintf(digits, 6, "%d", sourceactor->xspr.data2);
for (unsigned int i = 0; i < sizeof(digits); i++)
digits[i] = (digits[i] >= 48 && digits[i] <= 57) ? (digits[i] - 57) + 9 : 0;
// first digit of data2: set main physics attributes
switch (digits[0])
{
case 0:
flags &= ~kPhysMove;
flags &= ~(kPhysGravity | kPhysFalling);
break;
case 1:
flags |= kPhysMove;
flags &= ~(kPhysGravity | kPhysFalling);
break;
case 2:
flags &= ~kPhysMove;
flags |= (kPhysGravity | kPhysFalling);
break;
case 3:
flags |= kPhysMove;
flags |= (kPhysGravity | kPhysFalling);
break;
}
// second digit of data2: touch physics flags
switch (digits[1])
{
case 0:
flags &= ~kPhysDebrisTouch;
break;
case 1:
flags |= kPhysDebrisTouch;
break;
}
// third digit of data2: weapon physics flags
switch (digits[2])
{
case 0:
flags &= ~kPhysDebrisVector;
flags &= ~kPhysDebrisExplode;
break;
case 1:
flags |= kPhysDebrisVector;
flags &= ~kPhysDebrisExplode;
break;
case 2:
flags &= ~kPhysDebrisVector;
flags |= kPhysDebrisExplode;
break;
case 3:
flags |= kPhysDebrisVector;
flags |= kPhysDebrisExplode;
break;
}
// fourth digit of data2: swimming / flying physics flags
switch (digits[3])
{
case 0:
flags &= ~kPhysDebrisSwim;
flags &= ~kPhysDebrisFly;
flags &= ~kPhysDebrisFloat;
break;
case 1:
flags |= kPhysDebrisSwim;
flags &= ~kPhysDebrisFly;
flags &= ~kPhysDebrisFloat;
break;
case 2:
flags |= kPhysDebrisSwim;
flags |= kPhysDebrisFloat;
flags &= ~kPhysDebrisFly;
break;
case 3:
flags |= kPhysDebrisFly;
flags &= ~kPhysDebrisSwim;
flags &= ~kPhysDebrisFloat;
break;
case 4:
flags |= kPhysDebrisFly;
flags |= kPhysDebrisFloat;
flags &= ~kPhysDebrisSwim;
break;
case 5:
flags |= kPhysDebrisSwim;
flags |= kPhysDebrisFly;
flags &= ~kPhysDebrisFloat;
break;
case 6:
flags |= kPhysDebrisSwim;
flags |= kPhysDebrisFly;
flags |= kPhysDebrisFloat;
break;
}
}
int nIndex = debrisGetIndex(targetactor); // check if there is no sprite in list
// adding physics sprite in list
if ((flags & kPhysGravity) != 0 || (flags & kPhysMove) != 0)
{
if (oldFlags == 0)
targetactor->vel.X = targetactor->vel.Y = targetactor->vel.Z = 0;
if (nIndex != -1)
{
targetactor->xspr.physAttr = flags; // just update physics attributes
}
else if ((nIndex = debrisGetFreeIndex()) < 0)
{
viewSetSystemMessage("Max (%d) Physics affected sprites reached!", kMaxSuperXSprites);
}
else
{
targetactor->xspr.physAttr = flags; // update physics attributes
// allow things to became debris, so they use different physics...
if (targetactor->spr.statnum == kStatThing) ChangeActorStat(targetactor, 0);
// set random goal ang for swimming so they start turning
if ((flags & kPhysDebrisSwim) && !targetactor->vel.X && !targetactor->vel.Y && !targetactor->vel.Z)
targetactor->xspr.goalAng = (targetactor->spr.ang + Random3(kAng45)) & 2047;
if (targetactor->xspr.physAttr & kPhysDebrisVector)
targetactor->spr.cstat |= CSTAT_SPRITE_BLOCK_HITSCAN;
gPhysSpritesList[nIndex] = targetactor;
if (nIndex >= gPhysSpritesCount) gPhysSpritesCount++;
getSpriteMassBySize(targetactor); // create physics cache
}
// removing physics from sprite in list (don't remove sprite from list)
}
else if (nIndex != -1)
{
targetactor->xspr.physAttr = flags;
targetactor->vel.X = targetactor->vel.Y = targetactor->vel.Z = 0;
if (targetactor->spr.lotag >= kThingBase && targetactor->spr.lotag < kThingMax)
ChangeActorStat(targetactor, kStatThing); // if it was a thing - restore statnum
}
break;
}
}
// data4 = sprite cstat
if (valueIsBetween(sourceactor->xspr.data4, -1, 65535))
{
auto oldstat = targetactor->spr.cstat;
// set new cstat
if ((sourceactor->spr.flags & kModernTypeFlag1)) targetactor->spr.cstat |= ESpriteFlags::FromInt(sourceactor->xspr.data4); // relative
else targetactor->spr.cstat = ESpriteFlags::FromInt(sourceactor->xspr.data4 & 0xffff); // absolute
// and handle exceptions
if ((oldstat & CSTAT_SPRITE_BLOOD_BIT1)) targetactor->spr.cstat |= CSTAT_SPRITE_BLOOD_BIT1; //kSpritePushable
if ((oldstat & CSTAT_SPRITE_YCENTER)) targetactor->spr.cstat |= CSTAT_SPRITE_YCENTER;
targetactor->spr.cstat |= (oldstat & CSTAT_SPRITE_MOVE_MASK);
#if 0
// looks very broken.
if (old & 0x6000)
{
if (!(targetactor->spr.cstat & 0x6000))
targetactor->spr.cstat |= 0x6000; // kSpriteMoveMask
if ((old & 0x0) && !(targetactor->spr.cstat & 0x0)) targetactor->spr.cstat |= 0x0; // kSpriteMoveNone
else if ((old & 0x2000) && !(targetactor->spr.cstat & 0x2000)) targetactor->spr.cstat |= 0x2000; // kSpriteMoveForward, kSpriteMoveFloor
else if ((old & 0x4000) && !(targetactor->spr.cstat & 0x4000)) targetactor->spr.cstat |= 0x4000; // kSpriteMoveReverse, kSpriteMoveCeiling
}
#endif
}
}
break;
case OBJ_SECTOR:
{
if (!pSector) return;
XSECTOR* pXSector = &pSector->xs();
// data1 = sector underwater status and depth level
if (sourceactor->xspr.data1 >= 0 && sourceactor->xspr.data1 < 2) {
pXSector->Underwater = (sourceactor->xspr.data1) ? true : false;
auto aLower = barrier_cast<DBloodActor*>(pSector->lowerLink);
DBloodActor* aUpper = nullptr;
if (aLower)
{
// must be sure we found exact same upper link
for (auto& sec : sector)
{
aUpper = barrier_cast<DBloodActor*>(sec.upperLink);
if (aUpper == nullptr || aUpper->xspr.data1 != aLower->xspr.data1)
{
aUpper = nullptr;
continue;
}
break;
}
}
// treat sectors that have links, so warp can detect underwater status properly
if (aLower)
{
if (pXSector->Underwater)
{
switch (aLower->spr.type)
{
case kMarkerLowStack:
case kMarkerLowLink:
aLower->xspr.sysData1 = aLower->spr.type;
aLower->spr.type = kMarkerLowWater;
break;
default:
if (pSector->ceilingpicnum < 4080 || pSector->ceilingpicnum > 4095) aLower->xspr.sysData1 = kMarkerLowLink;
else aLower->xspr.sysData1 = kMarkerLowStack;
break;
}
}
else if (aLower->xspr.sysData1 > 0) aLower->spr.type = aLower->xspr.sysData1;
else if (pSector->ceilingpicnum < 4080 || pSector->ceilingpicnum > 4095) aLower->spr.type = kMarkerLowLink;
else aLower->spr.type = kMarkerLowStack;
}
if (aUpper)
{
if (pXSector->Underwater)
{
switch (aUpper->spr.type)
{
case kMarkerUpStack:
case kMarkerUpLink:
aUpper->xspr.sysData1 = aUpper->spr.type;
aUpper->spr.type = kMarkerUpWater;
break;
default:
if (pSector->floorpicnum < 4080 || pSector->floorpicnum > 4095) aUpper->xspr.sysData1 = kMarkerUpLink;
else aUpper->xspr.sysData1 = kMarkerUpStack;
break;
}
}
else if (aUpper->xspr.sysData1 > 0) aUpper->spr.type = aUpper->xspr.sysData1;
else if (pSector->floorpicnum < 4080 || pSector->floorpicnum > 4095) aUpper->spr.type = kMarkerUpLink;
else aUpper->spr.type = kMarkerUpStack;
}
// search for dudes in this sector and change their underwater status
BloodSectIterator it(pSector);
while (auto iactor = it.Next())
{
if (iactor->spr.statnum != kStatDude || !iactor->IsDudeActor() || !iactor->hasX())
continue;
PLAYER* pPlayer = getPlayerById(iactor->spr.type);
if (pXSector->Underwater)
{
if (aLower)
iactor->xspr.medium = (aLower->spr.type == kMarkerUpGoo) ? kMediumGoo : kMediumWater;
if (pPlayer)
{
int waterPal = kMediumWater;
if (aLower)
{
if (aLower->xspr.data2 > 0) waterPal = aLower->xspr.data2;
else if (aLower->spr.type == kMarkerUpGoo) waterPal = kMediumGoo;
}
pPlayer->nWaterPal = waterPal;
pPlayer->posture = kPostureSwim;
pPlayer->actor->xspr.burnTime = 0;
}
}
else
{
iactor->xspr.medium = kMediumNormal;
if (pPlayer)
{
pPlayer->posture = (!(pPlayer->input.actions & SB_CROUCH)) ? kPostureStand : kPostureCrouch;
pPlayer->nWaterPal = 0;
}
}
}
}
else if (sourceactor->xspr.data1 > 9) pXSector->Depth = 7;
else if (sourceactor->xspr.data1 > 1) pXSector->Depth = sourceactor->xspr.data1 - 2;
// data2 = sector visibility
if (valueIsBetween(sourceactor->xspr.data2, -1, 32767))
pSector->visibility = ClipRange(sourceactor->xspr.data2, 0, 234);
// data3 = sector ceil cstat
if (valueIsBetween(sourceactor->xspr.data3, -1, 32767)) {
if ((sourceactor->spr.flags & kModernTypeFlag1)) pSector->ceilingstat |= ESectorFlags::FromInt(sourceactor->xspr.data3);
else pSector->ceilingstat = ESectorFlags::FromInt(sourceactor->xspr.data3);
}
// data4 = sector floor cstat
if (valueIsBetween(sourceactor->xspr.data4, -1, 65535)) {
if ((sourceactor->spr.flags & kModernTypeFlag1)) pSector->floorstat |= ESectorFlags::FromInt(sourceactor->xspr.data4);
else pSector->floorstat = ESectorFlags::FromInt(sourceactor->xspr.data4);
}
}
break;
// no TX id
case -1:
// data2 = global visibility
if (valueIsBetween(sourceactor->xspr.data2, -1, 32767))
gVisibility = ClipRange(sourceactor->xspr.data2, 0, 4096);
break;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useTeleportTarget(DBloodActor* sourceactor, DBloodActor* actor)
{
PLAYER* pPlayer = getPlayerById(actor->spr.type);
XSECTOR* pXSector = (sourceactor->sector()->hasX()) ? &sourceactor->sector()->xs() : nullptr;
bool isDude = (!pPlayer && actor->IsDudeActor());
if (actor->sector() != sourceactor->sector())
ChangeActorSect(actor, sourceactor->sector());
actor->spr.pos.X = sourceactor->spr.pos.X; actor->spr.pos.Y = sourceactor->spr.pos.Y;
int zTop, zBot;
GetActorExtents(sourceactor, &zTop, &zBot);
actor->spr.pos.Z = zBot;
clampSprite(actor, 0x01);
if (sourceactor->spr.flags & kModernTypeFlag1) // force telefrag
TeleFrag(actor, sourceactor->sector());
if (actor->spr.flags & kPhysGravity)
actor->spr.flags |= kPhysFalling;
if (pXSector)
{
if (pXSector->Enter && (pPlayer || (isDude && !pXSector->dudeLockout)))
trTriggerSector(sourceactor->sector(), kCmdSectorEnter);
if (pXSector->Underwater)
{
DBloodActor* aUpper = nullptr;
auto aLink = barrier_cast<DBloodActor*>(sourceactor->sector()->lowerLink);
if (aLink)
{
// must be sure we found exact same upper link
for (auto& sec : sector)
{
aUpper = barrier_cast<DBloodActor*>(sec.upperLink);
if (aUpper == nullptr || aUpper->xspr.data1 != aLink->xspr.data1)
{
aUpper = nullptr;
continue;
}
break;
}
}
if (aUpper)
actor->xspr.medium = (aLink->spr.type == kMarkerUpGoo) ? kMediumGoo : kMediumWater;
if (pPlayer)
{
int waterPal = kMediumWater;
if (aUpper)
{
if (aLink->xspr.data2 > 0) waterPal = aLink->xspr.data2;
else if (aLink->spr.type == kMarkerUpGoo) waterPal = kMediumGoo;
}
pPlayer->nWaterPal = waterPal;
pPlayer->posture = kPostureSwim;
pPlayer->actor->xspr.burnTime = 0;
}
}
else
{
actor->xspr.medium = kMediumNormal;
if (pPlayer)
{
pPlayer->posture = (!(pPlayer->input.actions & SB_CROUCH)) ? kPostureStand : kPostureCrouch;
pPlayer->nWaterPal = 0;
}
}
}
if (actor->spr.statnum == kStatDude && actor->IsDudeActor() && !actor->IsPlayerActor())
{
int x = actor->xspr.TargetPos.X;
int y = actor->xspr.TargetPos.Y;
int z = actor->xspr.TargetPos.Z;
auto target = actor->GetTarget();
aiInitSprite(actor);
if (target != nullptr)
{
actor->xspr.TargetPos.X = x;
actor->xspr.TargetPos.Y = y;
actor->xspr.TargetPos.Z = z;
actor->SetTarget(target);
aiActivateDude(actor);
}
}
if (sourceactor->xspr.data2 == 1)
{
if (pPlayer)
{
pPlayer->angle.settarget(sourceactor->spr.ang);
pPlayer->angle.lockinput();
}
else if (isDude) sourceactor->xspr.goalAng = actor->spr.ang = sourceactor->spr.ang;
else actor->spr.ang = sourceactor->spr.ang;
}
if (sourceactor->xspr.data3 == 1)
actor->vel.X = actor->vel.Y = actor->vel.Z = 0;
viewBackupSpriteLoc(actor);
if (sourceactor->xspr.data4 > 0)
sfxPlay3DSound(sourceactor, sourceactor->xspr.data4, -1, 0);
if (pPlayer)
{
playerResetInertia(pPlayer);
if (sourceactor->xspr.data2 == 1)
pPlayer->zViewVel = pPlayer->zWeaponVel = 0;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useEffectGen(DBloodActor* sourceactor, DBloodActor* actor)
{
if (!actor) actor = sourceactor;
int fxId = (sourceactor->xspr.data3 <= 0) ? sourceactor->xspr.data2 : sourceactor->xspr.data2 + Random(sourceactor->xspr.data3 + 1);
if (!actor->hasX()) return;
else if (fxId >= kEffectGenCallbackBase)
{
int length = sizeof(gEffectGenCallbacks) / sizeof(gEffectGenCallbacks[0]);
if (fxId < kEffectGenCallbackBase + length)
{
fxId = gEffectGenCallbacks[fxId - kEffectGenCallbackBase];
evKillActor(actor, (CALLBACK_ID)fxId);
evPostActor(actor, 0, (CALLBACK_ID)fxId);
}
}
else if (valueIsBetween(fxId, 0, kFXMax))
{
int pos, top, bottom;
GetActorExtents(actor, &top, &bottom);
DBloodActor* pEffect = nullptr;
// select where exactly effect should be spawned
switch (sourceactor->xspr.data4)
{
case 1:
pos = bottom;
break;
case 2: // middle
pos = actor->spr.pos.Z + (tileHeight(actor->spr.picnum) / 2 + tileTopOffset(actor->spr.picnum));
break;
case 3:
case 4:
if (!actor->insector()) pos = top;
else pos = (sourceactor->xspr.data4 == 3) ? actor->sector()->floorz : actor->sector()->ceilingz;
break;
default:
pos = top;
break;
}
if ((pEffect = gFX.fxSpawnActor((FX_ID)fxId, actor->sector(), actor->spr.pos.X, actor->spr.pos.Y, pos, 0)) != NULL)
{
pEffect->SetOwner(sourceactor);
if (sourceactor->spr.flags & kModernTypeFlag1)
{
pEffect->spr.pal = sourceactor->spr.pal;
pEffect->spr.xoffset = sourceactor->spr.xoffset;
pEffect->spr.yoffset = sourceactor->spr.yoffset;
pEffect->spr.xrepeat = sourceactor->spr.xrepeat;
pEffect->spr.yrepeat = sourceactor->spr.yrepeat;
pEffect->spr.shade = sourceactor->spr.shade;
}
if (sourceactor->spr.flags & kModernTypeFlag2)
{
pEffect->spr.cstat = sourceactor->spr.cstat;
if (pEffect->spr.cstat & CSTAT_SPRITE_INVISIBLE)
pEffect->spr.cstat &= ~CSTAT_SPRITE_INVISIBLE;
}
if (pEffect->spr.cstat & CSTAT_SPRITE_ONE_SIDE)
pEffect->spr.cstat &= ~CSTAT_SPRITE_ONE_SIDE;
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useSectorWindGen(DBloodActor* sourceactor, sectortype* pSector)
{
XSECTOR* pXSector = nullptr;
if (pSector != nullptr)
{
pXSector = &pSector->xs();
}
else if (sourceactor->sector()->hasX())
{
pSector = sourceactor->sector();
pXSector = &pSector->xs();
}
else
{
pSector = sourceactor->sector();
pSector->allocX();
pXSector = &pSector->xs();
pXSector->windAlways = 1;
}
int windVel = ClipRange(sourceactor->xspr.data2, 0, 32767);
if ((sourceactor->xspr.data1 & 0x0001))
windVel = nnExtRandom(0, windVel);
// process vertical wind in nnExtProcessSuperSprites();
if ((sourceactor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_FLOOR))
{
sourceactor->xspr.sysData2 = windVel << 1;
return;
}
pXSector->windVel = windVel;
if ((sourceactor->spr.flags & kModernTypeFlag1))
pXSector->panAlways = pXSector->windAlways = 1;
int ang = sourceactor->spr.ang;
if (sourceactor->xspr.data4 <= 0)
{
if ((sourceactor->xspr.data1 & 0x0002))
{
while (sourceactor->spr.ang == ang)
sourceactor->spr.ang = nnExtRandom(-kAng360, kAng360) & 2047;
}
}
else if (sourceactor->spr.cstat & CSTAT_SPRITE_MOVE_FORWARD) sourceactor->spr.ang += sourceactor->xspr.data4;
else if (sourceactor->spr.cstat & CSTAT_SPRITE_MOVE_REVERSE) sourceactor->spr.ang -= sourceactor->xspr.data4;
else if (sourceactor->xspr.sysData1 == 0)
{
if ((ang += sourceactor->xspr.data4) >= kAng180) sourceactor->xspr.sysData1 = 1;
sourceactor->spr.ang = ClipHigh(ang, kAng180);
}
else
{
if ((ang -= sourceactor->xspr.data4) <= -kAng180) sourceactor->xspr.sysData1 = 0;
sourceactor->spr.ang = ClipLow(ang, -kAng180);
}
pXSector->windAng = sourceactor->spr.ang;
if (sourceactor->xspr.data3 > 0 && sourceactor->xspr.data3 < 4)
{
switch (sourceactor->xspr.data3)
{
case 1:
pXSector->panFloor = true;
pXSector->panCeiling = false;
break;
case 2:
pXSector->panFloor = false;
pXSector->panCeiling = true;
break;
case 3:
pXSector->panFloor = true;
pXSector->panCeiling = true;
break;
}
if (pXSector->panCeiling)
{
StartInterpolation(pSector, Interp_Sect_CeilingPanX);
StartInterpolation(pSector, Interp_Sect_CeilingPanY);
}
if (pXSector->panFloor)
{
StartInterpolation(pSector, Interp_Sect_FloorPanX);
StartInterpolation(pSector, Interp_Sect_FloorPanY);
}
int oldPan = pXSector->panVel;
pXSector->panAngle = pXSector->windAng;
pXSector->panVel = pXSector->windVel;
// add to panList if panVel was set to 0 previously
if (oldPan == 0 && pXSector->panVel != 0)
{
if (!panList.Contains(pSector))
panList.Push(pSector);
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useSpriteDamager(DBloodActor* sourceactor, int objType, sectortype* targSect, DBloodActor* targetactor)
{
sectortype* pSector = sourceactor->sector();
int top, bottom;
bool floor, ceil, wall, enter;
switch (objType)
{
case OBJ_SPRITE:
damageSprites(sourceactor, targetactor);
break;
case OBJ_SECTOR:
{
GetActorExtents(sourceactor, &top, &bottom);
floor = (bottom >= pSector->floorz);
ceil = (top <= pSector->ceilingz);
wall = (sourceactor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_WALL);
enter = (!floor && !ceil && !wall);
BloodSectIterator it(targSect);
while (auto iactor = it.Next())
{
auto& hit = iactor->hit;
if (!iactor->IsDudeActor() || !iactor->hasX())
continue;
else if (enter)
damageSprites(sourceactor, iactor);
else if (floor && hit.florhit.type == kHitSector && hit.florhit.hitSector == targSect)
damageSprites(sourceactor, iactor);
else if (ceil && hit.ceilhit.type == kHitSector && hit.ceilhit.hitSector == targSect)
damageSprites(sourceactor, iactor);
else if (wall && hit.hit.type == kHitWall && hit.hit.hitWall->sectorp() == targSect)
damageSprites(sourceactor, iactor);
}
break;
}
case -1:
{
BloodStatIterator it(kStatDude);
while (auto iactor = it.Next())
{
if (iactor->spr.statnum != kStatDude) continue;
switch (sourceactor->xspr.data1)
{
case 667:
if (iactor->IsPlayerActor()) continue;
damageSprites(sourceactor, iactor);
break;
case 668:
if (iactor->IsPlayerActor()) continue;
damageSprites(sourceactor, iactor);
break;
default:
damageSprites(sourceactor, iactor);
break;
}
}
break;
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void damageSprites(DBloodActor* sourceactor, DBloodActor* actor)
{
if (!actor->IsDudeActor() || !actor->hasX() || actor->xspr.health <= 0 || sourceactor->xspr.data3 < 0)
return;
int health = 0;
PLAYER* pPlayer = getPlayerById(actor->spr.type);
int dmgType = (sourceactor->xspr.data2 >= kDmgFall) ? ClipHigh(sourceactor->xspr.data2, kDmgElectric) : -1;
int dmg = actor->xspr.health << 4;
int armor[3];
bool godMode = (pPlayer && ((dmgType >= 0 && pPlayer->damageControl[dmgType]) || powerupCheck(pPlayer, kPwUpDeathMask) || pPlayer->godMode)); // kneeling
if (godMode || actor->xspr.locked) return;
else if (sourceactor->xspr.data3)
{
if (sourceactor->spr.flags & kModernTypeFlag1) dmg = ClipHigh(sourceactor->xspr.data3 << 1, 65535);
else if (actor->xspr.sysData2 > 0) dmg = (ClipHigh(actor->xspr.sysData2 << 4, 65535) * sourceactor->xspr.data3) / kPercFull;
else dmg = ((getDudeInfo(actor->spr.type)->startHealth << 4) * sourceactor->xspr.data3) / kPercFull;
health = actor->xspr.health - dmg;
}
if (dmgType >= kDmgFall)
{
if (dmg < (int)actor->xspr.health << 4)
{
if (!nnExtIsImmune(actor, dmgType, 0))
{
if (pPlayer)
{
playerDamageArmor(pPlayer, (DAMAGE_TYPE)dmgType, dmg);
for (int i = 0; i < 3; armor[i] = pPlayer->armor[i], pPlayer->armor[i] = 0, i++);
actDamageSprite(sourceactor, actor, (DAMAGE_TYPE)dmgType, dmg);
for (int i = 0; i < 3; pPlayer->armor[i] = armor[i], i++);
}
else
{
actDamageSprite(sourceactor, actor, (DAMAGE_TYPE)dmgType, dmg);
}
}
else
{
//Printf(PRINT_HIGH, "Dude type %d is immune to damage type %d!", actor->spr.type, dmgType);
}
}
else if (!pPlayer) actKillDude(sourceactor, actor, (DAMAGE_TYPE)dmgType, dmg);
else playerDamageSprite(sourceactor, pPlayer, (DAMAGE_TYPE)dmgType, dmg);
}
else if ((actor->xspr.health = ClipLow(health, 1)) > 16);
else if (!pPlayer) actKillDude(sourceactor, actor, kDamageBullet, dmg);
else playerDamageSprite(sourceactor, pPlayer, kDamageBullet, dmg);
if (actor->xspr.health > 0)
{
if (!(sourceactor->spr.flags & kModernTypeFlag8))
actor->xspr.health = health;
bool showEffects = !(sourceactor->spr.flags & kModernTypeFlag2); // show it by default
bool forceRecoil = (sourceactor->spr.flags & kModernTypeFlag4);
if (showEffects)
{
switch (dmgType)
{
case kDmgBurn:
if (actor->xspr.burnTime > 0) break;
actBurnSprite(sourceactor, actor, ClipLow(dmg >> 1, 128));
evKillActor(actor, kCallbackFXFlameLick);
evPostActor(actor, 0, kCallbackFXFlameLick); // show flames
break;
case kDmgElectric:
forceRecoil = true; // show tesla recoil animation
break;
case kDmgBullet:
evKillActor(actor, kCallbackFXBloodSpurt);
for (int i = 1; i < 6; i++)
{
if (Chance(0x16000 >> i))
fxSpawnBlood(actor, dmg << 4);
}
break;
case kDmgChoke:
if (!pPlayer || !Chance(0x2000)) break;
else pPlayer->blindEffect += dmg << 2;
}
}
if (forceRecoil && !pPlayer)
{
actor->xspr.data3 = 32767;
actor->dudeExtra.teslaHit = (dmgType == kDmgElectric) ? 1 : 0;
if (actor->xspr.aiState->stateType != kAiStateRecoil)
RecoilDude(actor);
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useSeqSpawnerGen(DBloodActor* sourceactor, int objType, sectortype* pSector, walltype* pWall, DBloodActor* iactor)
{
if (sourceactor->xspr.data2 > 0 && !getSequence(sourceactor->xspr.data2))
{
Printf(PRINT_HIGH, "Missing sequence #%d", sourceactor->xspr.data2);
return;
}
switch (objType)
{
case OBJ_SECTOR:
{
if (sourceactor->xspr.data2 <= 0)
{
if (sourceactor->xspr.data3 == 3 || sourceactor->xspr.data3 == 1)
seqKill(SS_FLOOR, pSector);
if (sourceactor->xspr.data3 == 3 || sourceactor->xspr.data3 == 2)
seqKill(SS_CEILING, pSector);
}
else
{
if (sourceactor->xspr.data3 == 3 || sourceactor->xspr.data3 == 1)
seqSpawn(sourceactor->xspr.data2, SS_FLOOR, pSector, -1);
if (sourceactor->xspr.data3 == 3 || sourceactor->xspr.data3 == 2)
seqSpawn(sourceactor->xspr.data2, SS_CEILING, pSector, -1);
}
return;
}
case OBJ_WALL:
{
if (sourceactor->xspr.data2 <= 0)
{
if (sourceactor->xspr.data3 == 3 || sourceactor->xspr.data3 == 1)
seqKill(SS_WALL, pWall);
if ((sourceactor->xspr.data3 == 3 || sourceactor->xspr.data3 == 2) && (pWall->cstat & CSTAT_WALL_MASKED))
seqKill(SS_MASKED, pWall);
}
else
{
if (sourceactor->xspr.data3 == 3 || sourceactor->xspr.data3 == 1)
seqSpawn(sourceactor->xspr.data2, SS_WALL, pWall, -1);
if (sourceactor->xspr.data3 == 3 || sourceactor->xspr.data3 == 2) {
if (!pWall->twoSided()) {
if (sourceactor->xspr.data3 == 3)
seqSpawn(sourceactor->xspr.data2, SS_WALL, pWall, -1);
}
else {
if (!(pWall->cstat & CSTAT_WALL_MASKED))
pWall->cstat |= CSTAT_WALL_MASKED;
seqSpawn(sourceactor->xspr.data2, SS_MASKED, pWall, -1);
}
}
if (sourceactor->xspr.data4 > 0)
{
int cx, cy, cz;
cx = (pWall->wall_int_pos().X + pWall->point2Wall()->wall_int_pos().X) >> 1;
cy = (pWall->wall_int_pos().Y + pWall->point2Wall()->wall_int_pos().Y) >> 1;
auto pMySector = pWall->sectorp();
int32_t ceilZ, floorZ;
getzsofslopeptr(pSector, cx, cy, &ceilZ, &floorZ);
int32_t ceilZ2, floorZ2;
getzsofslopeptr(pWall->nextSector(), cx, cy, &ceilZ2, &floorZ2);
ceilZ = ClipLow(ceilZ, ceilZ2);
floorZ = ClipHigh(floorZ, floorZ2);
cz = (ceilZ + floorZ) >> 1;
sfxPlay3DSound(cx, cy, cz, sourceactor->xspr.data4, pSector);
}
}
return;
}
case OBJ_SPRITE:
{
if (sourceactor->xspr.data2 <= 0) seqKill(iactor);
else if (iactor->insector())
{
if (sourceactor->xspr.data3 > 0)
{
auto spawned = InsertSprite(iactor->sector(), kStatDecoration);
int top, bottom; GetActorExtents(spawned, &top, &bottom);
spawned->spr.pos.X = iactor->spr.pos.X;
spawned->spr.pos.Y = iactor->spr.pos.Y;
switch (sourceactor->xspr.data3)
{
default:
spawned->spr.pos.Z = iactor->spr.pos.Z;
break;
case 2:
spawned->spr.pos.Z = bottom;
break;
case 3:
spawned->spr.pos.Z = top;
break;
case 4:
spawned->spr.pos.Z = iactor->spr.pos.Z + tileHeight(iactor->spr.picnum) / 2 + tileTopOffset(iactor->spr.picnum);
break;
case 5:
case 6:
if (!iactor->insector()) spawned->spr.pos.Z = top;
else spawned->spr.pos.Z = (sourceactor->xspr.data3 == 5) ? spawned->sector()->floorz : spawned->sector()->ceilingz;
break;
}
if (spawned != nullptr)
{
spawned->addX();
seqSpawn(sourceactor->xspr.data2, spawned, -1);
if (sourceactor->spr.flags & kModernTypeFlag1)
{
spawned->spr.pal = sourceactor->spr.pal;
spawned->spr.shade = sourceactor->spr.shade;
spawned->spr.xrepeat = sourceactor->spr.xrepeat;
spawned->spr.yrepeat = sourceactor->spr.yrepeat;
spawned->spr.xoffset = sourceactor->spr.xoffset;
spawned->spr.yoffset = sourceactor->spr.yoffset;
}
if (sourceactor->spr.flags & kModernTypeFlag2)
{
spawned->spr.cstat |= sourceactor->spr.cstat;
}
// should be: the more is seqs, the shorter is timer
evPostActor(spawned, 1000, kCallbackRemove);
}
}
else
{
seqSpawn(sourceactor->xspr.data2, iactor, -1);
}
if (sourceactor->xspr.data4 > 0)
sfxPlay3DSound(iactor, sourceactor->xspr.data4, -1, 0);
}
return;
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void condPush(DBloodActor* actor, const EventObject& iactor) { actor->condition[0] = iactor; }
void condPush(DBloodActor* actor, DBloodActor* iactor) { actor->condition[0] = EventObject(iactor); }
void condPush(DBloodActor* actor, walltype* iactor) { actor->condition[0] = EventObject(iactor); }
void condPush(DBloodActor* actor, sectortype* iactor) { actor->condition[0] = EventObject(iactor); }
EventObject condGet(DBloodActor* actor) { return actor->condition[0]; }
void condBackup(DBloodActor* actor)
{
actor->condition[1] = actor->condition[0];
}
void condRestore(DBloodActor* actor)
{
actor->condition[0] = actor->condition[1];
}
// normal comparison
bool condCmp(int val, int arg1, int arg2, int comOp)
{
if (comOp & 0x2000) return (comOp & CSTAT_SPRITE_BLOCK) ? (val > arg1) : (val >= arg1); // blue sprite
else if (comOp & 0x4000) return (comOp & CSTAT_SPRITE_BLOCK) ? (val < arg1) : (val <= arg1); // green sprite
else if (comOp & CSTAT_SPRITE_BLOCK)
{
if (arg1 > arg2) I_Error("Value of argument #1 (%d) must be less than value of argument #2 (%d)", arg1, arg2);
return (val >= arg1 && val <= arg2);
}
else return (val == arg1);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void condError(DBloodActor* aCond, const char* pzFormat, ...)
{
char buffer[256];
char buffer2[512];
FString condType = "Unknown";
for (int i = 0; i < 7; i++)
{
if (aCond->xspr.data1 < gCondTypeNames[i].rng1 || aCond->xspr.data1 >= gCondTypeNames[i].rng2) continue;
condType = gCondTypeNames[i].name;
condType.ToUpper();
break;
}
snprintf(buffer, 256, "\n\n%s CONDITION RX: %d, TX: %d, SPRITE: #%d RETURNS:\n", condType.GetChars(), aCond->xspr.rxID, aCond->xspr.txID, aCond->GetIndex());
va_list args;
va_start(args, pzFormat);
vsnprintf(buffer2, 512, pzFormat, args);
I_Error("%s%s", buffer, buffer2);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool condCheckGame(DBloodActor* aCond, const EVENT& event, int cmpOp, bool PUSH)
{
int cond = aCond->xspr.data1 - kCondGameBase;
int arg1 = aCond->xspr.data2;
int arg2 = aCond->xspr.data3;
int arg3 = aCond->xspr.data4;
switch (cond) {
case 1: return condCmp(gFrameCount / (kTicsPerSec * 60), arg1, arg2, cmpOp); // compare level minutes
case 2: return condCmp((gFrameCount / kTicsPerSec) % 60, arg1, arg2, cmpOp); // compare level seconds
case 3: return condCmp(((gFrameCount % kTicsPerSec) * 33) / 10, arg1, arg2, cmpOp); // compare level mseconds
case 4: return condCmp(gFrameCount, arg1, arg2, cmpOp); // compare level time (unsafe)
case 5: return condCmp(gKillMgr.Kills, arg1, arg2, cmpOp); // compare current global kills counter
case 6: return condCmp(gKillMgr.TotalKills, arg1, arg2, cmpOp); // compare total global kills counter
case 7: return condCmp(gSecretMgr.Founds, arg1, arg2, cmpOp); // compare how many secrets found
case 8: return condCmp(gSecretMgr.Total, arg1, arg2, cmpOp); // compare total secrets
/*----------------------------------------------------------------------------------------------------------------------------------*/
case 20: return condCmp(gVisibility, arg1, arg2, cmpOp); // compare global visibility value
/*----------------------------------------------------------------------------------------------------------------------------------*/
case 30: return Chance((0x10000 * arg3) / kPercFull); // check chance
case 31: return condCmp(nnExtRandom(arg1, arg2), arg1, arg2, cmpOp);
/*----------------------------------------------------------------------------------------------------------------------------------*/
case 47:
{
BloodStatIterator it(ClipRange(arg3, 0, kMaxStatus));
int c = 0;
while (it.Next()) c++;
return condCmp(c, arg1, arg2, cmpOp); // compare counter of specific statnum sprites
}
case 48: return condCmp(Numsprites, arg1, arg2, cmpOp); // compare counter of total sprites
}
condError(aCond, "Unexpected condition id (%d)!", cond);
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool condCheckMixed(DBloodActor* aCond, const EVENT& event, int cmpOp, bool PUSH)
{
//int var = -1;
int cond = aCond->xspr.data1 - kCondMixedBase; int arg1 = aCond->xspr.data2;
int arg2 = aCond->xspr.data3; int arg3 = aCond->xspr.data4;
auto eob = condGet(aCond);
switch (cond)
{
case 0: return (eob.isSector());
case 5: return (eob.isWall());
case 10: return (eob.isActor() && eob.actor());
case 15: // x-index is fine?
if (eob.isWall()) return eob.wall()->hasX();
if (eob.isSector()) return eob.sector()->hasX();
if (eob.isActor()) return eob.actor() && eob.actor()->hasX();
break;
case 20: // type in a range?
if (eob.isWall()) return condCmp(eob.wall()->type, arg1, arg2, cmpOp);
if (eob.isSector()) return condCmp(eob.sector()->type, arg1, arg2, cmpOp);
if (eob.isActor()) return eob.actor() && condCmp(eob.actor()->spr.type, arg1, arg2, cmpOp);
break;
case 24:
case 25: case 26: case 27:
case 28: case 29: case 30:
case 31: case 32: case 33:
if (eob.isWall())
{
walltype* pObj = eob.wall();
switch (cond)
{
case 24: return condCmp(surfType[pObj->picnum], arg1, arg2, cmpOp);
case 25: return condCmp(pObj->picnum, arg1, arg2, cmpOp);
case 26: return condCmp(pObj->pal, arg1, arg2, cmpOp);
case 27: return condCmp(pObj->shade, arg1, arg2, cmpOp);
case 28: return (pObj->cstat & EWallFlags::FromInt(arg1));
case 29: return (pObj->hitag & arg1);
case 30: return condCmp(pObj->xrepeat, arg1, arg2, cmpOp);
case 31: return condCmp(pObj->xpan(), arg1, arg2, cmpOp);
case 32: return condCmp(pObj->yrepeat, arg1, arg2, cmpOp);
case 33: return condCmp(pObj->ypan(), arg1, arg2, cmpOp);
}
}
else if (eob.isActor())
{
auto actor = eob.actor();
if (!actor) break;
switch (cond)
{
case 24: return condCmp(surfType[actor->spr.picnum], arg1, arg2, cmpOp);
case 25: return condCmp(actor->spr.picnum, arg1, arg2, cmpOp);
case 26: return condCmp(actor->spr.pal, arg1, arg2, cmpOp);
case 27: return condCmp(actor->spr.shade, arg1, arg2, cmpOp);
case 28: return (actor->spr.cstat & ESpriteFlags::FromInt(arg1));
case 29: return (actor->spr.flags & arg1);
case 30: return condCmp(actor->spr.xrepeat, arg1, arg2, cmpOp);
case 31: return condCmp(actor->spr.xoffset, arg1, arg2, cmpOp);
case 32: return condCmp(actor->spr.yrepeat, arg1, arg2, cmpOp);
case 33: return condCmp(actor->spr.yoffset, arg1, arg2, cmpOp);
}
}
else if (eob.sector())
{
sectortype* pObj = eob.sector();
switch (cond)
{
case 24:
switch (arg3)
{
default: return (condCmp(surfType[pObj->floorpicnum], arg1, arg2, cmpOp) || condCmp(surfType[pObj->ceilingpicnum], arg1, arg2, cmpOp));
case 1: return condCmp(surfType[pObj->floorpicnum], arg1, arg2, cmpOp);
case 2: return condCmp(surfType[pObj->ceilingpicnum], arg1, arg2, cmpOp);
}
break;
case 25:
switch (arg3)
{
default: return (condCmp(pObj->floorpicnum, arg1, arg2, cmpOp) || condCmp(pObj->ceilingpicnum, arg1, arg2, cmpOp));
case 1: return condCmp(pObj->floorpicnum, arg1, arg2, cmpOp);
case 2: return condCmp(pObj->ceilingpicnum, arg1, arg2, cmpOp);
}
break;
case 26:
switch (arg3)
{
default: return (condCmp(pObj->floorpal, arg1, arg2, cmpOp) || condCmp(pObj->ceilingpal, arg1, arg2, cmpOp));
case 1: return condCmp(pObj->floorpal, arg1, arg2, cmpOp);
case 2: return condCmp(pObj->ceilingpal, arg1, arg2, cmpOp);
}
break;
case 27:
switch (arg3)
{
default: return (condCmp(pObj->floorshade, arg1, arg2, cmpOp) || condCmp(pObj->ceilingshade, arg1, arg2, cmpOp));
case 1: return condCmp(pObj->floorshade, arg1, arg2, cmpOp);
case 2: return condCmp(pObj->ceilingshade, arg1, arg2, cmpOp);
}
break;
case 28:
{
auto a = ESectorFlags::FromInt(arg1);
switch (arg3)
{
default: return ((pObj->floorstat & a) || (pObj->ceilingstat & a));
case 1: return (pObj->floorstat & a);
case 2: return (pObj->ceilingstat & a);
}
break;
}
case 29: return (pObj->hitag & arg1);
case 30: return condCmp(pObj->floorxpan(), arg1, arg2, cmpOp);
case 31: return condCmp(pObj->ceilingxpan(), arg1, arg2, cmpOp);
case 32: return condCmp(pObj->floorypan(), arg1, arg2, cmpOp);
case 33: return condCmp(pObj->ceilingypan(), arg1, arg2, cmpOp);
}
}
break;
case 41: case 42: case 43:
case 44: case 50: case 51:
case 52: case 53: case 54:
case 55: case 56: case 57:
case 58: case 59: case 70:
case 71:
if (eob.isWall())
{
auto pObj = eob.wall();
if (!pObj->hasX())
return condCmp(0, arg1, arg2, cmpOp);
XWALL* pXObj = &pObj->xw();
switch (cond)
{
case 41: return condCmp(pXObj->data, arg1, arg2, cmpOp);
case 50: return condCmp(pXObj->rxID, arg1, arg2, cmpOp);
case 51: return condCmp(pXObj->txID, arg1, arg2, cmpOp);
case 52: return pXObj->locked;
case 53: return pXObj->triggerOn;
case 54: return pXObj->triggerOff;
case 55: return pXObj->triggerOnce;
case 56: return pXObj->isTriggered;
case 57: return pXObj->state;
case 58: return condCmp((kPercFull * pXObj->busy) / 65536, arg1, arg2, cmpOp);
case 59: return pXObj->dudeLockout;
case 70:
switch (arg3)
{
default: return (condCmp(seqGetID(SS_WALL, pObj), arg1, arg2, cmpOp) || condCmp(seqGetID(SS_MASKED, pObj), arg1, arg2, cmpOp));
case 1: return condCmp(seqGetID(SS_WALL, pObj), arg1, arg2, cmpOp);
case 2: return condCmp(seqGetID(SS_MASKED, pObj), arg1, arg2, cmpOp);
}
break;
case 71:
switch (arg3)
{
default: return (condCmp(seqGetStatus(SS_WALL, pObj), arg1, arg2, cmpOp) || condCmp(seqGetStatus(SS_MASKED, pObj), arg1, arg2, cmpOp));
case 1: return condCmp(seqGetStatus(SS_WALL, pObj), arg1, arg2, cmpOp);
case 2: return condCmp(seqGetStatus(SS_MASKED, pObj), arg1, arg2, cmpOp);
}
break;
}
}
else if (eob.isActor())
{
auto objActor = eob.actor();
if (!objActor) break;
if (!objActor->hasX())
return condCmp(0, arg1, arg2, cmpOp);
switch (cond)
{
case 41: case 42:
case 43: case 44:
return condCmp(getDataFieldOfObject(eob, 1 + cond - 41), arg1, arg2, cmpOp);
case 50: return condCmp(objActor->xspr.rxID, arg1, arg2, cmpOp);
case 51: return condCmp(objActor->xspr.txID, arg1, arg2, cmpOp);
case 52: return objActor->xspr.locked;
case 53: return objActor->xspr.triggerOn;
case 54: return objActor->xspr.triggerOff;
case 55: return objActor->xspr.triggerOnce;
case 56: return objActor->xspr.isTriggered;
case 57: return objActor->xspr.state;
case 58: return condCmp((kPercFull * objActor->xspr.busy) / 65536, arg1, arg2, cmpOp);
case 59: return objActor->xspr.DudeLockout;
case 70: return condCmp(seqGetID(objActor), arg1, arg2, cmpOp);
case 71: return condCmp(seqGetStatus(objActor), arg1, arg2, cmpOp);
}
}
else if (eob.isSector())
{
auto pObj = eob.sector();
if (!pObj->hasX())
return condCmp(0, arg1, arg2, cmpOp);
XSECTOR* pXObj = &pObj->xs();
switch (cond) {
case 41: return condCmp(pXObj->data, arg1, arg2, cmpOp);
case 50: return condCmp(pXObj->rxID, arg1, arg2, cmpOp);
case 51: return condCmp(pXObj->txID, arg1, arg2, cmpOp);
case 52: return pXObj->locked;
case 53: return pXObj->triggerOn;
case 54: return pXObj->triggerOff;
case 55: return pXObj->triggerOnce;
case 56: return pXObj->isTriggered;
case 57: return pXObj->state;
case 58: return condCmp((kPercFull * pXObj->busy) / 65536, arg1, arg2, cmpOp);
case 59: return pXObj->dudeLockout;
case 70:
// wall???
switch (arg3)
{
default: return (condCmp(seqGetID(SS_CEILING, pObj), arg1, arg2, cmpOp) || condCmp(seqGetID(SS_FLOOR, pObj), arg1, arg2, cmpOp));
case 1: return condCmp(seqGetID(SS_CEILING, pObj), arg1, arg2, cmpOp);
case 2: return condCmp(seqGetID(SS_FLOOR, pObj), arg1, arg2, cmpOp);
}
break;
case 71:
switch (arg3)
{
default: return (condCmp(seqGetStatus(SS_CEILING, pObj), arg1, arg2, cmpOp) || condCmp(seqGetStatus(SS_FLOOR, pObj), arg1, arg2, cmpOp));
case 1: return condCmp(seqGetStatus(SS_CEILING, pObj), arg1, arg2, cmpOp);
case 2: return condCmp(seqGetStatus(SS_FLOOR, pObj), arg1, arg2, cmpOp);
}
break;
}
}
break;
case 99: return condCmp(event.cmd, arg1, arg2, cmpOp); // this codition received specified command?
}
condError(aCond, "Unexpected condition id (%d)!", cond);
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool condCheckSector(DBloodActor* aCond, int cmpOp, bool PUSH)
{
int cond = aCond->xspr.data1 - kCondSectorBase;
int arg1 = aCond->xspr.data2;
int arg2 = aCond->xspr.data3; //int arg3 = aCond->xspr.data4;
auto eob = condGet(aCond);
if (!eob.isSector())
condError(aCond, "Sector expected, got %s", eob.description().GetChars());
sectortype* pSect = eob.sector();
XSECTOR* pXSect = pSect->hasX() ? &pSect->xs() : nullptr;
if (cond < (kCondRange >> 1))
{
switch (cond)
{
default: break;
case 0: return condCmp(pSect->visibility, arg1, arg2, cmpOp);
case 5: return condCmp(pSect->floorheinum, arg1, arg2, cmpOp);
case 6: return condCmp(pSect->ceilingheinum, arg1, arg2, cmpOp);
case 10: // required sprite type is in current sector?
BloodSectIterator it(pSect);
while (auto iactor = it.Next())
{
if (!condCmp(iactor->spr.type, arg1, arg2, cmpOp)) continue;
else if (PUSH) condPush(aCond, iactor);
return true;
}
return false;
}
}
else if (pXSect)
{
switch (cond)
{
default: break;
case 50: return pXSect->Underwater;
case 51: return condCmp(pXSect->Depth, arg1, arg2, cmpOp);
case 55: // compare floor height (in %)
case 56: { // compare ceil height (in %)
int h = 0; int curH = 0;
switch (pSect->type)
{
case kSectorZMotion:
case kSectorRotate:
case kSectorSlide:
if (cond == 60)
{
h = ClipLow(abs(pXSect->onFloorZ - pXSect->offFloorZ), 1);
curH = abs(pSect->floorz - pXSect->offFloorZ);
}
else
{
h = ClipLow(abs(pXSect->onCeilZ - pXSect->offCeilZ), 1);
curH = abs(pSect->ceilingz - pXSect->offCeilZ);
}
return condCmp((kPercFull * curH) / h, arg1, arg2, cmpOp);
default:
condError(aCond, "Usupported sector type %d", pSect->type);
return false;
}
}
case 57: // this sector in movement?
return !pXSect->unused1;
}
}
else
{
switch (cond)
{
default: return false;
case 55:
case 56:
return condCmp(0, arg1, arg2, cmpOp);
}
}
condError(aCond, "Unexpected condition id (%d)!", cond);
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool condCheckWall(DBloodActor* aCond, int cmpOp, bool PUSH)
{
int var = -1;
int cond = aCond->xspr.data1 - kCondWallBase; int arg1 = aCond->xspr.data2;
int arg2 = aCond->xspr.data3; //int arg3 = aCond->xspr.data4;
auto eob = condGet(aCond);
if (!eob.isWall())
condError(aCond, "Wall expected, got %s", eob.description().GetChars());
walltype* pWall = eob.wall();
if (cond < (kCondRange >> 1))
{
switch (cond)
{
default: break;
case 0:
return condCmp(pWall->overpicnum, arg1, arg2, cmpOp);
case 5:
if (PUSH) condPush(aCond, pWall->sectorp());
return true;
case 10: // this wall is a mirror? // must be as constants here
return (pWall->type != kWallStack && condCmp(pWall->picnum, 4080, (4080 + 16) - 1, 0));
case 15:
if (!pWall->twoSided()) return false;
else if (PUSH) condPush(aCond, pWall->nextSector());
return true;
case 20:
if (!pWall->twoSided()) return false;
else if (PUSH) condPush(aCond, pWall->nextWall());
return true;
case 25: // next wall belongs to sector? (Note: This was 'sector of next wall' which is same as case 15 because we do not allow bad links!)
if (!pWall->twoSided()) return false;
else if (PUSH) condPush(aCond, pWall->nextSector());
return true;
}
}
condError(aCond, "Unexpected condition id (%d)!", cond);
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool condCheckPlayer(DBloodActor* aCond, int cmpOp, bool PUSH)
{
int var = -1;
PLAYER* pPlayer = NULL;
int cond = aCond->xspr.data1 - kCondPlayerBase;
int arg1 = aCond->xspr.data2;
int arg2 = aCond->xspr.data3;
int arg3 = aCond->xspr.data4;
auto eob = condGet(aCond);
if (!eob.isActor() || !eob.actor())
condError(aCond, "Sprite expected, got %s", eob.description().GetChars());
auto objActor = eob.actor();
for (int i = 0; i < kMaxPlayers; i++)
{
if (objActor != gPlayer[i].actor) continue;
pPlayer = &gPlayer[i];
break;
}
if (!pPlayer)
{
condError(aCond, "Player expected, got %s", eob.description().GetChars());
return false;
}
switch (cond) {
case 0: // check if this player is connected
if (!condCmp(pPlayer->nPlayer + 1, arg1, arg2, cmpOp) || pPlayer->actor == nullptr) return false;
else if (PUSH) condPush(aCond, pPlayer->actor);
return (pPlayer->nPlayer >= 0);
case 1: return condCmp((gGameOptions.nGameType != 3) ? 0 : pPlayer->teamId + 1, arg1, arg2, cmpOp); // compare team
case 2: return (arg1 > 0 && arg1 < 8 && pPlayer->hasKey[arg1 - 1]);
case 3: return (arg1 > 0 && arg1 < 15 && pPlayer->hasWeapon[arg1 - 1]);
case 4: return condCmp(pPlayer->curWeapon, arg1, arg2, cmpOp);
case 5: return (arg1 > 0 && arg1 < 6 && condCmp(pPlayer->packSlots[arg1 - 1].curAmount, arg2, arg3, cmpOp));
case 6: return (arg1 > 0 && arg1 < 6 && pPlayer->packSlots[arg1 - 1].isActive);
case 7: return condCmp(pPlayer->packItemId + 1, arg1, arg2, cmpOp);
case 8: // check for powerup amount in seconds
if (arg3 > 0 && arg3 <= (kMaxAllowedPowerup - (kMinAllowedPowerup << 1) + 1)) {
var = (kMinAllowedPowerup + arg3) - 1; // allowable powerups
return condCmp(pPlayer->pwUpTime[var] / 100, arg1, arg2, cmpOp);
}
condError(aCond, "Unexpected powerup #%d", arg3);
return false;
case 9:
if (!pPlayer->fragger) return false;
else if (PUSH) condPush(aCond, pPlayer->fragger);
return true;
case 10: // check keys pressed
switch (arg1) {
case 1: return (pPlayer->input.fvel > 0); // forward
case 2: return (pPlayer->input.fvel < 0); // backward
case 3: return (pPlayer->input.svel > 0); // left
case 4: return (pPlayer->input.svel < 0); // right
case 5: return !!(pPlayer->input.actions & SB_JUMP); // jump
case 6: return !!(pPlayer->input.actions & SB_CROUCH); // crouch
case 7: return !!(pPlayer->input.actions & SB_FIRE); // normal fire weapon
case 8: return !!(pPlayer->input.actions & SB_ALTFIRE); // alt fire weapon
case 9: return !!(pPlayer->input.actions & SB_OPEN); // use
default:
condError(aCond, "Specify a correct key!");
break;
}
return false;
case 11: return (pPlayer->isRunning);
case 12: return (pPlayer->fallScream); // falling in abyss?
case 13: return condCmp(pPlayer->lifeMode + 1, arg1, arg2, cmpOp);
case 14: return condCmp(pPlayer->posture + 1, arg1, arg2, cmpOp);
case 46: return condCmp(pPlayer->sceneQav, arg1, arg2, cmpOp);
case 47: return (pPlayer->godMode || powerupCheck(pPlayer, kPwUpDeathMask));
case 48: return isShrinked(pPlayer->actor);
case 49: return isGrown(pPlayer->actor);
}
condError(aCond, "Unexpected condition #%d!", cond);
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool condCheckDude(DBloodActor* aCond, int cmpOp, bool PUSH)
{
int var = -1;
int cond = aCond->xspr.data1 - kCondDudeBase; int arg1 = aCond->xspr.data2;
int arg2 = aCond->xspr.data3; int arg3 = aCond->xspr.data4;
auto eob = condGet(aCond);
if (!eob.isActor() || !eob.actor())
condError(aCond, "Sprite expected, got %s", eob.description().GetChars());
auto objActor = eob.actor();
if (!objActor->hasX() || objActor->spr.type == kThingBloodChunks)
condError(aCond, "Sprite #%d is dead!", objActor->GetIndex());
if (!objActor->IsDudeActor() || objActor->IsPlayerActor())
condError(aCond, "Object #%d is not an enemy!", objActor->GetIndex());
auto targ = objActor->GetTarget();
switch (cond)
{
default: break;
case 0: // dude have any targets?
if (!targ) return false;
else if (!targ->IsDudeActor() && targ->spr.type != kMarkerPath) return false;
else if (PUSH) condPush(aCond, targ);
return true;
case 1: return aiFightDudeIsAffected(objActor); // dude affected by ai fight?
case 2: // distance to the target in a range?
case 3: // is the target visible?
case 4: // is the target visible with periphery?
{
if (!targ)
condError(aCond, "Dude #%d has no target!", objActor->GetIndex());
DUDEINFO* pInfo = getDudeInfo(objActor->spr.type);
int eyeAboveZ = pInfo->eyeHeight * objActor->spr.yrepeat << 2;
int dx = targ->spr.pos.X - objActor->spr.pos.X;
int dy = targ->spr.pos.Y - objActor->spr.pos.Y;
switch (cond)
{
case 2:
var = condCmp(approxDist(dx, dy), arg1 * 512, arg2 * 512, cmpOp);
break;
case 3:
case 4:
var = cansee(objActor->spr.pos.X, objActor->spr.pos.Y, objActor->spr.pos.Z, objActor->sector(), targ->spr.pos.X, targ->spr.pos.Y, targ->spr.pos.Z - eyeAboveZ, targ->sector());
if (cond == 4 && var > 0)
{
var = ((1024 + getangle(dx, dy) - objActor->spr.ang) & 2047) - 1024;
var = (abs(var) < ((arg1 <= 0) ? pInfo->periphery : ClipHigh(arg1, 2048)));
}
break;
}
if (var <= 0) return false;
else if (PUSH) condPush(aCond, targ);
return true;
}
case 5: return objActor->xspr.dudeFlag4;
case 6: return objActor->xspr.dudeDeaf;
case 7: return objActor->xspr.dudeGuard;
case 8: return objActor->xspr.dudeAmbush;
case 9: return (objActor->xspr.unused1 & kDudeFlagStealth);
case 10: // check if the marker is busy with another dude
case 11: // check if the marker is reached
if (!objActor->xspr.dudeFlag4 || !targ || targ->spr.type != kMarkerPath) return false;
switch (cond) {
case 10:
{
auto check = aiPatrolMarkerBusy(objActor, targ);
if (!check) return false;
else if (PUSH) condPush(aCond, check);
break;
}
case 11:
if (!aiPatrolMarkerReached(objActor)) return false;
else if (PUSH) condPush(aCond, targ);
break;
}
return true;
case 12: // compare spot progress value in %
if (!objActor->xspr.dudeFlag4 || !targ || targ->spr.type != kMarkerPath) var = 0;
else if (!(objActor->xspr.unused1 & kDudeFlagStealth) || objActor->xspr.data3 < 0 || objActor->xspr.data3 > kMaxPatrolSpotValue) var = 0;
else var = (kPercFull * objActor->xspr.data3) / kMaxPatrolSpotValue;
return condCmp(var, arg1, arg2, cmpOp);
case 15: return getDudeInfo(objActor->spr.type)->lockOut; // dude allowed to interact with objects?
case 16: return condCmp(objActor->xspr.aiState->stateType, arg1, arg2, cmpOp);
case 17: return condCmp(objActor->xspr.stateTimer, arg1, arg2, cmpOp);
case 20: // kDudeModernCustom conditions
case 21:
case 22:
case 23:
case 24:
switch (objActor->spr.type)
{
case kDudeModernCustom:
case kDudeModernCustomBurning:
switch (cond) {
case 20: // life leech is thrown?
{
DBloodActor* act = objActor->genDudeExtra.pLifeLeech;
if (!act) return false;
else if (PUSH) condPush(aCond, act);
return true;
}
case 21: // life leech is destroyed?
{
DBloodActor* act = objActor->genDudeExtra.pLifeLeech;
if (!act) return false;
if (objActor->GetSpecialOwner()) return true;
else if (PUSH) condPush(aCond, act);
return false;
}
case 22: // are required amount of dudes is summoned?
return condCmp(objActor->genDudeExtra.slaveCount, arg1, arg2, cmpOp);
case 23: // check if dude can...
switch (arg3)
{
case 1: return objActor->genDudeExtra.canAttack;
case 2: return objActor->genDudeExtra.canBurn;
case 3: return objActor->genDudeExtra.canDuck;
case 4: return objActor->genDudeExtra.canElectrocute;
case 5: return objActor->genDudeExtra.canFly;
case 6: return objActor->genDudeExtra.canRecoil;
case 7: return objActor->genDudeExtra.canSwim;
case 8: return objActor->genDudeExtra.canWalk;
default: condError(aCond, "Invalid argument %d", arg3); break;
}
break;
case 24: // compare weapon dispersion
return condCmp(objActor->genDudeExtra.baseDispersion, arg1, arg2, cmpOp);
}
break;
default:
condError(aCond, "Dude #%d is not a Custom Dude!", objActor->GetIndex());
return false;
}
}
condError(aCond, "Unexpected condition #%d!", cond);
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool condCheckSprite(DBloodActor* aCond, int cmpOp, bool PUSH)
{
int var = -1, var2 = -1, var3 = -1; PLAYER* pPlayer = NULL; bool retn = false;
int cond = aCond->xspr.data1 - kCondSpriteBase; int arg1 = aCond->xspr.data2;
int arg2 = aCond->xspr.data3; int arg3 = aCond->xspr.data4;
auto eob = condGet(aCond);
if (!eob.isActor() || !eob.actor())
condError(aCond, "Sprite expected, got %s", eob.description().GetChars());
auto objActor = eob.actor();
if (cond < (kCondRange >> 1))
{
switch (cond)
{
default: break;
case 0: return condCmp((objActor->spr.ang & 2047), arg1, arg2, cmpOp);
case 5: return condCmp(objActor->spr.statnum, arg1, arg2, cmpOp);
case 6: return ((objActor->spr.flags & kHitagRespawn) || objActor->spr.statnum == kStatRespawn);
case 7: return condCmp(spriteGetSlope(objActor), arg1, arg2, cmpOp);
case 10: return condCmp(objActor->spr.clipdist, arg1, arg2, cmpOp);
case 15:
if (!objActor->GetOwner()) return false;
else if (PUSH) condPush(aCond, objActor->GetOwner());
return true;
case 20: // stays in a sector?
if (!objActor->insector()) return false;
else if (PUSH) condPush(aCond, objActor->sector());
return true;
case 25:
switch (arg1)
{
case 0: return (objActor->vel.X || objActor->vel.Y || objActor->vel.Z);
case 1: return (objActor->vel.X);
case 2: return (objActor->vel.Y);
case 3: return (objActor->vel.Z);
}
break;
case 30:
if (!spriteIsUnderwater(objActor) && !spriteIsUnderwater(objActor, true)) return false;
else if (PUSH) condPush(aCond, objActor->sector());
return true;
case 31:
if (arg1 == -1)
{
for (var = 0; var < kDmgMax; var++)
{
if (!nnExtIsImmune(objActor, arg1, 0))
return false;
}
return true;
}
return nnExtIsImmune(objActor, arg1, 0);
case 35: // hitscan: ceil?
case 36: // hitscan: floor?
case 37: // hitscan: wall?
case 38: // hitscan: sprite?
switch (arg1)
{
case 0: arg1 = CLIPMASK0 | CLIPMASK1; break;
case 1: arg1 = CLIPMASK0; break;
case 2: arg1 = CLIPMASK1; break;
}
if ((pPlayer = getPlayerById(objActor->spr.type)) != NULL)
var = HitScan(objActor, pPlayer->zWeapon, pPlayer->aim.dx, pPlayer->aim.dy, pPlayer->aim.dz, arg1, arg3 << 1);
else if (objActor->IsDudeActor())
var = HitScan(objActor, objActor->spr.pos.Z, bcos(objActor->spr.ang), bsin(objActor->spr.ang), (!objActor->hasX()) ? 0 : objActor->dudeSlope, arg1, arg3 << 1);
else if ((var2 & CSTAT_SPRITE_ALIGNMENT_MASK) == CSTAT_SPRITE_ALIGNMENT_FLOOR)
{
var3 = (var2 & 0x0008) ? 0x10000 << 1 : -(0x10000 << 1);
var = HitScan(objActor, objActor->spr.pos.Z, Cos(objActor->spr.ang) >> 16, Sin(objActor->spr.ang) >> 16, var3, arg1, arg3 << 1);
}
else
{
var = HitScan(objActor, objActor->spr.pos.Z, bcos(objActor->spr.ang), bsin(objActor->spr.ang), 0, arg1, arg3 << 1);
}
if (var >= 0)
{
switch (cond)
{
case 35: retn = (var == 1); break;
case 36: retn = (var == 2); break;
case 37: retn = (var == 0 || var == 4); break;
case 38: retn = (var == 3); break;
}
if (!PUSH) return retn;
switch (var)
{
case 0: case 4: condPush(aCond, gHitInfo.hitWall); break;
case 1: case 2: condPush(aCond, gHitInfo.hitSector); break;
case 3: condPush(aCond, gHitInfo.actor()); break;
}
}
return retn;
case 45: // this sprite is a target of some dude?
BloodStatIterator it(kStatDude);
while (auto iactor = it.Next())
{
if (objActor == iactor) continue;
if (iactor->IsDudeActor() && iactor->hasX())
{
if (iactor->xspr.health <= 0 || iactor->GetTarget() != objActor) continue;
else if (PUSH) condPush(aCond, iactor);
return true;
}
}
return false;
}
}
else if (objActor->hasX())
{
switch (cond)
{
default: break;
case 50: // compare hp (in %)
if (objActor->IsDudeActor()) var = (objActor->xspr.sysData2 > 0) ? ClipRange(objActor->xspr.sysData2 << 4, 1, 65535) : getDudeInfo(objActor->spr.type)->startHealth << 4;
else if (objActor->spr.type == kThingBloodChunks) return condCmp(0, arg1, arg2, cmpOp);
else if (objActor->spr.type >= kThingBase && objActor->spr.type < kThingMax) var = thingInfo[objActor->spr.type - kThingBase].startHealth << 4;
return condCmp((kPercFull * objActor->xspr.health) / ClipLow(var, 1), arg1, arg2, cmpOp);
case 55: // touching ceil of sector?
if (objActor->hit.ceilhit.type != kHitSector) return false;
else if (PUSH) condPush(aCond, objActor->hit.ceilhit.hitSector);
return true;
case 56: // touching floor of sector?
if (objActor->hit.florhit.type != kHitSector) return false;
else if (PUSH) condPush(aCond, objActor->hit.florhit.hitSector);
return true;
case 57: // touching walls of sector?
if (objActor->hit.hit.type != kHitWall) return false;
else if (PUSH) condPush(aCond, objActor->hit.hit.hitWall);
return true;
case 58: // touching another sprite?
{
DBloodActor* actorvar = nullptr;
// Caution: The hit pointers here may be stale, so be careful with them.
switch (arg3)
{
case 0:
case 1:
if (objActor->hit.florhit.type == kHitSprite) actorvar = objActor->hit.florhit.safeActor();
if (arg3 || var >= 0) break;
[[fallthrough]];
case 2:
if (objActor->hit.hit.type == kHitSprite) actorvar = objActor->hit.hit.safeActor();
if (arg3 || var >= 0) break;
[[fallthrough]];
case 3:
if (objActor->hit.ceilhit.type == kHitSprite) actorvar = objActor->hit.ceilhit.safeActor();
break;
}
if (actorvar == nullptr)
{
// check if something is touching this sprite
BloodSpriteIterator it;
while (auto iactor = it.Next())
{
if (iactor->spr.flags & kHitagRespawn) continue;
auto& hit = iactor->hit;
switch (arg3)
{
case 0:
case 1:
if (hit.ceilhit.type == kHitSprite && hit.ceilhit.safeActor() == objActor) actorvar = iactor;
if (arg3 || actorvar) break;
[[fallthrough]];
case 2:
if (hit.hit.type == kHitSprite && hit.hit.safeActor() == objActor) actorvar = iactor;
if (arg3 || actorvar) break;
[[fallthrough]];
case 3:
if (hit.florhit.type == kHitSprite && hit.florhit.safeActor() == objActor) actorvar = iactor;
break;
}
}
}
if (actorvar == nullptr) return false;
else if (PUSH) condPush(aCond, actorvar);
return true;
}
case 65: // compare burn time (in %)
var = (objActor->IsDudeActor()) ? 2400 : 1200;
if (!condCmp((kPercFull * objActor->xspr.burnTime) / var, arg1, arg2, cmpOp)) return false;
else if (PUSH && objActor->GetBurnSource()) condPush(aCond, objActor->GetBurnSource());
return true;
case 66: // any flares stuck in this sprite?
{
BloodStatIterator it(kStatFlare);
while (auto flareactor = it.Next())
{
if (!flareactor->hasX() || (flareactor->spr.flags & kHitagFree))
continue;
if (flareactor->GetTarget() != objActor) continue;
else if (PUSH) condPush(aCond, flareactor);
return true;
}
return false;
}
case 70:
return condCmp(getSpriteMassBySize(objActor), arg1, arg2, cmpOp); // mass of the sprite in a range?
}
}
else
{
switch (cond)
{
default: return false;
case 50:
case 65:
case 70:
return condCmp(0, arg1, arg2, cmpOp);
}
}
condError(aCond, "Unexpected condition id (%d)!", cond);
return false;
}
//---------------------------------------------------------------------------
//
// this updates index of object in all conditions
// only used when spawning players
//
//---------------------------------------------------------------------------
void condUpdateObjectIndex(DBloodActor* oldActor, DBloodActor* newActor)
{
// update index in tracking conditions first
for (int i = 0; i < gTrackingCondsCount; i++)
{
TRCONDITION* pCond = &gCondition[i];
for (unsigned k = 0; k < pCond->length; k++)
{
if (!pCond->obj[k].obj.isActor() || pCond->obj[k].obj.actor() != oldActor) continue;
pCond->obj[k].obj = EventObject(newActor);
break;
}
}
// puke...
auto oldSerial = EventObject(oldActor);
auto newSerial = EventObject(newActor);
// then update serials
BloodStatIterator it(kStatModernCondition);
while (auto iActor = it.Next())
{
if (iActor->condition[0] == oldSerial) iActor->condition[0] = newSerial;
if (iActor->condition[1] == oldSerial) iActor->condition[1] = newSerial;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool modernTypeSetSpriteState(DBloodActor* actor, int nState)
{
if ((actor->xspr.busy & 0xffff) == 0 && actor->xspr.state == nState)
return false;
actor->xspr.busy = IntToFixed(nState);
actor->xspr.state = nState;
evKillActor(actor);
if (actor->xspr.restState != nState && actor->xspr.waitTime > 0)
evPostActor(actor, (actor->xspr.waitTime * 120) / 10, actor->xspr.restState ? kCmdOn : kCmdOff);
if (actor->xspr.txID != 0 && ((actor->xspr.triggerOn && actor->xspr.state) || (actor->xspr.triggerOff && !actor->xspr.state)))
modernTypeSendCommand(actor, actor->xspr.txID, (COMMAND_ID)actor->xspr.command);
return true;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void modernTypeSendCommand(DBloodActor* actor, int destChannel, COMMAND_ID command)
{
switch (command)
{
case kCmdLink:
evSendActor(actor, destChannel, kCmdModernUse); // just send command to change properties
return;
case kCmdUnlock:
evSendActor(actor, destChannel, command); // send normal command first
evSendActor(actor, destChannel, kCmdModernUse); // then send command to change properties
return;
default:
evSendActor(actor, destChannel, kCmdModernUse); // send first command to change properties
evSendActor(actor, destChannel, command); // then send normal command
return;
}
}
//---------------------------------------------------------------------------
//
// this function used by various new modern types.
//
//---------------------------------------------------------------------------
void modernTypeTrigger(int destObjType, sectortype* destSect, walltype* destWall, DBloodActor* destactor, EVENT& event)
{
if (!event.isActor()) return;
auto sourceactor = event.getActor();
if (!sourceactor || !sourceactor->hasX()) return;
switch (destObjType) {
case OBJ_SECTOR:
if (!destSect || !destSect->hasX()) return;
break;
case OBJ_WALL:
if (!destWall || !destWall->hasX()) return;
break;
case OBJ_SPRITE:
{
if (!destactor) return;
if (destactor->spr.flags & kHitagFree) return;
// allow redirect events received from some modern types.
// example: it allows to spawn FX effect if event was received from kModernEffectGen
// on many TX channels instead of just one.
switch (destactor->spr.type)
{
case kModernRandomTX:
case kModernSequentialTX:
if (destactor->xspr.command != kCmdLink || destactor->xspr.locked) break; // no redirect mode detected
switch (destactor->spr.type)
{
case kModernRandomTX:
useRandomTx(destactor, (COMMAND_ID)sourceactor->xspr.command, false); // set random TX id
break;
case kModernSequentialTX:
if (destactor->spr.flags & kModernTypeFlag1)
{
seqTxSendCmdAll(destactor, sourceactor, (COMMAND_ID)sourceactor->xspr.command, true);
return;
}
useSequentialTx(destactor, (COMMAND_ID)sourceactor->xspr.command, false); // set next TX id
break;
}
if (destactor->xspr.txID <= 0 || destactor->xspr.txID >= kChannelUserMax) return;
modernTypeSendCommand(sourceactor, destactor->xspr.txID, (COMMAND_ID)sourceactor->xspr.command);
return;
}
break;
}
default:
return;
}
switch (sourceactor->spr.type)
{
// allows teleport any sprite from any location to the source destination
case kMarkerWarpDest:
if (destObjType != OBJ_SPRITE) break;
useTeleportTarget(sourceactor, destactor);
break;
// changes slope of sprite or sector
case kModernSlopeChanger:
switch (destObjType)
{
case OBJ_SPRITE:
case OBJ_SECTOR:
useSlopeChanger(sourceactor, destObjType, destSect, destactor);
break;
}
break;
case kModernSpriteDamager:
// damages xsprite via TX ID or xsprites in a sector
switch (destObjType)
{
case OBJ_SPRITE:
case OBJ_SECTOR:
useSpriteDamager(sourceactor, destObjType, destSect, destactor);
break;
}
break;
// can spawn any effect passed in data2 on it's or txID sprite
case kModernEffectSpawner:
if (destObjType != OBJ_SPRITE) break;
useEffectGen(sourceactor, destactor);
break;
// takes data2 as SEQ ID and spawns it on it's or TX ID object
case kModernSeqSpawner:
useSeqSpawnerGen(sourceactor, destObjType, destSect, destWall, destactor);
break;
// creates wind on TX ID sector
case kModernWindGenerator:
if (destObjType != OBJ_SECTOR || sourceactor->xspr.data2 < 0) break;
useSectorWindGen(sourceactor, destSect);
break;
// size and pan changer of sprite/wall/sector via TX ID
case kModernObjSizeChanger:
useObjResizer(sourceactor, destObjType, destSect, destWall, destactor);
break;
// iterate data filed value of destination object
case kModernObjDataAccumulator:
useIncDecGen(sourceactor, destObjType, destSect, destWall, destactor);
break;
// change data field value of destination object
case kModernObjDataChanger:
useDataChanger(sourceactor, destObjType, destSect, destWall, destactor);
break;
// change sector lighting dynamically
case kModernSectorFXChanger:
if (destObjType != OBJ_SECTOR) break;
useSectorLightChanger(sourceactor, destSect);
break;
// change target of dudes and make it fight
case kModernDudeTargetChanger:
if (destObjType != OBJ_SPRITE) break;
useTargetChanger(sourceactor, destactor);
break;
// change picture and palette of TX ID object
case kModernObjPicnumChanger:
usePictureChanger(sourceactor, destObjType, destSect, destWall, destactor);
break;
// change various properties
case kModernObjPropertiesChanger:
usePropertiesChanger(sourceactor, destObjType, destSect, destWall, destactor);
break;
// updated vanilla sound gen that now allows to play sounds on TX ID sprites
case kGenModernSound:
if (destObjType != OBJ_SPRITE) break;
useSoundGen(sourceactor, destactor);
break;
// updated ecto skull gen that allows to fire missile from TX ID sprites
case kGenModernMissileUniversal:
if (destObjType != OBJ_SPRITE) break;
useUniMissileGen(sourceactor, destactor);
break;
// spawn enemies on TX ID sprites
case kMarkerDudeSpawn:
if (destObjType != OBJ_SPRITE) break;
useDudeSpawn(sourceactor, destactor);
break;
// spawn custom dude on TX ID sprites
case kModernCustomDudeSpawn:
if (destObjType != OBJ_SPRITE) break;
useCustomDudeSpawn(sourceactor, destactor);
break;
}
}
//---------------------------------------------------------------------------
//
// the following functions required for kModernDudeTargetChanger
//
//---------------------------------------------------------------------------
DBloodActor* aiFightGetTargetInRange(DBloodActor* actor, int minDist, int maxDist, int data, int teamMode)
{
DUDEINFO* pDudeInfo = getDudeInfo(actor->spr.type);
BloodStatIterator it(kStatDude);
while (auto targactor = it.Next())
{
if (!aiFightDudeCanSeeTarget(actor, pDudeInfo, targactor)) continue;
int dist = aiFightGetTargetDist(actor, pDudeInfo, targactor);
if (dist < minDist || dist > maxDist) continue;
else if (actor->GetTarget() == targactor) return targactor;
else if (!targactor->IsDudeActor() || targactor == actor || targactor->IsPlayerActor()) continue;
else if (IsBurningDude(targactor) || !IsKillableDude(targactor) || targactor->GetOwner() == actor) continue;
else if ((teamMode == 1 && actor->xspr.rxID == targactor->xspr.rxID) || aiFightMatesHaveSameTarget(actor, targactor, 1)) continue;
else if (data == 666 || targactor->xspr.data1 == data)
{
if (actor->GetTarget())
{
int fineDist1 = aiFightGetFineTargetDist(actor, actor->GetTarget());
int fineDist2 = aiFightGetFineTargetDist(actor, targactor);
if (fineDist1 < fineDist2)
continue;
}
return targactor;
}
}
return nullptr;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
DBloodActor* aiFightTargetIsPlayer(DBloodActor* actor)
{
auto targ = actor->GetTarget();
if (targ && targ->IsPlayerActor()) return targ;
return nullptr;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
DBloodActor* aiFightGetMateTargets(DBloodActor* actor)
{
int rx = actor->xspr.rxID;
for (int i = bucketHead[rx]; i < bucketHead[rx + 1]; i++)
{
if (rxBucket[i].isActor())
{
auto mate = rxBucket[i].actor();
if (!mate || !mate->hasX() || mate == actor || !mate->IsDudeActor())
continue;
if (mate->GetTarget())
{
if (!mate->GetTarget()->IsPlayerActor())
return mate->GetTarget();
}
}
}
return nullptr;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool aiFightMatesHaveSameTarget(DBloodActor* leaderactor, DBloodActor* targetactor, int allow)
{
int rx = leaderactor->xspr.rxID;
for (int i = bucketHead[rx]; i < bucketHead[rx + 1]; i++)
{
if (!rxBucket[i].isActor()) continue;
auto mate = rxBucket[i].actor();
if (!mate || !mate->hasX() || mate == leaderactor || !mate->IsDudeActor())
continue;
if (mate->GetTarget() == targetactor && allow-- <= 0)
return true;
}
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool aiFightDudeCanSeeTarget(DBloodActor* dudeactor, DUDEINFO* pDudeInfo, DBloodActor* targetactor)
{
int dx = targetactor->spr.pos.X - dudeactor->spr.pos.X; int dy = targetactor->spr.pos.Y - dudeactor->spr.pos.Y;
// check target
if (approxDist(dx, dy) < pDudeInfo->seeDist)
{
int eyeAboveZ = pDudeInfo->eyeHeight * dudeactor->spr.yrepeat << 2;
// is there a line of sight to the target?
if (cansee(dudeactor->spr.pos.X, dudeactor->spr.pos.Y, dudeactor->spr.pos.Z, dudeactor->sector(), targetactor->spr.pos.X, targetactor->spr.pos.Y, targetactor->spr.pos.Z - eyeAboveZ, targetactor->sector()))
{
/*int nAngle = getangle(dx, dy);
int losAngle = ((1024 + nAngle - dudeactor->spr.ang) & 2047) - 1024;
// is the target visible?
if (abs(losAngle) < 2048) // 360 deg periphery here*/
return true;
}
}
return false;
}
//---------------------------------------------------------------------------
//
// this function required if monsters in genIdle ai state. It wakes up monsters
// when kModernDudeTargetChanger goes to off state, so they won't ignore the world.
//
//---------------------------------------------------------------------------
void aiFightActivateDudes(int rx)
{
for (int i = bucketHead[rx]; i < bucketHead[rx + 1]; i++)
{
if (!rxBucket[i].isActor()) continue;
auto dudeactor = rxBucket[i].actor();
if (!dudeactor || !dudeactor->hasX() || !dudeactor->IsDudeActor() || dudeactor->xspr.aiState->stateType != kAiStateGenIdle) continue;
aiInitSprite(dudeactor);
}
}
//---------------------------------------------------------------------------
//
// this function sets target to -1 for all dudes that hunting for nSprite
//
//---------------------------------------------------------------------------
void aiFightFreeTargets(DBloodActor* actor)
{
BloodStatIterator it(kStatDude);
while (auto targetactor = it.Next())
{
if (!targetactor->IsDudeActor() || !targetactor->hasX()) continue;
else if (targetactor->GetTarget() == actor)
aiSetTarget(targetactor, targetactor->spr.pos.X, targetactor->spr.pos.Y, targetactor->spr.pos.Z);
}
}
//---------------------------------------------------------------------------
//
// this function sets target to -1 for all targets that hunting for dudes affected by selected kModernDudeTargetChanger
//
//---------------------------------------------------------------------------
void aiFightFreeAllTargets(DBloodActor* sourceactor)
{
auto txID = sourceactor->xspr.txID;
if (txID <= 0) return;
for (int i = bucketHead[txID]; i < bucketHead[txID + 1]; i++)
{
if (!rxBucket[i].isActor()) continue;
auto actor = rxBucket[i].actor();
if (actor && actor->hasX())
aiFightFreeTargets(actor);
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool aiFightDudeIsAffected(DBloodActor* dudeactor)
{
if (dudeactor->xspr.rxID <= 0 || dudeactor->xspr.locked == 1) return false;
BloodStatIterator it(kStatModernDudeTargetChanger);
while (auto actor = it.Next())
{
if (!actor->hasX()) continue;
if (actor->xspr.txID <= 0 || actor->xspr.state != 1) continue;
for (int i = bucketHead[actor->xspr.txID]; i < bucketHead[actor->xspr.txID + 1]; i++)
{
if (!rxBucket[i].isActor()) continue;
auto rxactor = rxBucket[i].actor();
if (!rxactor || !rxactor->hasX() || !rxactor->IsDudeActor()) continue;
else if (rxactor == dudeactor) return true;
}
}
return false;
}
//---------------------------------------------------------------------------
//
// this function tells if there any dude found for kModernDudeTargetChanger
//
//---------------------------------------------------------------------------
bool aiFightGetDudesForBattle(DBloodActor* actor)
{
auto txID = actor->xspr.txID;
for (int i = bucketHead[txID]; i < bucketHead[txID + 1]; i++)
{
if (!rxBucket[i].isActor()) continue;
auto rxactor = rxBucket[i].actor();
if (!rxactor || !rxactor->hasX() || !rxactor->IsDudeActor()) continue;
if (rxactor->xspr.health > 0) return true;
}
// check redirected TX buckets
int rx = -1;
DBloodActor* pXRedir = nullptr;
while ((pXRedir = evrListRedirectors(OBJ_SPRITE, nullptr, nullptr, actor, pXRedir, &rx)) != nullptr)
{
for (int i = bucketHead[rx]; i < bucketHead[rx + 1]; i++)
{
if (!rxBucket[i].isActor()) continue;
auto rxactor = rxBucket[i].actor();
if (!rxactor || !rxactor->hasX() || !rxactor->IsDudeActor()) continue;
if (rxactor->xspr.health > 0) return true;
}
}
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void aiFightAlarmDudesInSight(DBloodActor* actor, int max)
{
DUDEINFO* pDudeInfo = getDudeInfo(actor->spr.type);
BloodStatIterator it(kStatDude);
while (auto dudeactor = it.Next())
{
if (dudeactor == actor || !dudeactor->IsDudeActor() || !dudeactor->hasX())
continue;
if (aiFightDudeCanSeeTarget(actor, pDudeInfo, dudeactor))
{
if (dudeactor->GetTarget() != nullptr || dudeactor->xspr.rxID > 0)
continue;
aiSetTarget(dudeactor, dudeactor->spr.pos.X, dudeactor->spr.pos.Y, dudeactor->spr.pos.Z);
aiActivateDude(dudeactor);
if (max-- < 1)
break;
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool aiFightUnitCanFly(DBloodActor* dude)
{
return (dude->IsDudeActor() && gDudeInfoExtra[dude->spr.type - kDudeBase].flying);
}
bool aiFightIsMeleeUnit(DBloodActor* dude)
{
if (dude->spr.type == kDudeModernCustom) return (dude->hasX() && dudeIsMelee(dude));
else return (dude->IsDudeActor() && gDudeInfoExtra[dude->spr.type - kDudeBase].melee);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
int aiFightGetTargetDist(DBloodActor* actor, DUDEINFO* pDudeInfo, DBloodActor* target)
{
int dx = target->spr.pos.X - actor->spr.pos.X;
int dy = target->spr.pos.Y - actor->spr.pos.Y;
int dist = approxDist(dx, dy);
if (dist <= pDudeInfo->meleeDist) return 0;
if (dist >= pDudeInfo->seeDist) return 13;
if (dist <= pDudeInfo->seeDist / 12) return 1;
if (dist <= pDudeInfo->seeDist / 11) return 2;
if (dist <= pDudeInfo->seeDist / 10) return 3;
if (dist <= pDudeInfo->seeDist / 9) return 4;
if (dist <= pDudeInfo->seeDist / 8) return 5;
if (dist <= pDudeInfo->seeDist / 7) return 6;
if (dist <= pDudeInfo->seeDist / 6) return 7;
if (dist <= pDudeInfo->seeDist / 5) return 8;
if (dist <= pDudeInfo->seeDist / 4) return 9;
if (dist <= pDudeInfo->seeDist / 3) return 10;
if (dist <= pDudeInfo->seeDist / 2) return 11;
return 12;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
int aiFightGetFineTargetDist(DBloodActor* actor, DBloodActor* target)
{
int dx = target->spr.pos.X - actor->spr.pos.X;
int dy = target->spr.pos.Y - actor->spr.pos.Y;
int dist = approxDist(dx, dy);
return dist;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void sectorKillSounds(sectortype* pSector)
{
BloodSectIterator it(pSector);
while (auto actor = it.Next())
{
if (actor->spr.type != kSoundSector) continue;
sfxKill3DSound(actor);
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void sectorPauseMotion(sectortype* pSector)
{
if (!pSector->hasX()) return;
XSECTOR* pXSector = &pSector->xs();
pXSector->unused1 = 1;
evKillSector(pSector);
sectorKillSounds(pSector);
if ((pXSector->busy == 0 && !pXSector->state) || (pXSector->busy == 65536 && pXSector->state))
SectorEndSound(pSector, pXSector->state);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void sectorContinueMotion(sectortype* pSector, EVENT event)
{
if (!pSector->hasX()) return;
XSECTOR* pXSector = &pSector->xs();
pXSector->unused1 = 0;
int busyTimeA = pXSector->busyTimeA;
int waitTimeA = pXSector->waitTimeA;
int busyTimeB = pXSector->busyTimeB;
int waitTimeB = pXSector->waitTimeB;
if (pSector->type == kSectorPath)
{
if (!pXSector->marker0) return;
busyTimeA = busyTimeB = pXSector->marker0->xspr.busyTime;
waitTimeA = waitTimeB = pXSector->marker0->xspr.waitTime;
}
if (!pXSector->interruptable && event.cmd != kCmdSectorMotionContinue
&& ((!pXSector->state && pXSector->busy) || (pXSector->state && pXSector->busy != 65536)))
{
event.cmd = kCmdSectorMotionContinue;
}
else if (event.cmd == kCmdToggle)
{
event.cmd = (pXSector->state) ? kCmdOn : kCmdOff;
}
int nDelta = 1;
switch (event.cmd)
{
case kCmdOff:
if (pXSector->busy == 0)
{
if (pXSector->reTriggerB && waitTimeB) evPostSector(pSector, (waitTimeB * 120) / 10, kCmdOff);
return;
}
pXSector->state = 1;
nDelta = 65536 / ClipLow((busyTimeB * 120) / 10, 1);
break;
case kCmdOn:
if (pXSector->busy == 65536)
{
if (pXSector->reTriggerA && waitTimeA) evPostSector(pSector, (waitTimeA * 120) / 10, kCmdOn);
return;
}
pXSector->state = 0;
nDelta = 65536 / ClipLow((busyTimeA * 120) / 10, 1);
break;
case kCmdSectorMotionContinue:
nDelta = 65536 / ClipLow((((pXSector->state) ? busyTimeB : busyTimeA) * 120) / 10, 1);
break;
}
//bool crush = pXSector->Crush;
int busyFunc = BUSYID_0;
switch (pSector->type)
{
case kSectorZMotion:
busyFunc = BUSYID_2;
break;
case kSectorZMotionSprite:
busyFunc = BUSYID_1;
break;
case kSectorSlideMarked:
case kSectorSlide:
busyFunc = BUSYID_3;
break;
case kSectorRotateMarked:
case kSectorRotate:
busyFunc = BUSYID_4;
break;
case kSectorRotateStep:
busyFunc = BUSYID_5;
break;
case kSectorPath:
busyFunc = BUSYID_7;
break;
default:
I_Error("Unsupported sector type %d", pSector->type);
break;
}
SectorStartSound(pSector, pXSector->state);
nDelta = (pXSector->state) ? -nDelta : nDelta;
BUSY b = { pSector, nDelta, (int)pXSector->busy, (BUSYID)busyFunc };
gBusy.Push(b);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool modernTypeOperateSector(sectortype* pSector, const EVENT& event)
{
auto pXSector = &pSector->xs();
if (event.cmd >= kCmdLock && event.cmd <= kCmdToggleLock)
{
switch (event.cmd)
{
case kCmdLock:
pXSector->locked = 1;
break;
case kCmdUnlock:
pXSector->locked = 0;
break;
case kCmdToggleLock:
pXSector->locked = pXSector->locked ^ 1;
break;
}
switch (pSector->type)
{
case kSectorCounter:
if (pXSector->locked != 1) break;
SetSectorState(pSector, 0);
evPostSector(pSector, 0, kCallbackCounterCheck);
break;
}
return true;
// continue motion of the paused sector
}
else if (pXSector->unused1)
{
switch (event.cmd)
{
case kCmdOff:
case kCmdOn:
case kCmdToggle:
case kCmdSectorMotionContinue:
sectorContinueMotion(pSector, event);
return true;
}
// pause motion of the sector
}
else if (event.cmd == kCmdSectorMotionPause)
{
sectorPauseMotion(pSector);
return true;
}
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useCustomDudeSpawn(DBloodActor* pSource, DBloodActor* pActor)
{
genDudeSpawn(pSource, pActor, pActor->spr.clipdist << 1);
}
void useDudeSpawn(DBloodActor* pSource, DBloodActor* pActor)
{
if (randomSpawnDude(pSource, pActor, pActor->spr.clipdist << 1, 0) == nullptr)
nnExtSpawnDude(pSource, pActor, pSource->xspr.data1, pActor->spr.clipdist << 1, 0);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool modernTypeOperateSprite(DBloodActor* actor, EVENT& event)
{
if (event.cmd >= kCmdLock && event.cmd <= kCmdToggleLock)
{
switch (event.cmd)
{
case kCmdLock:
actor->xspr.locked = 1;
break;
case kCmdUnlock:
actor->xspr.locked = 0;
break;
case kCmdToggleLock:
actor->xspr.locked = actor->xspr.locked ^ 1;
break;
}
switch (actor->spr.type)
{
case kModernCondition:
case kModernConditionFalse:
actor->xspr.restState = 0;
if (actor->xspr.busyTime <= 0) break;
else if (!actor->xspr.locked) actor->xspr.busy = 0;
break;
}
return true;
}
else if (event.cmd == kCmdDudeFlagsSet)
{
if (!event.isActor())
{
viewSetSystemMessage("Only sprites can use command #%d", event.cmd);
return true;
}
else
{
auto pEvActor = event.getActor();
if (pEvActor && pEvActor->hasX())
{
// copy dude flags from the source to destination sprite
aiPatrolFlagsMgr(pEvActor, actor, true, false);
}
}
}
if (actor->spr.statnum == kStatDude && actor->IsDudeActor())
{
switch (event.cmd)
{
case kCmdOff:
if (actor->xspr.state) SetSpriteState(actor, 0);
break;
case kCmdOn:
if (!actor->xspr.state) SetSpriteState(actor, 1);
if (!actor->IsDudeActor() || actor->IsPlayerActor() || actor->xspr.health <= 0) break;
else if (actor->xspr.aiState->stateType >= kAiStatePatrolBase && actor->xspr.aiState->stateType < kAiStatePatrolMax)
break;
switch (actor->xspr.aiState->stateType)
{
case kAiStateIdle:
case kAiStateGenIdle:
aiActivateDude(actor);
break;
}
break;
case kCmdDudeFlagsSet:
if (event.isActor())
{
auto pEvActor = event.getActor();
if (!pEvActor || !pEvActor->hasX()) break;
else aiPatrolFlagsMgr(pEvActor, actor, false, true); // initialize patrol dude with possible new flags
}
break;
default:
if (!actor->xspr.state) evPostActor(actor, 0, kCmdOn);
else evPostActor(actor, 0, kCmdOff);
break;
}
return true;
}
switch (actor->spr.type)
{
default:
return false; // no modern type found to work with, go normal OperateSprite();
case kThingBloodBits:
case kThingBloodChunks:
// dude to thing morphing causing a lot of problems since it continues receiving commands after dude is dead.
// this leads to weird stuff like exploding with gargoyle gib or corpse disappearing immediately.
// let's allow only specific commands here to avoid this.
if (actor->spr.inittype < kDudeBase || actor->spr.inittype >= kDudeMax) return false;
else if (event.cmd != kCmdToggle && event.cmd != kCmdOff && event.cmd != kCmdSpriteImpact) return true;
DudeToGibCallback1(0, actor); // set proper gib type just in case DATAs was changed from the outside.
return false;
case kModernCondition:
case kModernConditionFalse:
if (!actor->xspr.isTriggered) useCondition(actor, event);
return true;
// add spawn random dude feature - works only if at least 2 data fields are not empty.
case kMarkerDudeSpawn:
if (!gGameOptions.nMonsterSettings) return true;
else if (!(actor->spr.flags & kModernTypeFlag4)) useDudeSpawn(actor, actor);
else if (actor->xspr.txID) evSendActor(actor, actor->xspr.txID, kCmdModernUse);
return true;
case kModernCustomDudeSpawn:
if (!gGameOptions.nMonsterSettings) return true;
else if (!(actor->spr.flags & kModernTypeFlag4)) useCustomDudeSpawn(actor, actor);
else if (actor->xspr.txID) evSendActor(actor, actor->xspr.txID, kCmdModernUse);
return true;
case kModernRandomTX: // random Event Switch takes random data field and uses it as TX ID
case kModernSequentialTX: // sequential Switch takes values from data fields starting from data1 and uses it as TX ID
if (actor->xspr.command == kCmdLink) return true; // work as event redirector
switch (actor->spr.type)
{
case kModernRandomTX:
useRandomTx(actor, (COMMAND_ID)actor->xspr.command, true);
break;
case kModernSequentialTX:
if (!(actor->spr.flags & kModernTypeFlag1)) useSequentialTx(actor, (COMMAND_ID)actor->xspr.command, true);
else seqTxSendCmdAll(actor, actor, (COMMAND_ID)actor->xspr.command, false);
break;
}
return true;
case kModernSpriteDamager:
switch (event.cmd)
{
case kCmdOff:
if (actor->xspr.state == 1) SetSpriteState(actor, 0);
break;
case kCmdOn:
evKillActor(actor); // queue overflow protect
if (actor->xspr.state == 0) SetSpriteState(actor, 1);
[[fallthrough]];
case kCmdRepeat:
if (actor->xspr.txID > 0) modernTypeSendCommand(actor, actor->xspr.txID, (COMMAND_ID)actor->xspr.command);
else if (actor->xspr.data1 == 0 && actor->insector()) useSpriteDamager(actor, OBJ_SECTOR, actor->sector(), nullptr);
else if (actor->xspr.data1 >= 666 && actor->xspr.data1 < 669) useSpriteDamager(actor, -1, nullptr, nullptr);
else
{
PLAYER* pPlayer = getPlayerById(actor->xspr.data1);
if (pPlayer != NULL)
useSpriteDamager(actor, OBJ_SPRITE, 0, pPlayer->actor);
}
if (actor->xspr.busyTime > 0)
evPostActor(actor, actor->xspr.busyTime, kCmdRepeat);
break;
default:
if (actor->xspr.state == 0) evPostActor(actor, 0, kCmdOn);
else evPostActor(actor, 0, kCmdOff);
break;
}
return true;
case kMarkerWarpDest:
if (actor->xspr.txID <= 0) {
PLAYER* pPlayer = getPlayerById(actor->xspr.data1);
if (pPlayer != NULL && SetSpriteState(actor, actor->xspr.state ^ 1) == 1)
useTeleportTarget(actor, pPlayer->actor);
return true;
}
[[fallthrough]];
case kModernObjPropertiesChanger:
if (actor->xspr.txID <= 0)
{
if (SetSpriteState(actor, actor->xspr.state ^ 1) == 1)
usePropertiesChanger(actor, -1, nullptr, nullptr, nullptr);
return true;
}
[[fallthrough]];
case kModernSlopeChanger:
case kModernObjSizeChanger:
case kModernObjPicnumChanger:
case kModernSectorFXChanger:
case kModernObjDataChanger:
modernTypeSetSpriteState(actor, actor->xspr.state ^ 1);
return true;
case kModernSeqSpawner:
case kModernEffectSpawner:
switch (event.cmd)
{
case kCmdOff:
if (actor->xspr.state == 1) SetSpriteState(actor, 0);
break;
case kCmdOn:
evKillActor(actor); // queue overflow protect
if (actor->xspr.state == 0) SetSpriteState(actor, 1);
if (actor->spr.type == kModernSeqSpawner) seqSpawnerOffSameTx(actor);
[[fallthrough]];
case kCmdRepeat:
if (actor->xspr.txID > 0) modernTypeSendCommand(actor, actor->xspr.txID, (COMMAND_ID)actor->xspr.command);
else if (actor->spr.type == kModernSeqSpawner) useSeqSpawnerGen(actor, OBJ_SPRITE, nullptr, nullptr, actor);
else useEffectGen(actor, nullptr);
if (actor->xspr.busyTime > 0)
evPostActor(actor, ClipLow((int(actor->xspr.busyTime) + Random2(actor->xspr.data1)) * 120 / 10, 0), kCmdRepeat);
break;
default:
if (actor->xspr.state == 0) evPostActor(actor, 0, kCmdOn);
else evPostActor(actor, 0, kCmdOff);
break;
}
return true;
case kModernWindGenerator:
switch (event.cmd)
{
case kCmdOff:
windGenStopWindOnSectors(actor);
if (actor->xspr.state == 1) SetSpriteState(actor, 0);
break;
case kCmdOn:
evKillActor(actor); // queue overflow protect
if (actor->xspr.state == 0) SetSpriteState(actor, 1);
[[fallthrough]];
case kCmdRepeat:
if (actor->xspr.txID > 0) modernTypeSendCommand(actor, actor->xspr.txID, (COMMAND_ID)actor->xspr.command);
else useSectorWindGen(actor, nullptr);
if (actor->xspr.busyTime > 0) evPostActor(actor, actor->xspr.busyTime, kCmdRepeat);
break;
default:
if (actor->xspr.state == 0) evPostActor(actor, 0, kCmdOn);
else evPostActor(actor, 0, kCmdOff);
break;
}
return true;
case kModernDudeTargetChanger:
// this one is required if data4 of generator was dynamically changed
// it turns monsters in normal idle state instead of genIdle, so they not ignore the world.
if (actor->xspr.dropMsg == 3 && 3 != actor->xspr.data4)
aiFightActivateDudes(actor->xspr.txID);
switch (event.cmd)
{
case kCmdOff:
if (actor->xspr.data4 == 3) aiFightActivateDudes(actor->xspr.txID);
if (actor->xspr.state == 1) SetSpriteState(actor, 0);
break;
case kCmdOn:
evKillActor(actor); // queue overflow protect
if (actor->xspr.state == 0) SetSpriteState(actor, 1);
[[fallthrough]];
case kCmdRepeat:
if (actor->xspr.txID <= 0 || !aiFightGetDudesForBattle(actor))
{
aiFightFreeAllTargets(actor);
evPostActor(actor, 0, kCmdOff);
break;
}
else
{
modernTypeSendCommand(actor, actor->xspr.txID, (COMMAND_ID)actor->xspr.command);
}
if (actor->xspr.busyTime > 0) evPostActor(actor, actor->xspr.busyTime, kCmdRepeat);
break;
default:
if (actor->xspr.state == 0) evPostActor(actor, 0, kCmdOn);
else evPostActor(actor, 0, kCmdOff);
break;
}
actor->xspr.dropMsg = uint8_t(actor->xspr.data4);
return true;
case kModernObjDataAccumulator:
switch (event.cmd) {
case kCmdOff:
if (actor->xspr.state == 1) SetSpriteState(actor, 0);
break;
case kCmdOn:
evKillActor(actor); // queue overflow protect
if (actor->xspr.state == 0) SetSpriteState(actor, 1);
[[fallthrough]];
case kCmdRepeat:
// force OFF after *all* TX objects reach the goal value
if (actor->spr.flags == kModernTypeFlag0 && incDecGoalValueIsReached(actor))
{
evPostActor(actor, 0, kCmdOff);
break;
}
modernTypeSendCommand(actor, actor->xspr.txID, (COMMAND_ID)actor->xspr.command);
if (actor->xspr.busyTime > 0) evPostActor(actor, actor->xspr.busyTime, kCmdRepeat);
break;
default:
if (actor->xspr.state == 0) evPostActor(actor, 0, kCmdOn);
else evPostActor(actor, 0, kCmdOff);
break;
}
return true;
case kModernRandom:
case kModernRandom2:
switch (event.cmd)
{
case kCmdOff:
if (actor->xspr.state == 1) SetSpriteState(actor, 0);
break;
case kCmdOn:
evKillActor(actor); // queue overflow protect
if (actor->xspr.state == 0) SetSpriteState(actor, 1);
[[fallthrough]];
case kCmdRepeat:
useRandomItemGen(actor);
if (actor->xspr.busyTime > 0)
evPostActor(actor, (120 * actor->xspr.busyTime) / 10, kCmdRepeat);
break;
default:
if (actor->xspr.state == 0) evPostActor(actor, 0, kCmdOn);
else evPostActor(actor, 0, kCmdOff);
break;
}
return true;
case kModernThingTNTProx:
if (actor->spr.statnum != kStatRespawn)
{
switch (event.cmd)
{
case kCmdSpriteProximity:
if (actor->xspr.state) break;
sfxPlay3DSound(actor, 452, 0, 0);
evPostActor(actor, 30, kCmdOff);
actor->xspr.state = 1;
[[fallthrough]];
case kCmdOn:
sfxPlay3DSound(actor, 451, 0, 0);
actor->xspr.Proximity = 1;
break;
default:
actExplodeSprite(actor);
break;
}
}
return true;
case kModernThingEnemyLifeLeech:
dudeLeechOperate(actor, event);
return true;
case kModernPlayerControl: { // WIP
PLAYER* pPlayer = NULL; int cmd = (event.cmd >= kCmdNumberic) ? event.cmd : actor->xspr.command;
if ((pPlayer = getPlayerById(actor->xspr.data1)) == NULL
|| ((cmd < 67 || cmd > 68) && !modernTypeSetSpriteState(actor, actor->xspr.state ^ 1)))
return true;
TRPLAYERCTRL* pCtrl = &gPlayerCtrl[pPlayer->nPlayer];
/// !!! COMMANDS OF THE CURRENT SPRITE, NOT OF THE EVENT !!! ///
if ((cmd -= kCmdNumberic) < 0) return true;
else if (pPlayer->actor->xspr.health <= 0)
{
switch (cmd) {
case 36:
actHealDude(pPlayer->actor, ((actor->xspr.data2 > 0) ? ClipHigh(actor->xspr.data2, 200) : getDudeInfo(pPlayer->actor->spr.type)->startHealth), 200);
pPlayer->curWeapon = kWeapPitchFork;
break;
}
return true;
}
switch (cmd)
{
case 0: // 64 (player life form)
if (actor->xspr.data2 < kModeHuman || actor->xspr.data2 > kModeHumanGrown) break;
else trPlayerCtrlSetRace(actor->xspr.data2, pPlayer);
break;
case 1: // 65 (move speed and jump height)
// player movement speed (for all races and postures)
if (valueIsBetween(actor->xspr.data2, -1, 32767))
trPlayerCtrlSetMoveSpeed(actor->xspr.data2, pPlayer);
// player jump height (for all races and stand posture only)
if (valueIsBetween(actor->xspr.data3, -1, 32767))
trPlayerCtrlSetJumpHeight(actor->xspr.data3, pPlayer);
break;
case 2: // 66 (player screen effects)
if (actor->xspr.data3 < 0) break;
else trPlayerCtrlSetScreenEffect(actor->xspr.data2, actor->xspr.data3, pPlayer);
break;
case 3: // 67 (start playing qav scene)
trPlayerCtrlStartScene(actor, pPlayer, (actor->xspr.data4 == 1) ? true : false);
break;
case 4: // 68 (stop playing qav scene)
if (actor->xspr.data2 > 0 && actor->xspr.data2 != pPlayer->sceneQav) break;
else trPlayerCtrlStopScene(pPlayer);
break;
case 5: // 69 (set player look angle, TO-DO: if tx > 0, take a look on TX ID sprite)
//data4 is reserved
if (actor->xspr.data4 != 0) break;
else if (valueIsBetween(actor->xspr.data2, -128, 128))
trPlayerCtrlSetLookAngle(actor->xspr.data2, pPlayer);
break;
case 6: // 70 (erase player stuff...)
if (actor->xspr.data2 < 0) break;
else trPlayerCtrlEraseStuff(actor->xspr.data2, pPlayer);
break;
case 7: // 71 (give something to player...)
if (actor->xspr.data2 <= 0) break;
else trPlayerCtrlGiveStuff(actor->xspr.data2, actor->xspr.data3, actor->xspr.data4, pPlayer, pCtrl);
break;
case 8: // 72 (use inventory item)
if (actor->xspr.data2 < 1 || actor->xspr.data2 > 5) break;
else trPlayerCtrlUsePackItem(actor->xspr.data2, actor->xspr.data3, actor->xspr.data4, pPlayer, event.cmd);
break;
case 9: // 73 (set player's sprite angle, TO-DO: if tx > 0, take a look on TX ID sprite)
//data4 is reserved
if (actor->xspr.data4 != 0) break;
else if (actor->spr.flags & kModernTypeFlag1)
{
pPlayer->angle.settarget(actor->spr.ang);
pPlayer->angle.lockinput();
}
else if (valueIsBetween(actor->xspr.data2, -kAng360, kAng360))
{
pPlayer->angle.settarget(actor->xspr.data2);
pPlayer->angle.lockinput();
}
break;
case 10: // 74 (de)activate powerup
if (actor->xspr.data2 <= 0 || actor->xspr.data2 > (kMaxAllowedPowerup - (kMinAllowedPowerup << 1) + 1)) break;
trPlayerCtrlUsePowerup(actor, pPlayer, event.cmd);
break;
// case 11: // 75 (print the book)
// data2: RFF TXT id
// data3: background tile
// data4: font base tile
// pal: font / background palette
// hitag:
// d1: 0: print whole text at a time, 1: print line by line, 2: word by word, 3: letter by letter
// d2: 1: force pause the game (sp only)
// d3: 1: inherit palette for font, 2: inherit palette for background, 3: both
// busyTime: speed of word/letter/line printing
// waitTime: if TX ID > 0 and TX ID object is book reader, trigger it?
//break;
}
}
return true;
case kGenModernSound:
switch (event.cmd) {
case kCmdOff:
if (actor->xspr.state == 1) SetSpriteState(actor, 0);
break;
case kCmdOn:
evKillActor(actor); // queue overflow protect
if (actor->xspr.state == 0) SetSpriteState(actor, 1);
[[fallthrough]];
case kCmdRepeat:
if (actor->xspr.txID) modernTypeSendCommand(actor, actor->xspr.txID, (COMMAND_ID)actor->xspr.command);
else useSoundGen(actor, actor);
if (actor->xspr.busyTime > 0)
evPostActor(actor, (120 * actor->xspr.busyTime) / 10, kCmdRepeat);
break;
default:
if (actor->xspr.state == 0) evPostActor(actor, 0, kCmdOn);
else evPostActor(actor, 0, kCmdOff);
break;
}
return true;
case kGenModernMissileUniversal:
switch (event.cmd)
{
case kCmdOff:
if (actor->xspr.state == 1) SetSpriteState(actor, 0);
break;
case kCmdOn:
evKillActor(actor); // queue overflow protect
if (actor->xspr.state == 0) SetSpriteState(actor, 1);
[[fallthrough]];
case kCmdRepeat:
if (actor->xspr.txID) modernTypeSendCommand(actor, actor->xspr.txID, (COMMAND_ID)actor->xspr.command);
else useUniMissileGen(actor, actor);
if (actor->xspr.busyTime > 0)
evPostActor(actor, (120 * actor->xspr.busyTime) / 10, kCmdRepeat);
break;
default:
if (actor->xspr.state == 0) evPostActor(actor, 0, kCmdOn);
else evPostActor(actor, 0, kCmdOff);
break;
}
return true;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool modernTypeOperateWall(walltype* pWall, const EVENT& event)
{
switch (pWall->type)
{
case kSwitchOneWay:
switch (event.cmd) {
case kCmdOff:
SetWallState(pWall, 0);
break;
case kCmdOn:
SetWallState(pWall, 1);
break;
default:
SetWallState(pWall, pWall->xw().restState ^ 1);
break;
}
return true;
default:
return false; // no modern type found to work with, go normal OperateWall();
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool txIsRanged(DBloodActor* sourceactor)
{
if (!sourceactor->hasX()) return false;
if (sourceactor->xspr.data1 > 0 && sourceactor->xspr.data2 <= 0 && sourceactor->xspr.data3 <= 0 && sourceactor->xspr.data4 > 0)
{
if (sourceactor->xspr.data1 > sourceactor->xspr.data4)
{
// data1 must be less than data4
int tmp = sourceactor->xspr.data1; sourceactor->xspr.data1 = sourceactor->xspr.data4;
sourceactor->xspr.data4 = tmp;
}
return true;
}
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void seqTxSendCmdAll(DBloodActor* sourceactor, DBloodActor* actor, COMMAND_ID cmd, bool modernSend)
{
bool ranged = txIsRanged(sourceactor);
if (ranged)
{
for (sourceactor->xspr.txID = sourceactor->xspr.data1; sourceactor->xspr.txID <= sourceactor->xspr.data4; sourceactor->xspr.txID++)
{
if (sourceactor->xspr.txID <= 0 || sourceactor->xspr.txID >= kChannelUserMax) continue;
else if (!modernSend) evSendActor(actor, sourceactor->xspr.txID, cmd);
else modernTypeSendCommand(actor, sourceactor->xspr.txID, cmd);
}
}
else
{
for (int i = 0; i <= 3; i++)
{
sourceactor->xspr.txID = GetDataVal(sourceactor, i);
if (sourceactor->xspr.txID <= 0 || sourceactor->xspr.txID >= kChannelUserMax) continue;
else if (!modernSend) evSendActor(actor, sourceactor->xspr.txID, cmd);
else modernTypeSendCommand(actor, sourceactor->xspr.txID, cmd);
}
}
sourceactor->xspr.txID = sourceactor->xspr.sysData1 = 0;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useRandomTx(DBloodActor* sourceactor, COMMAND_ID cmd, bool setState)
{
int tx = 0; int maxRetries = kMaxRandomizeRetries;
if (txIsRanged(sourceactor))
{
while (maxRetries-- >= 0)
{
if ((tx = nnExtRandom(sourceactor->xspr.data1, sourceactor->xspr.data4)) != sourceactor->xspr.txID)
break;
}
}
else
{
while (maxRetries-- >= 0)
{
if ((tx = randomGetDataValue(sourceactor, kRandomizeTX)) > 0 && tx != sourceactor->xspr.txID)
break;
}
}
sourceactor->xspr.txID = (tx > 0 && tx < kChannelUserMax) ? tx : 0;
if (setState)
SetSpriteState(sourceactor, sourceactor->xspr.state ^ 1);
//evSendActor(sourceactor->spr.index, sourceactor->xspr.txID, (COMMAND_ID)sourceactor->xspr.command);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useSequentialTx(DBloodActor* sourceactor, COMMAND_ID cmd, bool setState)
{
bool range = txIsRanged(sourceactor); int cnt = 3; int tx = 0;
if (range)
{
// make sure sysData is correct as we store current index of TX ID here.
if (sourceactor->xspr.sysData1 < sourceactor->xspr.data1) sourceactor->xspr.sysData1 = sourceactor->xspr.data1;
else if (sourceactor->xspr.sysData1 > sourceactor->xspr.data4) sourceactor->xspr.sysData1 = sourceactor->xspr.data4;
}
else
{
// make sure sysData is correct as we store current index of data field here.
if (sourceactor->xspr.sysData1 > 3) sourceactor->xspr.sysData1 = 0;
else if (sourceactor->xspr.sysData1 < 0) sourceactor->xspr.sysData1 = 3;
}
switch (cmd)
{
case kCmdOff:
if (!range)
{
while (cnt-- >= 0) // skip empty data fields
{
if (sourceactor->xspr.sysData1-- < 0) sourceactor->xspr.sysData1 = 3;
if ((tx = GetDataVal(sourceactor, sourceactor->xspr.sysData1)) <= 0) continue;
else break;
}
}
else
{
if (--sourceactor->xspr.sysData1 < sourceactor->xspr.data1) sourceactor->xspr.sysData1 = sourceactor->xspr.data4;
tx = sourceactor->xspr.sysData1;
}
break;
default:
if (!range)
{
while (cnt-- >= 0) // skip empty data fields
{
if (sourceactor->xspr.sysData1 > 3) sourceactor->xspr.sysData1 = 0;
if ((tx = GetDataVal(sourceactor, sourceactor->xspr.sysData1++)) <= 0) continue;
else break;
}
}
else
{
tx = sourceactor->xspr.sysData1;
if (sourceactor->xspr.sysData1 >= sourceactor->xspr.data4)
{
sourceactor->xspr.sysData1 = sourceactor->xspr.data1;
break;
}
sourceactor->xspr.sysData1++;
}
break;
}
sourceactor->xspr.txID = (tx > 0 && tx < kChannelUserMax) ? tx : 0;
if (setState)
SetSpriteState(sourceactor, sourceactor->xspr.state ^ 1);
//evSendActor(sourceactor->spr.index, sourceactor->xspr.txID, (COMMAND_ID)sourceactor->xspr.command);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
int useCondition(DBloodActor* sourceactor, EVENT& event)
{
bool srcIsCondition = false;
auto const pActor = event.isActor() ? event.getActor() : nullptr;
if (event.isActor() && pActor == nullptr) return -1;
if (event.isActor() && pActor != sourceactor)
srcIsCondition = (pActor->spr.type == kModernCondition || pActor->spr.type == kModernConditionFalse);
// if it's a tracking condition, it must ignore all the commands sent from objects
if (sourceactor->xspr.busyTime > 0 && event.funcID != kCallbackMax) return -1;
else if (!srcIsCondition) // save object serials in the stack and make copy of initial object
{
condPush(sourceactor, event.target);
condBackup(sourceactor);
}
else // or grab serials of objects from previous conditions
{
sourceactor->condition[0] = pActor->condition[0];
sourceactor->condition[1] = pActor->condition[1];
}
int cond = sourceactor->xspr.data1;
bool ok = false;
bool RVRS = (sourceactor->spr.type == kModernConditionFalse);
bool RSET = (sourceactor->xspr.command == kCmdNumberic + 36);
bool PUSH = (sourceactor->xspr.command == kCmdNumberic);
int comOp = sourceactor->spr.cstat; // comparison operator
if (sourceactor->xspr.restState == 0)
{
if (cond == 0) ok = true; // dummy
else if (cond >= kCondGameBase && cond < kCondGameMax) ok = condCheckGame(sourceactor, event, comOp, PUSH);
else if (cond >= kCondMixedBase && cond < kCondMixedMax) ok = condCheckMixed(sourceactor, event, comOp, PUSH);
else if (cond >= kCondWallBase && cond < kCondWallMax) ok = condCheckWall(sourceactor, comOp, PUSH);
else if (cond >= kCondSectorBase && cond < kCondSectorMax) ok = condCheckSector(sourceactor, comOp, PUSH);
else if (cond >= kCondPlayerBase && cond < kCondPlayerMax) ok = condCheckPlayer(sourceactor, comOp, PUSH);
else if (cond >= kCondDudeBase && cond < kCondDudeMax) ok = condCheckDude(sourceactor, comOp, PUSH);
else if (cond >= kCondSpriteBase && cond < kCondSpriteMax) ok = condCheckSprite(sourceactor, comOp, PUSH);
else condError(sourceactor, "Unexpected condition id %d!", cond);
sourceactor->xspr.state = (ok ^ RVRS);
if (sourceactor->xspr.waitTime > 0 && sourceactor->xspr.state > 0)
{
sourceactor->xspr.restState = 1;
evKillActor(sourceactor);
evPostActor(sourceactor, (sourceactor->xspr.waitTime * 120) / 10, kCmdRepeat);
return -1;
}
}
else if (event.cmd == kCmdRepeat)
{
sourceactor->xspr.restState = 0;
}
else
{
return -1;
}
if (sourceactor->xspr.state)
{
sourceactor->xspr.isTriggered = sourceactor->xspr.triggerOnce;
if (RSET)
condRestore(sourceactor); // reset focus to the initial object
// send command to rx bucket
if (sourceactor->xspr.txID)
evSendActor(sourceactor, sourceactor->xspr.txID, (COMMAND_ID)sourceactor->xspr.command);
if (sourceactor->spr.flags) {
// send it for object currently in the focus
if (sourceactor->spr.flags & kModernTypeFlag1)
{
nnExtTriggerObject(event.target, sourceactor->xspr.command);
}
// send it for initial object
if ((sourceactor->spr.flags & kModernTypeFlag2) && (sourceactor->condition[0] != sourceactor->condition[1] || !(sourceactor->spr.hitag & kModernTypeFlag1)))
{
auto co = condGet(sourceactor);
nnExtTriggerObject(co, sourceactor->xspr.command);
}
}
}
return sourceactor->xspr.state;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useRandomItemGen(DBloodActor* actor)
{
// let's first search for previously dropped items and remove it
if (actor->xspr.dropMsg > 0)
{
BloodStatIterator it(kStatItem);
while (auto iactor = it.Next())
{
if ((unsigned int)iactor->spr.type == actor->xspr.dropMsg && iactor->spr.pos.X == actor->spr.pos.X && iactor->spr.pos.Y == actor->spr.pos.Y && iactor->spr.pos.Z == actor->spr.pos.Z)
{
gFX.fxSpawnActor((FX_ID)29, actor->sector(), actor->spr.pos.X, actor->spr.pos.Y, actor->spr.pos.Z, 0);
iactor->spr.type = kSpriteDecoration;
actPostSprite(iactor, kStatFree);
break;
}
}
}
// then drop item
auto dropactor = randomDropPickupObject(actor, actor->xspr.dropMsg);
if (dropactor != nullptr)
{
clampSprite(dropactor);
// check if generator affected by physics
if (debrisGetIndex(actor) != -1)
{
dropactor->addX();
int nIndex = debrisGetFreeIndex();
if (nIndex >= 0)
{
dropactor->xspr.physAttr |= kPhysMove | kPhysGravity | kPhysFalling; // must fall always
actor->spr.cstat &= ~CSTAT_SPRITE_BLOCK;
gPhysSpritesList[nIndex] = dropactor;
if (nIndex >= gPhysSpritesCount) gPhysSpritesCount++;
getSpriteMassBySize(dropactor); // create mass cache
}
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useUniMissileGen(DBloodActor* sourceactor, DBloodActor* actor)
{
if (actor == nullptr) actor = sourceactor;
int dx = 0, dy = 0, dz = 0;
if (sourceactor->xspr.data1 < kMissileBase || sourceactor->xspr.data1 >= kMissileMax)
return;
if (actor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_FLOOR)
{
if (actor->spr.cstat & CSTAT_SPRITE_YFLIP) dz = 0x4000;
else dz = -0x4000;
}
else
{
dx = bcos(actor->spr.ang);
dy = bsin(actor->spr.ang);
dz = sourceactor->xspr.data3 << 6; // add slope controlling
if (dz > 0x10000) dz = 0x10000;
else if (dz < -0x10000) dz = -0x10000;
}
auto missileactor = actFireMissile(actor, 0, 0, dx, dy, dz, actor->xspr.data1);
if (missileactor)
{
int from; // inherit some properties of the generator
if ((from = (sourceactor->spr.flags & kModernTypeFlag3)) > 0)
{
int canInherit = 0xF;
if (missileactor->hasX() && seqGetStatus(missileactor) >= 0)
{
canInherit &= ~0x8;
SEQINST* pInst = GetInstance(missileactor);
Seq* pSeq = pInst->pSequence;
for (int i = 0; i < pSeq->nFrames; i++)
{
if ((canInherit & 0x4) && pSeq->frames[i].palette != 0) canInherit &= ~0x4;
if ((canInherit & 0x2) && pSeq->frames[i].xrepeat != 0) canInherit &= ~0x2;
if ((canInherit & 0x1) && pSeq->frames[i].yrepeat != 0) canInherit &= ~0x1;
}
}
if (canInherit != 0)
{
if (canInherit & 0x2)
missileactor->spr.xrepeat = (from == kModernTypeFlag1) ? sourceactor->spr.xrepeat : actor->spr.xrepeat;
if (canInherit & 0x1)
missileactor->spr.yrepeat = (from == kModernTypeFlag1) ? sourceactor->spr.yrepeat : actor->spr.yrepeat;
if (canInherit & 0x4)
missileactor->spr.pal = (from == kModernTypeFlag1) ? sourceactor->spr.pal : actor->spr.pal;
if (canInherit & 0x8)
missileactor->spr.shade = (from == kModernTypeFlag1) ? sourceactor->spr.shade : actor->spr.shade;
}
}
// add velocity controlling
if (sourceactor->xspr.data2 > 0)
{
int velocity = sourceactor->xspr.data2 << 12;
missileactor->vel.X = MulScale(velocity, dx, 14);
missileactor->vel.Y = MulScale(velocity, dy, 14);
missileactor->vel.Z = MulScale(velocity, dz, 14);
}
// add bursting for missiles
if (missileactor->spr.type != kMissileFlareAlt && sourceactor->xspr.data4 > 0)
evPostActor(missileactor, ClipHigh(sourceactor->xspr.data4, 500), kCallbackMissileBurst);
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useSoundGen(DBloodActor* sourceactor, DBloodActor* actor)
{
int pitch = sourceactor->xspr.data4 << 1;
if (pitch < 2000) pitch = 0;
sfxPlay3DSoundCP(actor, sourceactor->xspr.data2, -1, 0, pitch, sourceactor->xspr.data3);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useIncDecGen(DBloodActor* sourceactor, int objType, sectortype* destSect, walltype* destWall, DBloodActor* objactor)
{
char buffer[7];
int data = -65535;
short tmp = 0;
int dataIndex = 0;
snprintf(buffer, 7, "%d", abs(sourceactor->xspr.data1));
int len = int(strlen(buffer));
for (int i = 0; i < len; i++)
{
dataIndex = (buffer[i] - 52) + 4;
if ((data = getDataFieldOfObject(objType, destSect, destWall, objactor, dataIndex)) == -65535)
{
Printf(PRINT_HIGH, "\nWrong index of data (%c) for IncDec Gen! Only 1, 2, 3 and 4 indexes allowed!\n", buffer[i]);
continue;
}
if (sourceactor->xspr.data2 < sourceactor->xspr.data3)
{
data = ClipRange(data, sourceactor->xspr.data2, sourceactor->xspr.data3);
if ((data += sourceactor->xspr.data4) >= sourceactor->xspr.data3)
{
switch (sourceactor->spr.flags)
{
case kModernTypeFlag0:
case kModernTypeFlag1:
if (data > sourceactor->xspr.data3) data = sourceactor->xspr.data3;
break;
case kModernTypeFlag2:
if (data > sourceactor->xspr.data3) data = sourceactor->xspr.data3;
if (!incDecGoalValueIsReached(sourceactor)) break;
tmp = sourceactor->xspr.data3;
sourceactor->xspr.data3 = sourceactor->xspr.data2;
sourceactor->xspr.data2 = tmp;
break;
case kModernTypeFlag3:
if (data > sourceactor->xspr.data3) data = sourceactor->xspr.data2;
break;
}
}
}
else if (sourceactor->xspr.data2 > sourceactor->xspr.data3)
{
data = ClipRange(data, sourceactor->xspr.data3, sourceactor->xspr.data2);
if ((data -= sourceactor->xspr.data4) <= sourceactor->xspr.data3)
{
switch (sourceactor->spr.flags)
{
case kModernTypeFlag0:
case kModernTypeFlag1:
if (data < sourceactor->xspr.data3) data = sourceactor->xspr.data3;
break;
case kModernTypeFlag2:
if (data < sourceactor->xspr.data3) data = sourceactor->xspr.data3;
if (!incDecGoalValueIsReached(sourceactor)) break;
tmp = sourceactor->xspr.data3;
sourceactor->xspr.data3 = sourceactor->xspr.data2;
sourceactor->xspr.data2 = tmp;
break;
case kModernTypeFlag3:
if (data < sourceactor->xspr.data3) data = sourceactor->xspr.data2;
break;
}
}
}
sourceactor->xspr.sysData1 = data;
setDataValueOfObject(objType, destSect, destWall, objactor, dataIndex, data);
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void sprite2sectorSlope(DBloodActor* actor, sectortype* pSector, char rel, bool forcez)
{
int slope = 0, z = 0;
switch (rel) {
default:
z = getflorzofslopeptr(actor->sector(), actor->spr.pos.X, actor->spr.pos.Y);
if ((actor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_FLOOR) && actor->hasX() && actor->xspr.Touch) z--;
slope = pSector->floorheinum;
break;
case 1:
z = getceilzofslopeptr(actor->sector(), actor->spr.pos.X, actor->spr.pos.Y);
if ((actor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_FLOOR) && actor->hasX() && actor->xspr.Touch) z++;
slope = pSector->ceilingheinum;
break;
}
spriteSetSlope(actor, slope);
if (forcez) actor->spr.pos.Z = z;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useSlopeChanger(DBloodActor* sourceactor, int objType, sectortype* pSect, DBloodActor* objActor)
{
int slope, oslope;
bool flag2 = (sourceactor->spr.flags & kModernTypeFlag2);
if (sourceactor->spr.flags & kModernTypeFlag1) slope = ClipRange(sourceactor->xspr.data2, -32767, 32767);
else slope = (32767 / kPercFull) * ClipRange(sourceactor->xspr.data2, -kPercFull, kPercFull);
if (objType == OBJ_SECTOR)
{
switch (sourceactor->xspr.data1)
{
case 2:
case 0:
// just set floor slope
if (flag2)
{
pSect->setfloorslope(slope);
}
else
{
// force closest floor aligned sprites to inherit slope of the sector's floor
oslope = pSect->floorheinum;
BloodSectIterator it(pSect);
while (auto iactor = it.Next())
{
if (!(iactor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_FLOOR)) continue;
else if (getflorzofslopeptr(pSect, iactor->spr.pos.X, iactor->spr.pos.Y) - kSlopeDist <= iactor->spr.pos.Z)
{
sprite2sectorSlope(iactor, pSect, 0, true);
// set temporary slope of floor
pSect->floorheinum = slope;
// force sloped sprites to be on floor slope z
sprite2sectorSlope(iactor, pSect, 0, true);
// restore old slope for next sprite
pSect->floorheinum = oslope;
}
}
// finally set new slope of floor
pSect->setfloorslope(slope);
}
if (sourceactor->xspr.data1 == 0) break;
[[fallthrough]];
case 1:
// just set ceiling slope
if (flag2)
{
pSect->setceilingslope(slope);
}
else
{
oslope = pSect->ceilingheinum;
BloodSectIterator it(pSect);
while (auto iactor = it.Next())
{
if (!(iactor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_FLOOR)) continue;
else if (getceilzofslopeptr(pSect, iactor->spr.pos.X, iactor->spr.pos.Y) + kSlopeDist >= iactor->spr.pos.Z)
{
sprite2sectorSlope(iactor, pSect, 1, true);
// set new slope of ceiling
pSect->ceilingheinum = slope;
// force sloped sprites to be on ceiling slope z
sprite2sectorSlope(iactor, pSect, 1, true);
// restore old slope for next sprite
pSect->ceilingheinum = oslope;
}
}
// finally set new slope of ceiling
pSect->setceilingslope(slope);
}
break;
}
// let's give a little impulse to the physics sprites...
BloodSectIterator it(pSect);
while (auto iactor = it.Next())
{
if (iactor->hasX() && iactor->xspr.physAttr > 0)
{
iactor->xspr.physAttr |= kPhysFalling;
iactor->vel.Z++;
}
else if ((iactor->spr.statnum == kStatThing || iactor->spr.statnum == kStatDude) && (iactor->spr.flags & kPhysGravity))
{
iactor->spr.flags |= kPhysFalling;
iactor->vel.Z++;
}
}
}
else if (objType == OBJ_SPRITE)
{
if (!(objActor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_FLOOR)) objActor->spr.cstat |= CSTAT_SPRITE_ALIGNMENT_FLOOR;
if ((objActor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_SLOPE) != CSTAT_SPRITE_ALIGNMENT_SLOPE)
objActor->spr.cstat |= CSTAT_SPRITE_ALIGNMENT_SLOPE;
switch (sourceactor->xspr.data4)
{
case 1:
case 2:
case 3:
if (!objActor->insector()) break;
switch (sourceactor->xspr.data4)
{
case 1: sprite2sectorSlope(objActor, objActor->sector(), 0, flag2); break;
case 2: sprite2sectorSlope(objActor, objActor->sector(), 1, flag2); break;
case 3:
if (getflorzofslopeptr(objActor->sector(), objActor->spr.pos.X, objActor->spr.pos.Y) - kSlopeDist <= objActor->spr.pos.Z) sprite2sectorSlope(objActor, objActor->sector(), 0, flag2);
if (getceilzofslopeptr(objActor->sector(), objActor->spr.pos.X, objActor->spr.pos.Y) + kSlopeDist >= objActor->spr.pos.Z) sprite2sectorSlope(objActor, objActor->sector(), 1, flag2);
break;
}
break;
default:
spriteSetSlope(objActor, slope);
break;
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useDataChanger(DBloodActor* sourceactor, int objType, sectortype* pSector, walltype* pWall, DBloodActor* objActor)
{
switch (objType)
{
case OBJ_SECTOR:
if ((sourceactor->spr.flags & kModernTypeFlag1) || (sourceactor->xspr.data1 != -1 && sourceactor->xspr.data1 != 32767))
setDataValueOfObject(objType, pSector, pWall, nullptr, 1, sourceactor->xspr.data1);
break;
case OBJ_SPRITE:
if ((sourceactor->spr.flags & kModernTypeFlag1) || (sourceactor->xspr.data1 != -1 && sourceactor->xspr.data1 != 32767))
setDataValueOfObject(objType, pSector, pWall, objActor, 1, sourceactor->xspr.data1);
if ((sourceactor->spr.flags & kModernTypeFlag1) || (sourceactor->xspr.data2 != -1 && sourceactor->xspr.data2 != 32767))
setDataValueOfObject(objType, pSector, pWall, objActor, 2, sourceactor->xspr.data2);
if ((sourceactor->spr.flags & kModernTypeFlag1) || (sourceactor->xspr.data3 != -1 && sourceactor->xspr.data3 != 32767))
setDataValueOfObject(objType, pSector, pWall, objActor, 3, sourceactor->xspr.data3);
if ((sourceactor->spr.flags & kModernTypeFlag1) || sourceactor->xspr.data4 != 65535)
setDataValueOfObject(objType, pSector, pWall, objActor, 4, sourceactor->xspr.data4);
break;
case OBJ_WALL:
if ((sourceactor->spr.flags & kModernTypeFlag1) || (sourceactor->xspr.data1 != -1 && sourceactor->xspr.data1 != 32767))
setDataValueOfObject(objType, pSector, pWall, nullptr, 1, sourceactor->xspr.data1);
break;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useSectorLightChanger(DBloodActor* sourceactor, sectortype* pSector)
{
auto pXSector = &pSector->xs();
if (valueIsBetween(sourceactor->xspr.data1, -1, 32767))
pXSector->wave = ClipHigh(sourceactor->xspr.data1, 11);
int oldAmplitude = pXSector->amplitude;
if (valueIsBetween(sourceactor->xspr.data2, -128, 128))
pXSector->amplitude = uint8_t(sourceactor->xspr.data2);
if (valueIsBetween(sourceactor->xspr.data3, -1, 32767))
pXSector->freq = ClipHigh(sourceactor->xspr.data3, 255);
if (valueIsBetween(sourceactor->xspr.data4, -1, 65535))
pXSector->phase = ClipHigh(sourceactor->xspr.data4, 255);
if (sourceactor->spr.flags)
{
if (sourceactor->spr.flags != kModernTypeFlag1)
{
pXSector->shadeAlways = (sourceactor->spr.flags & 0x0001) ? true : false;
pXSector->shadeFloor = (sourceactor->spr.flags & 0x0002) ? true : false;
pXSector->shadeCeiling = (sourceactor->spr.flags & 0x0004) ? true : false;
pXSector->shadeWalls = (sourceactor->spr.flags & 0x0008) ? true : false;
}
else
{
pXSector->shadeAlways = true;
}
}
// add to shadeList if amplitude was set to 0 previously
if (oldAmplitude != pXSector->amplitude)
{
if (!shadeList.Contains(pSector))
shadeList.Push(pSector);
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void useTargetChanger(DBloodActor* sourceactor, DBloodActor* actor)
{
if (!actor->IsDudeActor() || actor->spr.statnum != kStatDude)
{
switch (actor->spr.type) // can be dead dude turned in gib
{
// make current target and all other dudes not attack this dude anymore
case kThingBloodBits:
case kThingBloodChunks:
aiFightFreeTargets(actor);
return;
default:
return;
}
}
int receiveHp = 33 + Random(33);
DUDEINFO* pDudeInfo = getDudeInfo(actor->spr.type);
int matesPerEnemy = 1;
// dude is burning?
if (actor->xspr.burnTime > 0 && actor->GetBurnSource())
{
if (IsBurningDude(actor)) return;
else
{
auto burnactor = actor->GetBurnSource();
if (burnactor->hasX())
{
if (sourceactor->xspr.data2 == 1 && actor->xspr.rxID == burnactor->xspr.rxID)
{
actor->xspr.burnTime = 0;
// heal dude a bit in case of friendly fire
int startHp = (actor->xspr.sysData2 > 0) ? ClipRange(actor->xspr.sysData2 << 4, 1, 65535) : pDudeInfo->startHealth << 4;
if (actor->xspr.health < (unsigned)startHp) actHealDude(actor, receiveHp, startHp);
}
else if (burnactor->xspr.health <= 0)
{
actor->xspr.burnTime = 0;
}
}
}
}
auto playeractor = aiFightTargetIsPlayer(actor);
// special handling for player(s) if target changer data4 > 2.
if (playeractor != nullptr)
{
auto actLeech = leechIsDropped(actor);
if (sourceactor->xspr.data4 == 3)
{
aiSetTarget(actor, actor->spr.pos.X, actor->spr.pos.Y, actor->spr.pos.Z);
aiSetGenIdleState(actor);
if (actor->spr.type == kDudeModernCustom && actLeech)
removeLeech(actLeech);
}
else if (sourceactor->xspr.data4 == 4)
{
aiSetTarget(actor, playeractor->spr.pos.X, playeractor->spr.pos.Y, playeractor->spr.pos.Z);
if (actor->spr.type == kDudeModernCustom && actLeech)
removeLeech(actLeech);
}
}
int maxAlarmDudes = 8 + Random(8);
auto targetactor = actor->GetTarget();
if (targetactor && targetactor->hasX() && playeractor == nullptr)
{
if (aiFightUnitCanFly(actor) && aiFightIsMeleeUnit(targetactor) && !aiFightUnitCanFly(targetactor))
actor->spr.flags |= 0x0002;
else if (aiFightUnitCanFly(actor))
actor->spr.flags &= ~0x0002;
if (!targetactor->IsDudeActor() || targetactor->xspr.health < 1 || !aiFightDudeCanSeeTarget(actor, pDudeInfo, targetactor))
{
aiSetTarget(actor, actor->spr.pos.X, actor->spr.pos.Y, actor->spr.pos.Z);
}
// dude attack or attacked by target that does not fit by data id?
else if (sourceactor->xspr.data1 != 666 && targetactor->xspr.data1 != sourceactor->xspr.data1)
{
if (aiFightDudeIsAffected(targetactor))
{
// force stop attack target
aiSetTarget(actor, actor->spr.pos.X, actor->spr.pos.Y, actor->spr.pos.Z);
if (actor->GetBurnSource() == targetactor)
{
actor->xspr.burnTime = 0;
actor->SetBurnSource(nullptr);
}
// force stop attack dude
aiSetTarget(targetactor, targetactor->spr.pos.X, targetactor->spr.pos.Y, targetactor->spr.pos.Z);
if (targetactor->GetBurnSource() == actor)
{
targetactor->xspr.burnTime = 0;
targetactor->SetBurnSource(nullptr);
}
}
}
else if (sourceactor->xspr.data2 == 1 && actor->xspr.rxID == targetactor->xspr.rxID)
{
auto mateactor = targetactor;
// heal dude
int startHp = (actor->xspr.sysData2 > 0) ? ClipRange(actor->xspr.sysData2 << 4, 1, 65535) : pDudeInfo->startHealth << 4;
if (actor->xspr.health < (unsigned)startHp) actHealDude(actor, receiveHp, startHp);
// heal mate
startHp = (mateactor->xspr.sysData2 > 0) ? ClipRange(mateactor->xspr.sysData2 << 4, 1, 65535) : getDudeInfo(mateactor->spr.type)->startHealth << 4;
if (mateactor->xspr.health < (unsigned)startHp) actHealDude(mateactor, receiveHp, startHp);
auto matetarget = mateactor->GetTarget();
if (matetarget != nullptr && matetarget->hasX())
{
// force mate stop attack dude, if he does
if (matetarget == actor)
{
aiSetTarget(mateactor, mateactor->spr.pos.X, mateactor->spr.pos.Y, mateactor->spr.pos.Z);
}
else if (actor->xspr.rxID != matetarget->xspr.rxID)
{
// force dude to attack same target that mate have
aiSetTarget(actor, matetarget);
return;
}
else
{
// force mate to stop attack another mate
aiSetTarget(mateactor, mateactor->spr.pos.X, mateactor->spr.pos.Y, mateactor->spr.pos.Z);
}
}
// force dude stop attack mate, if target was not changed previously
if (actor == mateactor)
aiSetTarget(actor, actor->spr.pos.X, actor->spr.pos.Y, actor->spr.pos.Z);
}
// check if targets aims player then force this target to fight with dude
else if (aiFightTargetIsPlayer(actor) != nullptr)
{
aiSetTarget(targetactor, actor);
}
int mDist = 3;
if (aiFightIsMeleeUnit(actor)) mDist = 2;
if (targetactor != nullptr && aiFightGetTargetDist(actor, pDudeInfo, targetactor) < mDist)
{
if (!isActive(actor)) aiActivateDude(actor);
return;
}
// lets try to look for target that fits better by distance
else if ((PlayClock & 256) != 0 && (targetactor == nullptr || aiFightGetTargetDist(actor, pDudeInfo, targetactor) >= mDist))
{
auto newtargactor = aiFightGetTargetInRange(actor, 0, mDist, sourceactor->xspr.data1, sourceactor->xspr.data2);
if (newtargactor != nullptr)
{
// Make prev target not aim in dude
if (targetactor)
{
aiSetTarget(targetactor, targetactor->spr.pos.X, targetactor->spr.pos.Y, targetactor->spr.pos.Z);
if (!isActive(newtargactor))
aiActivateDude(newtargactor);
}
// Change target for dude
aiSetTarget(actor, newtargactor);
if (!isActive(actor))
aiActivateDude(actor);
// ...and change target of target to dude to force it fight
if (sourceactor->xspr.data3 > 0 && newtargactor->GetTarget() != actor)
{
aiSetTarget(newtargactor, actor);
if (!isActive(newtargactor))
aiActivateDude(newtargactor);
}
return;
}
}
}
if ((targetactor == nullptr || playeractor != nullptr) && (PlayClock & 32) != 0)
{
// try find first target that dude can see
BloodStatIterator it(kStatDude);
while (auto newtargactor = it.Next())
{
if (newtargactor->GetTarget() == actor)
{
aiSetTarget(actor, newtargactor);
return;
}
// skip non-dudes and players
if (!newtargactor->IsDudeActor() || (newtargactor->IsPlayerActor() && sourceactor->xspr.data4 > 0) || newtargactor->GetOwner() == actor) continue;
// avoid self aiming, those who dude can't see, and those who dude own
else if (!aiFightDudeCanSeeTarget(actor, pDudeInfo, newtargactor) || actor == newtargactor) continue;
// if Target Changer have data1 = 666, everyone can be target, except AI team mates.
else if (sourceactor->xspr.data1 != 666 && sourceactor->xspr.data1 != newtargactor->xspr.data1) continue;
// don't attack immortal, burning dudes and mates
if (IsBurningDude(newtargactor) || !IsKillableDude(newtargactor) || (sourceactor->xspr.data2 == 1 && actor->xspr.rxID == newtargactor->xspr.rxID))
continue;
if (sourceactor->xspr.data2 == 0 || (sourceactor->xspr.data2 == 1 && !aiFightMatesHaveSameTarget(actor, newtargactor, matesPerEnemy)))
{
// Change target for dude
aiSetTarget(actor, newtargactor);
if (!isActive(actor))
aiActivateDude(actor);
// ...and change target of target to dude to force it fight
if (sourceactor->xspr.data3 > 0 && newtargactor->GetTarget() != actor)
{
aiSetTarget(newtargactor, actor);
if (playeractor == nullptr && !isActive(newtargactor))
aiActivateDude(newtargactor);
if (sourceactor->xspr.data3 == 2)
aiFightAlarmDudesInSight(newtargactor, maxAlarmDudes);
}
return;
}
break;
}
}
// got no target - let's ask mates if they have targets
if ((actor->GetTarget() == nullptr || playeractor != nullptr) && sourceactor->xspr.data2 == 1 && (PlayClock & 64) != 0)
{
DBloodActor* pMateTargetActor = aiFightGetMateTargets(actor);
if (pMateTargetActor != nullptr && pMateTargetActor->hasX())
{
if (aiFightDudeCanSeeTarget(actor, pDudeInfo, pMateTargetActor))
{
if (pMateTargetActor->GetTarget() == nullptr)
{
aiSetTarget(pMateTargetActor, actor);
if (pMateTargetActor->IsDudeActor() && !isActive(pMateTargetActor))
aiActivateDude(pMateTargetActor);
}
aiSetTarget(actor, pMateTargetActor);
if (!isActive(actor))
aiActivateDude(actor);
return;
// try walk in mate direction in case if not see the target
}
else if (pMateTargetActor->GetTarget() && aiFightDudeCanSeeTarget(actor, pDudeInfo, pMateTargetActor->GetTarget()))
{
actor->SetTarget(pMateTargetActor);
auto pMate = pMateTargetActor->GetTarget();
actor->xspr.TargetPos.X = pMate->spr.pos.X;
actor->xspr.TargetPos.Y = pMate->spr.pos.Y;
actor->xspr.TargetPos.Z = pMate->spr.pos.Z;
if (!isActive(actor))
aiActivateDude(actor);
return;
}
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void usePictureChanger(DBloodActor* sourceactor, int objType, sectortype* targSect, walltype* targWall, DBloodActor* objActor)
{
switch (objType) {
case OBJ_SECTOR:
if (valueIsBetween(sourceactor->xspr.data1, -1, 32767))
targSect->floorpicnum = sourceactor->xspr.data1;
if (valueIsBetween(sourceactor->xspr.data2, -1, 32767))
targSect->ceilingpicnum = sourceactor->xspr.data2;
if (valueIsBetween(sourceactor->xspr.data3, -1, 32767))
targSect->floorpal = uint8_t(sourceactor->xspr.data3);
if (valueIsBetween(sourceactor->xspr.data4, -1, 65535))
targSect->ceilingpal = uint8_t(sourceactor->xspr.data4);
break;
case OBJ_SPRITE:
if (valueIsBetween(sourceactor->xspr.data1, -1, 32767))
objActor->spr.picnum = sourceactor->xspr.data1;
if (sourceactor->xspr.data2 >= 0) objActor->spr.shade = (sourceactor->xspr.data2 > 127) ? 127 : sourceactor->xspr.data2;
else if (sourceactor->xspr.data2 < -1) objActor->spr.shade = (sourceactor->xspr.data2 < -127) ? -127 : sourceactor->xspr.data2;
if (valueIsBetween(sourceactor->xspr.data3, -1, 32767))
objActor->spr.pal = uint8_t(sourceactor->xspr.data3);
break;
case OBJ_WALL:
if (valueIsBetween(sourceactor->xspr.data1, -1, 32767))
targWall->picnum = sourceactor->xspr.data1;
if (valueIsBetween(sourceactor->xspr.data2, -1, 32767))
targWall->overpicnum = sourceactor->xspr.data2;
if (valueIsBetween(sourceactor->xspr.data3, -1, 32767))
targWall->pal = uint8_t(sourceactor->xspr.data3);
break;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
QAV* playerQavSceneLoad(int qavId)
{
QAV* pQav = getQAV(qavId);
if (!pQav) viewSetSystemMessage("Failed to load QAV animation #%d", qavId);
return pQav;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void playerQavSceneProcess(PLAYER* pPlayer, QAVSCENE* pQavScene)
{
auto initiator = pQavScene->initiator;
if (initiator->hasX())
{
if (initiator->xspr.waitTime > 0 && --initiator->xspr.sysData1 <= 0)
{
if (initiator->xspr.txID >= kChannelUser)
{
for (int i = bucketHead[initiator->xspr.txID]; i < bucketHead[initiator->xspr.txID + 1]; i++)
{
if (rxBucket[i].isActor())
{
auto rxactor = rxBucket[i].actor();
if (!rxactor || !rxactor->hasX() || rxactor == initiator) continue;
if (rxactor->spr.type == kModernPlayerControl && rxactor->xspr.command == 67)
{
if (rxactor->xspr.data2 == initiator->xspr.data2 || rxactor->xspr.locked) continue;
else trPlayerCtrlStartScene(rxactor, pPlayer, true);
return;
}
}
nnExtTriggerObject(rxBucket[i], initiator->xspr.command);
}
}
trPlayerCtrlStopScene(pPlayer);
}
else
{
playerQavScenePlay(pPlayer);
pPlayer->weaponTimer = ClipLow(pPlayer->weaponTimer -= 4, 0);
}
}
else
{
pQavScene->initiator = nullptr;
pPlayer->sceneQav = -1;
pQavScene->qavResrc = NULL;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void playerQavSceneDraw(PLAYER* pPlayer, int a2, double a3, double a4, int a5)
{
if (pPlayer == NULL || pPlayer->sceneQav == -1) return;
QAVSCENE* pQavScene = &gPlayerCtrl[pPlayer->nPlayer].qavScene;
auto actor = pQavScene->initiator;
if (pQavScene->qavResrc != NULL)
{
QAV* pQAV = pQavScene->qavResrc;
int v4;
double smoothratio;
qavProcessTimer(pPlayer, pQAV, &v4, &smoothratio);
int flags = 2; int nInv = powerupCheck(pPlayer, kPwUpShadowCloak);
if (nInv >= 120 * 8 || (nInv != 0 && (PlayClock & 32)))
{
a2 = -128; flags |= 1;
}
// draw as weapon
if (!(actor->spr.flags & kModernTypeFlag1))
{
pQAV->x = int(a3); pQAV->y = int(a4);
pQAV->Draw(a3, a4, v4, flags, a2, a5, true, smoothratio);
// draw fullscreen (currently 4:3 only)
}
else
{
// What an awful hack. This throws proper ordering out of the window, but there is no way to reproduce this better with strict layering of elements.
// From the above commit it seems to be incomplete anyway...
pQAV->Draw(v4, flags, a2, a5, false, smoothratio);
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void playerQavScenePlay(PLAYER* pPlayer)
{
if (pPlayer == NULL) return;
QAVSCENE* pQavScene = &gPlayerCtrl[pPlayer->nPlayer].qavScene;
if (pPlayer->sceneQav == -1 && pQavScene->initiator != nullptr)
pPlayer->sceneQav = pQavScene->initiator->xspr.data2;
if (pQavScene->qavResrc != NULL)
{
QAV* pQAV = pQavScene->qavResrc;
int nTicks = pQAV->duration - pPlayer->weaponTimer;
pQAV->Play(nTicks - 4, nTicks, pPlayer->qavCallback, pPlayer);
}
}
void playerQavSceneReset(PLAYER* pPlayer)
{
QAVSCENE* pQavScene = &gPlayerCtrl[pPlayer->nPlayer].qavScene;
pQavScene->initiator = nullptr;
pQavScene->dummy = pPlayer->sceneQav = -1;
pQavScene->qavResrc = NULL;
}
bool playerSizeShrink(PLAYER* pPlayer, int divider)
{
pPlayer->actor->xspr.scale = 256 / divider;
playerSetRace(pPlayer, kModeHumanShrink);
return true;
}
bool playerSizeGrow(PLAYER* pPlayer, int multiplier)
{
pPlayer->actor->xspr.scale = 256 * multiplier;
playerSetRace(pPlayer, kModeHumanGrown);
return true;
}
bool playerSizeReset(PLAYER* pPlayer)
{
playerSetRace(pPlayer, kModeHuman);
pPlayer->actor->xspr.scale = 0;
return true;
}
void playerDeactivateShrooms(PLAYER* pPlayer)
{
powerupDeactivate(pPlayer, kPwUpGrowShroom);
pPlayer->pwUpTime[kPwUpGrowShroom] = 0;
powerupDeactivate(pPlayer, kPwUpShrinkShroom);
pPlayer->pwUpTime[kPwUpShrinkShroom] = 0;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
PLAYER* getPlayerById(int id)
{
// relative to connected players
if (id >= 1 && id <= kMaxPlayers)
{
id = id - 1;
for (int i = connecthead; i >= 0; i = connectpoint2[i])
{
if (id == gPlayer[i].nPlayer)
return &gPlayer[i];
}
// absolute sprite type
}
else if (id >= kDudePlayer1 && id <= kDudePlayer8)
{
for (int i = connecthead; i >= 0; i = connectpoint2[i])
{
if (id == gPlayer[i].actor->spr.type)
return &gPlayer[i];
}
}
//viewSetSystemMessage("There is no player id #%d", id);
return NULL;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool IsBurningDude(DBloodActor* actor)
{
if (actor == NULL) return false;
switch (actor->spr.type)
{
case kDudeBurningInnocent:
case kDudeBurningCultist:
case kDudeBurningZombieAxe:
case kDudeBurningZombieButcher:
case kDudeBurningTinyCaleb:
case kDudeBurningBeast:
case kDudeModernCustomBurning:
return true;
}
return false;
}
bool IsKillableDude(DBloodActor* actor)
{
switch (actor->spr.type)
{
case kDudeGargoyleStatueFlesh:
case kDudeGargoyleStatueStone:
return false;
default:
if (!actor->IsDudeActor() || actor->xspr.locked == 1) return false;
return true;
}
}
bool isGrown(DBloodActor* actor)
{
if (powerupCheck(&gPlayer[actor->spr.type - kDudePlayer1], kPwUpGrowShroom) > 0) return true;
else if (actor->hasX() && actor->xspr.scale >= 512) return true;
else return false;
}
bool isShrinked(DBloodActor* actor)
{
if (powerupCheck(&gPlayer[actor->spr.type - kDudePlayer1], kPwUpShrinkShroom) > 0) return true;
else if (actor->hasX() && actor->xspr.scale > 0 && actor->xspr.scale <= 128) return true;
else return false;
}
bool isActive(DBloodActor* actor)
{
if (!actor->hasX())
return false;
switch (actor->xspr.aiState->stateType)
{
case kAiStateIdle:
case kAiStateGenIdle:
case kAiStateSearch:
case kAiStateMove:
case kAiStateOther:
return false;
default:
return true;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
int getDataFieldOfObject(EventObject& eob, int dataIndex)
{
int data = -65535;
if (eob.isActor())
{
auto actor = eob.actor();
if (actor)
{
switch (dataIndex)
{
case 1: return actor->xspr.data1;
case 2: return actor->xspr.data2;
case 3:
switch (actor->spr.type)
{
case kDudeModernCustom: return actor->xspr.sysData1;
default: return actor->xspr.data3;
}
case 4: return actor->xspr.data4;
default: return data;
}
}
}
else if (eob.isSector())
{
return eob.sector()->xs().data;
}
else if (eob.isWall())
{
return eob.wall()->xw().data;
}
return data;
}
int getDataFieldOfObject(int objType, sectortype* sect, walltype* wal, DBloodActor* actor, int dataIndex)
{
int data = -65535;
switch (objType)
{
case OBJ_SPRITE:
switch (dataIndex)
{
case 1: return actor->xspr.data1;
case 2: return actor->xspr.data2;
case 3:
switch (actor->spr.type)
{
case kDudeModernCustom: return actor->xspr.sysData1;
default: return actor->xspr.data3;
}
case 4: return actor->xspr.data4;
default: return data;
}
case OBJ_SECTOR: return sect->xs().data;
case OBJ_WALL: return wal->xw().data;
default: return data;
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool setDataValueOfObject(int objType, sectortype* sect, walltype* wal, DBloodActor* objActor, int dataIndex, int value)
{
switch (objType)
{
case OBJ_SPRITE:
{
int type = objActor->spr.type;
// exceptions
if (objActor->IsDudeActor() && objActor->xspr.health <= 0) return true;
switch (type)
{
case kThingBloodBits:
case kThingBloodChunks:
case kThingZombieHead:
return true;
break;
}
switch (dataIndex)
{
case 1:
objActor->xspr.data1 = value;
switch (type)
{
case kSwitchCombo:
if (value == objActor->xspr.data2) SetSpriteState(objActor, 1);
else SetSpriteState(objActor, 0);
break;
case kDudeModernCustom:
case kDudeModernCustomBurning:
objActor->genDudeExtra.updReq[kGenDudePropertyWeapon] = true;
objActor->genDudeExtra.updReq[kGenDudePropertyDmgScale] = true;
evPostActor(objActor, kGenDudeUpdTimeRate, kCallbackGenDudeUpdate);
break;
}
return true;
case 2:
objActor->xspr.data2 = value;
switch (type)
{
case kDudeModernCustom:
case kDudeModernCustomBurning:
objActor->genDudeExtra.updReq[kGenDudePropertySpriteSize] = true;
objActor->genDudeExtra.updReq[kGenDudePropertyMass] = true;
objActor->genDudeExtra.updReq[kGenDudePropertyDmgScale] = true;
objActor->genDudeExtra.updReq[kGenDudePropertyStates] = true;
objActor->genDudeExtra.updReq[kGenDudePropertyAttack] = true;
evPostActor(objActor, kGenDudeUpdTimeRate, kCallbackGenDudeUpdate);
break;
}
return true;
case 3:
objActor->xspr.data3 = value;
switch (type)
{
case kDudeModernCustom:
case kDudeModernCustomBurning:
objActor->xspr.sysData1 = value;
break;
}
return true;
case 4:
objActor->xspr.data4 = value;
return true;
default:
return false;
}
}
case OBJ_SECTOR:
sect->xs().data = value;
return true;
case OBJ_WALL:
wal->xw().data = value;
return true;
default:
return false;
}
}
//---------------------------------------------------------------------------
//
// a replacement of vanilla CanMove for patrol dudes
//
//---------------------------------------------------------------------------
bool nnExtCanMove(DBloodActor* actor, DBloodActor* target, int nAngle, int nRange)
{
int x = actor->spr.pos.X, y = actor->spr.pos.Y, z = actor->spr.pos.Z;
auto pSector = actor->sector();
HitScan(actor, z, Cos(nAngle) >> 16, Sin(nAngle) >> 16, 0, CLIPMASK0, nRange);
int nDist = approxDist(x - gHitInfo.hitpos.X, y - gHitInfo.hitpos.Y);
if (target != nullptr && nDist - (actor->spr.clipdist << 2) < nRange)
return (target == gHitInfo.actor());
x += MulScale(nRange, Cos(nAngle), 30);
y += MulScale(nRange, Sin(nAngle), 30);
if (!FindSector(x, y, z, &pSector))
return false;
if (pSector->hasX()) {
XSECTOR* pXSector = &pSector->xs();
return !((pSector->type == kSectorDamage || pXSector->damageType > 0) && pXSector->state && !nnExtIsImmune(actor, pXSector->damageType, 16));
}
return true;
}
//---------------------------------------------------------------------------
//
// a replacement of vanilla aiChooseDirection for patrol dudes
//
//---------------------------------------------------------------------------
void nnExtAiSetDirection(DBloodActor* actor, int a3)
{
assert(actor->spr.type >= kDudeBase && actor->spr.type < kDudeMax);
int vc = ((a3 + 1024 - actor->spr.ang) & 2047) - 1024;
int t1 = DMulScale(actor->vel.X, Cos(actor->spr.ang), actor->vel.Y, Sin(actor->spr.ang), 30);
int vsi = ((t1 * 15) >> 12) / 2;
int v8 = 341;
if (vc < 0)
v8 = -341;
if (nnExtCanMove(actor, actor->GetTarget(), actor->spr.ang + vc, vsi))
actor->xspr.goalAng = actor->spr.ang + vc;
else if (nnExtCanMove(actor, actor->GetTarget(), actor->spr.ang + vc / 2, vsi))
actor->xspr.goalAng = actor->spr.ang + vc / 2;
else if (nnExtCanMove(actor, actor->GetTarget(), actor->spr.ang - vc / 2, vsi))
actor->xspr.goalAng = actor->spr.ang - vc / 2;
else if (nnExtCanMove(actor, actor->GetTarget(), actor->spr.ang + v8, vsi))
actor->xspr.goalAng = actor->spr.ang + v8;
else if (nnExtCanMove(actor, actor->GetTarget(), actor->spr.ang, vsi))
actor->xspr.goalAng = actor->spr.ang;
else if (nnExtCanMove(actor, actor->GetTarget(), actor->spr.ang - v8, vsi))
actor->xspr.goalAng = actor->spr.ang - v8;
else
actor->xspr.goalAng = actor->spr.ang + 341;
if (actor->xspr.dodgeDir)
{
if (!nnExtCanMove(actor, actor->GetTarget(), actor->spr.ang + actor->xspr.dodgeDir * 512, 512))
{
actor->xspr.dodgeDir = -actor->xspr.dodgeDir;
if (!nnExtCanMove(actor, actor->GetTarget(), actor->spr.ang + actor->xspr.dodgeDir * 512, 512))
actor->xspr.dodgeDir = 0;
}
}
}
//---------------------------------------------------------------------------
//
/// patrol functions
//
//---------------------------------------------------------------------------
void aiPatrolState(DBloodActor* actor, int state)
{
assert(actor->spr.type >= kDudeBase && actor->spr.type < kDudeMax&& actor->hasX());
assert(actor->GetTarget());
auto markeractor = actor->GetTarget();
assert(markeractor->spr.type == kMarkerPath);
bool nSeqOverride = false, crouch = false;
int i, seq = -1, start = 0, end = kPatrolStateSize;
const DUDEINFO_EXTRA* pExtra = &gDudeInfoExtra[actor->spr.type - kDudeBase];
switch (state) {
case kAiStatePatrolWaitL:
seq = pExtra->idlgseqofs;
start = 0; end = 2;
break;
case kAiStatePatrolMoveL:
seq = pExtra->mvegseqofs;
start = 2, end = 7;
break;
case kAiStatePatrolTurnL:
seq = pExtra->mvegseqofs;
start = 7, end = 12;
break;
case kAiStatePatrolWaitW:
seq = pExtra->idlwseqofs;
start = 12; end = 18;
break;
case kAiStatePatrolMoveW:
seq = pExtra->mvewseqofs;
start = 18; end = 25;
break;
case kAiStatePatrolTurnW:
seq = pExtra->mvewseqofs;
start = 25; end = 32;
break;
case kAiStatePatrolWaitC:
seq = pExtra->idlcseqofs;
start = 32; end = 36;
crouch = true;
break;
case kAiStatePatrolMoveC:
seq = pExtra->mvecseqofs;
start = 36; end = 39;
crouch = true;
break;
case kAiStatePatrolTurnC:
seq = pExtra->mvecseqofs;
start = 39; end = kPatrolStateSize;
crouch = true;
break;
}
if (markeractor->xspr.data4 > 0) seq = markeractor->xspr.data4, nSeqOverride = true;
else if (!nSeqOverride && state == kAiStatePatrolWaitC && (actor->spr.type == kDudeCultistTesla || actor->spr.type == kDudeCultistTNT))
seq = 11537, nSeqOverride = true; // these don't have idle crouch seq for some reason...
if (seq < 0)
return aiPatrolStop(actor, nullptr);
for (i = start; i < end; i++)
{
AISTATE* newState = &genPatrolStates[i];
if (newState->stateType != state || (!nSeqOverride && seq != newState->seqId))
continue;
if (actor->spr.type == kDudeModernCustom) aiGenDudeNewState(actor, newState);
else aiNewState(actor, newState);
if (crouch) actor->xspr.unused1 |= kDudeFlagCrouch;
else actor->xspr.unused1 &= ~kDudeFlagCrouch;
if (nSeqOverride)
seqSpawn(seq, actor);
return;
}
if (i == end)
{
viewSetSystemMessage("No patrol state #%d found for dude #%d (type = %d)", state, actor->GetIndex(), actor->spr.type);
aiPatrolStop(actor, nullptr);
}
}
//---------------------------------------------------------------------------
//
// check if some dude already follows the given marker
//
//---------------------------------------------------------------------------
DBloodActor* aiPatrolMarkerBusy(DBloodActor* except, DBloodActor* marker)
{
BloodStatIterator it(kStatDude);
while (auto actor = it.Next())
{
if (!actor->IsDudeActor() || actor == except || !actor->hasX())
continue;
auto targ = actor->GetTarget();
if (actor->xspr.health > 0 && targ != nullptr && targ->spr.type == kMarkerPath && targ == marker)
return actor;
}
return nullptr;
}
//---------------------------------------------------------------------------
//
// check if some dude already follows the given marker
//
//---------------------------------------------------------------------------
bool aiPatrolMarkerReached(DBloodActor* actor)
{
assert(actor->spr.type >= kDudeBase && actor->spr.type < kDudeMax);
const DUDEINFO_EXTRA* pExtra = &gDudeInfoExtra[actor->spr.type - kDudeBase];
auto markeractor = actor->GetTarget();
if (markeractor && markeractor->spr.type == kMarkerPath)
{
int okDist = ClipLow(markeractor->spr.clipdist << 1, 4);
int oX = abs(markeractor->spr.pos.X - actor->spr.pos.X) >> 4;
int oY = abs(markeractor->spr.pos.Y - actor->spr.pos.Y) >> 4;
if (approxDist(oX, oY) <= okDist)
{
if (spriteIsUnderwater(actor) || pExtra->flying)
{
okDist = markeractor->spr.clipdist << 4;
int ztop, zbot, ztop2, zbot2;
GetActorExtents(actor, &ztop, &zbot);
GetActorExtents(markeractor, &ztop2, &zbot2);
int oZ1 = abs(zbot - ztop2) >> 6;
int oZ2 = abs(ztop - zbot2) >> 6;
if (oZ1 > okDist && oZ2 > okDist)
return false;
}
return true;
}
}
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
DBloodActor* findNextMarker(DBloodActor* mark, bool back)
{
BloodStatIterator it(kStatPathMarker);
while (auto next = it.Next())
{
if (!next->hasX() || next == mark) continue;
if ((next->xspr.locked || next->xspr.isTriggered || next->xspr.DudeLockout) || (back && next->xspr.data2 != mark->xspr.data1) || (!back && next->xspr.data1 != mark->xspr.data2))
continue;
return next;
}
return nullptr;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool markerIsNode(DBloodActor* mark, bool back)
{
int cnt = 0;
BloodStatIterator it(kStatPathMarker);
while (auto next = it.Next())
{
if (!next->hasX() || next == mark) continue;
if ((next->xspr.locked || next->xspr.isTriggered || next->xspr.DudeLockout) || (back && next->xspr.data2 != mark->xspr.data1) || (!back && next->xspr.data1 != mark->xspr.data2))
continue;
if (++cnt > 1)
return true;
}
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void aiPatrolSetMarker(DBloodActor* actor)
{
auto targetactor = actor->GetTarget();
DBloodActor* selected = nullptr;
int closest = 200000;
// select closest marker that dude can see
if (targetactor == nullptr)
{
int zt1, zb1, zt2, zb2, dist;
GetActorExtents(actor, &zt2, &zb2);
BloodStatIterator it(kStatPathMarker);
while (auto nextactor = it.Next())
{
if (!nextactor->hasX()) continue;
if (nextactor->xspr.locked || nextactor->xspr.isTriggered || nextactor->xspr.DudeLockout || (dist = approxDist(nextactor->spr.pos.X - actor->spr.pos.X, nextactor->spr.pos.Y - actor->spr.pos.Y)) > closest)
continue;
GetActorExtents(nextactor, &zt1, &zb1);
if (cansee(nextactor->spr.pos.X, nextactor->spr.pos.Y, zt1, nextactor->sector(), actor->spr.pos.X, actor->spr.pos.Y, zt2, actor->sector()))
{
closest = dist;
selected = nextactor;
}
}
}
// set next marker
else if (targetactor->spr.type == kMarkerPath && targetactor->hasX())
{
// idea: which one of next (allowed) markers are closer to the potential target?
// idea: -3 select random next marker that dude can see in radius of reached marker
// if reached marker is in radius of another marker with -3, but greater radius, use that marker
// idea: for nodes only flag32 = specify if enemy must return back to node or allowed to select
// another marker which belongs that node?
DBloodActor* prevactor = nullptr;
DBloodActor* firstFinePath = nullptr;
int next;
int breakChance = 0;
if (actor->prevmarker)
{
prevactor = actor->prevmarker;
}
bool node = markerIsNode(targetactor, false);
actor->xspr.unused2 = aiPatrolGetPathDir(actor, targetactor); // decide if it should go back or forward
if (actor->xspr.unused2 == kPatrolMoveBackward && Chance(0x8000) && node)
actor->xspr.unused2 = kPatrolMoveForward;
bool back = (actor->xspr.unused2 == kPatrolMoveBackward); next = (back) ? targetactor->xspr.data1 : targetactor->xspr.data2;
BloodStatIterator it(kStatPathMarker);
while (auto nextactor = it.Next())
{
if (nextactor == targetactor || !nextactor->hasX()) continue;
else if (actor->xspr.TargetPos.X >= 0 && nextactor == prevactor && node)
{
if (targetactor->xspr.data2 == prevactor->xspr.data1)
continue;
}
if ((nextactor->xspr.locked || nextactor->xspr.isTriggered || nextactor->xspr.DudeLockout) || (back && nextactor->xspr.data2 != next) || (!back && nextactor->xspr.data1 != next))
continue;
if (firstFinePath == nullptr) firstFinePath = nextactor;
if (aiPatrolMarkerBusy(actor, nextactor) && !Chance(0x0010)) continue;
else selected = nextactor;
breakChance += nnExtRandom(1, 5);
if (breakChance >= 5)
break;
}
if (firstFinePath == nullptr)
{
viewSetSystemMessage("No markers with id #%d found for dude #%d! (back = %d)", next, actor->GetIndex(), back);
return;
}
if (selected == nullptr)
selected = firstFinePath;
}
if (!selected)
return;
actor->SetTarget(selected);
selected->SetOwner(actor);
actor->prevmarker = targetactor; // keep previous marker index here, use actual sprite coords when selecting direction
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void aiPatrolStop(DBloodActor* actor, DBloodActor* targetactor, bool alarm)
{
if (actor->hasX())
{
actor->xspr.data3 = 0; // reset spot progress
actor->xspr.unused1 &= ~kDudeFlagCrouch; // reset the crouch status
actor->xspr.unused2 = kPatrolMoveForward; // reset path direction
actor->prevmarker = nullptr;
actor->xspr.TargetPos.X = -1; // reset the previous marker index
if (actor->xspr.health <= 0)
return;
auto mytarget = actor->GetTarget();
if (mytarget && mytarget->spr.type == kMarkerPath)
{
if (targetactor == nullptr) actor->spr.ang = mytarget->spr.ang & 2047;
actor->SetTarget(nullptr);
}
bool patrol = actor->xspr.dudeFlag4;
actor->xspr.dudeFlag4 = 0;
if (targetactor && targetactor->hasX() && targetactor->IsDudeActor())
{
aiSetTarget(actor, targetactor);
aiActivateDude(actor);
// alarm only when in non-recoil state?
//if (((actor->xspr.unused1 & kDudeFlagStealth) && stype != kAiStateRecoil) || !(actor->xspr.unused1 & kDudeFlagStealth)) {
if (alarm) aiPatrolAlarmFull(actor, targetactor, Chance(0x0100));
else aiPatrolAlarmLite(actor, targetactor);
//}
}
else
{
aiInitSprite(actor);
aiSetTarget(actor, actor->xspr.TargetPos.X, actor->xspr.TargetPos.Y, actor->xspr.TargetPos.Z);
}
actor->xspr.dudeFlag4 = patrol; // this must be kept so enemy can patrol after respawn again
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void aiPatrolRandGoalAng(DBloodActor* actor)
{
int goal = kAng90;
if (Chance(0x4000))
goal = kAng120;
if (Chance(0x4000))
goal = kAng180;
if (Chance(0x8000))
goal = -goal;
actor->xspr.goalAng = (actor->spr.ang + goal) & 2047;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void aiPatrolTurn(DBloodActor* actor)
{
int nTurnRange = (getDudeInfo(actor->spr.type)->angSpeed << 1) >> 4;
int nAng = ((actor->xspr.goalAng + 1024 - actor->spr.ang) & 2047) - 1024;
actor->spr.ang = (actor->spr.ang + ClipRange(nAng, -nTurnRange, nTurnRange)) & 2047;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void aiPatrolMove(DBloodActor* actor)
{
auto targetactor = actor->GetTarget();
if (!(actor->spr.type >= kDudeBase && actor->spr.type < kDudeMax) || !targetactor)
return;
int dudeIdx = actor->spr.type - kDudeBase;
switch (actor->spr.type)
{
case kDudeCultistShotgunProne: dudeIdx = kDudeCultistShotgun - kDudeBase; break;
case kDudeCultistTommyProne: dudeIdx = kDudeCultistTommy - kDudeBase; break;
}
DUDEINFO* pDudeInfo = &dudeInfo[dudeIdx];
const DUDEINFO_EXTRA* pExtra = &gDudeInfoExtra[dudeIdx];
int dx = (targetactor->spr.pos.X - actor->spr.pos.X);
int dy = (targetactor->spr.pos.Y - actor->spr.pos.Y);
int dz = (targetactor->spr.pos.Z - (actor->spr.pos.Z - pDudeInfo->eyeHeight)) * 6;
int vel = (actor->xspr.unused1 & kDudeFlagCrouch) ? kMaxPatrolCrouchVelocity : kMaxPatrolVelocity;
int goalAng = 341;
if (pExtra->flying || spriteIsUnderwater(actor))
{
goalAng >>= 1;
actor->vel.Z = dz;
if (actor->spr.flags & kPhysGravity)
actor->spr.flags &= ~kPhysGravity;
}
else if (!pExtra->flying)
{
actor->spr.flags |= kPhysGravity | kPhysFalling;
}
int nTurnRange = (pDudeInfo->angSpeed << 2) >> 4;
int nAng = ((actor->xspr.goalAng + 1024 - actor->spr.ang) & 2047) - 1024;
actor->spr.ang = (actor->spr.ang + ClipRange(nAng, -nTurnRange, nTurnRange)) & 2047;
if (abs(nAng) > goalAng || ((targetactor->xspr.waitTime > 0 || targetactor->xspr.data1 == targetactor->xspr.data2) && aiPatrolMarkerReached(actor)))
{
actor->vel.X = 0;
actor->vel.Y = 0;
return;
}
if (actor->hit.hit.type == kHitSprite)
{
auto hitactor = actor->hit.hit.actor();
hitactor->xspr.dodgeDir = -1;
actor->xspr.dodgeDir = 1;
aiMoveDodge(actor);
}
else
{
int frontSpeed = aiPatrolGetVelocity(pDudeInfo->frontSpeed, targetactor->xspr.busyTime);
actor->vel.X += MulScale(frontSpeed, Cos(actor->spr.ang), 30);
actor->vel.Y += MulScale(frontSpeed, Sin(actor->spr.ang), 30);
}
vel = MulScale(vel, approxDist(dx, dy) << 6, 16);
actor->vel.X = ClipRange(actor->vel.X, -vel, vel);
actor->vel.Y = ClipRange(actor->vel.Y, -vel, vel);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void aiPatrolAlarmLite(DBloodActor* actor, DBloodActor* targetactor)
{
if (!actor->hasX() || !actor->IsDudeActor())
return;
if (actor->xspr.health <= 0)
return;
int zt1, zb1, zt2, zb2; //int eaz1 = (getDudeInfo(actor->spr.type)->eyeHeight * actor->spr.yrepeat) << 2;
GetActorExtents(actor, &zt1, &zb1);
GetActorExtents(targetactor, &zt2, &zb2);
BloodStatIterator it(kStatDude);
while (auto dudeactor = it.Next())
{
if (dudeactor == actor || !dudeactor->IsDudeActor() || dudeactor->IsPlayerActor() || !dudeactor->hasX())
continue;
if (dudeactor->xspr.health <= 0)
continue;
int eaz2 = (getDudeInfo(targetactor->spr.type)->eyeHeight * targetactor->spr.yrepeat) << 2;
int nDist = approxDist(dudeactor->spr.pos.X - actor->spr.pos.X, dudeactor->spr.pos.Y - actor->spr.pos.Y);
if (nDist >= kPatrolAlarmSeeDist || !cansee(actor->spr.pos.X, actor->spr.pos.Y, zt1, actor->sector(), dudeactor->spr.pos.X, dudeactor->spr.pos.Y, dudeactor->spr.pos.Z - eaz2, dudeactor->sector()))
{
nDist = approxDist(dudeactor->spr.pos.X - targetactor->spr.pos.X, dudeactor->spr.pos.Y - targetactor->spr.pos.Y);
if (nDist >= kPatrolAlarmSeeDist || !cansee(targetactor->spr.pos.X, targetactor->spr.pos.Y, zt2, targetactor->sector(), dudeactor->spr.pos.X, dudeactor->spr.pos.Y, dudeactor->spr.pos.Z - eaz2, dudeactor->sector()))
continue;
}
if (aiInPatrolState(dudeactor->xspr.aiState)) aiPatrolStop(dudeactor, dudeactor->GetTarget());
if (dudeactor->GetTarget() && dudeactor->GetTarget() == actor->GetTarget())
continue;
aiSetTarget(dudeactor, targetactor);
aiActivateDude(dudeactor);
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void aiPatrolAlarmFull(DBloodActor* actor, DBloodActor* targetactor, bool chain)
{
if (!actor->hasX() || !actor->IsDudeActor())
return;
if (actor->xspr.health <= 0)
return;
int eaz2 = (getDudeInfo(actor->spr.type)->eyeHeight * actor->spr.yrepeat) << 2;
int x2 = actor->spr.pos.X, y2 = actor->spr.pos.Y, z2 = actor->spr.pos.Z - eaz2;
auto pSect2 = actor->sector();
int tzt, tzb;
GetActorExtents(targetactor, &tzt, &tzb);
int x3 = targetactor->spr.pos.X, y3 = targetactor->spr.pos.Y, z3 = tzt;
auto pSect3 = targetactor->sector();
BloodStatIterator it(kStatDude);
while (auto dudeactor = it.Next())
{
if (dudeactor == actor || !dudeactor->IsDudeActor() || dudeactor->IsPlayerActor() || !dudeactor->hasX())
continue;
if (dudeactor->xspr.health <= 0)
continue;
int eaz1 = (getDudeInfo(dudeactor->spr.type)->eyeHeight * dudeactor->spr.yrepeat) << 2;
int x1 = dudeactor->spr.pos.X, y1 = dudeactor->spr.pos.Y, z1 = dudeactor->spr.pos.Z - eaz1;
auto pSect1 = dudeactor->sector();
int nDist1 = approxDist(x1 - x2, y1 - y2);
int nDist2 = approxDist(x1 - x3, y1 - y3);
//int hdist = (dudeactor->xspr.dudeDeaf) ? 0 : getDudeInfo(dudeactor->spr.type)->hearDist / 4;
int sdist = (dudeactor->xspr.dudeGuard) ? 0 : getDudeInfo(dudeactor->spr.type)->seeDist / 2;
if (//(nDist1 < hdist || nDist2 < hdist) ||
((nDist1 < sdist && cansee(x1, y1, z1, pSect1, x2, y2, z2, pSect2)) || (nDist2 < sdist && cansee(x1, y1, z1, pSect1, x3, y3, z3, pSect3)))) {
if (aiInPatrolState(dudeactor->xspr.aiState)) aiPatrolStop(dudeactor, dudeactor->GetTarget());
if (dudeactor->GetTarget() && dudeactor->GetTarget() == actor->GetTarget())
continue;
if (actor->GetTarget()) aiSetTarget(dudeactor, actor->GetTarget());
else aiSetTarget(dudeactor, actor->spr.pos.X, actor->spr.pos.Y, actor->spr.pos.Z);
aiActivateDude(dudeactor);
if (chain)
aiPatrolAlarmFull(dudeactor, targetactor, Chance(0x0010));
//Printf("Dude #%d alarms dude #%d", actor->GetIndex(), dudeactor->spr.index);
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool spritesTouching(DBloodActor* actor1, DBloodActor* actor2)
{
if (!actor1->hasX() || !actor2->hasX())
return false;
auto hit = &actor1->hit;
DBloodActor* hitactor = nullptr;
if (hit->hit.type == kHitSprite) hitactor = hit->hit.actor();
else if (hit->florhit.type == kHitSprite) hitactor = hit->florhit.actor();
else if (hit->ceilhit.type == kHitSprite) hitactor = hit->ceilhit.actor();
else return false;
return hitactor->hasX() && hitactor == actor2;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool aiCanCrouch(DBloodActor* actor)
{
if (actor->spr.type >= kDudeBase && actor->spr.type < kDudeVanillaMax)
return (gDudeInfoExtra[actor->spr.type - kDudeBase].idlcseqofs >= 0 && gDudeInfoExtra[actor->spr.type - kDudeBase].mvecseqofs >= 0);
else if (actor->spr.type == kDudeModernCustom || actor->spr.type == kDudeModernCustomBurning)
return actor->genDudeExtra.canDuck;
return false;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool readyForCrit(DBloodActor* hunter, DBloodActor* victim)
{
if (!(hunter->spr.type >= kDudeBase && hunter->spr.type < kDudeMax) || !(victim->spr.type >= kDudeBase && victim->spr.type < kDudeMax))
return false;
int dx, dy;
dx = victim->spr.pos.X - hunter->spr.pos.X;
dy = victim->spr.pos.Y - hunter->spr.pos.Y;
if (approxDist(dx, dy) >= (7000 / ClipLow(gGameOptions.nDifficulty >> 1, 1)))
return false;
return (abs(((getangle(dx, dy) + 1024 - victim->spr.ang) & 2047) - 1024) <= kAng45);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
DBloodActor* aiPatrolSearchTargets(DBloodActor* actor)
{
enum { kMaxPatrolFoundSounds = 256 }; // should be the maximum amount of sound channels the engine can play at the same time.
PATROL_FOUND_SOUNDS patrolBonkles[kMaxPatrolFoundSounds];
assert(actor->spr.type >= kDudeBase && actor->spr.type < kDudeMax);
DUDEINFO* pDudeInfo = getDudeInfo(actor->spr.type); PLAYER* pPlayer = NULL;
for (int i = 0; i < kMaxPatrolFoundSounds; i++)
{
patrolBonkles[i].snd = patrolBonkles[i].cur = 0;
patrolBonkles[i].max = ClipLow((gGameOptions.nDifficulty + 1) >> 1, 1);
}
int i, j, f, mod, x, y, z, dx, dy, nDist, eyeAboveZ, sndCnt = 0, seeDist, hearDist, feelDist, seeChance, hearChance;
bool stealth = (actor->xspr.unused1 & kDudeFlagStealth);
bool blind = (actor->xspr.dudeGuard);
bool deaf = (actor->xspr.dudeDeaf);
DBloodActor* newtarget = nullptr;
// search for player targets
for (i = connecthead; i != -1; i = connectpoint2[i])
{
pPlayer = &gPlayer[i];
if (!pPlayer->actor->hasX()) continue;
auto plActor = pPlayer->actor;
if (plActor->xspr.health <= 0)
continue;
newtarget = nullptr;
seeChance = hearChance = 0x0000;
x = plActor->spr.pos.X, y = plActor->spr.pos.Y, z = plActor->spr.pos.Z, dx = x - actor->spr.pos.X, dy = y - actor->spr.pos.Y; nDist = approxDist(dx, dy);
seeDist = (stealth) ? pDudeInfo->seeDist / 3 : pDudeInfo->seeDist >> 1;
hearDist = pDudeInfo->hearDist; feelDist = hearDist >> 1;
// TO-DO: is there any dudes that sees this patrol dude and sees target?
if (nDist <= seeDist)
{
eyeAboveZ = (pDudeInfo->eyeHeight * actor->spr.yrepeat) << 2;
if (nDist < seeDist >> 3) GetActorExtents(pPlayer->actor, &z, &j); //use ztop of the target sprite
if (!cansee(x, y, z, plActor->sector(), actor->spr.pos.X, actor->spr.pos.Y, actor->spr.pos.Z - eyeAboveZ, actor->sector()))
continue;
}
else
continue;
bool invisible = (powerupCheck(pPlayer, kPwUpShadowCloak) > 0);
if (spritesTouching(actor, pPlayer->actor) || spritesTouching(pPlayer->actor, actor))
{
DPrintf(DMSG_SPAMMY, "Patrol dude #%d spot the Player #%d via touch.", actor->GetIndex(), pPlayer->nPlayer + 1);
if (invisible) pPlayer->pwUpTime[kPwUpShadowCloak] = 0;
newtarget = pPlayer->actor;
break;
}
if (!deaf)
{
soundEngine->EnumerateChannels([&](FSoundChan* chan)
{
int sndx = 0, sndy = 0;
sectortype* searchsect = nullptr;
if (chan->SourceType == SOURCE_Actor)
{
auto emitterActor = (DBloodActor*)chan->Source;
if (emitterActor == nullptr) return false; // not a valid source.
sndx = emitterActor->spr.pos.X;
sndy = emitterActor->spr.pos.Y;
// sound attached to the sprite
if (pPlayer->actor != emitterActor && emitterActor->GetOwner() != actor)
{
if (!emitterActor->insector()) return false;
searchsect = emitterActor->sector();
}
}
else if (chan->SourceType == SOURCE_Unattached)
{
if (chan->UserData < 0 || !validSectorIndex(chan->UserData)) return false; // not a vaild sector sound.
sndx = int(chan->Point[0] * 16);
sndy = int(chan->Point[1] * -16);
searchsect = §or[chan->UserData];
}
if (searchsect == nullptr) return false;
int nDist = approxDist(sndx - actor->spr.pos.X, sndy - actor->spr.pos.Y);
if (nDist > hearDist) return false;
int sndnum = chan->OrgID;
// N same sounds per single enemy
for (int f = 0; f < sndCnt; f++)
{
if (patrolBonkles[f].snd != sndnum) continue;
else if (++patrolBonkles[f].cur >= patrolBonkles[f].max)
return false;
}
if (sndCnt < kMaxPatrolFoundSounds - 1)
patrolBonkles[sndCnt++].snd = sndnum;
bool found = false;
BloodSectIterator it(searchsect);
while (auto act = it.Next())
{
if (act->GetOwner() == pPlayer->actor)
{
found = true;
break;
}
}
if (!found) return false;
f = ClipLow((hearDist - nDist) / 8, 0);
int sndvol = int(chan->Volume * (80.f / 0.8f));
hearChance += mulscale8(sndvol, f) + Random(gGameOptions.nDifficulty);
return (hearChance >= kMaxPatrolSpotValue);
});
if (invisible && hearChance >= kMaxPatrolSpotValue >> 2)
{
newtarget = pPlayer->actor;
pPlayer->pwUpTime[kPwUpShadowCloak] = 0;
invisible = false;
break;
}
}
if (!invisible && (!deaf || !blind))
{
if (stealth)
{
switch (pPlayer->lifeMode)
{
case kModeHuman:
case kModeHumanShrink:
if (pPlayer->lifeMode == kModeHumanShrink)
{
seeDist -= mulscale8(164, seeDist);
feelDist -= mulscale8(164, feelDist);
}
if (pPlayer->posture == kPostureCrouch)
{
seeDist -= mulscale8(64, seeDist);
feelDist -= mulscale8(128, feelDist);
}
break;
case kModeHumanGrown:
if (pPlayer->posture != kPostureCrouch)
{
seeDist += mulscale8(72, seeDist);
feelDist += mulscale8(64, feelDist);
}
else
{
seeDist += mulscale8(48, seeDist);
}
break;
}
}
bool itCanHear = false; bool itCanSee = false;
feelDist = ClipLow(feelDist, 0);
seeDist = ClipLow(seeDist, 0);
if (hearDist)
{
DBloodActor* act = pPlayer->actor;
itCanHear = (!deaf && (nDist < hearDist || hearChance > 0));
if (act && itCanHear && nDist < feelDist && (act->vel.X || act->vel.Y || act->vel.Z))
hearChance += ClipLow(mulscale8(1, ClipLow(((feelDist - nDist) + (abs(act->vel.X) + abs(act->vel.Y) + abs(act->vel.Z))) >> 6, 0)), 0);
}
if (seeDist)
{
int periphery = ClipLow(pDudeInfo->periphery, kAng60);
int nDeltaAngle = abs(((getangle(dx, dy) + 1024 - actor->spr.ang) & 2047) - 1024);
if ((itCanSee = (!blind && nDist < seeDist && nDeltaAngle < periphery)) == true)
{
int base = 100 + ((20 * gGameOptions.nDifficulty) - (nDeltaAngle / 5));
//seeChance = base - MulScale(ClipRange(5 - gGameOptions.nDifficulty, 1, 4), nDist >> 1, 16);
//scale(0x40000, a6, dist2);
int d = nDist >> 2;
int m = DivScale(d, 0x2000, 8);
int t = MulScale(d, m, 8);
//int n = mulscale8(nDeltaAngle >> 2, 64);
seeChance = ClipRange(DivScale(base, t, 8), 0, kMaxPatrolSpotValue >> 1);
//seeChance = scale(0x1000, base, t);
//viewSetSystemMessage("SEE CHANCE: %d, BASE %d, DIST %d, T %d", seeChance, base, nDist, t);
//itCanSee = false;
}
}
if (!itCanSee && !itCanHear)
continue;
if (stealth)
{
// search in stealth regions to modify spot chances
BloodStatIterator it(kStatModernStealthRegion);
while (auto steal = it.Next())
{
if (!steal->hasX())
continue;
if (steal->xspr.locked) // ignore locked regions
continue;
bool fixd = (steal->spr.flags & kModernTypeFlag1); // fixed percent value
bool both = (steal->spr.flags & kModernTypeFlag4); // target AND dude must be in this region
bool dude = (both || (steal->spr.flags & kModernTypeFlag2)); // dude must be in this region
bool trgt = (both || !dude); // target must be in this region
bool crouch = (steal->spr.flags & kModernTypeFlag8); // target must crouch
//bool floor = (iactor->spr.cstat & CSTAT_SPRITE_BLOCK); // target (or dude?) must touch floor of the sector
if (trgt)
{
if (steal->xspr.data1 > 0)
{
if (approxDist(abs(steal->spr.pos.X - plActor->spr.pos.X) >> 4, abs(steal->spr.pos.Y - plActor->spr.pos.Y) >> 4) >= steal->xspr.data1)
continue;
}
else if (plActor->sector() != steal->sector())
continue;
if (crouch && pPlayer->posture == kPostureStand)
continue;
}
if (dude)
{
if (steal->xspr.data1 > 0)
{
if (approxDist(abs(steal->spr.pos.X - actor->spr.pos.X) >> 4, abs(steal->spr.pos.Y - actor->spr.pos.Y) >> 4) >= steal->xspr.data1)
continue;
}
else if (plActor->sector() != steal->sector())
continue;
}
if (itCanHear)
{
if (fixd)
hearChance = ClipLow(hearChance, steal->xspr.data2);
mod = (hearChance * steal->xspr.data2) / kPercFull;
if (fixd) hearChance = mod; else hearChance += mod;
hearChance = ClipRange(hearChance, -kMaxPatrolSpotValue, kMaxPatrolSpotValue);
}
if (itCanSee)
{
if (fixd)
seeChance = ClipLow(seeChance, steal->xspr.data3);
mod = (seeChance * steal->xspr.data3) / kPercFull;
if (fixd) seeChance = mod; else seeChance += mod;
seeChance = ClipRange(seeChance, -kMaxPatrolSpotValue, kMaxPatrolSpotValue);
}
// trigger this region if target gonna be spot
if (steal->xspr.txID && actor->xspr.data3 + hearChance + seeChance >= kMaxPatrolSpotValue)
trTriggerSprite(steal, kCmdToggle);
// continue search another stealth regions to affect chances
}
}
if (itCanHear && hearChance > 0)
{
DPrintf(DMSG_SPAMMY, "Patrol dude #%d hearing the Player #%d.", actor->GetIndex(), pPlayer->nPlayer + 1);
actor->xspr.data3 = ClipRange(actor->xspr.data3 + hearChance, -kMaxPatrolSpotValue, kMaxPatrolSpotValue);
if (!stealth)
{
newtarget = pPlayer->actor;
break;
}
}
if (itCanSee && seeChance > 0)
{
//DPrintf(DMSG_SPAMMY, "Patrol dude #%d seeing the Player #%d.", actor->GetIndex(), pPlayer->nPlayer + 1);
//actor->xspr.data3 += seeChance;
actor->xspr.data3 = ClipRange(actor->xspr.data3 + seeChance, -kMaxPatrolSpotValue, kMaxPatrolSpotValue);
if (!stealth)
{
newtarget = pPlayer->actor;
break;
}
}
}
// add check for corpses?
if ((actor->xspr.data3 = ClipRange(actor->xspr.data3, 0, kMaxPatrolSpotValue)) == kMaxPatrolSpotValue)
{
newtarget = pPlayer->actor;
break;
}
//int perc = (100 * ClipHigh(actor->xspr.data3, kMaxPatrolSpotValue)) / kMaxPatrolSpotValue;
//viewSetSystemMessage("%d / %d / %d / %d", hearChance, seeDist, seeChance, perc);
}
if (newtarget) return newtarget;
actor->xspr.data3 -= ClipLow(((kPercFull * actor->xspr.data3) / kMaxPatrolSpotValue) >> 2, 3);
return nullptr;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void aiPatrolFlagsMgr(DBloodActor* sourceactor, DBloodActor* destactor, bool copy, bool init)
{
// copy flags
if (copy)
{
destactor->xspr.dudeFlag4 = sourceactor->xspr.dudeFlag4;
destactor->xspr.dudeAmbush = sourceactor->xspr.dudeAmbush;
destactor->xspr.dudeGuard = sourceactor->xspr.dudeGuard;
destactor->xspr.dudeDeaf = sourceactor->xspr.dudeDeaf;
destactor->xspr.unused1 = sourceactor->xspr.unused1;
if (sourceactor->xspr.unused1 & kDudeFlagStealth) destactor->xspr.unused1 |= kDudeFlagStealth;
else destactor->xspr.unused1 &= ~kDudeFlagStealth;
}
// do init
if (init)
{
if (!destactor->xspr.dudeFlag4)
{
if (aiInPatrolState(destactor->xspr.aiState))
aiPatrolStop(destactor, nullptr);
}
else
{
if (aiInPatrolState(destactor->xspr.aiState))
return;
destactor->SetTarget(nullptr);
destactor->xspr.stateTimer = 0;
aiPatrolSetMarker(destactor);
if (spriteIsUnderwater(destactor)) aiPatrolState(destactor, kAiStatePatrolWaitW);
else aiPatrolState(destactor, kAiStatePatrolWaitL);
destactor->xspr.data3 = 0; // reset the spot progress
}
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
bool aiPatrolGetPathDir(DBloodActor* actor, DBloodActor* marker)
{
if (actor->xspr.unused2 == kPatrolMoveForward) return (marker->xspr.data2 == -2) ? (bool)kPatrolMoveBackward : (bool)kPatrolMoveForward;
else return (findNextMarker(marker, kPatrolMoveBackward) != nullptr) ? (bool)kPatrolMoveBackward : (bool)kPatrolMoveForward;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void aiPatrolThink(DBloodActor* actor)
{
assert(actor->spr.type >= kDudeBase && actor->spr.type < kDudeMax);
DBloodActor* targetactor;
int stateTimer;
auto markeractor = actor->GetTarget();
if ((targetactor = aiPatrolSearchTargets(actor)) != nullptr)
{
aiPatrolStop(actor, targetactor, actor->xspr.dudeAmbush);
return;
}
bool crouch = (actor->xspr.unused1 & kDudeFlagCrouch), uwater = spriteIsUnderwater(actor);
if (markeractor == nullptr || (actor->spr.type == kDudeModernCustom && ((uwater && !canSwim(actor)) || !canWalk(actor))))
{
aiPatrolStop(actor, nullptr);
return;
}
const DUDEINFO_EXTRA* pExtra = &gDudeInfoExtra[actor->spr.type - kDudeBase];
bool isFinal = ((!actor->xspr.unused2 && markeractor->xspr.data2 == -1) || (actor->xspr.unused2 && markeractor->xspr.data1 == -1));
bool reached = false;
if (aiPatrolWaiting(actor->xspr.aiState))
{
//viewSetSystemMessage("WAIT %d / %d", actor->xspr.targetY, actor->xspr.stateTimer);
if (actor->xspr.stateTimer > 0 || markeractor->xspr.data1 == markeractor->xspr.data2)
{
if (pExtra->flying)
actor->vel.Z = Random2(0x8000);
// turn while waiting
if (markeractor->spr.flags & kModernTypeFlag16)
{
stateTimer = actor->xspr.stateTimer;
if (--actor->xspr.unused4 <= 0)
{
if (uwater) aiPatrolState(actor, kAiStatePatrolTurnW);
else if (crouch) aiPatrolState(actor, kAiStatePatrolTurnC);
else aiPatrolState(actor, kAiStatePatrolTurnL);
actor->xspr.unused4 = kMinPatrolTurnDelay + Random(kPatrolTurnDelayRange);
}
// must restore stateTimer for waiting
actor->xspr.stateTimer = stateTimer;
}
return;
}
// trigger at departure
if (markeractor->xspr.triggerOff)
{
// send command
if (markeractor->xspr.txID)
{
evSendActor(markeractor, markeractor->xspr.txID, (COMMAND_ID)markeractor->xspr.command);
// copy dude flags for current dude
}
else if (markeractor->xspr.command == kCmdDudeFlagsSet)
{
aiPatrolFlagsMgr(markeractor, actor, true, true);
if (!actor->xspr.dudeFlag4) // this dude is not in patrol anymore
return;
}
}
// release the enemy
if (isFinal)
{
aiPatrolStop(actor, nullptr);
return;
}
// move next marker
aiPatrolSetMarker(actor);
}
else if (aiPatrolTurning(actor->xspr.aiState))
{
//viewSetSystemMessage("TURN");
if ((int)actor->spr.ang == (int)actor->xspr.goalAng)
{
// save imer for waiting
stateTimer = actor->xspr.stateTimer;
if (uwater) aiPatrolState(actor, kAiStatePatrolWaitW);
else if (crouch) aiPatrolState(actor, kAiStatePatrolWaitC);
else aiPatrolState(actor, kAiStatePatrolWaitL);
// must restore it
actor->xspr.stateTimer = stateTimer;
}
return;
}
else if ((reached = aiPatrolMarkerReached(actor)) == true)
{
markeractor->xspr.isTriggered = markeractor->xspr.triggerOnce; // can't select this marker for path anymore if true
if (markeractor->spr.flags > 0)
{
if ((markeractor->spr.flags & kModernTypeFlag2) && (markeractor->spr.flags & kModernTypeFlag1)) crouch = !crouch;
else if (markeractor->spr.flags & kModernTypeFlag2) crouch = false;
else if ((markeractor->spr.flags & kModernTypeFlag1) && aiCanCrouch(actor)) crouch = true;
}
if (markeractor->xspr.waitTime > 0 || markeractor->xspr.data1 == markeractor->xspr.data2)
{
// take marker's angle
if (!(markeractor->spr.flags & kModernTypeFlag4))
{
actor->xspr.goalAng = ((!(markeractor->spr.flags & kModernTypeFlag8) && actor->xspr.unused2) ? markeractor->spr.ang + kAng180 : markeractor->spr.ang) & 2047;
if ((int)actor->spr.ang != (int)actor->xspr.goalAng) // let the enemy play move animation while turning
return;
}
if (markeractor->GetOwner() == actor)
markeractor->SetOwner(aiPatrolMarkerBusy(actor, markeractor));
// trigger at arrival
if (markeractor->xspr.triggerOn)
{
// send command
if (markeractor->xspr.txID)
{
evSendActor(markeractor, markeractor->xspr.txID, (COMMAND_ID)markeractor->xspr.command);
}
else if (markeractor->xspr.command == kCmdDudeFlagsSet)
{
// copy dude flags for current dude
aiPatrolFlagsMgr(markeractor, actor, true, true);
if (!actor->xspr.dudeFlag4) // this dude is not in patrol anymore
return;
}
}
if (uwater) aiPatrolState(actor, kAiStatePatrolWaitW);
else if (crouch) aiPatrolState(actor, kAiStatePatrolWaitC);
else aiPatrolState(actor, kAiStatePatrolWaitL);
if (markeractor->xspr.waitTime)
actor->xspr.stateTimer = (markeractor->xspr.waitTime * 120) / 10;
if (markeractor->spr.flags & kModernTypeFlag16)
actor->xspr.unused4 = kMinPatrolTurnDelay + Random(kPatrolTurnDelayRange);
return;
}
else
{
if (markeractor->GetOwner() == actor)
markeractor->SetOwner(aiPatrolMarkerBusy(actor, markeractor));
if (markeractor->xspr.triggerOn || markeractor->xspr.triggerOff)
{
if (markeractor->xspr.txID)
{
// send command at arrival
if (markeractor->xspr.triggerOn)
evSendActor(markeractor, markeractor->xspr.txID, (COMMAND_ID)markeractor->xspr.command);
// send command at departure
if (markeractor->xspr.triggerOff)
evSendActor(markeractor, markeractor->xspr.txID, (COMMAND_ID)markeractor->xspr.command);
// copy dude flags for current dude
}
else if (markeractor->xspr.command == kCmdDudeFlagsSet)
{
aiPatrolFlagsMgr(markeractor, actor, true, true);
if (!actor->xspr.dudeFlag4) // this dude is not in patrol anymore
return;
}
}
// release the enemy
if (isFinal)
{
aiPatrolStop(actor, nullptr);
return;
}
// move the next marker
aiPatrolSetMarker(actor);
}
}
nnExtAiSetDirection(actor, getangle(markeractor->spr.pos.X - actor->spr.pos.X, markeractor->spr.pos.Y - actor->spr.pos.Y));
if (aiPatrolMoving(actor->xspr.aiState) && !reached) return;
else if (uwater) aiPatrolState(actor, kAiStatePatrolMoveW);
else if (crouch) aiPatrolState(actor, kAiStatePatrolMoveC);
else aiPatrolState(actor, kAiStatePatrolMoveL);
return;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
int listTx(DBloodActor* actor, int tx)
{
if (txIsRanged(actor))
{
if (tx == -1) tx = actor->xspr.data1;
else if (tx < actor->xspr.data4) tx++;
else tx = -1;
}
else
{
if (tx == -1)
{
for (int i = 0; i <= 3; i++)
{
if ((tx = GetDataVal(actor, i)) <= 0) continue;
else return tx;
}
}
else
{
int saved = tx; bool savedFound = false;
for (int i = 0; i <= 3; i++)
{
tx = GetDataVal(actor, i);
if (savedFound && tx > 0) return tx;
else if (tx != saved) continue;
else savedFound = true;
}
}
tx = -1;
}
return tx;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
DBloodActor* evrIsRedirector(DBloodActor* actor)
{
if (actor)
{
switch (actor->spr.type)
{
case kModernRandomTX:
case kModernSequentialTX:
if (actor->hasX() && actor->xspr.command == kCmdLink && !actor->xspr.locked) return actor;
break;
}
}
return nullptr;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
DBloodActor* evrListRedirectors(int objType, sectortype* pSector, walltype* pWall, DBloodActor* objActor, DBloodActor* pXRedir, int* tx)
{
if (!gEventRedirectsUsed) return nullptr;
else if (pXRedir && (*tx = listTx(pXRedir, *tx)) != -1)
return pXRedir;
int id = 0;
switch (objType)
{
case OBJ_SECTOR:
{
if (!pSector->hasX()) return nullptr;
id = pSector->xs().txID;
break;
}
case OBJ_SPRITE:
if (!objActor) return nullptr;
id = objActor->xspr.txID;
break;
case OBJ_WALL:
{
if (!pWall->hasX()) return nullptr;
id = pWall->xw().txID;
break;
}
default:
return nullptr;
}
bool prevFound = false;
for (int i = bucketHead[id]; i < bucketHead[id + 1]; i++)
{
if (!rxBucket[i].isActor()) continue;
auto rxactor = rxBucket[i].actor();
auto pXSpr = evrIsRedirector(rxactor);
if (!pXSpr) continue;
else if (prevFound || pXRedir == nullptr)
{
*tx = listTx(pXSpr, *tx);
return pXSpr;
}
else if (pXRedir != pXSpr) continue;
else prevFound = true;
}
*tx = -1;
return NULL;
}
//---------------------------------------------------------------------------
//
// this function checks if all TX objects have the same value
//
//---------------------------------------------------------------------------
bool incDecGoalValueIsReached(DBloodActor* actor)
{
if (actor->xspr.data3 != actor->xspr.sysData1) return false;
char buffer[7];
snprintf(buffer, 7, "%d", abs(actor->xspr.data1));
int len = int(strlen(buffer));
int rx = -1;
for (int i = bucketHead[actor->xspr.txID]; i < bucketHead[actor->xspr.txID + 1]; i++)
{
if (!rxBucket[i].isActor()) continue;
auto rxactor = rxBucket[i].actor();
if (evrIsRedirector(rxactor)) continue;
for (int a = 0; a < len; a++)
{
if (getDataFieldOfObject(rxBucket[i], (buffer[a] - 52) + 4) != actor->xspr.data3)
return false;
}
}
DBloodActor* pXRedir = nullptr; // check redirected TX buckets
while ((pXRedir = evrListRedirectors(OBJ_SPRITE, nullptr, nullptr, actor, pXRedir, &rx)) != nullptr)
{
for (int i = bucketHead[rx]; i < bucketHead[rx + 1]; i++)
{
for (int a = 0; a < len; a++)
{
if (getDataFieldOfObject(rxBucket[i], (buffer[a] - 52) + 4) != actor->xspr.data3)
return false;
}
}
}
return true;
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void seqSpawnerOffSameTx(DBloodActor* actor)
{
BloodSpriteIterator it;
while (auto iactor = it.Next())
{
if (iactor->spr.type != kModernSeqSpawner || !iactor->hasX() || iactor == actor) continue;
if (iactor->xspr.txID == actor->xspr.txID && iactor->xspr.state == 1)
{
evKillActor(iactor);
iactor->xspr.state = 0;
}
}
}
//---------------------------------------------------------------------------
//
// this function can be called via sending numbered command to TX kChannelModernEndLevelCustom
// it allows to set custom next level instead of taking it from INI file.
//
//---------------------------------------------------------------------------
void levelEndLevelCustom(int nLevel)
{
gGameOptions.uGameFlags |= GF_AdvanceLevel;
gNextLevel = FindMapByIndex(currentLevel->cluster, nLevel + 1);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void callbackUniMissileBurst(DBloodActor* actor, sectortype*) // 22
{
if (!actor) return;
if (actor->spr.statnum != kStatProjectile) return;
int nAngle = getangle(actor->vel.X, actor->vel.Y);
int nRadius = 0x55555;
for (int i = 0; i < 8; i++)
{
auto burstactor = actSpawnSprite(actor, 5);
if (!burstactor) break;
burstactor->spr.type = actor->spr.type;
burstactor->spr.shade = actor->spr.shade;
burstactor->spr.picnum = actor->spr.picnum;
burstactor->spr.cstat = actor->spr.cstat;
if ((burstactor->spr.cstat & CSTAT_SPRITE_BLOCK))
{
burstactor->spr.cstat &= ~CSTAT_SPRITE_BLOCK; // we don't want missiles impact each other
evPostActor(burstactor, 100, kCallbackMissileSpriteBlock); // so set blocking flag a bit later
}
burstactor->spr.pal = actor->spr.pal;
burstactor->spr.clipdist = actor->spr.clipdist / 4;
burstactor->spr.flags = actor->spr.flags;
burstactor->spr.xrepeat = actor->spr.xrepeat / 2;
burstactor->spr.yrepeat = actor->spr.yrepeat / 2;
burstactor->spr.ang = ((actor->spr.ang + missileInfo[actor->spr.type - kMissileBase].angleOfs) & 2047);
burstactor->SetOwner(actor);
actBuildMissile(burstactor, actor);
int nAngle2 = (i << 11) / 8;
int dx = 0;
int dy = mulscale30r(nRadius, Sin(nAngle2));
int dz = mulscale30r(nRadius, -Cos(nAngle2));
if (i & 1)
{
dy >>= 1;
dz >>= 1;
}
RotateVector(&dx, &dy, nAngle);
burstactor->vel.X += dx;
burstactor->vel.Y += dy;
burstactor->vel.Z += dz;
evPostActor(burstactor, 960, kCallbackRemove);
}
evPostActor(actor, 0, kCallbackRemove);
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
void callbackMakeMissileBlocking(DBloodActor* actor, sectortype*) // 23
{
if (!actor || actor->spr.statnum != kStatProjectile) return;
actor->spr.cstat |= CSTAT_SPRITE_BLOCK;
}
void callbackGenDudeUpdate(DBloodActor* actor, sectortype*) // 24
{
if (actor)
genDudeUpdate(actor);
}
void clampSprite(DBloodActor* actor, int which)
{
int zTop, zBot;
if (actor->insector())
{
GetActorExtents(actor, &zTop, &zBot);
if (which & 0x01)
actor->spr.pos.Z += ClipHigh(getflorzofslopeptr(actor->sector(), actor->spr.pos.X, actor->spr.pos.Y) - zBot, 0);
if (which & 0x02)
actor->spr.pos.Z += ClipLow(getceilzofslopeptr(actor->sector(), actor->spr.pos.X, actor->spr.pos.Y) - zTop, 0);
}
}
//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------
FSerializer& Serialize(FSerializer& arc, const char* keyname, GENDUDEEXTRA& w, GENDUDEEXTRA* def)
{
if (arc.BeginObject(keyname))
{
arc.Array("initvals", w.initVals, 3)
.Array("availdeaths", w.availDeaths, kDamageMax)
("movespeed", w.moveSpeed)
("firedist", w.fireDist)
("throwdist", w.throwDist)
("curweapon", w.curWeapon)
("weapontype", w.weaponType)
("basedispersion", w.baseDispersion)
("slavecount", w.slaveCount)
("lifeleech", w.pLifeLeech)
.Array("slaves", w.slave, w.slaveCount)
.Array("dmgcontrol", w.dmgControl, kDamageMax)
.Array("updreq", w.updReq, kGenDudePropertyMax)
("flags", w.flags)
.EndObject();
}
return arc;
}
FSerializer& Serialize(FSerializer& arc, const char* keyname, SPRITEMASS& w, SPRITEMASS* def)
{
static SPRITEMASS nul;
if (arc.isReading()) w = {};
if (arc.BeginObject(keyname))
{
arc("seq", w.seqId, &nul.seqId)
("picnum", w.picnum, &nul.picnum)
("xrepeat", w.xrepeat, &nul.xrepeat)
("yrepeat", w.yrepeat, &nul.yrepeat)
("clipdist", w.clipdist)
("mass", w.mass)
("airvel", w.airVel)
("fraction", w.fraction)
.EndObject();
}
return arc;
}
FSerializer& Serialize(FSerializer& arc, const char* keyname, OBJECTS_TO_TRACK& w, OBJECTS_TO_TRACK* def)
{
static OBJECTS_TO_TRACK nul;
if (arc.isReading()) w = {};
if (arc.BeginObject(keyname))
{
arc("obj", w.obj, &nul.obj)
("cmd", w.cmd, &nul.cmd)
.EndObject();
}
return arc;
}
FSerializer& Serialize(FSerializer& arc, const char* keyname, TRCONDITION& w, TRCONDITION* def)
{
static TRCONDITION nul;
if (arc.isReading()) w = {};
if (arc.BeginObject(keyname))
{
arc("length", w.length, &nul.length)
("xindex", w.actor, &nul.actor)
.Array("obj", w.obj, w.length)
.EndObject();
}
return arc;
}
void SerializeNNExts(FSerializer& arc)
{
if (arc.BeginObject("nnexts"))
{
arc("proxyspritescount", gProxySpritesCount)
.Array("proxyspriteslist", gProxySpritesList, gProxySpritesCount)
("sightspritescount", gSightSpritesCount)
.Array("sightspriteslist", gSightSpritesList, gSightSpritesCount)
("physspritescount", gPhysSpritesCount)
.Array("physspriteslist", gPhysSpritesList, gPhysSpritesCount)
("impactspritescount", gImpactSpritesCount)
.Array("impactspriteslist", gImpactSpritesList, gImpactSpritesCount)
("eventredirects", gEventRedirectsUsed)
("trconditioncount", gTrackingCondsCount)
.Array("trcondition", gCondition, gTrackingCondsCount)
.EndObject();
}
}
///////////////////////////////////////////////////////////////////
// This file provides modern features for mappers.
// For full documentation please visit http://cruo.bloodgame.ru/xxsystem
///////////////////////////////////////////////////////////////////
END_BLD_NS
#endif
| 30.820744 | 217 | 0.609282 | [
"object",
"vector"
] |
52024838087178ec7ba822487f21a5ce8ba6af59 | 9,076 | cc | C++ | pipeline.cc | ahojnnes/pycolmap | bd890fea6e488cff506c0073d9c8d44215f707b0 | [
"BSD-3-Clause"
] | null | null | null | pipeline.cc | ahojnnes/pycolmap | bd890fea6e488cff506c0073d9c8d44215f707b0 | [
"BSD-3-Clause"
] | null | null | null | pipeline.cc | ahojnnes/pycolmap | bd890fea6e488cff506c0073d9c8d44215f707b0 | [
"BSD-3-Clause"
] | null | null | null | // Author: Paul-Edouard Sarlin (skydes)
#include "colmap/base/reconstruction.h"
#include "colmap/base/image_reader.h"
#include "colmap/base/camera_models.h"
#include "colmap/util/misc.h"
#include "colmap/feature/sift.h"
#include "colmap/feature/matching.h"
#include "colmap/controllers/incremental_mapper.h"
#include "colmap/exe/feature.h"
#include "colmap/exe/sfm.h"
using namespace colmap;
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/stl_bind.h>
#include <pybind11/iostream.h>
namespace py = pybind11;
using namespace pybind11::literals;
#include "log_exceptions.h"
#include "helpers.h"
void import_images(
const py::object database_path_,
const py::object image_path_,
const CameraMode camera_mode,
const std::string camera_model,
const std::vector<std::string> image_list
) {
std::string database_path = py::str(database_path_).cast<std::string>();
THROW_CHECK_FILE_EXISTS(database_path);
std::string image_path = py::str(image_path_).cast<std::string>();
THROW_CHECK_DIR_EXISTS(image_path);
ImageReaderOptions options;
options.database_path = database_path;
options.image_path = image_path;
options.image_list = image_list;
UpdateImageReaderOptionsFromCameraMode(options, camera_mode);
if (!camera_model.empty()) {
options.camera_model = camera_model;
}
THROW_CUSTOM_CHECK_MSG(
ExistsCameraModelWithName(options.camera_model),
std::invalid_argument,
(std::string("Invalid camera model: ")+ options.camera_model).c_str()
);
Database database(options.database_path);
ImageReader image_reader(options, &database);
while (image_reader.NextIndex() < image_reader.NumImages()) {
Camera camera;
Image image;
Bitmap bitmap;
if (image_reader.Next(&camera, &image, &bitmap, nullptr) !=
ImageReader::Status::SUCCESS) {
continue;
}
DatabaseTransaction database_transaction(&database);
if (image.ImageId() == kInvalidImageId) {
image.SetImageId(database.WriteImage(image));
}
}
}
Camera infer_camera_from_image(const py::object image_path_) {
std::string image_path = py::str(image_path_).cast<std::string>();
THROW_CHECK_FILE_EXISTS(image_path);
Bitmap bitmap;
THROW_CUSTOM_CHECK_MSG(
bitmap.Read(image_path, false),
std::invalid_argument,
(std::string("Cannot read image file: ") + image_path).c_str()
);
ImageReaderOptions options;
Camera camera;
camera.SetCameraId(kInvalidCameraId);
camera.SetModelIdFromName(options.camera_model);
double focal_length = 0.0;
if (bitmap.ExifFocalLength(&focal_length)) {
camera.SetPriorFocalLength(true);
} else {
focal_length = options.default_focal_length_factor *
std::max(bitmap.Width(), bitmap.Height());
camera.SetPriorFocalLength(false);
}
camera.InitializeWithId(camera.ModelId(), focal_length,
bitmap.Width(), bitmap.Height());
THROW_CUSTOM_CHECK_MSG(
camera.VerifyParams(),
std::invalid_argument,
(std::string("Invalid camera params: ") + camera.ParamsToString()).c_str()
);
return camera;
}
void verify_matches(
const py::object database_path_,
const py::object pairs_path_,
const int max_num_trials,
const float min_inlier_ratio
) {
std::string database_path = py::str(database_path_).cast<std::string>();
THROW_CHECK_FILE_EXISTS(database_path);
std::string pairs_path = py::str(pairs_path_).cast<std::string>();
THROW_CHECK_FILE_EXISTS(pairs_path);
py::gil_scoped_release release; // verification is multi-threaded
SiftMatchingOptions options;
options.use_gpu = false;
options.max_num_trials = max_num_trials;
options.min_inlier_ratio = min_inlier_ratio;
ImagePairsMatchingOptions matcher_options;
matcher_options.match_list_path = pairs_path;
ImagePairsFeatureMatcher feature_matcher(
matcher_options, options, database_path);
feature_matcher.Start();
feature_matcher.Wait();
}
Reconstruction triangulate_points(
Reconstruction reconstruction,
const py::object database_path_,
const py::object image_path_,
const py::object output_path_,
const bool clear_points
) {
std::string database_path = py::str(database_path_).cast<std::string>();
THROW_CHECK_FILE_EXISTS(database_path);
std::string image_path = py::str(image_path_).cast<std::string>();
THROW_CHECK_DIR_EXISTS(image_path);
std::string output_path = py::str(output_path_).cast<std::string>();
CreateDirIfNotExists(output_path);
py::gil_scoped_release release;
IncrementalMapperOptions mapper_options;
RunPointTriangulatorImpl(
reconstruction, database_path, image_path, output_path,
mapper_options, clear_points);
return reconstruction;
}
// Copied from colmap/exe/sfm.cc
std::map<size_t, Reconstruction> incremental_mapping(
const py::object database_path_,
const py::object image_path_,
const py::object output_path_,
const int num_threads,
const int min_num_matches
) {
std::string database_path = py::str(database_path_).cast<std::string>();
THROW_CHECK_FILE_EXISTS(database_path);
std::string image_path = py::str(image_path_).cast<std::string>();
THROW_CHECK_DIR_EXISTS(image_path);
std::string output_path = py::str(output_path_).cast<std::string>();
CreateDirIfNotExists(output_path);
py::gil_scoped_release release;
IncrementalMapperOptions options;
options.num_threads = num_threads;
options.min_num_matches = min_num_matches;
ReconstructionManager reconstruction_manager;
IncrementalMapperController mapper(&options, image_path, database_path,
&reconstruction_manager);
// In case a new reconstruction is started, write results of individual sub-
// models to as their reconstruction finishes instead of writing all results
// after all reconstructions finished.
size_t prev_num_reconstructions = 0;
std::map<size_t, Reconstruction> reconstructions;
mapper.AddCallback(
IncrementalMapperController::LAST_IMAGE_REG_CALLBACK, [&]() {
// If the number of reconstructions has not changed, the last model
// was discarded for some reason.
if (reconstruction_manager.Size() > prev_num_reconstructions) {
const std::string reconstruction_path = JoinPaths(
output_path, std::to_string(prev_num_reconstructions));
const auto& reconstruction =
reconstruction_manager.Get(prev_num_reconstructions);
CreateDirIfNotExists(reconstruction_path);
reconstruction.Write(reconstruction_path);
reconstructions[prev_num_reconstructions] = reconstruction;
prev_num_reconstructions = reconstruction_manager.Size();
}
});
mapper.Start();
mapper.Wait();
return reconstructions;
}
void init_pipeline(py::module& m) {
auto PyCameraMode = py::enum_<CameraMode>(m, "CameraMode")
.value("AUTO", CameraMode::AUTO)
.value("SINGLE", CameraMode::SINGLE)
.value("PER_FOLDER", CameraMode::PER_FOLDER)
.value("PER_IMAGE", CameraMode::PER_IMAGE);
AddStringToEnumConstructor(PyCameraMode);
m.def("import_images",
&import_images,
py::arg("database_path"),
py::arg("image_path"),
py::arg("camera_mode") = CameraMode::AUTO,
py::arg("camera_model") = std::string(),
py::arg("image_list") = std::vector<std::string>(),
"Import images into a database");
m.def("verify_matches",
&verify_matches,
py::arg("database_path"),
py::arg("pairs_path"),
py::arg("max_num_trials") = SiftMatchingOptions().max_num_trials,
py::arg("min_inlier_ratio") = SiftMatchingOptions().min_inlier_ratio,
"Run geometric verification of the matches");
m.def("triangulate_points",
&triangulate_points,
py::arg("reconstruction"),
py::arg("database_path"),
py::arg("image_path"),
py::arg("output_path"),
py::arg("clear_points") = true,
"Triangulate 3D points from known camera poses");
m.def("incremental_mapping",
&incremental_mapping,
py::arg("database_path"),
py::arg("image_path"),
py::arg("output_path"),
py::arg("num_threads") = IncrementalMapperOptions().num_threads,
py::arg("min_num_matches") = IncrementalMapperOptions().min_num_matches,
"Triangulate 3D points from known poses");
m.def("infer_camera_from_image",
&infer_camera_from_image,
py::arg("image_path"),
"Guess the camera parameters from the EXIF metadata");
}
| 36.015873 | 82 | 0.674306 | [
"object",
"vector",
"model",
"3d"
] |
5202ca16b5c22a6f75da152a27b870143bc4a8ad | 21,296 | hpp | C++ | Include/SA/Maths/Matrix/Matrix4.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | 1 | 2022-01-20T23:17:18.000Z | 2022-01-20T23:17:18.000Z | Include/SA/Maths/Matrix/Matrix4.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | Include/SA/Maths/Matrix/Matrix4.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Sapphire Development Team. All Rights Reserved.
#pragma once
#ifndef SAPPHIRE_MATHS_MATRIX4_GUARD
#define SAPPHIRE_MATHS_MATRIX4_GUARD
#include <SA/Core/Support/Pragma.hpp>
#include <SA/Core/Support/Intrinsics.hpp>
#include <SA/Maths/Algorithms/Lerp.hpp>
#include <SA/Maths/Matrix/Matrix4Base.hpp>
/**
* \file Matrix4.hpp
*
* \brief <b>Matrix 4x4</b> type implementation.
*
* \ingroup Maths
* \{
*/
namespace Sa
{
template <typename T>
struct Vec3;
template <typename T>
struct Vec4;
template <typename T>
struct Quat;
template <typename T, MatrixMajor major>
struct Mat3;
/**
* \brief \e Matrix 4x4 Sapphire-Maths class.
*
* must be align at 32 for intrinsics.
*
* \tparam T Type of the matrix.
*/
#if SA_INTRISC
// Disable padding struct warning.
SA_PRAGMA_SDWARN_MSVC(4324)
template <typename T, MatrixMajor major = MatrixMajor::Default>
struct alignas(32) Mat4 : public Intl::Mat4_Base<T, major>
#else
template <typename T, MatrixMajor major = MatrixMajor::Default>
struct Mat4 : public Intl::Mat4_Base<T, major>
#endif
{
using Intl::Mat4_Base<T, major>::e00;
using Intl::Mat4_Base<T, major>::e01;
using Intl::Mat4_Base<T, major>::e02;
using Intl::Mat4_Base<T, major>::e03;
using Intl::Mat4_Base<T, major>::e10;
using Intl::Mat4_Base<T, major>::e11;
using Intl::Mat4_Base<T, major>::e12;
using Intl::Mat4_Base<T, major>::e13;
using Intl::Mat4_Base<T, major>::e20;
using Intl::Mat4_Base<T, major>::e21;
using Intl::Mat4_Base<T, major>::e22;
using Intl::Mat4_Base<T, major>::e23;
using Intl::Mat4_Base<T, major>::e30;
using Intl::Mat4_Base<T, major>::e31;
using Intl::Mat4_Base<T, major>::e32;
using Intl::Mat4_Base<T, major>::e33;
//{ Constants
/**
* \brief Zero Mat4 constant
*
* {0, 0, 0, 0}
* {0, 0, 0, 0}
* {0, 0, 0, 0}
* {0, 0, 0, 0}
*/
static const Mat4 Zero;
/**
* \brief Identity Mat4 constant
*
* {1, 0, 0, 0}
* {0, 1, 0, 0}
* {0, 0, 1, 0}
* {0, 0, 0, 1}
*/
static const Mat4 Identity;
//}
//{ Constructors
using Intl::Mat4_Base<T, major>::Mat4_Base;
/**
* \brief \e Value constructor from another Mat4 type.
*
* \tparam TIn Type of the input Mat4.
*
* \param[in] _other Mat4 to construct from.
*/
template <typename TIn>
constexpr Mat4(const Mat4<TIn, major>& _other) noexcept;
/**
* \brief \e Value constructor from another Mat3 type.
*
* \tparam TIn Type of the input Mat3.
*
* \param[in] _other Mat3 to construct from.
*/
template <typename TIn>
constexpr Mat4(const Mat3<TIn, major>& _other) noexcept;
//{ Equals
/**
* \brief Whether this matrix is a zero matrix.
*
* \return True if this is a zero matrix.
*/
constexpr bool IsZero() const noexcept;
/**
* \brief Whether this matrix is an identity matrix.
*
* \return True if this is an identity matrix.
*/
constexpr bool IsIdentity() const noexcept;
/**
* \brief \e Compare 2 Matrix.
*
* \param[in] _other Other matrix to compare to.
* \param[in] _threshold Allowed threshold to accept equality.
*
* \return Whether this and _other are equal.
*/
constexpr bool Equals(const Mat4& _other, T _threshold = std::numeric_limits<T>::epsilon()) const noexcept;
/**
* \brief \e Compare 2 matrix equality.
*
* \param[in] _rhs Other matrix to compare to.
*
* \return Whether this and _rhs are equal.
*/
constexpr bool operator==(const Mat4& _rhs) const noexcept;
/**
* \brief \e Compare 2 matrix inequality.
*
* \param[in] _rhs Other matrix to compare to.
*
* \return Whether this and _rhs are non-equal.
*/
constexpr bool operator!=(const Mat4& _rhs) const noexcept;
//}
//{ Accessors
/**
* \brief \e Getter of matrix data
*
* \return this matrix as a T*.
*/
T* Data() noexcept;
/**
* \brief <em> Const Getter </em> of matrix data
*
* \return this matrix as a const T*.
*/
const T* Data() const noexcept;
/**
* \brief \e Getter of Value at index.
*
* \param[in] _index Index to access.
*
* \return element at index.
*/
T& At(uint32 _index);
/**
* \brief <em> Const Getter </em> of Value at index.
*
* \param[in] _index Index to access.
*
* \return element at index.
*/
const T& At(uint32 _index) const;
/**
* \brief \e Getter of Value at (x;y).
*
* \param[in] _x row index.
* \param[in] _y column index.
*
* \return element at index.
*/
T& At(uint32 _x, uint32 _y);
/**
* \brief <em> Const Getter </em> of Value at (x;y).
*
* \param[in] _x row index.
* \param[in] _y column index.
*
* \return element at index.
*/
const T& At(uint32 _x, uint32 _y) const;
/**
* \brief \e Access operator by index.
*
* \param[in] _index Index to access.
*
* \return T value at index.
*/
T& operator[](uint32 _index);
/**
* \brief <em> Const Access </em> operator by index.
*
* \param[in] _index Index to access.
*
* \return T value at index.
*/
const T& operator[](uint32 _index) const;
//}
//{ Transpose
/**
* \brief \b Transpose this matrix.
*
* \return self transposed matrix.
*/
Mat4& Transpose() noexcept;
/**
* \brief \b Transpose this matrix.
*
* \return new transposed matrix.
*/
constexpr Mat4 GetTransposed() const noexcept;
//}
//{ Inverse
/**
* \brief \e Compute the determinant of the matrix.
*
* \return Determinant of this matrix.
*/
T Determinant() const noexcept;
/**
* \brief \b Inverse this matrix.
*
* \return self inversed matrix.
*/
Mat4& Inverse() noexcept;
/**
* \brief \b Inverse this matrix.
*
* \return new inversed matrix.
*/
Mat4 GetInversed() const noexcept;
//}
//{ Lerp
/**
* \brief <b> Clamped Lerp </b> from _start to _end at _alpha.
*
* Reference: https://en.wikipedia.org/wiki/Linear_interpolation
*
* \param _start Starting point of the lerp.
* \param _end Ending point of the lerp.
* \param _alpha Alpha of the lerp.
*
* \return interpolation between _start and _end. return _start when _alpha == 0.0f and _end when _alpha == 1.0f.
*/
static Mat4 Lerp(const Mat4& _start, const Mat4& _end, float _alpha) noexcept;
/**
* \brief <b> Unclamped Lerp </b> from _start to _end at _alpha.
*
* Reference: https://en.wikipedia.org/wiki/Linear_interpolation
*
* \param _start Starting point of the lerp.
* \param _end Ending point of the lerp.
* \param _alpha Alpha of the lerp.
*
* \return interpolation between _start and _end. return _start when _alpha == 0.0f and _end when _alpha == 1.0f.
*/
static Mat4 LerpUnclamped(const Mat4& _start, const Mat4& _end, float _alpha) noexcept;
//}
//{ Transform
/**
* \brief \b Optimized translation from Vec3.
*
* Use this to apply scale instead of MakeTranslation() * m;
*
* \param[in] _transl Vector to translate
*
* \return this matrix translated.
*/
Mat4& ApplyTranslation(const Vec3<T>& _transl) noexcept;
/**
* \brief \b Optimized scale from Vec3.
*
* Apply x scale on row 0.
* Apply y scale on row 1.
* Apply z scale on row 2.
* Use this to apply scale instead of MakeScale() * m;
*
* \param[in] _scale Vector for scaling.
*
* \return this matrix scaled.
*/
Mat4& ApplyScale(const Vec3<T>& _scale) noexcept;
/**
* \brief Make <b> translation matrix </b> from vector3.
*
* \param[in] _transl Vector to translate
*
* \return translation matrix.
*/
static Mat4 MakeTranslation(const Vec3<T>& _transl) noexcept;
/**
* \brief Make <b> rotation matrix </b> from quaternion.
*
* \param[in] _rot quaternion to use for rotation.
*
* \return rotation matrix.
*/
static Mat4 MakeRotation(const Quat<T>& _rot) noexcept;
/**
* \brief Make <b> scale matrix </b> from vector3.
*
* \param[in] _scale Vector for scaling.
*
* \return scale matrix.
*/
static Mat4 MakeScale(const Vec3<T>& _scale) noexcept;
/**
* \brief Make <b> transform matrix </b>.
*
* \param[in] _transl Vector for translation.
* \param[in] _rot Quaternion for rotation.
*
* \return transform matrix.
*/
static Mat4 MakeTransform(const Vec3<T>& _transl, const Quat<T>& _rot) noexcept;
/**
* \brief Make <b> transform matrix </b>.
*
* \param[in] _transl Vector for translation.
* \param[in] _scale Vector for scale.
*
* \return transform matrix.
*/
static Mat4 MakeTransform(const Vec3<T>& _transl, const Vec3<T>& _scale) noexcept;
/**
* \brief Make <b> transform matrix </b>.
*
* \param[in] _rot Quaternion for rotation.
* \param[in] _scale Vector for scale.
*
* \return transform matrix.
*/
static Mat4 MakeTransform(const Quat<T>& _rot, const Vec3<T>& _scale) noexcept;
/**
* \brief Make <b> transform matrix </b>.
*
* \param[in] _transl Vector for translation.
* \param[in] _rot Quaternion for rotation.
* \param[in] _scale Vector for scale.
*
* \return transform matrix.
*/
static Mat4 MakeTransform(const Vec3<T>& _transl, const Quat<T>& _rot, const Vec3<T>& _scale) noexcept;
/**
* \brief Make <b> perspective matrix </b>.
*
* \param[in] _fov Perspective FOV.
* \param[in] _aspect Aspect ratio (width/height).
* \param[in] _near Near frustum.
* \param[in] _far Far frustum.
*
* \return perspective matrix.
*/
static Mat4 MakePerspective(T _fov = T(90.0), T _aspect = T(1.0), T _near = T(0.35), T _far = T(10.0)) noexcept;
//}
//{ Operators
using Intl::Mat4_Base<T, major>::operator=;
/**
* \brief \e Getter of the opposite signed matrix.
*
* \return new opposite signed matrix.
*/
constexpr Mat4 operator-() const noexcept;
/**
* \brief \b Scale each matrix component by _scale.
*
* \param[in] _scale Scale value to apply on all components.
*
* \return new matrix scaled.
*/
Mat4 operator*(T _scale) const noexcept;
/**
* \brief <b> Inverse Scale </b> each matrix component by _scale.
*
* \param[in] _scale Inverse scale value to apply on all components.
*
* \return new matrix inverse-scaled.
*/
Mat4 operator/(T _scale) const noexcept;
/**
* \brief \b Add term by term matrix values.
*
* \param[in] _rhs Matrix to add.
*
* \return new matrix result.
*/
Mat4 operator+(const Mat4& _rhs) const noexcept;
/**
* \brief \b Subtract term by term matrix values.
*
* \param[in] _rhs Matrix to substract.
*
* \return new matrix result.
*/
Mat4 operator-(const Mat4& _rhs) const noexcept;
/**
* \brief \b Multiply matrices.
*
* \param[in] _rhs Matrix to multiply to.
*
* \return new matrix result.
*/
Mat4 operator*(const Mat4& _rhs) const noexcept;
/**
* \brief \b Inverse multiply matrices.
*
* \param[in] _rhs Matrix to inverse multiply to.
*
* \return new matrix result.
*/
Mat4 operator/(const Mat4& _rhs) const noexcept;
/**
* \brief transform this vector by this matrix.
*
* Ignore 4th row/column component.
*
* \param[in] _rhs Vector to transform.
*
* \return Transformed vector.
*/
Vec3<T> operator*(const Vec3<T>&_rhs) const noexcept;
/**
* \brief transform this vector by this matrix.
*
* \param[in] _rhs Vector to transform.
*
* \return Transformed vector.
*/
Vec4<T> operator*(const Vec4<T>&_rhs) const noexcept;
/**
* \brief \b Scale each matrix component by _scale.
*
* \param[in] _scale Scale value to apply on all components.
*
* \return self matrix scaled.
*/
Mat4& operator*=(T _scale) noexcept;
/**
* \brief <b> Inverse Scale </b> each matrix component by _scale.
*
* \param[in] _scale Inverse scale value to apply on all components.
*
* \return self matrix inverse-scaled.
*/
Mat4& operator/=(T _scale) noexcept;
/**
* \brief \b Add term by term matrix values.
*
* \param[in] _rhs Matrix to add.
*
* \return self matrix result.
*/
Mat4& operator+=(const Mat4& _rhs) noexcept;
/**
* \brief \b Subtract term by term matrix values.
*
* \param[in] _rhs Matrix to substract.
*
* \return self matrix result.
*/
Mat4& operator-=(const Mat4& _rhs) noexcept;
/**
* \brief \b Multiply matrices.
*
* \param[in] _rhs Matrix to multiply to.
*
* \return self matrix result.
*/
Mat4& operator*=(const Mat4& _rhs) noexcept;
/**
* \brief \b Inverse multiply matrices.
*
* \param[in] _rhs Matrix to inverse multiply to.
*
* \return self matrix result.
*/
Mat4& operator/=(const Mat4& _rhs) noexcept;
//}
#if SA_LOGGING
/**
* \brief ToString implementation
*
* Convert this matrix as a string.
* Print element in memoro order.
*
* \return this as a string.
*/
std::string ToString() const noexcept;
#endif
};
/**
* \brief \b Scale each matrix components by _lhs.
*
* \param[in] _lhs Scale value to apply on all components.
* \param[in] _rhs Matrix to scale.
*
* \return new matrix scaled.
*/
template <typename T, MatrixMajor major>
Mat4<T, major> operator*(typename std::remove_cv<T>::type _lhs, const Mat4<T, major>& _rhs) noexcept;
/**
* \brief <b> Inverse Scale </b> each matrix components by _lhs.
*
* \param[in] _lhs Inverse scale value to apply on all components.
* \param[in] _rhs Matrix to scale.
*
* \return new matrix inverse-scaled.
*/
template <typename T, MatrixMajor major>
Mat4<T, major> operator/(typename std::remove_cv<T>::type _lhs, const Mat4<T, major>& _rhs) noexcept;
//{ Aliases
/// Alias for int32 Mat4.
using Mat4i = Mat4<int32>;
/// Alias for float Mat4.
using Mat4f = Mat4<float>;
/// Alias for double Mat4.
using Mat4d = Mat4<double>;
/// Template alias of Mat4
template <typename T, MatrixMajor major = MatrixMajor::Default>
using Matrix4 = Mat4<T>;
/// Alias for int32 Matrix4.
using Matrix4i = Matrix4<int32>;
/// Alias for float Matrix4.
using Matrix4f = Matrix4<float>;
/// Alias for double Matrix4.
using Matrix4d = Matrix4<double>;
/// Alias for row major int32 Mat4.
using RMat4i = Mat4<int32, MatrixMajor::Row>;
/// Alias for row major float Mat4.
using RMat4f = Mat4<float, MatrixMajor::Row>;
/// Alias for row major double Mat4.
using RMat4d = Mat4<double, MatrixMajor::Row>;
/// Alias for column major int32 Mat4.
using CMat4i = Mat4<int32, MatrixMajor::Column>;
/// Alias for column major float Mat4.
using CMat4f = Mat4<float, MatrixMajor::Column>;
/// Alias for column major double Mat4.
using CMat4d = Mat4<double, MatrixMajor::Column>;
//}
/// \cond Internal
#if SA_INTRISC_AVX // SIMD int32
//{ Row Major
template <>
RMat4i RMat4i::operator*(int32 _scale) const noexcept;
#if SA_INTRISC_SVML
template <>
RMat4i RMat4i::operator/(int32 _scale) const noexcept;
#endif
template <>
RMat4i RMat4i::operator+(const RMat4i& _rhs) const noexcept;
template <>
RMat4i RMat4i::operator-(const RMat4i& _rhs) const noexcept;
template <>
RMat4i RMat4i::operator*(const RMat4i& _rhs) const noexcept;
template <>
Vec3<int32> RMat4i::operator*(const Vec3<int32>& _rhs) const noexcept;
template <>
Vec4<int32> RMat4i::operator*(const Vec4<int32>& _rhs) const noexcept;
template <>
RMat4i& RMat4i::operator*=(int32 _scale) noexcept;
#if SA_INTRISC_SVML
template <>
RMat4i& RMat4i::operator/=(int32 _scale) noexcept;
#endif
template <>
RMat4i& RMat4i::operator+=(const RMat4i& _rhs) noexcept;
template <>
RMat4i& RMat4i::operator-=(const RMat4i& _rhs) noexcept;
//}
//{ Column Major
template <>
CMat4i CMat4i::operator*(int32 _scale) const noexcept;
#if SA_INTRISC_SVML
template <>
CMat4i CMat4i::operator/(int32 _scale) const noexcept;
#endif
template <>
CMat4i CMat4i::operator+(const CMat4i& _rhs) const noexcept;
template <>
CMat4i CMat4i::operator-(const CMat4i& _rhs) const noexcept;
template <>
CMat4i CMat4i::operator*(const CMat4i& _rhs) const noexcept;
template <>
Vec3<int32> CMat4i::operator*(const Vec3<int32>& _rhs) const noexcept;
template <>
Vec4<int32> CMat4i::operator*(const Vec4<int32>& _rhs) const noexcept;
template <>
CMat4i& CMat4i::operator*=(int32 _scale) noexcept;
#if SA_INTRISC_SVML
template <>
CMat4i& CMat4i::operator/=(int32 _scale) noexcept;
#endif
template <>
CMat4i& CMat4i::operator+=(const CMat4i& _rhs) noexcept;
template <>
CMat4i& CMat4i::operator-=(const CMat4i& _rhs) noexcept;
//}
#endif
#if SA_INTRISC_SSE // SIMD float
//{ Row Major
template <>
float RMat4f::Determinant() const noexcept;
template <>
RMat4f RMat4f::GetInversed() const noexcept;
template <>
RMat4f& RMat4f::ApplyScale(const Vec3<float>& _scale) noexcept;
template <>
RMat4f RMat4f::MakeRotation(const Quat<float>& _rot) noexcept;
template <>
RMat4f RMat4f::operator*(float _scale) const noexcept;
template <>
RMat4f RMat4f::operator/(float _scale) const noexcept;
template <>
RMat4f RMat4f::operator+(const RMat4f& _rhs) const noexcept;
template <>
RMat4f RMat4f::operator-(const RMat4f& _rhs) const noexcept;
template <>
RMat4f RMat4f::operator*(const RMat4f& _rhs) const noexcept;
template <>
Vec3<float> RMat4f::operator*(const Vec3<float>& _rhs) const noexcept;
template <>
Vec4<float> RMat4f::operator*(const Vec4<float>& _rhs) const noexcept;
template <>
RMat4f& RMat4f::operator*=(float _scale) noexcept;
template <>
RMat4f& RMat4f::operator/=(float _scale) noexcept;
template <>
RMat4f& RMat4f::operator+=(const RMat4f& _rhs) noexcept;
template <>
RMat4f& RMat4f::operator-=(const RMat4f& _rhs) noexcept;
template <>
RMat4f operator/(float _lhs, const RMat4f& _rhs) noexcept;
//}
//{ Column Major
template <>
float CMat4f::Determinant() const noexcept;
template <>
CMat4f CMat4f::GetInversed() const noexcept;
template <>
CMat4f& CMat4f::ApplyScale(const Vec3<float>& _scale) noexcept;
template <>
CMat4f CMat4f::MakeRotation(const Quat<float>& _rot) noexcept;
template <>
CMat4f CMat4f::operator*(float _scale) const noexcept;
template <>
CMat4f CMat4f::operator/(float _scale) const noexcept;
template <>
CMat4f CMat4f::operator+(const CMat4f& _rhs) const noexcept;
template <>
CMat4f CMat4f::operator-(const CMat4f& _rhs) const noexcept;
template <>
CMat4f CMat4f::operator*(const CMat4f& _rhs) const noexcept;
template <>
Vec3<float> CMat4f::operator*(const Vec3<float>& _rhs) const noexcept;
template <>
Vec4<float> CMat4f::operator*(const Vec4<float>& _rhs) const noexcept;
template <>
CMat4f& CMat4f::operator*=(float _scale) noexcept;
template <>
CMat4f& CMat4f::operator/=(float _scale) noexcept;
template <>
CMat4f& CMat4f::operator+=(const CMat4f& _rhs) noexcept;
template <>
CMat4f& CMat4f::operator-=(const CMat4f& _rhs) noexcept;
template <>
CMat4f operator/(float _lhs, const CMat4f& _rhs) noexcept;
//}
#endif
#if SA_INTRISC_AVX // SIMD double
//{ Row Major
template <>
double RMat4d::Determinant() const noexcept;
template <>
RMat4d RMat4d::GetInversed() const noexcept;
template <>
RMat4d& RMat4d::ApplyScale(const Vec3<double>& _scale) noexcept;
template <>
RMat4d RMat4d::MakeRotation(const Quat<double>& _rot) noexcept;
template <>
RMat4d RMat4d::operator*(double _scale) const noexcept;
template <>
RMat4d RMat4d::operator/(double _scale) const noexcept;
template <>
RMat4d RMat4d::operator+(const RMat4d& _rhs) const noexcept;
template <>
RMat4d RMat4d::operator-(const RMat4d& _rhs) const noexcept;
template <>
RMat4d RMat4d::operator*(const RMat4d& _rhs) const noexcept;
template <>
Vec3<double> RMat4d::operator*(const Vec3<double>& _rhs) const noexcept;
template <>
Vec4<double> RMat4d::operator*(const Vec4<double>& _rhs) const noexcept;
template <>
RMat4d& RMat4d::operator*=(double _scale) noexcept;
template <>
RMat4d& RMat4d::operator/=(double _scale) noexcept;
template <>
RMat4d& RMat4d::operator+=(const RMat4d& _rhs) noexcept;
template <>
RMat4d& RMat4d::operator-=(const RMat4d& _rhs) noexcept;
template <>
RMat4d operator/(double _lhs, const RMat4d& _rhs) noexcept;
//}
//{ Column Major
template <>
double CMat4d::Determinant() const noexcept;
template <>
CMat4d CMat4d::GetInversed() const noexcept;
template <>
CMat4d& CMat4d::ApplyScale(const Vec3<double>& _scale) noexcept;
template <>
CMat4d CMat4d::MakeRotation(const Quat<double>& _rot) noexcept;
template <>
CMat4d CMat4d::operator*(double _scale) const noexcept;
template <>
CMat4d CMat4d::operator/(double _scale) const noexcept;
template <>
CMat4d CMat4d::operator+(const CMat4d& _rhs) const noexcept;
template <>
CMat4d CMat4d::operator-(const CMat4d& _rhs) const noexcept;
template <>
CMat4d CMat4d::operator*(const CMat4d& _rhs) const noexcept;
template <>
Vec3<double> CMat4d::operator*(const Vec3<double>& _rhs) const noexcept;
template <>
Vec4<double> CMat4d::operator*(const Vec4<double>& _rhs) const noexcept;
template <>
CMat4d& CMat4d::operator*=(double _scale) noexcept;
template <>
CMat4d& CMat4d::operator/=(double _scale) noexcept;
template <>
CMat4d& CMat4d::operator+=(const CMat4d& _rhs) noexcept;
template <>
CMat4d& CMat4d::operator-=(const CMat4d& _rhs) noexcept;
template <>
CMat4d operator/(double _lhs, const CMat4d& _rhs) noexcept;
//}
#endif
/// \endcond
}
/** \} */
#include <SA/Maths/Matrix/Matrix4.inl>
#endif // GUARD
| 21.126984 | 114 | 0.667027 | [
"vector",
"transform"
] |
5204b71a75b7c1b71afbb740b17d4d7be67c71a5 | 4,710 | hpp | C++ | breeze/cryptography/digest.hpp | gennaroprota/breeze | 7afe88a30dc8ac8b97a76a192dc9b189d9752e8b | [
"BSD-3-Clause"
] | 1 | 2021-04-03T22:35:52.000Z | 2021-04-03T22:35:52.000Z | breeze/cryptography/digest.hpp | gennaroprota/breeze | 7afe88a30dc8ac8b97a76a192dc9b189d9752e8b | [
"BSD-3-Clause"
] | null | null | null | breeze/cryptography/digest.hpp | gennaroprota/breeze | 7afe88a30dc8ac8b97a76a192dc9b189d9752e8b | [
"BSD-3-Clause"
] | 1 | 2021-10-01T04:26:48.000Z | 2021-10-01T04:26:48.000Z | // ===========================================================================
// Copyright 2006-2019 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3-Clause>.)
// ___________________________________________________________________________
//
//! \file
//! \brief A cryptographic hash digest.
// ---------------------------------------------------------------------------
#ifndef BREEZE_GUARD_HJb5zsPZzS9ztbt5GdVJMPv00mZUAnQI
#define BREEZE_GUARD_HJb5zsPZzS9ztbt5GdVJMPv00mZUAnQI
#include "breeze/top_level_namespace.hpp"
#include "breeze/operator/equality_comparison.hpp"
#include <iosfwd>
namespace breeze_ns {
// digest:
// =======
//
//!\brief
//! The result of applying a digest algorithm to a given input
//! sequence.
// ---------------------------------------------------------------------------
template< typename Hasher >
class digest
: private equality_comparison< digest< Hasher > >
{
public:
typedef typename Hasher::byte_type const *
const_iterator ;
//! \name Constructors, destructor and copy assignment
//!
//! `digest` uses the compiler-generated copy constructor,
//! destructor and copy assignment operator.
//!
//! The other constructors are listed below.
//!
//!\{
// -----------------------------------------------------------------------
//! Constructs a digest from a `Hasher`. Since the `Hasher`
//! argument is passed by value, its state is not affected.
// -----------------------------------------------------------------------
explicit digest( Hasher hasher_copy ) ;
//! Constructs the digest of the range <tt>[begin, end)</tt>.
//! This constructor saves the user from constructing a `Hasher`
//! object explicitly, but, of course, is only suitable if the
//! input range is all available at once. If you need to
//! accumulate the input in multiple steps, you'll need to use a
//! `Hasher` in your client code, instead.
// -----------------------------------------------------------------------
template< typename InputIter >
digest( InputIter begin, InputIter end ) ;
//!\}
//! Equality comparison (both `==` and `!=` are provided).
// -----------------------------------------------------------------------
bool is_equal( digest< Hasher > const & ) const ;
//! \name Functions for byte-based iteration (read-only)
//!
//! \note
//! `const_iterator` is a forward iterator.
// [gps]
//!\{
const_iterator begin() const ;
const_iterator end() const ;
//!\}
// less:
// =====
//
//! \brief
//! A functor to compare digest objects.
//!
//! Implements a strict weak ordering relation between digests
//! (from the same `Hasher` type). Useful for ordered
//! associative containers.
// -----------------------------------------------------------------------
class less
{
public:
//! Compares two digest objects.
// -------------------------------------------------------------------
bool operator ()( digest< Hasher > const & d1,
digest< Hasher > const & d2 ) const ;
} ;
private:
//!\cond implementation
typename Hasher::raw_digest_type
m_raw_digest ;
//!endcond
} ;
//!\brief
//! Outputs a hexadecimal representation of the digest.
//!
//! The case of the letters A-F is unspecified (this allows us to
//! support e.g. `std::uppercase` and `std::nouppercase` in the
//! future). But it's guaranteed that all letters will have the same
//! case.
//!
//! \relatedalso digest.
// ---------------------------------------------------------------------------
template< typename Hasher >
std::ostream & operator <<( std::ostream & os,
digest< Hasher > const & d ) ;
// make_digest():
// --------------
//
//!\brief
//! Convenience function to create a `digest` from a `Hasher` (can
//! use type deduction).
//!
//! \return
//! digest< Hasher >( h )
// ---------------------------------------------------------------------------
template< typename Hasher >
digest< Hasher > make_digest( Hasher const & h ) ;
}
#include "brz/digest.tpp"
#endif
| 35.149254 | 78 | 0.470064 | [
"object"
] |
6498be26b88f6d26c5a495b532f3542f9f2d9078 | 1,598 | hpp | C++ | src/include/Geometry/Ray.hpp | timow-gh/Geometry | 6b46b107355cd76fbb9c3a86db23dc891e868a3b | [
"Apache-2.0"
] | null | null | null | src/include/Geometry/Ray.hpp | timow-gh/Geometry | 6b46b107355cd76fbb9c3a86db23dc891e868a3b | [
"Apache-2.0"
] | null | null | null | src/include/Geometry/Ray.hpp | timow-gh/Geometry | 6b46b107355cd76fbb9c3a86db23dc891e868a3b | [
"Apache-2.0"
] | null | null | null | #ifndef GLFWTESTAPP_RAY_HPP
#define GLFWTESTAPP_RAY_HPP
#include <Core/Math/Eps.hpp>
#include <Core/Utils/Compiler.hpp>
#include <Geometry/Distance/DistanceRay.hpp>
#include <LinAl/LinearAlgebra.hpp>
namespace Geometry
{
template <typename T, std::size_t D>
class Ray {
LinAl::Vec<T, D> m_origin;
LinAl::Vec<T, D> m_direction;
public:
CORE_CONSTEXPR Ray(const LinAl::Vec<T, D>& origin, const LinAl::Vec<T, D>& direction)
: m_origin(origin), m_direction(direction)
{
}
CORE_CONSTEXPR bool operator==(const Ray& rhs) const
{
return m_origin == rhs.m_origin && m_direction == rhs.m_direction;
}
CORE_CONSTEXPR bool operator!=(const Ray& rhs) const
{
return !(rhs == *this);
}
CORE_NODISCARD CORE_CONSTEXPR const LinAl::Vec<T, D>& getOrigin() const
{
return m_origin;
}
CORE_NODISCARD CORE_CONSTEXPR const LinAl::Vec<T, D>& getDirection() const
{
return m_direction;
}
CORE_NODISCARD CORE_CONSTEXPR T distance(const Ray<T, D>& ray,
const LinAl::Vec<T, D>& vec) const
{
return Geometry::distance(ray, vec);
}
CORE_NODISCARD CORE_CONSTEXPR T distance(const LinAl::Vec<T, D>& vec) const
{
return Geometry::distance(*this, vec);
}
};
template <typename T>
using Ray2 = Ray<T, 2>;
using Ray2f = Ray2<float_t>;
using Ray2d = Ray2<double_t>;
template <typename T>
using Ray3 = Ray<T, 3>;
using Ray3f = Ray3<float_t>;
using Ray3d = Ray3<double_t>;
} // namespace Geometry
#endif // GLFWTESTAPP_RAY_HPP
| 23.850746 | 89 | 0.644556 | [
"geometry"
] |
649bb2a22f7548326095d44f1ace32b45bccd9e5 | 771 | cc | C++ | CSG/tests/CSGScanTest.cc | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 11 | 2020-07-05T02:39:32.000Z | 2022-03-20T18:52:44.000Z | CSG/tests/CSGScanTest.cc | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | null | null | null | CSG/tests/CSGScanTest.cc | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 4 | 2020-09-03T20:36:32.000Z | 2022-01-19T07:42:21.000Z | // ./CSGScanTest.sh
#include <vector>
#include <cassert>
#include <iostream>
#include "scuda.h"
#include "CSGFoundry.h"
#include "CSGSolid.h"
#include "CSGScan.h"
int main(int argc, char** argv)
{
const char* dir = "/tmp/CSGScanTest_scans" ;
CSGFoundry fd ;
//fd.makeDemoSolids();
fd.makeEllipsoid();
//const char* name = "sphe" ;
//fd.makeClustered(name, 0,1,1, 0,1,1, 0,2,1, 100. );
unsigned numSolid = fd.getNumSolid() ;
std::cout << "numSolid " << numSolid << std::endl ;
for(unsigned i=0 ; i < numSolid ; i++)
{
const CSGSolid* solid = fd.getSolid(i);
CSGScan sc(dir, &fd, solid);
sc.axis_scan();
sc.rectangle_scan();
sc.circle_scan();
}
return 0 ;
}
| 20.289474 | 60 | 0.56939 | [
"vector",
"solid"
] |
64cef9c8680b2ada3432dae48ce92890924b4bfa | 11,810 | cpp | C++ | src/chainparams.cpp | jubileeman/stepbystep | c57cfa2b2db35cb2d6f9af7164fb9563426bffaa | [
"MIT"
] | null | null | null | src/chainparams.cpp | jubileeman/stepbystep | c57cfa2b2db35cb2d6f9af7164fb9563426bffaa | [
"MIT"
] | null | null | null | src/chainparams.cpp | jubileeman/stepbystep | c57cfa2b2db35cb2d6f9af7164fb9563426bffaa | [
"MIT"
] | null | null | null | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "assert.h"
#include "chainparams.h"
#include "main.h"
#include "util.h"
#include <boost/assign/list_of.hpp>
using namespace boost::assign;
struct SeedSpec6 {
uint8_t addr[16];
uint16_t port;
};
#include "chainparamsseeds.h"
//
// Main network
//
// Convert the pnSeeds6 array into usable address objects.
static void convertSeed6(std::vector<CAddress> &vSeedsOut, const SeedSpec6 *data, unsigned int count)
{
// It'll only connect to one or two seed nodes because once it connects,
// it'll get a pile of addresses with newer timestamps.
// Seed nodes are given a random 'last seen time' of between one and two
// weeks ago.
const int64_t nOneWeek = 7*24*60*60;
for (unsigned int i = 0; i < count; i++)
{
struct in6_addr ip;
memcpy(&ip, data[i].addr, sizeof(ip));
CAddress addr(CService(ip, data[i].port));
addr.nTime = GetTime() - GetRand(nOneWeek) - nOneWeek;
vSeedsOut.push_back(addr);
}
}
class CMainParams : public CChainParams {
public:
CMainParams() {
// The message start string is designed to be unlikely to occur in normal data.
// The characters are rarely used upper ASCII, not valid as UTF-8, and produce
// a large 4-byte int at any alignment.
pchMessageStart[0] = 0x53;
pchMessageStart[1] = 0x54;
pchMessageStart[2] = 0x45;
pchMessageStart[3] = 0x50;
bnProofOfWorkLimit = CBigNum(~uint256(0) >> 16);
vAlertPubKey = ParseHex("04e3b77ed19efdc11ed11208b7785b79b20e81a759cc65f6e45919dadb960d4575dba105cbd121a43472976550cfc798562d3fc4a6f7641b93f817e1a15ae7adba");
vchSyncCheckpointPubKey = ParseHex("04a3059fa6ff60fb459ad2b3703e294f55fa858dc57d35e89efdad5bb959f311fc4fb2604881c0a1aa5fc47bf459d4a373a061ebddeba8255a99af748fe698ca08");
nDefaultPort = 17777;
nRPCPort = 17778;
// Build the genesis block. Note that the output of the genesis coinbase cannot
// be spent as it did not originally exist in the database.
const char* pszTimestamp = "05/08/2016 00:00 Step by step";
std::vector<CTxIn> vin;
vin.resize(1);
vin[0].scriptSig = CScript() << 0 << CBigNum(42) << vector<unsigned char>((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
std::vector<CTxOut> vout;
vout.resize(1);
vout[0].SetEmpty();
CTransaction txNew(1, 1470355200, vin, vout, 0);
genesis.vtx.push_back(txNew);
genesis.hashPrevBlock = 0;
genesis.hashMerkleRoot = genesis.BuildMerkleTree();
genesis.nVersion = 1;
genesis.nTime = 1470355200;
genesis.nBits = bnProofOfWorkLimit.GetCompact();
genesis.nNonce = 5046295;
hashGenesisBlock = uint256("0x4066aa83c029cad21d5c932fd0443e118afab6e914eec16d04d511d6512a79ca");
if (true && (genesis.GetHash() != hashGenesisBlock))
{
cout << "genesis: MAIN:"<<endl;
uint256 hashTarget = CBigNum().SetCompact(genesis.nBits).getuint256();
while (genesis.GetPoWHash() > hashTarget)
{
++genesis.nNonce;
if (genesis.nNonce == 0)
{
printf("NONCE WRAPPED, incrementing time");
++genesis.nTime;
}
}
cout << "genesis: \n" << genesis.ToString() << endl;
cout << "genesis.GetPoWHash(): " << genesis.GetPoWHash().ToString() << endl;
cout << "genesis.GetHash(): " << genesis.GetHash().ToString() << endl;
cout << "genesis.hashMerkleRoot: " << genesis.hashMerkleRoot.ToString() << endl;
cout << "genesis.nTime: " << genesis.nTime << endl;
cout << "genesis.nNonce: " << genesis.nNonce << endl;
}
assert(hashGenesisBlock == uint256("0x4066aa83c029cad21d5c932fd0443e118afab6e914eec16d04d511d6512a79ca"));
assert(genesis.hashMerkleRoot == uint256("0x0702c16b56cc2c512663ce6e0629f41ffc21b3cbaa8e735f62403b21edeccd7b"));
base58Prefixes[PUBKEY_ADDRESS] = list_of(63);
base58Prefixes[SCRIPT_ADDRESS] = list_of(95);
base58Prefixes[SECRET_KEY] = list_of(163);
base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x88)(0xB2)(0x1E);
base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x88)(0xAD)(0xE4);
convertSeed6(vFixedSeeds, pnSeed6_main, ARRAYLEN(pnSeed6_main));
bnProofOfStakeLimit = CBigNum(~uint256(32));
nPoWReward = 0 * COIN;
nLaunchTime = genesis.nTime;
nCoinbaseMaturity = 120;
nStakeMinConfirmations = 120;
nStakeMinAge = 8 * 60 * 60; // 8 Hrs
nModifierInterval = 10 * 60; // time to elapse before new modifier is computed
nStakeCoinYearReward = 1 * CENT; // 1% per year
nFirstPoSBlock = 160;
nTargetSpacing = 60;
nTargetTimespan = 20 * 60;
nMinDelay = 2;
nMaxMoney = 1500000000 * COIN;
}
virtual const CBlock& GenesisBlock() const { return genesis; }
virtual Network NetworkID() const { return CChainParams::MAIN; }
virtual const vector<CAddress>& FixedSeeds() const {
return vFixedSeeds;
}
protected:
CBlock genesis;
vector<CAddress> vFixedSeeds;
};
static CMainParams mainParams;
//
// Testnet
//
class CTestNetParams : public CMainParams {
public:
CTestNetParams() {
// The message start string is designed to be unlikely to occur in normal data.
// The characters are rarely used upper ASCII, not valid as UTF-8, and produce
// a large 4-byte int at any alignment.
pchMessageStart[0] = 0x73;
pchMessageStart[1] = 0x74;
pchMessageStart[2] = 0x65;
pchMessageStart[3] = 0x70;
bnProofOfWorkLimit = CBigNum(~uint256(0) >> 16);
vAlertPubKey = ParseHex("04e14e1a52538e9f38311b2f518fe530440b7de50e292b5ddd0eadb89db8d515fc9855ef3fcb419111057073a7ae5b51290089b962d8bfbf293e319683b1cb9cee");
vchSyncCheckpointPubKey = ParseHex("04a4f10ca4156d8026990aed1fb70fd9511d73e341878e4d2f944fe9d9bb3dd262f3a62bdc7031157d19d9477b28d0d672ffdb54af232dbf0504707631f1768d94");
nDefaultPort = 18777;
nRPCPort = 18778;
strDataDir = "testnet";
// Modify the testnet genesis block so the timestamp is valid for a later start.
genesis.nBits = bnProofOfWorkLimit.GetCompact();
genesis.nNonce = 5791712;
hashGenesisBlock = uint256("0x5817eb18c9765788d18cc47aaa34c8f93d8f6d8a1a4e52371b5f95087c087d20");
if (true && (genesis.GetHash() != hashGenesisBlock))
{
cout << "genesis: TEST:"<<endl;
uint256 hashTarget = CBigNum().SetCompact(genesis.nBits).getuint256();
while (genesis.GetPoWHash() > hashTarget)
{
++genesis.nNonce;
if (genesis.nNonce == 0)
{
printf("NONCE WRAPPED, incrementing time");
++genesis.nTime;
}
}
cout << "genesis: \n" << genesis.ToString() << endl;
cout << "genesis.GetPoWHash(): " << genesis.GetPoWHash().ToString() << endl;
cout << "genesis.GetHash(): " << genesis.GetHash().ToString() << endl;
cout << "genesis.hashMerkleRoot: " << genesis.hashMerkleRoot.ToString() << endl;
cout << "genesis.nTime: " << genesis.nTime << endl;
cout << "genesis.nNonce: " << genesis.nNonce << endl;
}
assert(hashGenesisBlock == uint256("0x5817eb18c9765788d18cc47aaa34c8f93d8f6d8a1a4e52371b5f95087c087d20"));
vFixedSeeds.clear();
vSeeds.clear();
base58Prefixes[PUBKEY_ADDRESS] = list_of(125);
base58Prefixes[SCRIPT_ADDRESS] = list_of(157);
base58Prefixes[SECRET_KEY] = list_of(225);
base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x35)(0x87)(0xCF);
base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x35)(0x83)(0x94);
convertSeed6(vFixedSeeds, pnSeed6_test, ARRAYLEN(pnSeed6_test));
bnProofOfStakeLimit = CBigNum(~uint256(20));
nCoinbaseMaturity = 10;
nStakeMinConfirmations = 10;
nStakeMinAge = 8 * 60 * 60; // 8 Hrs
nModifierInterval = 10 * 60; // time to elapse before new modifier is computed
nStakeCoinYearReward = 1 * CENT; // 1% per year
nMinDelay = 2;
nMaxMoney = 2000000000 * COIN;
}
virtual Network NetworkID() const { return CChainParams::TESTNET; }
};
static CTestNetParams testNetParams;
//
// Regression test
//
class CRegTestParams : public CTestNetParams {
public:
CRegTestParams() {
pchMessageStart[0] = 0xf1;
pchMessageStart[1] = 0xe2;
pchMessageStart[2] = 0xd3;
pchMessageStart[3] = 0xc4;
bnProofOfWorkLimit = CBigNum(~uint256(0) >> 1);
genesis.nTime = 1470000000;
genesis.nBits = bnProofOfWorkLimit.GetCompact();
genesis.nNonce = 617537;
hashGenesisBlock = genesis.GetHash();
nDefaultPort = 47777;
strDataDir = "regtest";
hashGenesisBlock = uint256("0xcc37164ad5e4bb75b6c61b893d2831beb02f080cb813aba94e7bab84981c7086");
if (true && (genesis.GetHash() != hashGenesisBlock))
{
cout << "genesis: REGTEST:"<<endl;
uint256 hashTarget = CBigNum().SetCompact(genesis.nBits).getuint256();
while (genesis.GetPoWHash() > hashTarget)
{
++genesis.nNonce;
if (genesis.nNonce == 0)
{
printf("NONCE WRAPPED, incrementing time");
++genesis.nTime;
}
}
cout << "genesis: \n" << genesis.ToString() << endl;
cout << "genesis.GetPoWHash(): " << genesis.GetPoWHash().ToString() << endl;
cout << "genesis.GetHash(): " << genesis.GetHash().ToString() << endl;
cout << "genesis.hashMerkleRoot: " << genesis.hashMerkleRoot.ToString() << endl;
cout << "genesis.nTime: " << genesis.nTime << endl;
cout << "genesis.nNonce: " << genesis.nNonce << endl;
}
assert(hashGenesisBlock == uint256("0xcc37164ad5e4bb75b6c61b893d2831beb02f080cb813aba94e7bab84981c7086"));
vSeeds.clear(); // Regtest mode doesn't have any DNS seeds.
}
virtual bool RequireRPCPassword() const { return false; }
virtual Network NetworkID() const { return CChainParams::REGTEST; }
};
static CRegTestParams regTestParams;
static CChainParams *pCurrentParams = &mainParams;
const CChainParams &Params() {
return *pCurrentParams;
}
void SelectParams(CChainParams::Network network) {
switch (network) {
case CChainParams::MAIN:
pCurrentParams = &mainParams;
break;
case CChainParams::TESTNET:
pCurrentParams = &testNetParams;
break;
case CChainParams::REGTEST:
pCurrentParams = ®TestParams;
break;
default:
assert(false && "Unimplemented network");
return;
}
}
bool SelectParamsFromCommandLine() {
bool fRegTest = GetBoolArg("-regtest", false);
bool fTestNet = GetBoolArg("-testnet", false);
if (fTestNet && fRegTest) {
return false;
}
if (fRegTest) {
SelectParams(CChainParams::REGTEST);
} else if (fTestNet) {
SelectParams(CChainParams::TESTNET);
} else {
SelectParams(CChainParams::MAIN);
}
return true;
}
| 38.721311 | 177 | 0.630483 | [
"vector"
] |
64d2db776f49e279924c226640d5dc70179a2714 | 10,616 | hpp | C++ | libraries/belle/Source/Core/Prim/Polygon.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 47 | 2017-09-05T02:49:22.000Z | 2022-01-20T08:11:47.000Z | libraries/belle/Source/Core/Prim/Polygon.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 106 | 2018-05-16T14:58:52.000Z | 2022-01-12T13:57:24.000Z | libraries/belle/Source/Core/Prim/Polygon.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 11 | 2018-05-16T06:44:51.000Z | 2021-11-10T07:04:46.000Z |
/*
Copyright (c) 2007-2013 William Andrew Burnson.
Copyright (c) 2013-2020 Nicolas Danet.
*/
/* < http://opensource.org/licenses/BSD-2-Clause > */
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
namespace prim {
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
// MARK: -
class Polygon {
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
// MARK: -
private:
class SortablePoint {
public:
SortablePoint() : angle_ (0.0), distance_ (0.0)
{
}
SortablePoint (const Point & pt, double ang, double mag) : pt_ (pt), angle_ (ang), distance_ (mag)
{
}
#if PRIM_CPP11
public:
SortablePoint (const SortablePoint&) = default;
SortablePoint (SortablePoint&&) = default;
SortablePoint& operator = (const SortablePoint&) = default;
SortablePoint& operator = (SortablePoint&&) = default;
#endif
public:
Point toPoint()
{
return pt_;
}
public:
bool operator < (const SortablePoint & o) const
{
return (angle_ < o.angle_) || (angle_ == o.angle_ && distance_ < o.distance_);
}
bool operator > (const SortablePoint & o) const
{
return (angle_ > o.angle_) || (angle_ == o.angle_ && distance_ > o.distance_);
}
bool operator == (const SortablePoint & o) const
{
return (angle_ == o.angle_) && (distance_ == o.distance_);
}
private:
Point pt_;
double angle_;
double distance_;
};
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
// MARK: -
public:
Polygon()
{
}
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
#if PRIM_CPP11
public:
Polygon (const Polygon&) = default;
Polygon (Polygon&&) = default;
Polygon& operator = (const Polygon&) = default;
Polygon& operator = (Polygon&&) = default;
#endif
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
// MARK: -
public:
void swapWith (Polygon& o)
{
points_.swapWith (o.points_);
}
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
// MARK: -
public:
int size() const
{
return points_.size();
}
void clear()
{
points_.clear();
}
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
// MARK: -
public:
const Point get (int i) const
{
return points_[i];
}
void add (Point pt)
{
points_.add (pt);
}
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
/* < http://www.dcs.gla.ac.uk/~pat/52233/slides/Hull1x1.pdf > */
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
// MARK: -
public:
void convertToConvexHull (Array < Point > * removed = nullptr) /* The Graham scan algorithm. */
{
if (points_.size() > 2) {
//
if (points_.size() > 100) { quickElimination (removed); } /* Does it worth the cost? */
int j = 0;
double x = points_.getFirst().getX();
double y = points_.getFirst().getY();
for (int i = 1; i < points_.size(); ++i) {
if ((points_[i].getY() < y) || (points_[i].getY() == y && points_[i].getX() < x)) {
y = points_[i].getY();
x = points_[i].getX();
j = i;
}
}
Array < SortablePoint > l1;
l1.add (SortablePoint (points_[j], 0.0, 0.0));
for (int i = 0; i < points_.size(); ++i) {
//
if (i != j) {
Vector v (points_[i] - points_[j]);
l1.add (SortablePoint (points_[i], v.angle(), v.magnitude()));
}
//
}
l1.sort();
Array < Point > l2;
l2.add (l1[0].toPoint());
l2.add (l1[1].toPoint());
for (int i = 2; i < l1.size(); ++i) {
//
Point pt = l1[i].toPoint();
while (l2.size() > 1 && clockwiseOrder (l2[l2.size() - 2], l2[l2.size() - 1], pt) != -1) {
if (removed) { removed->add (l2[l2.size() - 1]); }
l2.resize (l2.size() - 1);
}
l2.add (pt);
//
}
l2.swapWith (points_);
//
}
}
#if 0 /* Alernative using List instead of Array (benchmark needed). */
void convertToConvexHull (Array < Point > * removed = nullptr)
{
if (points_.size() > 2) {
//
if (points_.size() > 100) { quickElimination (removed); }
int j = 0;
double x = points_.getFirst().getX();
double y = points_.getFirst().getY();
for (int i = 1; i < points_.size(); ++i) {
if ((points_[i].getY() < y) || (points_[i].getY() == y && points_[i].getX() < x)) {
y = points_[i].getY();
x = points_[i].getX();
j = i;
}
}
List < SortablePoint > l1;
l1.add (SortablePoint (points_[j], 0.0, 0.0));
for (int i = 0; i < points_.size(); ++i) {
//
if (i != j) {
Vector v (points_[i] - points_[j]);
l1.add (SortablePoint (points_[i], v.angle(), v.magnitude()));
}
//
}
l1.sort();
List < Point > l2;
l2.add (l1[0].toPoint());
l2.add (l1[1].toPoint());
for (int i = 2; i < l1.size(); ++i) {
//
Point pt = l1[i].toPoint();
while (l2.size() > 1 && clockwiseOrder (l2[l2.size() - 2], l2[l2.size() - 1], pt) != -1) {
if (removed) { removed->add (l2[l2.size() - 1]); }
l2.remove (l2.size() - 1);
}
l2.add (pt);
//
}
ListToArray (l2, points_);
//
}
}
#endif
void quickElimination (Array < Point > * removed)
{
Point t[4]; t[0] = t[1] = t[2] = t[3] = points_.getFirst();
for (int i = 1; i < points_.size(); ++i) {
//
if (points_[i].getY() > t[0].getY()) { t[0] = points_[i]; }
if (points_[i].getX() < t[1].getX()) { t[1] = points_[i]; }
if (points_[i].getY() < t[2].getY()) { t[2] = points_[i]; }
if (points_[i].getX() > t[3].getX()) { t[3] = points_[i]; }
//
}
Array < Point > pt;
for (int i = 0; i < 4; ++i) { if (pt.contains (t[i]) == false) { pt.add (t[i]); } }
if (pt.size() == 4) { /* Must be 4 different points. */
//
Array < Point > scoped;
for (int i = 0; i < points_.size(); ++i) {
//
int a = clockwiseOrder (points_[i], pt[0], pt[1]);
int b = clockwiseOrder (points_[i], pt[1], pt[2]);
int c = clockwiseOrder (points_[i], pt[2], pt[3]);
int d = clockwiseOrder (points_[i], pt[3], pt[0]);
bool inside = ((a == b) && (b == c) && (c == d));
if (inside) { if (removed) { removed->add (points_[i]); } }
else {
scoped.add (points_[i]);
}
//
}
points_.swapWith (scoped);
//
}
}
private:
Array < Point > points_;
private:
PRIM_LEAK_DETECTOR (Polygon)
};
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
// MARK: -
void swap (Polygon& a, Polygon& b);
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
#ifdef BELLE_COMPILE_INLINE
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
void swap (Polygon& a, Polygon& b)
{
a.swapWith (b);
}
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
#endif // BELLE_COMPILE_INLINE
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
} // namespace prim
// -----------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------
| 31.223529 | 110 | 0.296345 | [
"vector"
] |
64d3bd526d170d87b290ac3784d457821d35b436 | 5,058 | cxx | C++ | main/vcl/unx/gtk/a11y/atkfactory.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/vcl/unx/gtk/a11y/atkfactory.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/vcl/unx/gtk/a11y/atkfactory.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_vcl.hxx"
#include <unx/gtk/gtkframe.hxx>
#include <vcl/window.hxx>
#include "atkwrapper.hxx"
#include "atkfactory.hxx"
#include "atkregistry.hxx"
using namespace ::com::sun::star;
extern "C" {
/*
* Instances of this dummy object class are returned whenever we have to
* create an AtkObject, but can't touch the OOo object anymore since it
* is already disposed.
*/
static AtkStateSet *
noop_wrapper_ref_state_set( AtkObject * )
{
AtkStateSet *state_set = atk_state_set_new();
atk_state_set_add_state( state_set, ATK_STATE_DEFUNCT );
return state_set;
}
static void
atk_noop_object_wrapper_class_init(AtkNoOpObjectClass *klass)
{
AtkObjectClass *atk_class = ATK_OBJECT_CLASS( klass );
atk_class->ref_state_set = noop_wrapper_ref_state_set;
}
static GType
atk_noop_object_wrapper_get_type(void)
{
static GType type = 0;
if (!type)
{
static const GTypeInfo typeInfo =
{
sizeof (AtkNoOpObjectClass),
(GBaseInitFunc) NULL,
(GBaseFinalizeFunc) NULL,
(GClassInitFunc) atk_noop_object_wrapper_class_init,
(GClassFinalizeFunc) NULL,
NULL,
sizeof (AtkObjectWrapper),
0,
(GInstanceInitFunc) NULL,
NULL
} ;
type = g_type_register_static (ATK_TYPE_OBJECT, "OOoAtkNoOpObj", &typeInfo, (GTypeFlags)0) ;
}
return type;
}
AtkObject*
atk_noop_object_wrapper_new()
{
AtkObject *accessible;
accessible = (AtkObject *) g_object_new (atk_noop_object_wrapper_get_type(), NULL);
g_return_val_if_fail (accessible != NULL, NULL);
accessible->role = ATK_ROLE_INVALID;
accessible->layer = ATK_LAYER_INVALID;
return accessible;
}
/*
* The wrapper factory
*/
static GType
wrapper_factory_get_accessible_type(void)
{
return atk_object_wrapper_get_type();
}
static AtkObject*
wrapper_factory_create_accessible( GObject *obj )
{
GtkWidget* parent_widget = gtk_widget_get_parent( GTK_WIDGET( obj ) );
// gail_container_real_remove_gtk tries to re-instanciate an accessible
// for a widget that is about to vanish ..
if( ! parent_widget )
return atk_noop_object_wrapper_new();
GtkSalFrame* pFrame = GtkSalFrame::getFromWindow( GTK_WINDOW( parent_widget ) );
g_return_val_if_fail( pFrame != NULL, NULL );
Window* pFrameWindow = pFrame->GetWindow();
if( pFrameWindow )
{
Window* pWindow = pFrameWindow;
// skip accessible objects already exposed by the frame objects
if( WINDOW_BORDERWINDOW == pWindow->GetType() )
pWindow = pFrameWindow->GetAccessibleChildWindow(0);
if( pWindow )
{
uno::Reference< accessibility::XAccessible > xAccessible = pWindow->GetAccessible(true);
if( xAccessible.is() )
{
AtkObject *accessible = ooo_wrapper_registry_get( xAccessible );
if( accessible )
g_object_ref( G_OBJECT(accessible) );
else
accessible = atk_object_wrapper_new( xAccessible, gtk_widget_get_accessible(parent_widget) );
return accessible;
}
}
}
return NULL;
}
static void
wrapper_factory_class_init( AtkObjectFactoryClass *klass )
{
klass->create_accessible = wrapper_factory_create_accessible;
klass->get_accessible_type = wrapper_factory_get_accessible_type;
}
GType
wrapper_factory_get_type (void)
{
static GType t = 0;
if (!t) {
static const GTypeInfo tinfo =
{
sizeof (AtkObjectFactoryClass),
NULL, NULL, (GClassInitFunc) wrapper_factory_class_init,
NULL, NULL, sizeof (AtkObjectFactory), 0, NULL, NULL
};
t = g_type_register_static (
ATK_TYPE_OBJECT_FACTORY, "OOoAtkObjectWrapperFactory",
&tinfo, (GTypeFlags) 0);
}
return t;
}
} // extern C
| 28.1 | 113 | 0.650257 | [
"object"
] |
64d7ddb3c9af7c9f534ea98abb4f35006238af1e | 624 | cpp | C++ | codes/CSES/CSES_1756.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | 2 | 2021-03-07T03:34:02.000Z | 2021-03-09T01:22:21.000Z | codes/CSES/CSES_1756.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | 1 | 2021-03-27T15:01:23.000Z | 2021-03-27T15:55:34.000Z | codes/CSES/CSES_1756.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | 1 | 2021-03-27T05:02:33.000Z | 2021-03-27T05:02:33.000Z | #include <iostream>
#include <vector>
using namespace std;
const int MX = 2e5 +10;
vector<int> adj[MX];
int dep[MX], n, m;
void dfs(int u, int d){
dep[u] = d;
for(int v: adj[u]){
if(!dep[v]) dfs(v, d + 1);
}
}
int main(){
cin.tie(0) -> sync_with_stdio(0);
cin >> n >> m;
for(int i = 0; i<m; i++){
int a, b; cin >> a >> b;
adj[a].push_back(b);
adj[b].push_back(a);
}
for(int i = 1; i<=n; i++){
if(!dep[i]) dfs(i, 1);
}
for(int u = 1; u<=n; u++){
for(int v : adj[u]){
if(u < v){
if(dep[u] < dep[v]) cout << u << " " << v << "\n";
else cout << v << " " << u << "\n";
}
}
}
return 0;
}
| 17.333333 | 54 | 0.471154 | [
"vector"
] |
64e07ca9c52c36d0a4265eb3f243e56747dd215f | 5,713 | c++ | C++ | src/extern/inventor/apps/samples/spaceball/spballViewer.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/extern/inventor/apps/samples/spaceball/spballViewer.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/extern/inventor/apps/samples/spaceball/spballViewer.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* Further, this software is distributed without any warranty that it is
* free of the rightful claim of any third person regarding infringement
* or the like. Any license provided herein, whether implied or
* otherwise, applies only to this software file. Patent licenses, if
* any, provided herein do not apply to combinations of this program with
* other software, or any other product whatsoever.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
* Mountain View, CA 94043, or:
*
* http://www.sgi.com
*
* For further information regarding this notice, see:
*
* http://oss.sgi.com/projects/GenInfo/NoticeExplan/
*
*/
//
// This demonstrates using the spaceball device
// to change a camera position and orientation.
// The spaceball motion events are delivered via
// a callback on the viewer.
//
#include <stdlib.h>
#include <X11/Intrinsic.h>
#include <Inventor/So.h>
#include <Inventor/nodes/SoEventCallback.h>
#include <Inventor/events/SoEvents.h>
#include <Inventor/Xt/SoXt.h>
#include <Inventor/Xt/devices/SoXtMouse.h>
#include <Inventor/Xt/devices/SoXtKeyboard.h>
#include <Inventor/Xt/devices/SoXtSpaceball.h>
#include <Inventor/Xt/viewers/SoXtWalkViewer.h>
// global devices
SoXtSpaceball *spaceball = NULL;
static SbBool
processSpballEvents(void *userData, XAnyEvent *anyevent)
{
const SoEvent *event = spaceball->translateEvent(anyevent);
SoXtWalkViewer *viewer = (SoXtWalkViewer *) userData;
SoCamera *camera = viewer->getCamera();
if (event != NULL) {
if (event->isOfType(SoMotion3Event::getClassTypeId())) {
const SoMotion3Event *motion = (const SoMotion3Event *) event;
// move the camera position by the translation amount
// in the forward direction.
// we will ignore 'y' motion since this is the walk viewer.
// first, orient the spaceball data to our camera orientation.
float x, y, z;
motion->getTranslation().getValue(x, y, z);
SbVec3f t(x, 0, z), xlate;
SbMatrix m;
m.setRotate(camera->orientation.getValue());
m.multVecMatrix(t, xlate);
// now update the position
camera->position.setValue(camera->position.getValue() + xlate);
// change the orientation of the camera about the up direction.
// ignore 'x' and 'z' rotation since this is the walk viewer.
// first, get the spaceball rotation as an axis/angle.
SbVec3f axis, newAxis;
float angle;
motion->getRotation().getValue(axis, angle);
// ignore x and z
axis *= angle;
axis.getValue(x, y, z);
axis.setValue(0, y, 0);
// reset axis and angle to only be about 'y'
angle = axis.length();
axis.normalize();
// orient the spaceball rotation to our camera orientation.
m.multVecMatrix(axis, newAxis);
SbRotation rot(newAxis, angle);
// now update the orientation
camera->orientation.setValue(camera->orientation.getValue() * rot);
}
else if (SO_SPACEBALL_PRESS_EVENT(event, PICK)) {
// reset!
viewer->resetToHomePosition();
}
}
return (event != NULL); // return whether we handled the event or not
}
static SoNode *
setupTest(const char *filename)
{
SoInput in;
SoNode *node;
SoSeparator *root = new SoSeparator;
SbBool ok;
root->ref();
if (in.openFile(filename)) {
while ((ok = SoDB::read(&in, node)) != FALSE && node != NULL)
root->addChild(node);
if (! ok) {
fprintf(stderr, "Bad data. Bye!\n");
return NULL;
}
if (root->getNumChildren() == 0) {
fprintf(stderr, "No data read. Bye!\n");
return NULL;
}
in.closeFile();
}
else printf("Error opening file %s\n", filename);
return root;
}
void
msg()
{
printf("The spaceball can be used to translate and rotate the camera.\n");
printf("Hit the spaceball pick button (located on the ball itself)\n");
printf("to reset the camera to its home position.\n");
}
void
main(unsigned int argc, char *argv[])
{
if (argc != 2) {
printf("Usage: %s filename\n", argv[0]);
printf("(A good file to walk through is /usr/share/data/models/buildings/Barcelona.iv)\n");
exit(0);
}
Widget mainWindow = SoXt::init(argv[0]);
if (! SoXtSpaceball::exists()) {
printf("Could not find a spaceball device connected to this display\n");
exit(1);
}
msg();
if (mainWindow != NULL) {
// build and initialize the inventor render area widget
SoXtWalkViewer *viewer = new SoXtWalkViewer(mainWindow);
viewer->setSceneGraph(setupTest(argv[1]));
// handle spaceball
spaceball = new SoXtSpaceball;
viewer->registerDevice(spaceball);
viewer->setEventCallback(processSpballEvents, viewer); // viewer is userData
// display the main window
viewer->show();
SoXt::show(mainWindow);
// loop forever
SoXt::mainLoop();
}
}
| 29.755208 | 92 | 0.676002 | [
"render"
] |
64e4d063b0ef32f447027fb42cf71f2b6cf6b49f | 2,672 | cpp | C++ | comon/messages.cpp | grammers/ros-arrowhead-f-adapter | c7119b8af0dbeaf88784bfc93d1620413078aeb6 | [
"Apache-2.0"
] | null | null | null | comon/messages.cpp | grammers/ros-arrowhead-f-adapter | c7119b8af0dbeaf88784bfc93d1620413078aeb6 | [
"Apache-2.0"
] | null | null | null | comon/messages.cpp | grammers/ros-arrowhead-f-adapter | c7119b8af0dbeaf88784bfc93d1620413078aeb6 | [
"Apache-2.0"
] | null | null | null | #include "messages.hpp"
#include "arrowhead/ErrorPrevention.h"
Converter::Converter(){
}
Converter::~Converter(){
}
// these initial set up can't be don in the constructor dud to where it is declared and where the params that are used to set it up is declared.
void Converter::init(std::string sensor_id, std::string unit, std::string baseName){
Converter::sensor_id = sensor_id;
data_unit = unit;
identety = baseName;
}
// the msgs:
// {
// "Entity":[{
// "ID": "this_is_the_sensor_id",
// "Temperature":39.0,
// "Time_stamp": "1561633848"}],
// "ServiceName": "100",
// "Unit": "Celsius"
// }
void Converter::pars(const char *url, const char *ptr){
if (arrowhead::ErrorPrevention::correctService(ptr, identety))
return;
// parsing temperature from json SneML response
std::string str(ptr);
struct json_object *obj;
obj = json_tokener_parse(str.c_str()); //extract a json object
// relevant data is in a nested array
struct json_object *entity;
json_object_object_get_ex(obj, "Entity", &entity);
// get time stamp from from msgs
// the array has length 1 but contains a json object
struct json_object *time;
json_object_object_get_ex(
json_object_array_get_idx(entity,0), "Time_stamp", &time);
// Check sow it is a new measurement and not an old
int TIME = json_object_get_int(time);
if (TIME > temperature.header.stamp.sec){
temperature.header.stamp.sec = TIME;
// get interesting data from json array object
// the array has length 1 but contains a json object
struct json_object *temp;
json_object_object_get_ex(
json_object_array_get_idx(entity,0), "Temperature", &temp);
temperature.temperature = json_object_get_double(temp);
printf("new temperature received: %f\n", temperature.temperature);
}
}
// build the msgs that are sent.
void Converter::set(double temp, int time){
obj = json_object_new_object();
json_object *arr_obj = json_object_new_array();
json_object *arr_cont = json_object_new_object();
json_object_object_add(arr_cont,"ID", json_object_new_string(sensor_id.c_str()));
json_object_object_add(arr_cont,"Temperature", json_object_new_double(temp));
json_object_object_add(arr_cont,"Time_stamp", json_object_new_int(time));
json_object_array_add(arr_obj, arr_cont);
json_object_object_add(obj,"Entity", arr_obj);
json_object_object_add(obj,"ServiceName", json_object_new_string(identety.c_str()));
json_object_object_add(obj,"Unit", json_object_new_string(data_unit.c_str()));
return;
}
void Converter::updateMsgs(){
set(temperature.temperature, temperature.header.stamp.sec);
}
// return the msgs
json_object* Converter::getJsonMsgs(){
return obj;
}
| 29.362637 | 144 | 0.740269 | [
"object"
] |
64e93f324220234b257e7fe7b24c03851c5a4e72 | 10,206 | cpp | C++ | windows/cpp/samples/AudioConverter/AudioConverterDlg.cpp | avblocks/avblocks-samples | 7388111a27c8110a9f7222e86e912fe38f444543 | [
"MIT"
] | 1 | 2022-02-28T04:12:09.000Z | 2022-02-28T04:12:09.000Z | windows/cpp/samples/AudioConverter/AudioConverterDlg.cpp | avblocks/avblocks-samples | 7388111a27c8110a9f7222e86e912fe38f444543 | [
"MIT"
] | null | null | null | windows/cpp/samples/AudioConverter/AudioConverterDlg.cpp | avblocks/avblocks-samples | 7388111a27c8110a9f7222e86e912fe38f444543 | [
"MIT"
] | 1 | 2022-02-28T02:43:24.000Z | 2022-02-28T02:43:24.000Z | /*
* Copyright (c) 2013 Primo Software. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
#include "stdafx.h"
#include "AudioConverter.h"
#include "AudioConverterDlg.h"
#include "AvbTranscoder.h"
#include <atlpath.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
// Dialog Data
enum { IDD = IDD_ABOUTBOX };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
protected:
DECLARE_MESSAGE_MAP()
};
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
END_MESSAGE_MAP()
CAudioConverterDlg::CAudioConverterDlg(CWnd* pParent /*=NULL*/)
: CDialog(CAudioConverterDlg::IDD, pParent)
, m_strInputFile(_T(""))
, m_strOutputFile(_T(""))
, m_strStatus(_T(""))
{
m_bWorking = false;
m_bStop = false;
m_transcoder.SetCallback(this);
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
void CAudioConverterDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_EDIT_INPUT_FILE, m_strInputFile);
DDX_Text(pDX, IDC_EDIT_OUTPUT_FILE, m_strOutputFile);
DDX_Text(pDX, IDC_STATIC_STATUS, m_strStatus);
DDX_Control(pDX, IDC_COMBO_PRESETS, m_cbPreset);
DDX_Control(pDX, IDC_PROGRESS1, m_progressBar);
}
BEGIN_MESSAGE_MAP(CAudioConverterDlg, CDialog)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
//}}AFX_MSG_MAP
ON_BN_CLICKED(IDOK, OnBnClickedOk)
ON_BN_CLICKED(IDCANCEL, OnBnClickedCancel)
ON_BN_CLICKED(IDC_BUTTON_CHOOSE_INPUT_FILE, OnBnClickedButtonChooseInputFile)
ON_BN_CLICKED(IDC_BUTTON_CHOOSE_OUTPUT_FILE, OnBnClickedButtonChooseOutputFile)
ON_BN_CLICKED(IDC_BUTTON_START, OnBnClickedButtonStart)
ON_BN_CLICKED(IDC_BUTTON_STOP, OnBnClickedButtonStop)
ON_MESSAGE(WM_CONVERT_THREAD_FINISHED, OnConvertThreadFinished)
ON_MESSAGE(WM_CONVERT_PROGRESS, OnConvertProgress)
ON_CBN_SELCHANGE(IDC_COMBO_PRESETS, &CAudioConverterDlg::OnCbnSelchangeComboPresets)
END_MESSAGE_MAP()
// CAudioConverterDlg message handlers
BOOL CAudioConverterDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Add "About..." menu item to system menu.
// IDM_ABOUTBOX must be in the system command range.
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);
CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString(IDS_ABOUTBOX);
if (!strAboutMenu.IsEmpty())
{
pSysMenu->AppendMenu(MF_SEPARATOR);
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}
}
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
for (int i=0; ;++i)
{
if ( !avb_presets[i].Id )
break;
if ( !avb_presets[i].AudioOnly )
continue;
CString str(avb_presets[i].Id);
str.MakeUpper();
m_cbPreset.InsertString(-1, str);
m_cbPreset.SetItemData( m_cbPreset.GetCount() -1, i );
}
m_cbPreset.SetCurSel(0);
UpdateControls();
return TRUE; // return TRUE unless you set the focus to a control
}
void CAudioConverterDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
if ((nID & 0xFFF0) == IDM_ABOUTBOX)
{
CAboutDlg dlgAbout;
dlgAbout.DoModal();
}
else
{
CDialog::OnSysCommand(nID, lParam);
}
}
// If you add a minimize button to your dialog, you will need the code below
// to draw the icon. For MFC applications using the document/view model,
// this is automatically done for you by the framework.
void CAudioConverterDlg::OnPaint()
{
if (IsIconic())
{
CPaintDC dc(this); // device context for painting
SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0);
// Center icon in client rectangle
int cxIcon = GetSystemMetrics(SM_CXICON);
int cyIcon = GetSystemMetrics(SM_CYICON);
CRect rect;
GetClientRect(&rect);
int x = (rect.Width() - cxIcon + 1) / 2;
int y = (rect.Height() - cyIcon + 1) / 2;
// Draw the icon
dc.DrawIcon(x, y, m_hIcon);
}
else
{
CDialog::OnPaint();
}
}
// The system calls this function to obtain the cursor to display while the user drags
// the minimized window.
HCURSOR CAudioConverterDlg::OnQueryDragIcon()
{
return static_cast<HCURSOR>(m_hIcon);
}
void CAudioConverterDlg::OnBnClickedOk()
{
}
void CAudioConverterDlg::OnBnClickedCancel()
{
if (m_bWorking)
return;
OnCancel();
}
void CAudioConverterDlg::OnBnClickedButtonChooseInputFile()
{
UpdateData(TRUE);
CFileDialog dlg(TRUE, NULL,
m_strInputFile.IsEmpty() ? NULL : m_strInputFile,
OFN_HIDEREADONLY,
_TEXT("Audio files (*.wma,*.wav,*.aac,*.m4a,*.mp3,*.mp2,*.ogg,*.oga,*.ogm)|*.wma;*.wav;*.aac;*.m4a;*.mp3;*.mp2;*.ogg;*.oga;*.ogm|")
_TEXT("Video files (*.mp4,*.mpg,*.mpeg,*.avi,*.wmv,*.mts,*.ts,*.m4v,*.webm,*.dat,*.mpe,*.mpeg4)|*.mp4;*.mpg;*.mpeg;*.avi;*.wmv;*.mts;*.ts;*.m4v;*.webm;*.dat;*.mpe;*.mpeg4|")
_TEXT("All files (*.*)|*.*||"),
NULL);
if(IDOK != dlg.DoModal())
return;
m_strInputFile = dlg.m_ofn.lpstrFile;
UpdateData(FALSE);
}
void CAudioConverterDlg::OnBnClickedButtonChooseOutputFile()
{
UpdateData(TRUE);
const PresetDescriptor& preset = GetSelectedPreset();
CString filter, defext;
if (preset.FileExtension)
{
defext = preset.FileExtension;
filter.Format (L"(*.%hs)|*.%hs|", preset.FileExtension, preset.FileExtension);
}
LPCWSTR pDefaultExtension = defext.IsEmpty() ? NULL : defext;
filter += _TEXT("All files (*.*)|*.*||");
CFileDialog dlg(FALSE, pDefaultExtension ,
m_strOutputFile.IsEmpty() ? NULL : m_strOutputFile,
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, filter, NULL);
if(IDOK != dlg.DoModal())
return;
m_strOutputFile = dlg.m_ofn.lpstrFile;
UpdateData(FALSE);
}
void CAudioConverterDlg::OnBnClickedButtonStart()
{
UpdateData(TRUE);
if(m_bWorking)
return;
if(!ValidateInputData())
return;
m_OutputPreset = GetSelectedPreset().Id;
m_hWnd = this->GetSafeHwnd();
m_bStop = false;
m_bWorking = true;
UpdateControls();
DeleteFile( m_strOutputFile );
AfxBeginThread(ConvertThread, this);
}
void CAudioConverterDlg::OnBnClickedButtonStop()
{
m_bStop = true;
UpdateControls();
}
bool CAudioConverterDlg::ValidateInputData()
{
if(m_strInputFile.GetLength() == 0)
{
AfxMessageBox(_T("Please enter input file."));
return false;
}
if (m_strOutputFile.GetLength() == 0)
{
AfxMessageBox(_T("Please enter output file."));
return false;
}
return true;
}
void CAudioConverterDlg::UpdateControls()
{
UpdateData(TRUE);
GetDlgItem(IDC_BUTTON_CHOOSE_INPUT_FILE)->EnableWindow(!m_bWorking);
GetDlgItem(IDC_BUTTON_CHOOSE_OUTPUT_FILE)->EnableWindow(!m_bWorking);
GetDlgItem(IDC_COMBO_PRESETS)->EnableWindow(!m_bWorking);
GetDlgItem(IDC_BUTTON_START)->EnableWindow(!m_bWorking);
GetDlgItem(IDC_BUTTON_STOP)->EnableWindow(m_bWorking && !m_bStop);
if (m_bStop)
{
m_strStatus = _T("Stopping ...");
}
else
{
if (m_bWorking)
{
m_strStatus = _T("Working ...");
}
else
{
m_strStatus = _T("Ready");
}
}
UpdateData(FALSE);
}
void CAudioConverterDlg::onProgress(double currentTime, double totalTime)
{
if(totalTime > 0)
{
int progress = static_cast<int>(100 * currentTime / totalTime);
if(progress < 0)
progress = 0;
if(progress > 100)
progress = 100;
::PostMessage(m_hWnd, WM_CONVERT_PROGRESS, progress, 0);
}
}
void CAudioConverterDlg::onStatus(primo::avblocks::TranscoderStatus::Enum status)
{
if (status == primo::avblocks::TranscoderStatus::Completed && !m_bStop)
{
::PostMessage(m_hWnd, WM_CONVERT_PROGRESS, 100, 0);
}
}
bool_t CAudioConverterDlg::onContinue(double currentTime)
{
return !m_bStop;
}
LRESULT CAudioConverterDlg::OnConvertThreadFinished(WPARAM wParam, LPARAM lParam)
{
m_strStatus = L"Finished";
UpdateData(FALSE);
if (m_success)
{
AfxMessageBox(_T("Conversion successful."), MB_OK | MB_ICONINFORMATION);
}
else
{
AfxMessageBox(m_transcoder.GetErrorMessage(), MB_OK | MB_ICONHAND);
}
UpdateData(TRUE);
m_progressBar.SetPos(0);
m_bStop = false;
m_bWorking = false;
UpdateControls();
UpdateData(FALSE);
return 0;
}
LRESULT CAudioConverterDlg::OnConvertProgress(WPARAM wParam, LPARAM lParam)
{
UpdateData(TRUE);
m_progressBar.SetPos((int)wParam); // wParam contains the progress expressed in percents.
UpdateData(FALSE);
return 0;
}
UINT CAudioConverterDlg::ConvertThread(LPVOID param)
{
HRESULT hr = CoInitialize(NULL);
CAudioConverterDlg *dlg = reinterpret_cast<CAudioConverterDlg*>(param);
dlg->Convert();
CoUninitialize();
::PostMessage(dlg->m_hWnd, WM_CONVERT_THREAD_FINISHED, 0, 0);
return 0;
}
void CAudioConverterDlg::Convert()
{
CStringA utf8;
m_transcoder.SetInputFile(m_strInputFile);
m_transcoder.SetOutputFile(m_strOutputFile);
m_transcoder.SetOutputPreset(m_OutputPreset.c_str());
m_success = m_transcoder.Convert();
}
void CAudioConverterDlg::OnCbnSelchangeComboPresets()
{
const PresetDescriptor& preset = GetSelectedPreset();
if (!preset.FileExtension || m_strOutputFile.IsEmpty())
return;
CString newext ( preset.FileExtension );
newext.Insert(0,L'.');
CPath newfile (m_strOutputFile);
CString oldext = newfile.GetExtension();
if (oldext == newext)
return;
newfile.RenameExtension(newext);
if (newfile.FileExists())
{
CString prompt;
prompt.Format(L"%s already exists. Do you want to replace the file?", newfile.m_strPath);
if (IDYES != AfxMessageBox(prompt, MB_YESNO | MB_ICONEXCLAMATION))
return;
}
m_strOutputFile = newfile.m_strPath;
UpdateData(FALSE);
} | 23.142857 | 176 | 0.697531 | [
"model"
] |
64ec1ee1ad6b93fe5c7f30ac97f736938f4993bc | 6,477 | cpp | C++ | experimental/yarpl/test/Observable_test.cpp | somasun/rsocket-cpp | 1803d8812f747ba7aec5d984118a31db10048c0b | [
"BSD-3-Clause"
] | null | null | null | experimental/yarpl/test/Observable_test.cpp | somasun/rsocket-cpp | 1803d8812f747ba7aec5d984118a31db10048c0b | [
"BSD-3-Clause"
] | null | null | null | experimental/yarpl/test/Observable_test.cpp | somasun/rsocket-cpp | 1803d8812f747ba7aec5d984118a31db10048c0b | [
"BSD-3-Clause"
] | null | null | null | #include <gtest/gtest.h>
#include <yarpl/Observable.h>
using namespace yarpl::observable;
TEST(Observable, SingleOnNext) {
auto a = Observable<int>::create([](std::unique_ptr<Observer<int>> obs) {
obs->onSubscribe(Subscription::create());
obs->onNext(1);
obs->onComplete();
});
std::vector<int> v;
a->subscribe(Observer<int>::create([&v](int value) { v.push_back(value); }));
EXPECT_EQ(v.at(0), 1);
}
TEST(Observable, MultiOnNext) {
auto a = Observable<int>::create([](std::unique_ptr<Observer<int>> obs) {
obs->onSubscribe(Subscription::create());
obs->onNext(1);
obs->onNext(2);
obs->onNext(3);
obs->onComplete();
});
std::vector<int> v;
a->subscribe(Observer<int>::create([&v](int value) { v.push_back(value); }));
EXPECT_EQ(v.at(0), 1);
EXPECT_EQ(v.at(1), 2);
EXPECT_EQ(v.at(2), 3);
}
TEST(Observable, OnError) {
std::string errorMessage("DEFAULT->No Error Message");
auto a = Observable<int>::create([](std::unique_ptr<Observer<int>> obs) {
try {
throw std::runtime_error("something broke!");
} catch (const std::exception &e) {
obs->onError(e);
}
});
a->subscribe(Observer<int>::create([](int value) { /* do nothing */ },
[&errorMessage](const std::exception &e) {
errorMessage = std::string(e.what());
}));
EXPECT_EQ("something broke!", errorMessage);
}
/**
* Assert that all items passed through the Observable get destroyed
*/
TEST(Observable, ItemsCollectedSynchronously) {
static std::atomic<int> instanceCount;
struct Tuple {
const int a;
const int b;
Tuple(const int a, const int b) : a(a), b(b) {
std::cout << "Tuple created!!" << std::endl;
instanceCount++;
}
Tuple(const Tuple &t) : a(t.a), b(t.b) {
std::cout << "Tuple copy constructed!!" << std::endl;
instanceCount++;
}
~Tuple() {
std::cout << "Tuple destroyed!!" << std::endl;
instanceCount--;
}
};
auto a = Observable<Tuple>::create([](std::unique_ptr<Observer<Tuple>> obs) {
obs->onSubscribe(Subscription::create());
obs->onNext(Tuple{1, 2});
obs->onNext(Tuple{2, 3});
obs->onNext(Tuple{3, 4});
obs->onComplete();
});
// TODO how can it be made so 'auto' correctly works without doing copying?
// a->subscribe(Observer<Tuple>::create(
// [](auto value) { std::cout << "received value " << value.a << "\n"; }));
a->subscribe(Observer<Tuple>::create([](const Tuple &value) {
std::cout << "received value " << value.a << std::endl;
}));
std::cout << "Finished ... remaining instances == " << instanceCount
<< std::endl;
EXPECT_EQ(0, instanceCount);
std::cout << "-----------------------------" << std::endl;
}
/*
* Assert that all items passed through the Flowable get
* copied and destroyed correctly over async boundaries.
*
* This is simulating "async" by having an Observer store the items
* in a Vector which could then be consumed on another thread.
*/
TEST(Observable, ItemsCollectedAsynchronously) {
static std::atomic<int> createdCount;
static std::atomic<int> destroyedCount;
struct Tuple {
const int a;
const int b;
Tuple(const int a, const int b) : a(a), b(b) {
std::cout << "Tuple " << a << " created!!" << std::endl;
createdCount++;
}
Tuple(const Tuple &t) : a(t.a), b(t.b) {
std::cout << "Tuple " << a << " copy constructed!!" << std::endl;
createdCount++;
}
~Tuple() {
std::cout << "Tuple " << a << " destroyed!!" << std::endl;
destroyedCount++;
}
};
// scope this so we can check destruction of Vector after this block
{
auto a =
Observable<Tuple>::create([](std::unique_ptr<Observer<Tuple>> obs) {
obs->onSubscribe(Subscription::create());
std::cout << "-----------------------------" << std::endl;
obs->onNext(Tuple{1, 2});
std::cout << "-----------------------------" << std::endl;
obs->onNext(Tuple{2, 3});
std::cout << "-----------------------------" << std::endl;
obs->onNext(Tuple{3, 4});
std::cout << "-----------------------------" << std::endl;
obs->onComplete();
});
std::vector<Tuple> v;
v.reserve(10); // otherwise it resizes and copies on each push_back
a->subscribe(Observer<Tuple>::create([&v](const Tuple &value) {
std::cout << "received value " << value.a << std::endl;
// copy into vector
v.push_back(value);
std::cout << "done pushing into vector" << std::endl;
}));
// expect that 3 instances were originally created, then 3 more when copying
EXPECT_EQ(6, createdCount);
// expect that 3 instances still exist in the vector, so only 3 destroyed so
// far
EXPECT_EQ(3, destroyedCount);
std::cout << "Leaving block now so Vector should release Tuples..."
<< std::endl;
}
EXPECT_EQ(0, (createdCount - destroyedCount));
std::cout << "-----------------------------" << std::endl;
}
class TakeObserver : public Observer<int> {
private:
const int limit;
int count = 0;
std::unique_ptr<Subscription> subscription;
std::vector<int> &v;
public:
TakeObserver(int limit, std::vector<int> &v) : limit(limit), v(v) {
v.reserve(5);
}
void onSubscribe(std::unique_ptr<Subscription> s) override {
subscription = std::move(s);
}
void onNext(const int &value) override {
v.push_back(value);
if (++count >= limit) {
// std::cout << "Cancelling subscription after receiving " << count
// << " items." << std::endl;
subscription->cancel();
}
}
void onError(const std::exception &e) override {}
void onComplete() override {}
};
// assert behavior of onComplete after subscription.cancel
TEST(Observable, SubscriptionCancellation) {
static std::atomic_int emitted{0};
auto a = Observable<int>::create([](std::unique_ptr<Observer<int>> obs) {
std::atomic_bool isUnsubscribed{false};
obs->onSubscribe(Subscription::create(isUnsubscribed));
int i = 0;
while (!isUnsubscribed && i <= 10) {
emitted++;
obs->onNext(i++);
}
if (!isUnsubscribed) {
obs->onComplete();
}
});
std::vector<int> v;
a->subscribe(std::make_unique<TakeObserver>(2, v));
EXPECT_EQ((unsigned long)2, v.size());
EXPECT_EQ(2, emitted);
}
| 29.711009 | 80 | 0.576038 | [
"vector"
] |
64ed8d0564e00e4af11d60f3c8ff8ac58df4ea69 | 15,163 | hpp | C++ | include/codegen/include/System/Reflection/Assembly.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Reflection/Assembly.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Reflection/Assembly.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:43 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type: System.Reflection.ICustomAttributeProvider
#include "System/Reflection/ICustomAttributeProvider.hpp"
// Including type: System.Runtime.Serialization.ISerializable
#include "System/Runtime/Serialization/ISerializable.hpp"
// Including type: System.Runtime.InteropServices._Assembly
#include "System/Runtime/InteropServices/_Assembly.hpp"
// Including type: System.IntPtr
#include "System/IntPtr.hpp"
#include "utils/il2cpp-utils.hpp"
// Completed includes
// Begin forward declares
// Forward declaring namespace: System::Reflection
namespace System::Reflection {
// Forward declaring type: Module
class Module;
// Forward declaring type: AssemblyNameFlags
struct AssemblyNameFlags;
// Forward declaring type: AssemblyName
class AssemblyName;
// Forward declaring type: RuntimeAssembly
class RuntimeAssembly;
// Forward declaring type: ManifestResourceInfo
class ManifestResourceInfo;
}
// Forward declaring namespace: System::IO
namespace System::IO {
// Forward declaring type: Stream
class Stream;
}
// Forward declaring namespace: System
namespace System {
// Forward declaring type: Type
class Type;
// Forward declaring type: Version
class Version;
// Forward declaring type: Exception
class Exception;
}
// Forward declaring namespace: System::Threading
namespace System::Threading {
// Forward declaring type: StackCrawlMark
struct StackCrawlMark;
}
// Forward declaring namespace: System::Globalization
namespace System::Globalization {
// Forward declaring type: CultureInfo
class CultureInfo;
}
// Forward declaring namespace: System::Security::Policy
namespace System::Security::Policy {
// Forward declaring type: Evidence
class Evidence;
}
// Forward declaring namespace: System::Runtime::Serialization
namespace System::Runtime::Serialization {
// Forward declaring type: SerializationInfo
class SerializationInfo;
// Forward declaring type: StreamingContext
struct StreamingContext;
}
// Completed forward declares
// Type namespace: System.Reflection
namespace System::Reflection {
// Autogenerated type: System.Reflection.Assembly
class Assembly : public ::Il2CppObject, public System::Reflection::ICustomAttributeProvider, public System::Runtime::Serialization::ISerializable, public System::Runtime::InteropServices::_Assembly {
public:
// Nested type: System::Reflection::Assembly::ResolveEventHolder
class ResolveEventHolder;
// Nested type: System::Reflection::Assembly::UnmanagedMemoryStreamForModule
class UnmanagedMemoryStreamForModule;
// System.IntPtr _mono_assembly
// Offset: 0x10
System::IntPtr mono_assembly;
// private System.Reflection.Assembly/ResolveEventHolder resolve_event_holder
// Offset: 0x18
System::Reflection::Assembly::ResolveEventHolder* resolve_event_holder;
// private System.Object _evidence
// Offset: 0x20
::Il2CppObject* evidence;
// private System.Object _minimum
// Offset: 0x28
::Il2CppObject* minimum;
// private System.Object _optional
// Offset: 0x30
::Il2CppObject* optional;
// private System.Object _refuse
// Offset: 0x38
::Il2CppObject* refuse;
// private System.Object _granted
// Offset: 0x40
::Il2CppObject* granted;
// private System.Object _denied
// Offset: 0x48
::Il2CppObject* denied;
// private System.Boolean fromByteArray
// Offset: 0x50
bool fromByteArray;
// private System.String assemblyName
// Offset: 0x58
::Il2CppString* assemblyName;
// private System.String get_code_base(System.Boolean escaped)
// Offset: 0x134B0E0
::Il2CppString* get_code_base(bool escaped);
// private System.String get_fullname()
// Offset: 0x134B0E8
::Il2CppString* get_fullname();
// private System.String get_location()
// Offset: 0x134B0EC
::Il2CppString* get_location();
// static System.String GetAotId()
// Offset: 0x134B0F0
static ::Il2CppString* GetAotId();
// private System.String GetCodeBase(System.Boolean escaped)
// Offset: 0x134B0F4
::Il2CppString* GetCodeBase(bool escaped);
// public System.String get_CodeBase()
// Offset: 0x134B0FC
::Il2CppString* get_CodeBase();
// public System.String get_FullName()
// Offset: 0x134B104
::Il2CppString* get_FullName();
// public System.String get_Location()
// Offset: 0x134B110
::Il2CppString* get_Location();
// System.IntPtr GetManifestResourceInternal(System.String name, System.Int32 size, System.Reflection.Module module)
// Offset: 0x134B2D8
System::IntPtr GetManifestResourceInternal(::Il2CppString* name, int& size, System::Reflection::Module*& module);
// public System.IO.Stream GetManifestResourceStream(System.String name)
// Offset: 0x134B2DC
System::IO::Stream* GetManifestResourceStream(::Il2CppString* name);
// System.IO.Stream GetManifestResourceStream(System.Type type, System.String name, System.Boolean skipSecurityCheck, System.Threading.StackCrawlMark stackMark)
// Offset: 0x134B6B4
System::IO::Stream* GetManifestResourceStream(System::Type* type, ::Il2CppString* name, bool skipSecurityCheck, System::Threading::StackCrawlMark& stackMark);
// System.IO.Stream GetManifestResourceStream(System.String name, System.Threading.StackCrawlMark stackMark, System.Boolean skipSecurityCheck)
// Offset: 0x134B848
System::IO::Stream* GetManifestResourceStream(::Il2CppString* name, System::Threading::StackCrawlMark& stackMark, bool skipSecurityCheck);
// System.String GetSimpleName()
// Offset: 0x134B858
::Il2CppString* GetSimpleName();
// System.Byte[] GetPublicKey()
// Offset: 0x134B888
::Array<uint8_t>* GetPublicKey();
// System.Version GetVersion()
// Offset: 0x134B8B8
System::Version* GetVersion();
// private System.Reflection.AssemblyNameFlags GetFlags()
// Offset: 0x134B8E8
System::Reflection::AssemblyNameFlags GetFlags();
// System.Type[] GetTypes(System.Boolean exportedOnly)
// Offset: 0x134B918
::Array<System::Type*>* GetTypes(bool exportedOnly);
// public System.Type[] GetTypes()
// Offset: 0x134B920
::Array<System::Type*>* GetTypes();
// public System.Type GetType(System.String name)
// Offset: 0x134B934
System::Type* GetType(::Il2CppString* name);
// System.Type InternalGetType(System.Reflection.Module module, System.String name, System.Boolean throwOnError, System.Boolean ignoreCase)
// Offset: 0x134B94C
System::Type* InternalGetType(System::Reflection::Module* module, ::Il2CppString* name, bool throwOnError, bool ignoreCase);
// public System.Reflection.AssemblyName GetName(System.Boolean copiedName)
// Offset: 0x134B958
System::Reflection::AssemblyName* GetName(bool copiedName);
// public System.Reflection.AssemblyName GetName()
// Offset: 0x134B9B8
System::Reflection::AssemblyName* GetName();
// static public System.Reflection.Assembly GetAssembly(System.Type type)
// Offset: 0x134BA10
static System::Reflection::Assembly* GetAssembly(System::Type* type);
// System.Reflection.RuntimeAssembly InternalGetSatelliteAssembly(System.String name, System.Globalization.CultureInfo culture, System.Version version, System.Boolean throwOnFileNotFound, System.Threading.StackCrawlMark stackMark)
// Offset: 0x134BAD8
System::Reflection::RuntimeAssembly* InternalGetSatelliteAssembly(::Il2CppString* name, System::Globalization::CultureInfo* culture, System::Version* version, bool throwOnFileNotFound, System::Threading::StackCrawlMark& stackMark);
// static private System.Reflection.Assembly LoadFrom(System.String assemblyFile, System.Boolean refonly)
// Offset: 0x134BFD8
static System::Reflection::Assembly* LoadFrom(::Il2CppString* assemblyFile, bool refonly);
// static public System.Reflection.Assembly LoadFrom(System.String assemblyFile)
// Offset: 0x134BFD0
static System::Reflection::Assembly* LoadFrom(::Il2CppString* assemblyFile);
// static public System.Reflection.Assembly Load(System.String assemblyString)
// Offset: 0x134BFE0
static System::Reflection::Assembly* Load(::Il2CppString* assemblyString);
// static private System.Reflection.Assembly load_with_partial_name(System.String name, System.Security.Policy.Evidence e)
// Offset: 0x134C014
static System::Reflection::Assembly* load_with_partial_name(::Il2CppString* name, System::Security::Policy::Evidence* e);
// static public System.Reflection.Assembly LoadWithPartialName(System.String partialName, System.Security.Policy.Evidence securityEvidence)
// Offset: 0x134C018
static System::Reflection::Assembly* LoadWithPartialName(::Il2CppString* partialName, System::Security::Policy::Evidence* securityEvidence);
// static System.Reflection.Assembly LoadWithPartialName(System.String partialName, System.Security.Policy.Evidence securityEvidence, System.Boolean oldBehavior)
// Offset: 0x134C020
static System::Reflection::Assembly* LoadWithPartialName(::Il2CppString* partialName, System::Security::Policy::Evidence* securityEvidence, bool oldBehavior);
// System.Reflection.Module[] GetModulesInternal()
// Offset: 0x134C0D0
::Array<System::Reflection::Module*>* GetModulesInternal();
// public System.String[] GetManifestResourceNames()
// Offset: 0x134C0D4
::Array<::Il2CppString*>* GetManifestResourceNames();
// static public System.Reflection.Assembly GetExecutingAssembly()
// Offset: 0x134C0D8
static System::Reflection::Assembly* GetExecutingAssembly();
// static public System.Reflection.Assembly GetCallingAssembly()
// Offset: 0x134C120
static System::Reflection::Assembly* GetCallingAssembly();
// static System.IntPtr InternalGetReferencedAssemblies(System.Reflection.Assembly module)
// Offset: 0x134C124
static System::IntPtr InternalGetReferencedAssemblies(System::Reflection::Assembly* module);
// static System.Reflection.AssemblyName[] GetReferencedAssemblies(System.Reflection.Assembly module)
// Offset: 0x134C128
static ::Array<System::Reflection::AssemblyName*>* GetReferencedAssemblies(System::Reflection::Assembly* module);
// private System.Boolean GetManifestResourceInfoInternal(System.String name, System.Reflection.ManifestResourceInfo info)
// Offset: 0x134C68C
bool GetManifestResourceInfoInternal(::Il2CppString* name, System::Reflection::ManifestResourceInfo* info);
// public System.Reflection.ManifestResourceInfo GetManifestResourceInfo(System.String resourceName)
// Offset: 0x134C690
System::Reflection::ManifestResourceInfo* GetManifestResourceInfo(::Il2CppString* resourceName);
// public System.Boolean get_ReflectionOnly()
// Offset: 0x134C7E4
bool get_ReflectionOnly();
// static private System.Exception CreateNIE()
// Offset: 0x134C8A8
static System::Exception* CreateNIE();
// public System.Boolean get_IsFullyTrusted()
// Offset: 0x134C910
bool get_IsFullyTrusted();
// public System.Type GetType(System.String name, System.Boolean throwOnError, System.Boolean ignoreCase)
// Offset: 0x134C918
System::Type* GetType(::Il2CppString* name, bool throwOnError, bool ignoreCase);
// public System.Reflection.Module GetModule(System.String name)
// Offset: 0x134C95C
System::Reflection::Module* GetModule(::Il2CppString* name);
// public System.Reflection.AssemblyName[] GetReferencedAssemblies()
// Offset: 0x134C9A0
::Array<System::Reflection::AssemblyName*>* GetReferencedAssemblies();
// public System.Reflection.Module[] GetModules(System.Boolean getResourceModules)
// Offset: 0x134C9E4
::Array<System::Reflection::Module*>* GetModules(bool getResourceModules);
// protected System.Void .ctor()
// Offset: 0x134B080
// Implemented from: System.Object
// Base method: System.Void Object::.ctor()
static Assembly* New_ctor();
// public System.Void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
// Offset: 0x134B178
// Implemented from: System.Runtime.Serialization.ISerializable
// Base method: System.Void ISerializable::GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
void GetObjectData(System::Runtime::Serialization::SerializationInfo* info, System::Runtime::Serialization::StreamingContext context);
// Creating proxy method: System_Runtime_Serialization_ISerializable_GetObjectData
// Maps to method: GetObjectData
void System_Runtime_Serialization_ISerializable_GetObjectData(System::Runtime::Serialization::SerializationInfo* info, System::Runtime::Serialization::StreamingContext context);
// public System.Boolean IsDefined(System.Type attributeType, System.Boolean inherit)
// Offset: 0x134B1D8
// Implemented from: System.Reflection.ICustomAttributeProvider
// Base method: System.Boolean ICustomAttributeProvider::IsDefined(System.Type attributeType, System.Boolean inherit)
bool IsDefined(System::Type* attributeType, bool inherit);
// public System.Object[] GetCustomAttributes(System.Type attributeType, System.Boolean inherit)
// Offset: 0x134B258
// Implemented from: System.Reflection.ICustomAttributeProvider
// Base method: System.Object[] ICustomAttributeProvider::GetCustomAttributes(System.Type attributeType, System.Boolean inherit)
::Array<::Il2CppObject*>* GetCustomAttributes(System::Type* attributeType, bool inherit);
// public override System.String ToString()
// Offset: 0x134B9CC
// Implemented from: System.Object
// Base method: System.String Object::ToString()
::Il2CppString* ToString();
// public override System.Int32 GetHashCode()
// Offset: 0x134C7E8
// Implemented from: System.Object
// Base method: System.Int32 Object::GetHashCode()
int GetHashCode();
// public override System.Boolean Equals(System.Object o)
// Offset: 0x134C7EC
// Implemented from: System.Object
// Base method: System.Boolean Object::Equals(System.Object o)
bool Equals(::Il2CppObject* o);
}; // System.Reflection.Assembly
// static public System.Boolean op_Equality(System.Reflection.Assembly left, System.Reflection.Assembly right)
// Offset: 0x134CA28
bool operator ==(System::Reflection::Assembly* left, System::Reflection::Assembly& right);
// static public System.Boolean op_Inequality(System.Reflection.Assembly left, System.Reflection.Assembly right)
// Offset: 0x134B624
bool operator !=(System::Reflection::Assembly* left, System::Reflection::Assembly& right);
}
DEFINE_IL2CPP_ARG_TYPE(System::Reflection::Assembly*, "System.Reflection", "Assembly");
#pragma pack(pop)
| 51.750853 | 235 | 0.750181 | [
"object"
] |
64f3bf876df2992d4f857bd6040fd55b048a863d | 1,402 | cpp | C++ | LeetCode/Problems/Algorithms/#210_CourseScheduleII_sol8_topological_sort_with_dfs_O(V+E)_time_O(V+E)_extra_space_20ms_14.2MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#210_CourseScheduleII_sol8_topological_sort_with_dfs_O(V+E)_time_O(V+E)_extra_space_20ms_14.2MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#210_CourseScheduleII_sol8_topological_sort_with_dfs_O(V+E)_time_O(V+E)_extra_space_20ms_14.2MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
private:
void dfs(int node, vector<bool>& vis, vector<bool>& isInStack, vector<vector<int>>& g,
vector<int>& topSortNodes, bool& cycleFound){
vis[node] = true;
isInStack[node] = true;
for(int nextNode: g[node]){
if(isInStack[nextNode]){
cycleFound = true;
}else if(!vis[nextNode] && !cycleFound){
dfs(nextNode, vis, isInStack, g, topSortNodes, cycleFound);
}
}
isInStack[node] = false;
topSortNodes.push_back(node);
}
public:
vector<int> findOrder(int numCourses, vector<vector<int>>& prerequisites) {
const int N = numCourses;
vector<vector<int>> g(N);
for(const vector<int>& P: prerequisites){
g[P[1]].push_back(P[0]);
}
bool cycleFound = false;
vector<bool> vis(N, false);
vector<bool> isInStack(N, false);
vector<int> topSortNodes;
for(int node = 0; node < N; ++node){
if(!vis[node] && !cycleFound){
dfs(node, vis, isInStack, g, topSortNodes, cycleFound);
}
}
reverse(topSortNodes.begin(), topSortNodes.end());
if(cycleFound){
topSortNodes.clear();
}
return topSortNodes;
}
}; | 31.863636 | 91 | 0.506419 | [
"vector"
] |
64fafafc80a8e8d3d6a2363b0fe4ba4d36e3bb03 | 1,437 | cpp | C++ | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcLineIndex.cpp | shelltdf/ifcplusplus | 120ef686c4002c1cc77e3808fe00b8653cfcabd7 | [
"MIT"
] | null | null | null | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcLineIndex.cpp | shelltdf/ifcplusplus | 120ef686c4002c1cc77e3808fe00b8653cfcabd7 | [
"MIT"
] | null | null | null | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcLineIndex.cpp | shelltdf/ifcplusplus | 120ef686c4002c1cc77e3808fe00b8653cfcabd7 | [
"MIT"
] | 1 | 2021-04-26T14:56:09.000Z | 2021-04-26T14:56:09.000Z | /* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <sstream>
#include <limits>
#include <map>
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/writer/WriterUtil.h"
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/IFC4/include/IfcSegmentIndexSelect.h"
#include "ifcpp/IFC4/include/IfcLineIndex.h"
// TYPE IfcLineIndex = LIST [2:?] OF IfcPositiveInteger;
shared_ptr<BuildingObject> IfcLineIndex::getDeepCopy( BuildingCopyOptions& options )
{
shared_ptr<IfcLineIndex> copy_self( new IfcLineIndex() );
copy_self->m_value = m_value;
return copy_self;
}
void IfcLineIndex::getStepParameter( std::stringstream& stream, bool is_select_type ) const
{
if( is_select_type ) { stream << "IFCLINEINDEX("; }
writeNumericTypeList( stream, m_vec );
if( is_select_type ) { stream << ")"; }
}
const std::wstring IfcLineIndex::toString() const
{
std::wstringstream strs;
strs << m_value;
return strs.str();
}
shared_ptr<IfcLineIndex> IfcLineIndex::createObjectFromSTEP( const std::wstring& arg, const std::map<int,shared_ptr<BuildingEntity> >& map )
{
if( arg.compare( L"$" ) == 0 ) { return shared_ptr<IfcLineIndex>(); }
if( arg.compare( L"*" ) == 0 ) { return shared_ptr<IfcLineIndex>(); }
shared_ptr<IfcLineIndex> type_object( new IfcLineIndex() );
readTypeOfIntegerList( arg, type_object->m_vec );
return type_object;
}
| 35.925 | 141 | 0.723034 | [
"model"
] |
64fb533d74e57ab3850ff15bbf343ddb87d3a990 | 2,513 | cpp | C++ | euler081.cpp | suihan74/ProjectEuler | 0ccd2470206a606700ab5c2a7162b2a3d3de2f8d | [
"MIT"
] | null | null | null | euler081.cpp | suihan74/ProjectEuler | 0ccd2470206a606700ab5c2a7162b2a3d3de2f8d | [
"MIT"
] | null | null | null | euler081.cpp | suihan74/ProjectEuler | 0ccd2470206a606700ab5c2a7162b2a3d3de2f8d | [
"MIT"
] | null | null | null | /**
* Problem 81 「経路の和:2方向」
* 下記の5次の正方行列で, 左上のセルから開始し右下のセルで終わるパスを探索する. ただし下方向と右方向にのみ移動できるものとする.
* 通過したセルの和が最小となるパスは赤の太字で示されたもので, その値は2427である.
*
* 131 673 234 103 18
* 201 96 342 965 150
* 630 803 746 422 111
* 537 699 497 121 956
* 805 732 524 37 331
* 今, 31Kのテキストファイルmatrix.txt (右クリックして, 『名前をつけてリンク先を保存』)には80×80の行列が書かれている.
* 同様に左上のセルから開始し右下のセルで終わり, かつ右方向と下方向にのみ移動するときの最小のパスの和を求めよ.
*/
// e018の応用で解ける
#include <algorithm>
#include <cstdint>
#include <fstream>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <vector>
using uInt = std::uint_fast32_t;
using Matrix = std::vector<std::vector<uInt>>;
Matrix load_data_file(const char* filename)
{
Matrix result;
std::ifstream ifs(filename);
if (ifs.fail()) {
throw std::invalid_argument("cannot open a datafile.");
}
try {
std::string line_buffer, num_buffer;
while (!ifs.eof()) {
std::getline(ifs, line_buffer);
std::istringstream line_stream(line_buffer);
result.resize(result.size() + 1);
while (!line_stream.eof()) {
std::getline(line_stream, num_buffer, ',');
result.rbegin()->push_back(std::stoul(num_buffer));
}
}
}
catch (std::invalid_argument& e) {
throw std::runtime_error("the datafile contains illegal data. (not a number)");
}
catch (std::out_of_range& e) {
throw std::runtime_error("the datafile contains illegal data. (out of range)");
}
return result;
}
uInt trace_min_path(const Matrix& mat)
{
const uInt WIDTH = mat.begin()->size();
const uInt HEIGHT = mat.size();
// あるセルの最小値のメモ
std::vector<uInt> memo(WIDTH * HEIGHT, 0);
memo.at(0) = *mat.begin()->begin();
// (0,0)から真横・真下のセルの最小値はそのまま足していけば良い
for (uInt x = 1; x < WIDTH; x++) {
memo.at(x) = memo.at(x - 1) + mat.at(0).at(x);
}
for (uInt y = 1; y < HEIGHT; y++) {
memo.at(y * WIDTH) = memo.at((y - 1) * WIDTH) + mat.at(y).at(0);
}
// 他のセルは,そのセルの一つ前の状態2候補から小さい方を選んで計算
for (uInt y = 1; y < HEIGHT; y++) {
for (uInt x = 1; x < WIDTH; x++) {
const uInt top = memo.at(x + (y - 1) * WIDTH);
const uInt left = memo.at(x - 1 + y * WIDTH);
memo.at(x + y * WIDTH) = std::min(top, left) + mat.at(y).at(x);
}
}
return *memo.rbegin();
}
int main(void)
{
try {
const auto mat = load_data_file("euler081.txt");
std::cout << "Euler081: " << trace_min_path(mat) << std::endl;
}
catch (std::exception& e) {
std::cout << e.what() << std::endl;
}
return 0;
}
| 26.177083 | 83 | 0.629526 | [
"vector"
] |
8f03dea78acd476efddc4632544ea7d45a689f42 | 42,049 | cc | C++ | tests/texturetests/texturetests.cc | suikki/KTX-Software | 9114ca24005d019bcfe72ee22e938eeea163b350 | [
"Zlib",
"Apache-2.0",
"MIT"
] | null | null | null | tests/texturetests/texturetests.cc | suikki/KTX-Software | 9114ca24005d019bcfe72ee22e938eeea163b350 | [
"Zlib",
"Apache-2.0",
"MIT"
] | null | null | null | tests/texturetests/texturetests.cc | suikki/KTX-Software | 9114ca24005d019bcfe72ee22e938eeea163b350 | [
"Zlib",
"Apache-2.0",
"MIT"
] | null | null | null | /* -*- tab-width: 4; -*- */
/* vi: set sw=2 ts=4: */
/**
* @internal
* @file texturetests.cc
* @~English
*
* @brief Test ktxTexture API functions.
*
* @author Mark Callow, Edgewise Consulting
*/
/*
* ©2010-2018 Mark Callow, <khronos at callow dot im>.
*
* 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.
*/
#if defined(_WIN32)
#define _CRT_SECURE_NO_WARNINGS
#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#endif
#include <string.h>
#include "GL/glcorearb.h"
#include "ktx.h"
#include "ktxint.h"
#include "gtest/gtest.h"
#include "wthelper.h"
#define ROUNDING(x) \
(3 - ((x + KTX_GL_UNPACK_ALIGNMENT-1) % KTX_GL_UNPACK_ALIGNMENT));
namespace {
//-------------------------------------------------------
// Helper for base fixture & ktxTexture_WriterTest cases.
//-------------------------------------------------------
template<typename component_type, ktx_uint32_t numComponents,
GLenum internalformat>
class TextureWriterTestHelper
: public WriterTestHelper<component_type, numComponents, internalformat> {
public:
typedef typename WriterTestHelper<component_type, numComponents, internalformat>::createFlags createFlags;
typedef typename WriterTestHelper<component_type, numComponents, internalformat>::createFlagBits createFlagBits;
using WriterTestHelper<component_type, numComponents, internalformat>::images;
using WriterTestHelper<component_type, numComponents, internalformat>::imageList;
using WriterTestHelper<component_type, numComponents, internalformat>::width;
using WriterTestHelper<component_type, numComponents, internalformat>::height;
using WriterTestHelper<component_type, numComponents, internalformat>::levelsFromSize;
TextureWriterTestHelper() {}
void
resize(createFlags flags, ktx_uint32_t numLayers, ktx_uint32_t numFaces,
ktx_uint32_t numDimensions,
ktx_uint32_t width, ktx_uint32_t height, ktx_uint32_t depth)
{
WriterTestHelper<component_type, numComponents, internalformat>::resize(
flags, numLayers, numFaces,
numDimensions, width,
height, depth);
createInfo.resize(flags, numLayers, numFaces,
numDimensions, width, height, depth);
}
// Compare images as loaded into a ktxTexture object with our image.
bool
compareTextureImages(ktx_uint8_t* data)
{
bool match = true;
for (ktx_uint32_t level = 0; level < images.size(); level++) {
ktx_uint32_t levelWidth = MAX(1, width >> level);
ktx_uint32_t levelHeight = MAX(1, height >> level);
ktx_size_t rowBytes = levelWidth * sizeof(component_type) * numComponents;
ktx_uint32_t rowRounding = ROUNDING(rowBytes);
ktx_size_t paddedImageBytes = (rowBytes + rowRounding) * levelHeight;
for (ktx_uint32_t layer = 0; layer < images[0].size(); layer++) {
for (ktx_uint32_t faceSlice = 0; faceSlice < images[level][layer].size(); faceSlice++) {
if (memcmp(&images[level][layer][faceSlice].front(), data,
images[level][layer][faceSlice].size())) {
match = false;
break;
}
data += paddedImageBytes;
}
}
}
return match;
}
KTX_error_code
copyImagesToTexture(ktxTexture* texture) {
KTX_error_code result;
for (ktx_uint32_t level = 0; level < images.size(); level++) {
for (ktx_uint32_t layer = 0; layer < images[level].size(); layer++) {
for (ktx_uint32_t faceSlice = 0; faceSlice < images[level][layer].size(); faceSlice++) {
ktx_size_t imageBytes = images[level][layer][faceSlice].size() * sizeof(component_type) * numComponents;
ktx_uint8_t* imageDataPtr = (ktx_uint8_t*)(&images[level][layer][faceSlice].front());
result = ktxTexture_SetImageFromMemory(texture,
level, layer,
faceSlice,
imageDataPtr,
imageBytes);
if (result != KTX_SUCCESS)
break;
}
}
}
return result;
}
class createInfo : public ktxTextureCreateInfo {
public:
createInfo() {
glInternalformat = internalformat;
}
void resize(createFlags flags,
ktx_uint32_t numLayers, ktx_uint32_t numFaces,
ktx_uint32_t numDimensions, ktx_uint32_t width,
ktx_uint32_t height, ktx_uint32_t depth)
{
baseWidth = width;
baseHeight = height;
baseDepth = depth;
this->numDimensions = numDimensions;
generateMipmaps = flags & createFlagBits::eGenerateMipmaps
? KTX_TRUE : KTX_FALSE;
isArray = flags & createFlagBits::eArray ? KTX_TRUE : KTX_FALSE;
this->numFaces = numFaces;
this->numLayers = numLayers;
numLevels = flags & createFlagBits::eMipmapped
? levelsFromSize(width, height, depth) : 1;
};
} createInfo;
};
const ktx_uint8_t ktxId[12] = KTX_IDENTIFIER_REF;
///////////////////////////////////////////////////////////
// Test fixtures
///////////////////////////////////////////////////////////
//----------------------------------------------------
// Base fixture for ktxTexture and related test cases.
//----------------------------------------------------
typedef TextureWriterTestHelper<GLubyte, 4, GL_RGBA8>::createFlagBits createFlagBits;
class ktxTextureTestBase : public ::testing::Test {
protected:
ktxTextureTestBase() : pixelSize(16)
{
helper.resize(createFlagBits::eMipmapped, 1, 1, 2, 16, 16, 1);
// Create a KTX file in memory for testing.
KTX_error_code errorCode;
ktxMemFile = 0;
iterCbCalls = 0;
mipLevels = helper.numLevels;
// Create the in-memory KTX file
errorCode = ktxWriteKTXM(&ktxMemFile, &ktxMemFileLen,
&texInfo, kvDataLen, kvData,
mipLevels, &images.front());
if (KTX_SUCCESS != errorCode) {
ADD_FAILURE() << "ktxWriteKTXM failed: "
<< ktxErrorString(errorCode);
}
}
~ktxTextureTestBase() {
if (ktxMemFile != NULL) delete ktxMemFile;
}
KTX_error_code KTXAPIENTRY
iterCallback(int miplevel, int face,
int width, int height, int depth,
ktx_uint32_t faceLodSize,
void* pixels)
{
int expectedWidth = pixelSize >> miplevel;
EXPECT_EQ(width, expectedWidth);
EXPECT_EQ(faceLodSize, expectedWidth * expectedWidth * 4);
EXPECT_EQ(memcmp(pixels, images[miplevel].data, images[miplevel].size),
0);
iterCbCalls++;
return KTX_SUCCESS;
}
bool
compareTexture(ktxTexture* texture)
{
if (texture->glInternalformat != texInfo.glInternalFormat)
return false;
if (texture->glBaseInternalformat != texInfo.glBaseInternalFormat)
return false;
if (texture->glFormat != texInfo.glFormat)
return false;
if (texture->glType != texInfo.glType)
return false;
if (ktxTexture_glTypeSize(texture) != texInfo.glTypeSize)
return false;
if (texture->baseWidth != texInfo.pixelWidth)
return false;
if (texInfo.pixelHeight == 0) {
if (texture->baseHeight != 1)
return false;
} else if (texture->baseHeight != texInfo.pixelHeight)
return false;
if (texInfo.pixelDepth == 0) {
if (texture->baseDepth != 1)
return false;
} else if (texture->baseDepth != texInfo.pixelDepth)
return false;
if (texture->numFaces != texInfo.numberOfFaces)
return false;
if (texture->numLevels != texInfo.numberOfMipmapLevels)
return false;
return true;
}
static KTX_error_code
iterCallback(int miplevel, int face,
int width, int height,
int depth,
ktx_uint32_t faceLodSize,
void* pixels, void* userdata)
{
ktxTextureTestBase* fixture = (ktxTextureTestBase*)userdata;
return fixture->iterCallback(miplevel, face, width, height, depth,
faceLodSize, pixels);
}
TextureWriterTestHelper<GLubyte, 4, GL_RGBA8> helper;
KTX_texture_info& texInfo = helper.texinfo;
ktxTextureCreateInfo& createInfo = helper.createInfo;
unsigned char*& kvData = helper.kvData;
unsigned int& kvDataLen = helper.kvDataLen;
unsigned char* ktxMemFile;
GLsizei ktxMemFileLen;
const int pixelSize;
int mipLevels;
unsigned int iterCbCalls;
ktx_size_t& imageDataSize = helper.imageDataSize;
std::vector< std::vector < std::vector < std::vector< std::vector<GLubyte> > > > >& imageData = helper.images;
std::vector<KTX_image_info>& images = helper.imageList;
};
//----------------------------------------------------
// Template for base fixture for ktxTextureWrite tests.
//----------------------------------------------------
template<typename component_type, ktx_uint32_t numComponents,
GLenum internalformat>
class ktxTextureWriteTestBase : public ::testing::Test {
public:
using createFlags = typename WriterTestHelper<component_type, numComponents, internalformat>::createFlags;
ktxTextureWriteTestBase() { }
void runTest(bool writeMetadata) {
ktxTexture* texture;
KTX_error_code result;
ktx_uint8_t* ktxMemFile;
ktx_size_t ktxMemFileLen;
ktx_uint8_t* filePtr;
result = ktxTexture_Create(&helper.createInfo,
KTX_TEXTURE_CREATE_ALLOC_STORAGE,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_Create failed: "
<< ktxErrorString(result);
if (writeMetadata)
ktxHashList_AddKVPair(&texture->kvDataHead, KTX_ORIENTATION_KEY,
(unsigned int)strlen(helper.orientation) + 1,
helper.orientation);
result = helper.copyImagesToTexture(texture);
ASSERT_TRUE(result == KTX_SUCCESS);
EXPECT_EQ(helper.compareTextureImages(texture->pData), true);
result = ktxTexture_WriteToMemory(texture, &ktxMemFile, &ktxMemFileLen);
ASSERT_TRUE(result == KTX_SUCCESS) << "ktxTexture_WriteToMemory failed: "
<< ktxErrorString(result);
EXPECT_EQ(memcmp(ktxMemFile, ktxId, sizeof(ktxId)), 0);
EXPECT_EQ(helper.texinfo.compare((KTX_header*)ktxMemFile), true);
// Check the metadata.
filePtr = ktxMemFile + sizeof(KTX_header);
if (writeMetadata) {
EXPECT_EQ(memcmp(filePtr, helper.kvData, helper.kvDataLen), 0);
filePtr += helper.kvDataLen;
}
EXPECT_EQ(helper.compareRawImages(filePtr), true);
delete ktxMemFile;
ktxTexture_Destroy(texture);
}
TextureWriterTestHelper<component_type, numComponents, internalformat> helper;
};
//---------------------------
// Actual test fixtures
//---------------------------
class ktxTexture_CreateTest : public ktxTextureTestBase { };
class ktxTexture_KVDataTest : public ktxTextureTestBase { };
class ktxTexture_IterateLoadLevelFacesTest : public ktxTextureTestBase { };
class ktxTexture_IterateLevelFacesTest : public ktxTextureTestBase { };
class ktxTexture_LoadImageDataTest : public ktxTextureTestBase { };
class ktxTextureWriteTestRGBA8 : public ktxTextureWriteTestBase<GLubyte, 4, GL_RGBA8> { };
class ktxTextureWriteTestRGB8 : public ktxTextureWriteTestBase<GLubyte, 3, GL_RGB8> { };
class ktxTextureWriteTestRG16 : public ktxTextureWriteTestBase<GLshort, 2, GL_RG16> { };
//using createFlagBits = typename WriterTestHelper<GLubyte, 4, GL_RGBA8>::createFlagBits;
/////////////////////////////////////////
// ktxTexture_Create tests
////////////////////////////////////////
TEST_F(ktxTexture_CreateTest, InvalidValueOnNullParams) {
ktxTexture* texture;
EXPECT_EQ(ktxTexture_CreateFromStdioStream(0, 0, &texture),
KTX_INVALID_VALUE);
EXPECT_EQ(ktxTexture_CreateFromNamedFile(0, 0, &texture),
KTX_INVALID_VALUE);
EXPECT_EQ(ktxTexture_CreateFromMemory(0, 0, 0, &texture),
KTX_INVALID_VALUE);
//EXPECT_EQ(ktxTexture_CreateFromStdioStream(0, 0, 0),
// KTX_INVALID_VALUE);
EXPECT_EQ(ktxTexture_CreateFromNamedFile("foo", 0, 0),
KTX_INVALID_VALUE);
EXPECT_EQ(ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen, 0, 0),
KTX_INVALID_VALUE);
}
TEST_F(ktxTexture_CreateTest, ConstructFromMemory) {
ktxTexture* texture;
KTX_error_code result;
if (ktxMemFile != NULL) {
result = ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen,
0, &texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_CreateFromMemory failed: "
<< ktxErrorString(result);
EXPECT_EQ(compareTexture(texture), true);
EXPECT_EQ(texture->isCompressed, KTX_FALSE);
EXPECT_EQ(texture->generateMipmaps, KTX_FALSE);
EXPECT_EQ(texture->numDimensions, 2);
EXPECT_EQ(texture->numLayers, 1);
EXPECT_EQ(texture->isArray, KTX_FALSE);
if (texture)
ktxTexture_Destroy(texture);
}
}
TEST_F(ktxTexture_CreateTest, CreateEmpty) {
ktxTexture* texture;
KTX_error_code result;
result = ktxTexture_Create(&createInfo, KTX_TEXTURE_CREATE_NO_STORAGE,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_Create failed: "
<< ktxErrorString(result);
if (texture)
ktxTexture_Destroy(texture);
}
TEST_F(ktxTexture_CreateTest, InvalidValueTooManyMipLevels) {
ktxTexture* texture;
createInfo.numLevels += 1;
EXPECT_EQ(ktxTexture_Create(&createInfo, KTX_TEXTURE_CREATE_NO_STORAGE, &texture),
KTX_INVALID_OPERATION);
}
TEST_F(ktxTexture_CreateTest, InvalidOpOnSetImagesNoStorage) {
ktxTexture* texture;
KTX_error_code result;
result = ktxTexture_Create(&createInfo, KTX_TEXTURE_CREATE_NO_STORAGE,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_Create failed: "
<< ktxErrorString(result);
// Type RGBA UNSIGNED_BYTE -> *4
ktx_size_t imageBytes = imageData[0].size() * 4;
ktx_uint8_t* imageDataPtr = (ktx_uint8_t*)(&imageData[0].front());
// Allocate the image data and initialize it to a color.
EXPECT_EQ(ktxTexture_SetImageFromMemory(texture, 0, 0, 0,
imageDataPtr,
imageBytes),
KTX_INVALID_OPERATION);
ASSERT_TRUE(result == KTX_SUCCESS);
if (texture)
ktxTexture_Destroy(texture);
}
TEST_F(ktxTexture_CreateTest, CreateEmptyAndSetImages) {
ktxTexture* texture;
KTX_error_code result;
result = ktxTexture_Create(&createInfo, KTX_TEXTURE_CREATE_ALLOC_STORAGE,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_Create failed: "
<< ktxErrorString(result);
result = helper.copyImagesToTexture(texture);
ASSERT_TRUE(result == KTX_SUCCESS);
// imageData is an RGBA texture so no rounding is necessary and we can
// use this simple comparison.
EXPECT_EQ(helper.compareTextureImages(texture->pData), true);
if (texture)
ktxTexture_Destroy(texture);
}
TEST_F(ktxTexture_CreateTest, CreateEmptySetImagesWriteToMemory) {
ktxTexture* texture;
KTX_error_code result;
ktx_uint8_t* testMemFile;
ktx_size_t testMemFileLen;
char orientation[10];
result = ktxTexture_Create(&createInfo, KTX_TEXTURE_CREATE_ALLOC_STORAGE,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_Create failed: "
<< ktxErrorString(result);
snprintf(orientation, sizeof(orientation), KTX_ORIENTATION2_FMT,
'r', 'd');
ktxHashList_AddKVPair(&texture->kvDataHead, KTX_ORIENTATION_KEY,
(unsigned int)strlen(orientation) + 1,
orientation);
result = helper.copyImagesToTexture(texture);
ASSERT_TRUE(result == KTX_SUCCESS);
EXPECT_EQ(helper.compareTextureImages(texture->pData), true);
EXPECT_EQ(ktxTexture_WriteToMemory(texture, &testMemFile, &testMemFileLen),
KTX_SUCCESS);
EXPECT_EQ(testMemFileLen, ktxMemFileLen);
EXPECT_EQ(memcmp(testMemFile, ktxMemFile, ktxMemFileLen), 0);
if (texture)
ktxTexture_Destroy(texture);
}
/////////////////////////////////////////
// ktxTexture_KVData tests
////////////////////////////////////////
TEST_F(ktxTexture_KVDataTest, KVDataDeserialized) {
ktxTexture* texture;
KTX_error_code result;
if (ktxMemFile != NULL) {
result = ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen,
0,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_CreateFromMemory failed: "
<< ktxErrorString(result);
ASSERT_TRUE(texture->kvData == NULL) << "Raw KVData should not be loaded";
ASSERT_TRUE(texture->kvDataHead != NULL) << "KVData not deserialized";
char* pValue;
ktx_uint32_t valueLen;
char s, t;
result = ktxHashList_FindValue(&texture->kvDataHead,
KTX_ORIENTATION_KEY,
&valueLen, (void**)&pValue);
EXPECT_EQ(result, KTX_SUCCESS);
EXPECT_EQ(sscanf(pValue, /*valueLen,*/ KTX_ORIENTATION2_FMT, &s, &t), 2);
EXPECT_EQ(s,'r');
EXPECT_EQ(t, 'd');
if (texture)
ktxTexture_Destroy(texture);
}
}
TEST_F(ktxTexture_KVDataTest, LoadRawKVData) {
ktxTexture* texture;
KTX_error_code result;
if (ktxMemFile != NULL) {
result = ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen,
KTX_TEXTURE_CREATE_RAW_KVDATA_BIT,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_CreateFromMemory failed: "
<< ktxErrorString(result);
ASSERT_TRUE(texture->kvData != NULL) << "Raw KVData not loaded";
ASSERT_TRUE(texture->kvDataHead == NULL) << "KVData should not be deserialized";
EXPECT_EQ(texture->kvDataLen, kvDataLen) << "Length of KV data incorrect";
EXPECT_EQ(memcmp(texture->kvData, kvData, kvDataLen), 0);
if (texture)
ktxTexture_Destroy(texture);
}
}
TEST_F(ktxTexture_KVDataTest, SkipKVData) {
ktxTexture* texture;
KTX_error_code result;
if (ktxMemFile != NULL) {
result = ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen,
KTX_TEXTURE_CREATE_SKIP_KVDATA_BIT,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_CreateFromMemory failed: "
<< ktxErrorString(result);
ASSERT_TRUE(texture->kvData == NULL) << "Raw KVData should not be loaded";
ASSERT_TRUE(texture->kvDataHead == NULL) << "KVData should not be deserialized";
if (texture)
ktxTexture_Destroy(texture);
}
}
/////////////////////////////////////////
// ktxTexture_IterateLoadLevelFaces tests
////////////////////////////////////////
TEST_F(ktxTexture_IterateLoadLevelFacesTest, InvalidValueOnNullCallback) {
ktxTexture* texture;
KTX_error_code result;
ktxTexture_IterateLoadLevelFacesTest* fixture = this;
if (ktxMemFile != NULL) {
result = ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen,
0, &texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_CreateFromMemory failed: "
<< ktxErrorString(result);
EXPECT_EQ(ktxTexture_IterateLoadLevelFaces(texture, 0, fixture),
KTX_INVALID_VALUE);
if (texture)
ktxTexture_Destroy(texture);
}
}
TEST_F(ktxTexture_IterateLoadLevelFacesTest, InvalidOpWhenDataAlreadyLoaded) {
ktxTexture* texture;
KTX_error_code result;
ktxTexture_IterateLoadLevelFacesTest* fixture = this;
if (ktxMemFile != NULL) {
result = ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen,
KTX_TEXTURE_CREATE_LOAD_IMAGE_DATA_BIT,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_CreateFromMemory failed: "
<< ktxErrorString(result);
ASSERT_TRUE(texture->pData != NULL) << "Image data not loaded";
EXPECT_EQ(ktxTexture_IterateLoadLevelFaces(texture, iterCallback, fixture),
KTX_INVALID_OPERATION);
if (texture)
ktxTexture_Destroy(texture);
}
}
TEST_F(ktxTexture_IterateLoadLevelFacesTest, IterateImages) {
ktxTexture* texture;
KTX_error_code result;
ktxTexture_IterateLoadLevelFacesTest* fixture = this;
if (ktxMemFile != NULL) {
result = ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen,
0, &texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_CreateFromMemory failed: "
<< ktxErrorString(result);
EXPECT_EQ(ktxTexture_IterateLoadLevelFaces(texture, iterCallback, fixture),
KTX_SUCCESS);
EXPECT_EQ(iterCbCalls, mipLevels)
<< "No. of calls to iterCallback differs from number of mip levels";
if (texture)
ktxTexture_Destroy(texture);
}
}
/////////////////////////////////////////
// ktxTexture_IterateLoadLevelFaces tests
////////////////////////////////////////
TEST_F(ktxTexture_IterateLevelFacesTest, InvalidValueOnNullCallback) {
ktxTexture* texture;
KTX_error_code result;
ktxTexture_IterateLevelFacesTest* fixture = this;
if (ktxMemFile != NULL) {
result = ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen,
KTX_TEXTURE_CREATE_LOAD_IMAGE_DATA_BIT,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_CreateFromMemory failed: "
<< ktxErrorString(result);
ASSERT_TRUE(texture->pData != NULL) << "Image data not loaded";
EXPECT_EQ(ktxTexture_IterateLevelFaces(texture, 0, fixture),
KTX_INVALID_VALUE);
if (texture)
ktxTexture_Destroy(texture);
}
}
TEST_F(ktxTexture_IterateLevelFacesTest, IterateImages) {
ktxTexture* texture;
KTX_error_code result;
ktxTexture_IterateLevelFacesTest* fixture = this;
if (ktxMemFile != NULL) {
result = ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen,
KTX_TEXTURE_CREATE_LOAD_IMAGE_DATA_BIT,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_CreateFromMemory failed: "
<< ktxErrorString(result);
EXPECT_EQ(ktxTexture_IterateLevelFaces(texture, iterCallback, fixture),
KTX_SUCCESS);
EXPECT_EQ(iterCbCalls, mipLevels)
<< "No. of calls to iterCallback differs from number of mip levels";
if (texture)
ktxTexture_Destroy(texture);
}
}
/////////////////////////////////////////
// ktxTexture_LoadImageData tests
////////////////////////////////////////
TEST_F(ktxTexture_LoadImageDataTest, InvalidOpWhenDataAlreadyLoaded) {
ktxTexture* texture;
KTX_error_code result;
ktx_uint8_t* buf;
if (ktxMemFile != NULL) {
result = ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen,
KTX_TEXTURE_CREATE_LOAD_IMAGE_DATA_BIT,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_CreateFromMemory failed: "
<< ktxErrorString(result);
ASSERT_TRUE(texture->pData != NULL) << "Image data not loaded";
buf = new ktx_uint8_t[imageDataSize];
EXPECT_EQ(ktxTexture_LoadImageData(texture, buf, imageDataSize),
KTX_INVALID_OPERATION);
if (texture)
ktxTexture_Destroy(texture);
delete buf;
}
}
TEST_F(ktxTexture_LoadImageDataTest, InvalidOpWhenDataAlreadyLoadedToExternal) {
ktxTexture* texture;
KTX_error_code result;
ktx_uint8_t* buf;
if (ktxMemFile != NULL) {
result = ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen,
0,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_CreateFromMemory failed: "
<< ktxErrorString(result);
ASSERT_TRUE(texture->pData == NULL) << "Image data must not be loaded";
buf = new ktx_uint8_t[imageDataSize];
EXPECT_EQ(ktxTexture_LoadImageData(texture, buf, imageDataSize),
KTX_SUCCESS);
EXPECT_EQ(ktxTexture_LoadImageData(texture, buf, imageDataSize),
KTX_INVALID_OPERATION);
if (texture)
ktxTexture_Destroy(texture);
delete buf;
}
}
TEST_F(ktxTexture_LoadImageDataTest, LoadImageDataInternal) {
ktxTexture* texture;
KTX_error_code result;
if (ktxMemFile != NULL) {
result = ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen,
KTX_TEXTURE_CREATE_LOAD_IMAGE_DATA_BIT,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_CreateFromMemory failed: "
<< ktxErrorString(result);
ASSERT_TRUE(texture->pData != NULL) << "Image data not loaded";
EXPECT_EQ(imageDataSize, ktxTexture_GetSize(texture));
EXPECT_EQ(helper.compareTextureImages(ktxTexture_GetData(texture)), true);
if (texture)
ktxTexture_Destroy(texture);
}
}
TEST_F(ktxTexture_LoadImageDataTest, LoadImageDataExternal) {
ktxTexture* texture;
KTX_error_code result;
ktx_uint8_t* buf;
if (ktxMemFile != NULL) {
result = ktxTexture_CreateFromMemory(ktxMemFile, ktxMemFileLen,
0,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_CreateFromMemory failed: "
<< ktxErrorString(result);
buf = new ktx_uint8_t[imageDataSize];
EXPECT_EQ(ktxTexture_LoadImageData(texture, buf, imageDataSize),
KTX_SUCCESS);
EXPECT_EQ(imageDataSize, ktxTexture_GetSize(texture));
EXPECT_EQ(helper.compareTextureImages(buf), true);
if (texture)
ktxTexture_Destroy(texture);
delete buf;
}
}
/////////////////////////////////////////
// ktxTexture_GetImageOffset tests
////////////////////////////////////////
class TestCreateInfo : public ktxTextureCreateInfo {
public:
TestCreateInfo() : TestCreateInfo(16) { }
TestCreateInfo(ktx_uint32_t pixelSize)
: TestCreateInfo(pixelSize, pixelSize, 1) { }
TestCreateInfo(ktx_uint32_t width, ktx_uint32_t height, ktx_uint32_t depth) {
baseWidth = width;
baseHeight = height;
baseDepth = depth;
numDimensions = 2;
generateMipmaps = KTX_FALSE;
glInternalformat = GL_RGBA8;
isArray = KTX_FALSE;
numFaces = 1;
numLayers = 1;
numLevels = levelsFromSize(width, height, depth);
};
static ktx_uint32_t
levelsFromSize(ktx_uint32_t width, ktx_uint32_t height, ktx_uint32_t depth) {
ktx_uint32_t mipLevels;
ktx_uint32_t max_dim = MAX(MAX(width, height), depth);
for (mipLevels = 1; max_dim != 1; mipLevels++, max_dim >>= 1) { }
return mipLevels;
}
};
TEST(ktxTexture_GetImageOffsetTest, InvalidOpOnLevelFaceLayerTooBig) {
ktxTexture* texture;
TestCreateInfo createInfo;
KTX_error_code result;
ktx_size_t offset;
result = ktxTexture_Create(&createInfo, KTX_TEXTURE_CREATE_NO_STORAGE,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_Create failed: "
<< ktxErrorString(result);
EXPECT_EQ(ktxTexture_GetImageOffset(texture, createInfo.numLevels, 0, 0, &offset),
KTX_INVALID_OPERATION);
EXPECT_EQ(ktxTexture_GetImageOffset(texture, 0, createInfo.numLayers, 0, &offset),
KTX_INVALID_OPERATION);
EXPECT_EQ(ktxTexture_GetImageOffset(texture, 0, 0, createInfo.numFaces, &offset),
KTX_INVALID_OPERATION);
if (texture)
ktxTexture_Destroy(texture);
}
TEST(ktxTexture_GetImageOffsetTest, ImageOffsetLevel) {
//using createFlagBits = typename WriterTestHelper<GLubyte, 4, GL_RGBA8>::createFlagBits;
TextureWriterTestHelper<GLubyte, 4, GL_RGBA8> helper;
helper.resize(createFlagBits::eMipmapped, 1, 1, 2, 16, 16, 1);
ktxTexture* texture;
KTX_error_code result;
ktx_size_t expectedOffset, imageSize, offset;
result = ktxTexture_Create(&helper.createInfo,
KTX_TEXTURE_CREATE_NO_STORAGE,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_Create failed: "
<< ktxErrorString(result);
EXPECT_EQ(ktxTexture_GetImageOffset(texture, 0, 0, 0, &offset),
KTX_SUCCESS);
EXPECT_EQ(offset, 0);
// GL_RGBA8 is 1 x 4 bytes.
imageSize = helper.createInfo.baseWidth
* helper.createInfo.baseHeight * 1 * 4;
expectedOffset = imageSize;
EXPECT_EQ(ktxTexture_GetImageOffset(texture, 1, 0, 0, &offset),
KTX_SUCCESS);
EXPECT_EQ(offset, expectedOffset);
// The image used to calculate imageDataSize has the same dimensions and
// internalformat as those specified by createInfo.
expectedOffset = helper.imageDataSize - 4;
EXPECT_EQ(ktxTexture_GetImageOffset(texture, helper.createInfo.numLevels - 1, 0, 0, &offset),
KTX_SUCCESS);
EXPECT_EQ(offset, expectedOffset);
if (texture)
ktxTexture_Destroy(texture);
}
TEST(ktxTexture_GetImageOffsetTest, ImageOffsetWithRowPadding) {
ktxTexture* texture;
TestCreateInfo createInfo;
KTX_error_code result;
ktx_size_t expectedOffset, imageSize, offset;
ktx_uint32_t rowBytes, rowRounding;
// Pick type and size that requires row padding for KTX_GL_UNPACK_ALIGNMENT.
createInfo.glInternalformat = GL_RGB8;
createInfo.baseWidth = 9;
result = ktxTexture_Create(&createInfo, KTX_TEXTURE_CREATE_NO_STORAGE,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_Create failed: "
<< ktxErrorString(result);
rowBytes = 9 * 3;
rowRounding = ROUNDING(rowBytes);
imageSize = (rowBytes + rowRounding) * texture->baseHeight;
expectedOffset = imageSize;
EXPECT_EQ(ktxTexture_GetImageOffset(texture, 1, 0, 0, &offset),
KTX_SUCCESS);
EXPECT_EQ(offset, expectedOffset);
expectedOffset = 0;
for (ktx_uint32_t i = 0; i < texture->numLevels - 1; i++) {
ktx_uint32_t levelWidth = MAX(1, texture->baseWidth >> i);
ktx_uint32_t levelHeight = MAX(1, texture->baseHeight >> i);
int levelRowBytes = levelWidth * 3;
rowRounding = ROUNDING(levelRowBytes);
levelRowBytes += rowRounding;
imageSize = levelRowBytes * levelHeight;
expectedOffset += imageSize;
}
EXPECT_EQ(ktxTexture_GetImageOffset(texture, createInfo.numLevels - 1, 0, 0, &offset),
KTX_SUCCESS);
EXPECT_EQ(offset, expectedOffset);
if (texture)
ktxTexture_Destroy(texture);
}
TEST(ktxTexture_GetImageOffsetTest, ImageOffsetArray) {
ktxTexture* texture;
TestCreateInfo createInfo;
KTX_error_code result;
ktx_size_t expectedOffset, offset;
ktx_uint32_t rowBytes, rowRounding, imageSize, layerSize;
ktx_uint32_t levelWidth, levelHeight, levelImageSize, levelRowBytes;
createInfo.glInternalformat = GL_RGB8;
createInfo.baseWidth = 9;
createInfo.numLayers = 3;
result = ktxTexture_Create(&createInfo, KTX_TEXTURE_CREATE_NO_STORAGE,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_Create failed: "
<< ktxErrorString(result);
rowBytes = 9 * 3;
rowRounding = ROUNDING(rowBytes);
imageSize = (rowBytes + rowRounding) * createInfo.baseHeight;
layerSize = imageSize * texture->numFaces;
expectedOffset = layerSize * texture->numLayers;
EXPECT_EQ(ktxTexture_GetImageOffset(texture, 1, 0, 0, &offset),
KTX_SUCCESS);
EXPECT_EQ(offset, expectedOffset);
levelWidth = MAX(1, texture->baseWidth >> 1);
levelHeight = MAX(1, texture->baseHeight >> 1);
levelRowBytes = levelWidth * 3;
rowRounding = ROUNDING(levelRowBytes);
levelRowBytes += rowRounding;
levelImageSize = levelRowBytes * levelHeight;
expectedOffset += levelImageSize * 2;
EXPECT_EQ(ktxTexture_GetImageOffset(texture, 1, 2, 0, &offset),
KTX_SUCCESS);
EXPECT_EQ(offset, expectedOffset);
if (texture)
ktxTexture_Destroy(texture);
}
TEST(ktxTexture_GetImageOffsetTest, ImageOffsetFace) {
ktxTexture* texture;
TestCreateInfo createInfo;
KTX_error_code result;
ktx_size_t expectedOffset, offset;
ktx_uint32_t rowBytes, rowRounding, imageSize, layerSize;
ktx_uint32_t levelWidth, levelHeight, levelImageSize, levelRowBytes;
createInfo.glInternalformat = GL_RGB8;
createInfo.baseWidth = 9;
createInfo.baseHeight = 9;
createInfo.numLevels = 4;
createInfo.numLayers = 1;
createInfo.numFaces = 6;
result = ktxTexture_Create(&createInfo, KTX_TEXTURE_CREATE_NO_STORAGE,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_Create failed: "
<< ktxErrorString(result);
rowBytes = 9 * 3;
rowRounding = ROUNDING(rowBytes);
imageSize = (rowBytes + rowRounding) * texture->baseHeight;
layerSize = imageSize * texture->numFaces;
expectedOffset = imageSize * 4;
EXPECT_EQ(ktxTexture_GetImageOffset(texture, 0, 0, 4, &offset),
KTX_SUCCESS);
EXPECT_EQ(offset, expectedOffset);
levelWidth = MAX(1, texture->baseWidth >> 1);
levelHeight = MAX(1, texture->baseHeight >> 1);
levelRowBytes = levelWidth * 3;
rowRounding = ROUNDING(levelRowBytes);
levelRowBytes += rowRounding;
levelImageSize = levelRowBytes * levelHeight;
expectedOffset = layerSize + levelImageSize * 3;
EXPECT_EQ(ktxTexture_GetImageOffset(texture, 1, 0, 3, &offset),
KTX_SUCCESS);
EXPECT_EQ(offset, expectedOffset);
if (texture)
ktxTexture_Destroy(texture);
}
TEST(ktxTexture_GetImageOffsetTest, ImageOffsetArrayFace) {
ktxTexture* texture;
TestCreateInfo createInfo;
KTX_error_code result;
ktx_size_t expectedOffset, offset;
ktx_uint32_t rowBytes, rowRounding, imageSize, layerSize;
ktx_uint32_t levelWidth, levelHeight, levelImageSize, levelRowBytes;
createInfo.glInternalformat = GL_RGB8;
createInfo.baseWidth = 9;
createInfo.baseWidth = 9;
createInfo.baseHeight = 9;
createInfo.numLevels = 4;
createInfo.numLayers = 3;
createInfo.numFaces = 6;
result = ktxTexture_Create(&createInfo, KTX_TEXTURE_CREATE_NO_STORAGE,
&texture);
EXPECT_EQ(result, KTX_SUCCESS);
ASSERT_TRUE(texture != NULL) << "ktxTexture_Create failed: "
<< ktxErrorString(result);
rowBytes = 9 * 3;
rowRounding = ROUNDING(rowBytes);
imageSize = (rowBytes + rowRounding) * createInfo.baseHeight;
layerSize = imageSize * texture->numFaces;
expectedOffset = layerSize * createInfo.numLayers;
EXPECT_EQ(ktxTexture_GetImageOffset(texture, 1, 0, 0, &offset),
KTX_SUCCESS);
EXPECT_EQ(offset, expectedOffset);
levelWidth = MAX(1, createInfo.baseWidth >> 1);
levelHeight = MAX(1, createInfo.baseHeight >> 1);
levelRowBytes = levelWidth * 3;
rowRounding = ROUNDING(levelRowBytes);
levelRowBytes += rowRounding;
levelImageSize = levelRowBytes * levelHeight;
expectedOffset += levelImageSize * texture->numFaces * 2;
EXPECT_EQ(ktxTexture_GetImageOffset(texture, 1, 2, 0, &offset),
KTX_SUCCESS);
EXPECT_EQ(offset, expectedOffset);
expectedOffset += levelImageSize * 3; // 3 faces
EXPECT_EQ(ktxTexture_GetImageOffset(texture, 1, 2, 3, &offset),
KTX_SUCCESS);
EXPECT_EQ(offset, expectedOffset);
if (texture)
ktxTexture_Destroy(texture);
}
/////////////////////////////////////////
// ktxTexture_Write tests
////////////////////////////////////////
TEST_F(ktxTextureWriteTestRGB8, Write1D) {
helper.resize(createFlagBits::eNone, 1, 1, 1, 32, 1, 1);
runTest(false);
}
TEST_F(ktxTextureWriteTestRGB8, Write1DNeedsPadding) {
helper.resize(createFlagBits::eNone, 1, 1, 1, 9, 1, 1);
runTest(false);
}
TEST_F(ktxTextureWriteTestRGBA8, Write1DMipmap) {
helper.resize(createFlagBits::eMipmapped, 1, 1, 1, 32, 1, 1);
runTest(false);
}
TEST_F(ktxTextureWriteTestRGB8, Write1DArray) {
helper.resize(createFlagBits::eArray, 4, 1, 1, 32, 1, 1);
runTest(false);
}
TEST_F(ktxTextureWriteTestRGBA8, Write1DArrayMipmap) {
helper.resize(createFlagBits::eMipmapped | createFlagBits::eArray,
4, 1, 1, 32, 1, 1);
runTest(false);
}
TEST_F(ktxTextureWriteTestRGB8, Write2D) {
helper.resize(createFlagBits::eNone, 1, 1, 2, 32, 32, 1);
runTest(true);
}
TEST_F(ktxTextureWriteTestRGB8, Write2DMipmap) {
helper.resize(createFlagBits::eMipmapped, 1, 1, 2, 32, 32, 1);
runTest(true);
}
TEST_F(ktxTextureWriteTestRGBA8, Write2DArray) {
helper.resize(createFlagBits::eArray, 4, 1, 2, 32, 32, 1);
runTest(true);
}
TEST_F(ktxTextureWriteTestRGBA8, Write2DArrayMipmap) {
helper.resize(createFlagBits::eArray | createFlagBits::eMipmapped,
4, 1, 2, 32, 32, 1);
runTest(true);
}
TEST_F(ktxTextureWriteTestRGB8, 3D) {
helper.resize(createFlagBits::eNone,1, 1, 3, 32, 32, 32);
runTest(true);
}
TEST_F(ktxTextureWriteTestRGB8, Write3DMipmap) {
helper.resize(createFlagBits::eMipmapped, 1, 1, 3, 8, 8, 2);
runTest(true);
}
TEST_F(ktxTextureWriteTestRGB8, WriteCubemap) {
helper.resize(createFlagBits::eNone, 1, 6, 2, 32, 32, 1);
runTest(true);
}
TEST_F(ktxTextureWriteTestRGBA8, WriteCubemapMipmap) {
helper.resize(createFlagBits::eMipmapped,
1, 6, 2, 32, 32, 1);
runTest(true);
}
TEST_F(ktxTextureWriteTestRGBA8, WriteCubemapArrayMipmap) {
helper.resize(createFlagBits::eMipmapped | createFlagBits::eArray,
4, 6, 2, 32, 32, 1);
runTest(true);
}
TEST_F(ktxTextureWriteTestRG16, Write2DMipmap) {
helper.resize(createFlagBits::eMipmapped, 1, 1, 2, 32, 32, 1);
runTest(true);
}
} // namespace
| 38.541705 | 124 | 0.611858 | [
"object",
"vector",
"3d"
] |
8f0a564b6234ec488d4b4cefcd4295e7187ff5a1 | 1,380 | cpp | C++ | src/Cpp/09_Listy_wprowadzenie/Zad12.cpp | djeada/Nauka-programowania | b1eb6840c15b830acf552f0a0fc5cc692759152f | [
"MIT"
] | 3 | 2020-09-19T21:38:30.000Z | 2022-03-30T11:02:26.000Z | src/Cpp/09_Listy_wprowadzenie/Zad12.cpp | djeada/Nauka-programowania | b1eb6840c15b830acf552f0a0fc5cc692759152f | [
"MIT"
] | null | null | null | src/Cpp/09_Listy_wprowadzenie/Zad12.cpp | djeada/Nauka-programowania | b1eb6840c15b830acf552f0a0fc5cc692759152f | [
"MIT"
] | 1 | 2022-02-04T09:13:20.000Z | 2022-02-04T09:13:20.000Z | #include <cassert>
#include <string>
#include <vector>
// Otrzymujesz liste liczb, kierunek przesuniec (1 odpowiada przesunieciu
// w prawo, a 0 w lewo) oraz liczbe miejsc o jaka maja zostac przesuniete
// elementy. Przykladowo dla przesuwania w prawo pierwszy element trafia
// na miejsce drugiego, drugi trzeciego, a ostatni na miejsce pierwszego.
// Przesun elementy listy w danym kierunku.
// Zlozonosc czasowa O(n)
// Zlozonosc pamieciowa O(n)
void rotacjaV1(std::vector<int> &lista, const std::string &kierunek,
int liczba) {
if (kierunek == "prawo") {
for (int i = 0; i < liczba; i++) {
lista.insert(lista.begin(), lista.back());
lista.erase(std::prev(lista.end()));
}
}
else {
for (int i = 0; i < liczba; i++) {
lista.push_back(lista.front());
lista.erase(lista.begin());
}
}
}
void test1() {
std::vector<int> lista{5, 27, 6, 2, 1, 10, 8};
std::vector<int> wynik{6, 2, 1, 10, 8, 5, 27};
std::string kierunek = "lewo";
int liczba = 2;
rotacjaV1(lista, kierunek, liczba);
assert(lista == wynik);
}
void test2() {
std::vector<int> lista{9, 9, 42, 47, 5, 6, 19, 7};
std::vector<int> wynik{6, 19, 7, 9, 9, 42, 47, 5};
std::string kierunek = "prawo";
int liczba = 3;
rotacjaV1(lista, kierunek, liczba);
assert(lista == wynik);
}
int main() {
test1();
test2();
return 0;
}
| 23 | 73 | 0.622464 | [
"vector"
] |
557ed8a978834b57fbd22569e785e2298b5348a6 | 9,997 | cc | C++ | src/crawler_robot/src/crawler_flipper.cc | m-shimizu/Samples_Gazebo_ROS | 54ecfc2d77dc8aacce010151593d1d08d04f7bce | [
"MIT"
] | 5 | 2019-01-08T12:54:10.000Z | 2022-02-18T10:08:22.000Z | src/crawler_robot/src/crawler_flipper.cc | m-shimizu/Samples_Gazebo_ROS | 54ecfc2d77dc8aacce010151593d1d08d04f7bce | [
"MIT"
] | 2 | 2019-01-11T14:32:07.000Z | 2020-01-17T10:20:08.000Z | src/crawler_robot/src/crawler_flipper.cc | m-shimizu/Samples_Gazebo_ROS | 54ecfc2d77dc8aacce010151593d1d08d04f7bce | [
"MIT"
] | 2 | 2019-03-20T04:51:08.000Z | 2020-06-22T06:32:16.000Z | #include <boost/bind.hpp>
#include <gazebo/gazebo.hh>
#include <gazebo/physics/physics.hh>
#include <gazebo/common/common.hh>
#include <gazebo/transport/TransportTypes.hh>
#include <gazebo/msgs/MessageTypes.hh>
#include <gazebo/common/Time.hh>
#include <stdio.h>
#if(GAZEBO_MAJOR_VERSION <= 8)
#include <gazebo/math/gzmath.hh>
#endif
#include "flipper_control_msgs.hh"
#include <termios.h>
#include <iostream>
#define D_SDFGET_NAME this->model->GetName().c_str()
#define D_SDFGET_STRINGX(N) ((!_sdf->HasElement(N))?\
NULL:_sdf->GetElement(N)->Get<std::string>())
#define D_SDFGET_JOINT(J,N) gzmsg<<N<<":"<< D_SDFGET_STRINGX(N)<<std::endl; \
if(!(J = this->model->GetJoint(D_SDFGET_STRINGX(N))))\
{gzerr<<D_SDFGET_NAME<<":No JOINT <"<<N<<">"\
<<std::endl; return false;}
namespace gazebo
{
class MobileBasePlugin : public ModelPlugin
{
transport::NodePtr node;
physics::ModelPtr model;
common::Time simTime;
// Gazebo Topic
transport::SubscriberPtr velSub;
transport::SubscriberPtr flpSub;
// Loop Event
event::ConnectionPtr updateConnection;
physics::JointPtr hinge1;
physics::JointPtr hinge2;
physics::JointPtr hinge3;
physics::JointPtr hinge4;
physics::JointPtr hinge5;
physics::JointPtr hinge6;
physics::JointPtr hinge7;
physics::JointPtr hinge8;
physics::JointPtr hinge9;
physics::JointPtr hinge10;
physics::JointPtr hinge11;
physics::JointPtr hinge12;
physics::JointPtr hinge13;
physics::JointPtr hinge14;
physics::JointPtr hinge15;
physics::JointPtr hinge16;
physics::JointPtr hinge17;
physics::JointPtr hinge18;
physics::JointPtr hinge19;
physics::JointPtr hinge20;
physics::JointPtr hinge21;
physics::JointPtr hinge22;
physics::JointPtr hinge23;
physics::JointPtr hinge24;
physics::JointPtr hinge25;
physics::JointPtr hinge26;
physics::JointPtr hinge27;
physics::JointPtr hinge28;
physics::JointPtr hinge29;
physics::JointPtr hinge30;
/// Wheel speed and gain
double Target_VEL_R, Target_VEL_L;
double gain;
/// Distance between wheels on the same axis (Determined from SDF)
double wheelSeparation;
/// Radius of the wheels (Determined from SDF)
double wheelRadius;
/// Flipper target angle
double Target_FLP_FR, Target_FLP_FL, Target_FLP_RR, Target_FLP_RL;
public:
MobileBasePlugin(void)
{
Target_FLP_FR = Target_FLP_FL = Target_FLP_RR = Target_FLP_RL = M_PI / 4;
wheelRadius = 0.2;
wheelSeparation = 1;
Target_VEL_R = Target_VEL_L = 0;
}
void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf)
{
// physics::WorldPtr world = physics::get_world("default");
this->model = _model;
this->node = transport::NodePtr(new transport::Node());
#if(GAZEBO_MAJOR_VERSION <= 7)
this->node->Init(this->model->GetWorld()->GetName());
#endif
#if(GAZEBO_MAJOR_VERSION >= 8)
this->node->Init(this->model->GetWorld()->Name());
#endif
if(this->LoadParams(_sdf))
{
this->velSub = this->node->Subscribe(
std::string("~/") + this->model->GetName() + std::string("/vel_cmd"),
&MobileBasePlugin::OnVelMsg, this);
this->flpSub = this->node->Subscribe(
std::string("~/") + this->model->GetName() + std::string("/flp_cmd"),
&MobileBasePlugin::OnFlpMsg, this);
this->updateConnection
= event::Events::ConnectWorldUpdateBegin(
boost::bind(&MobileBasePlugin::OnUpdate, this));
}
}
bool LoadParams(sdf::ElementPtr _sdf)
{
if(!_sdf->HasElement("gain"))
{
gzerr << "param [gain] not found\n";
return false;
}
else
this->gain = _sdf->Get<double>("gain");
D_SDFGET_JOINT(hinge1,"right_front");
D_SDFGET_JOINT(hinge2,"right_center1");
D_SDFGET_JOINT(hinge3,"right_center2");
D_SDFGET_JOINT(hinge29,"right_center3");
D_SDFGET_JOINT(hinge4,"right_rear");
D_SDFGET_JOINT(hinge5,"left_front");
D_SDFGET_JOINT(hinge6,"left_center1");
D_SDFGET_JOINT(hinge7,"left_center2");
D_SDFGET_JOINT(hinge30,"left_center3");
D_SDFGET_JOINT(hinge8,"left_rear");
D_SDFGET_JOINT(hinge9,"right_front_arm");
D_SDFGET_JOINT(hinge10,"right_rear_arm");
D_SDFGET_JOINT(hinge11,"left_front_arm");
D_SDFGET_JOINT(hinge12,"left_rear_arm");
D_SDFGET_JOINT(hinge13,"right_front_arm_wheel_1");
D_SDFGET_JOINT(hinge14,"right_front_arm_wheel_2");
D_SDFGET_JOINT(hinge15,"right_front_arm_wheel_3");
D_SDFGET_JOINT(hinge16,"left_front_arm_wheel_1");
D_SDFGET_JOINT(hinge17,"left_front_arm_wheel_2");
D_SDFGET_JOINT(hinge18,"left_front_arm_wheel_3");
D_SDFGET_JOINT(hinge19,"right_rear_arm_wheel_1");
D_SDFGET_JOINT(hinge20,"right_rear_arm_wheel_2");
D_SDFGET_JOINT(hinge21,"right_rear_arm_wheel_3");
D_SDFGET_JOINT(hinge22,"left_rear_arm_wheel_1");
D_SDFGET_JOINT(hinge23,"left_rear_arm_wheel_2");
D_SDFGET_JOINT(hinge24,"left_rear_arm_wheel_3");
D_SDFGET_JOINT(hinge25,"right_sub2");
D_SDFGET_JOINT(hinge26,"right_sub3");
D_SDFGET_JOINT(hinge27,"left_sub2");
D_SDFGET_JOINT(hinge28,"left_sub3");
return true;
}
/////////////////////////////////////////////////
void OnVelMsg(ConstPosePtr &_msg)
{
// gzmsg << "cmd_vel: " << msg->position().x() << ", "
// <<msgs::Convert(msg->orientation()).GetAsEuler().z<<std::endl;
double vel_lin = _msg->position().x() / this->wheelRadius;
#if(GAZEBO_MAJOR_VERSION == 5)
double vel_rot = -1 * msgs::Convert(_msg->orientation()).GetAsEuler().z
* (this->wheelSeparation / this->wheelRadius);
#endif
#if(GAZEBO_MAJOR_VERSION >= 7)
double vel_rot = -1 * msgs::ConvertIgn(_msg->orientation()).Euler().Z()
* (this->wheelSeparation / this->wheelRadius);
#endif
set_velocity(vel_lin - vel_rot, vel_lin + vel_rot);
}
void set_velocity(double vr, double vl)
{
Target_VEL_R = vr;
Target_VEL_L = vl;
}
/////////////////////////////////////////////////
void OnFlpMsg(ConstFlipperControlPtr &_msg)
{
Target_FLP_FR = _msg->fr();
Target_FLP_FL = _msg->fl();
Target_FLP_RR = _msg->rr();
Target_FLP_RL = _msg->rl();
}
/////////////////////////////////////////////////
void Move_A_Joint_In_Velocity(physics::JointPtr _joint, double _target_vel)
{
float P = _target_vel - _joint->GetVelocity(0);
P *= 1;
// See also [JointController](http://osrf-distributions.s3.amazonaws.com/gazebo/api/dev/classgazebo_1_1physics_1_1JointController.html)
// Set torque fitting power and direction calculated by each angle.
// Seting calculated P as torque is very effective to stop shaking legs!!
// _joint->SetForce(0, 10);
// Set PID parameters
model->GetJointController()->SetVelocityPID(_joint->GetScopedName(),
common::PID(1, 0, 0));
// Set distination angle
model->GetJointController()->SetVelocityTarget(_joint->GetScopedName(),
_target_vel);
}
/////////////////////////////////////////////////
void MoveWheel(void)
{
// Right Side
Move_A_Joint_In_Velocity(hinge1, Target_VEL_R);
Move_A_Joint_In_Velocity(hinge2, Target_VEL_R);
Move_A_Joint_In_Velocity(hinge3, Target_VEL_R);
Move_A_Joint_In_Velocity(hinge4, Target_VEL_R);
Move_A_Joint_In_Velocity(hinge13, Target_VEL_R);
Move_A_Joint_In_Velocity(hinge14, Target_VEL_R);
Move_A_Joint_In_Velocity(hinge15, Target_VEL_R);
Move_A_Joint_In_Velocity(hinge19, Target_VEL_R);
Move_A_Joint_In_Velocity(hinge20, Target_VEL_R);
Move_A_Joint_In_Velocity(hinge21, Target_VEL_R);
Move_A_Joint_In_Velocity(hinge25, Target_VEL_R);
Move_A_Joint_In_Velocity(hinge26, Target_VEL_R);
Move_A_Joint_In_Velocity(hinge29, Target_VEL_R);
// Left side
Move_A_Joint_In_Velocity(hinge5, Target_VEL_L);
Move_A_Joint_In_Velocity(hinge6, Target_VEL_L);
Move_A_Joint_In_Velocity(hinge7, Target_VEL_L);
Move_A_Joint_In_Velocity(hinge8, Target_VEL_L);
Move_A_Joint_In_Velocity(hinge16, Target_VEL_L);
Move_A_Joint_In_Velocity(hinge17, Target_VEL_L);
Move_A_Joint_In_Velocity(hinge18, Target_VEL_L);
Move_A_Joint_In_Velocity(hinge22, Target_VEL_L);
Move_A_Joint_In_Velocity(hinge23, Target_VEL_L);
Move_A_Joint_In_Velocity(hinge24, Target_VEL_L);
Move_A_Joint_In_Velocity(hinge27, Target_VEL_L);
Move_A_Joint_In_Velocity(hinge28, Target_VEL_L);
Move_A_Joint_In_Velocity(hinge30, Target_VEL_L);
}
/////////////////////////////////////////////////
void Move_A_Joint_In_Angle(physics::JointPtr _joint, double _target_angle)
{
#if(GAZEBO_MAJOR_VERSION <= 8)
float P = _target_angle - _joint->GetAngle(0).Radian();
#else
float P = _target_angle - _joint->Position(0);
#endif
P *= 10;
// See also [JointController](http://osrf-distributions.s3.amazonaws.com/gazebo/api/dev/classgazebo_1_1physics_1_1JointController.html)
// Set torque fitting power and direction calculated by each angle.
// Seting calculated P as torque is very effective to stop shaking legs!!
_joint->SetForce(0, P);
// Set PID parameters
model->GetJointController()->SetPositionPID(_joint->GetScopedName(),
common::PID(0.4, 1, 0.005));
// Set distination angle
model->GetJointController()->SetPositionTarget(_joint->GetScopedName(),
_target_angle);
}
void MoveFlipper(void)
{
Move_A_Joint_In_Angle(hinge9, -Target_FLP_FR);
Move_A_Joint_In_Angle(hinge10, Target_FLP_RR);
Move_A_Joint_In_Angle(hinge11, -Target_FLP_FL);
Move_A_Joint_In_Angle(hinge12, Target_FLP_RL);
}
public:
void OnUpdate()
{
MoveWheel();
MoveFlipper();
}
};
GZ_REGISTER_MODEL_PLUGIN(MobileBasePlugin)
}
| 34.954545 | 139 | 0.670301 | [
"model"
] |
55841b78686307e73adc6880b50435b3d7604188 | 2,900 | hpp | C++ | ql/math/solvers1d/newton.hpp | haozhangphd/QuantLib-noBoost | ddded069868161099843c04840454f00816113ad | [
"BSD-3-Clause"
] | 76 | 2017-06-28T21:24:38.000Z | 2021-12-19T18:07:37.000Z | ql/math/solvers1d/newton.hpp | haozhangphd/QuantLib-noBoost | ddded069868161099843c04840454f00816113ad | [
"BSD-3-Clause"
] | 2 | 2017-07-05T09:20:13.000Z | 2019-10-31T12:06:51.000Z | ql/math/solvers1d/newton.hpp | haozhangphd/QuantLib-noBoost | ddded069868161099843c04840454f00816113ad | [
"BSD-3-Clause"
] | 34 | 2017-07-02T14:49:21.000Z | 2021-11-26T15:32:04.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2000, 2001, 2002, 2003 RiskMap srl
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or modify it
under the terms of the QuantLib license. You should have received a
copy of the license along with this program; if not, please email
<quantlib-dev@lists.sf.net>. The license is also available online at
<http://quantlib.org/license.shtml>.
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 license for more details.
*/
/*! \file newton.hpp
\brief Newton 1-D solver
*/
#ifndef quantlib_solver1d_newton_h
#define quantlib_solver1d_newton_h
#include <ql/math/solvers1d/newtonsafe.hpp>
namespace QuantLib {
//! %Newton 1-D solver
/*! \note This solver requires that the passed function object
implement a method <tt>Real derivative(Real)</tt>.
\test the correctness of the returned values is tested by
checking them against known good results.
\ingroup solvers
*/
class Newton : public Solver1D<Newton> {
public:
template<class F>
Real solveImpl(const F &f,
Real xAccuracy) const {
/* The implementation of the algorithm was inspired by
Press, Teukolsky, Vetterling, and Flannery,
"Numerical Recipes in C", 2nd edition,
Cambridge University Press
*/
Real froot, dfroot, dx;
froot = f(root_);
dfroot = f.derivative(root_);
QL_REQUIRE(dfroot != Null<Real>(),
"Newton requires function's derivative");
++evaluationNumber_;
while (evaluationNumber_ <= maxEvaluations_) {
dx = froot / dfroot;
root_ -= dx;
// jumped out of brackets, switch to NewtonSafe
if ((xMin_ - root_) * (root_ - xMax_) < 0.0) {
NewtonSafe s;
s.setMaxEvaluations(maxEvaluations_ - evaluationNumber_);
return s.solve(f, xAccuracy, root_ + dx, xMin_, xMax_);
}
if (std::fabs(dx) < xAccuracy) {
f(root_);
++evaluationNumber_;
return root_;
}
froot = f(root_);
dfroot = f.derivative(root_);
++evaluationNumber_;
}
QL_FAIL("maximum number of function evaluations ("
<< maxEvaluations_ << ") exceeded");
}
};
}
#endif
| 33.333333 | 79 | 0.583793 | [
"object"
] |
558b7e1767dbb986f39d78d0e7d04a863f73ff4b | 52,366 | cpp | C++ | Learn/C语言进阶算法/05.计算几何/geometry.cpp | qaiu/c4droid-code | 5aaddbd5c72794d9dbdf9da27fb364f1e8074351 | [
"MIT"
] | 54 | 2020-11-27T17:57:59.000Z | 2022-03-28T01:48:09.000Z | Learn/C语言进阶算法/05.计算几何/geometry.cpp | qaiu/c4droid-code | 5aaddbd5c72794d9dbdf9da27fb364f1e8074351 | [
"MIT"
] | null | null | null | Learn/C语言进阶算法/05.计算几何/geometry.cpp | qaiu/c4droid-code | 5aaddbd5c72794d9dbdf9da27fb364f1e8074351 | [
"MIT"
] | 17 | 2020-11-28T06:36:19.000Z | 2022-01-28T03:05:27.000Z | /*************************************************************
********************************************************
**计算几何基础库
*********************************************************
©版本信息 完全开源 copy者不要去掉此部分
整理By:千百度QAIU
debug调试记录
1.修改个别的语法错误
2.增加原code缺失的以下函数
a:取最小值 double min(double a,double b);
b:取最大值 double max(double a,double b);
c:对象交换 void swap(T &p1,T &p2);
date:2017/10/27
参考以下链接:
copy from->
http://m.blog.csdn.net/chenhu_doc/article/details/893246
************************************************************
By: chenhu_doc
title:几何algorithm
date:2006/7/8 13:11:00
Copy from-> http://www.cstc.net.cn/bbs/viewtopic.php?t=2750&view=next&sid=9036065472589ff2e6185295fa45c39f
(这个BBS貌似挂掉了)
************************************************************
by abao
2005-11-23
************************************************************/
#include <cmath>
#include "geometry.hpp"
//基本判断函数
double max(double a, double b)
{
return a > b ? a : b;
}
double min(double a, double b)
{
return a < b ? a : b;
}
template < class T >
void swap(T & p1, T & p2)
{
T temp;
p1 = temp;
p1 = p2;
p2 = temp;
}
int sign(double d)
{
return d < EP ? -1 : (d > EP);
}
/********************
* *
* 点的基本运算 *
* *
********************/
double dist(POINT p1, POINT p2) //返回两点之间欧氏距离
{
return (sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y)));
}
double dist2(POINT p1, POINT p2)//返回两点之间欧氏距离
{
return ((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));
}
bool equal_point(POINT p1, POINT p2)
// 判断两个点是否重合
{
return ((fabs(p1.x - p2.x) < EP) && (fabs(p1.y - p2.y) < EP));
}
/***************************************************
r=multiply(sp,ep,op),得到(sp-op)*(ep-op)的叉积
r>0:ep在矢量opsp的逆时针方向;
r=0:opspep三点共线;
r<0:ep在矢量opsp的顺时针方向
****************************************************/
double multiply(POINT sp, POINT ep, POINT op)
{
return ((sp.x - op.x) * (ep.y - op.y) - (ep.x - op.x) * (sp.y - op.y));
}
/*******************************************************************************
r=dotmultiply(p1,p2,op),得到矢量(p1-op)和(p2-op)的点积,如果两个矢量都非零矢量
r<0:两矢量夹角为锐角;r=0:两矢量夹角为直角;r>0:两矢量夹角为钝角
*******************************************************************************/
double dotmultiply(POINT p1, POINT p2, POINT p0)
{
return ((p1.x - p0.x) * (p2.x - p0.x) + (p1.y - p0.y) * (p2.y - p0.y));
}
double multiply(POINT st1, POINT ed1, POINT st2, POINT ed2)
{
return (ed1.x - st1.x) * (ed2.y - st2.y) - (ed1.y - st1.y) * (ed2.x - st2.x);
}
// 点乘
double dotmultiply(POINT st1, POINT ed1, POINT st2, POINT ed2)
{
return (ed1.x - st1.x) * (ed2.x - st2.x) + (ed1.y - st1.y) * (ed2.y - st2.y);
}
/* 判断点p是否在线段l上,条件:(p在线段l所在的直线上)&&
(点p在以线段l为对角线的矩形内) */
bool online(LINESEG l, POINT p)
{
return ((multiply(l.e, p, l.s) == 0)
&& (((p.x - l.s.x) * (p.x - l.e.x) <= 0) && ((p.y - l.s.y) * (p.y - l.e.y) <= 0)));
}
// 返回点p以点o为圆心逆时针旋转alpha(单位:弧度)后所在的位置
//
POINT rotate(POINT o, double alpha, POINT p)
{
POINT tp;
p.x -= o.x;
p.y -= o.y;
tp.x = p.x * cos(alpha) - p.y * sin(alpha) + o.x;
tp.y = p.y * cos(alpha) + p.x * sin(alpha) + o.y;
return tp;
}
/* 返回顶角在o点,起始边为os,终止边为oe的夹角(单位:弧度)
角度小于pi,返回正值 角度大于pi,返回负值
可以用于求线段之间的夹角 */
double angle(POINT o, POINT s, POINT e)
{
double cosfi, fi, norm;
double dsx = s.x - o.x;
double dsy = s.y - o.y;
double dex = e.x - o.x;
double dey = e.y - o.y;
cosfi = dsx * dex + dsy * dey;
norm = (dsx * dsx + dey * dey) * (dex * dex + dey * dey);
cosfi /= sqrt(norm);
if (cosfi >= 1.0)
return 0;
if (cosfi <= -1.0)
return -3.1415926;
fi = acos(cosfi);
if (dsx * dey - dsy * dex > 0)
return fi; // 说明矢量os 在矢量oe的顺时针方向
return -fi;
}
/*****************************
* *
* 线段及直线的基本运算 *
* *
*****************************/
/*
判断点与线段的关系,用途很广泛
r has the following meaning:
r=0 P = A
r=1 P = B
r<0 P is on the backward extension of AB
r>1 P is on the forward extension of AB
0<r<1 P is interior to AB
*/
double relation(POINT p, LINESEG l)
{
LINESEG tl;
tl.s = l.s;
tl.e = p;
return dotmultiply(tl.e, l.e, l.s) / (dist(l.s, l.e) * dist(l.s, l.e));
}
// 求点p到点(st,ed)构成的线段的垂足,列参数方程
POINT getRoot(POINT p, POINT st, POINT ed)
{
POINT ans;
double u = ((ed.x - st.x) * (ed.x - st.x) + (ed.y - st.y) * (ed.y - st.y));
u = ((ed.x - st.x) * (ed.x - p.x) + (ed.y - st.y) * (ed.y - p.y)) / u;
ans.x = u * st.x + (1 - u) * ed.x;
ans.y = u * st.y + (1 - u) * ed.y;
return ans;
}
//next为线段(st,ed)上的点,返回next沿(st,ed)右手垂直方向延伸l之后的点
POINT change(POINT st, POINT ed, POINT next, double l)
{
POINT dd;
dd.x = -(ed.y - st.y);
dd.y = (ed.x - st.x);
double len = sqrt(dd.x * dd.x + dd.y * dd.y);
dd.x /= len, dd.y /= len;
dd.x *= l, dd.y *= l;
dd.x += next.x;
dd.y += next.y;
return dd;
}
// 求点C到线段AB所在直线的垂足 P
POINT perpendicular(POINT p, LINESEG l)
{
double r = relation(p, l);
POINT tp;
tp.x = l.s.x + r * (l.e.x - l.s.x);
tp.y = l.s.y + r * (l.e.y - l.s.y);
return tp;
}
/* 求点p到线段l的最短距离,并返回线段上距该点最近的点np
注意:np是线段l上到点p最近的点,不一定是垂足 */
double ptolinesegdist(POINT p, LINESEG l, POINT & np)
{
double r = relation(p, l);
if (r < 0)
{
np = l.s;
return dist(p, l.s);
}
if (r > 1)
{
np = l.e;
return dist(p, l.e);
}
np = perpendicular(p, l);
return dist(p, np);
}
//求点p到线段l所在直线的距离,请注意本函数与上个函数的区别
double ptoldist(POINT p, LINESEG l)
{
return fabs(multiply(p, l.e, l.s)) / dist(l.s, l.e);
}
/* 计算点到折线集的最近距离,并返回最近点.
注意:调用的是ptolineseg()函数 */
double ptopointset(int vcount, POINT pointset[], POINT p, POINT & q)
{
int i;
double cd = double (INF), td;
LINESEG l;
POINT tq, cq;
for (i = 0; i < vcount - 1; i++)
{
l.s = pointset[i];
l.e = pointset[i + 1];
td = ptolinesegdist(p, l, tq);
if (td < cd)
{
cd = td;
cq = tq;
}
}
q = cq;
return cd;
}
/* 判断圆是否在多边形内.ptolineseg()函数的应用2 */
bool CircleInsidePolygon(int vcount, POINT center, double radius, POINT polygon[])
{
POINT q;
double d;
q.x = 0;
q.y = 0;
d = ptopointset(vcount, polygon, center, q);
if (d < radius || fabs(d - radius) < EP)
return true;
else
return false;
}
/* 返回两个矢量l1和l2的夹角的余弦(-1,1)
注意:如果想从余弦求夹角的话,注意反余弦函数的定义域是从0到pi */
double cosine(LINESEG l1, LINESEG l2)
{
return (((l1.e.x - l1.s.x) * (l2.e.x - l2.s.x) +
(l1.e.y - l1.s.y) * (l2.e.y - l2.s.y)) / (dist(l1.e, l1.s) * dist(l2.e, l2.s)));
}
// 返回线段l1与l2之间的夹角 单位:弧度 范围(-pi,pi)
double lsangle(LINESEG l1, LINESEG l2)
{
POINT o, s, e;
o.x = o.y = 0;
s.x = l1.e.x - l1.s.x;
s.y = l1.e.y - l1.s.y;
e.x = l2.e.x - l2.s.x;
e.y = l2.e.y - l2.s.y;
return angle(o, s, e);
}
// 如果线段u和v相交(包括相交在端点处)时,返回true
bool intersect(LINESEG u, LINESEG v)
{
return ((max(u.s.x, u.e.x) >= min(v.s.x, v.e.x)) &&
//排斥实验
(max(v.s.x, v.e.x) >= min(u.s.x, u.e.x)) && (max(u.s.y, u.e.y) >= min(v.s.y, v.e.y)) && (max(v.s.y, v.e.y) >= min(u.s.y, u.e.y)) && (multiply(v.s, u.e, u.s) * multiply(u.e, v.e, u.s) >= 0) && // 跨立实验
(multiply(u.s, v.e, v.s) * multiply(v.e, u.e, v.s) >= 0));
}
// (线段u和v相交)&&(交点不是双方的端点) 时返回true
bool intersect_A(LINESEG u, LINESEG v)
{
return ((intersect(u, v)) &&
(!online(u, v.s)) && (!online(u, v.e)) && (!online(v, u.e)) && (!online(v, u.s)));
}
//线段v所在直线与线段u相交时返回true;方法:判断线段u是否跨立线段v
bool intersect_l(LINESEG u, LINESEG v)
{
return multiply(u.s, v.e, v.s) * multiply(v.e, u.e, v.s) >= 0;
}
// 根据已知两点坐标,求过这两点的直线解析方程:
// a*x+b*y+c = 0 (a >= 0)
LINE makeline(POINT p1, POINT p2)
{
LINE tl;
int sign = 1;
tl.a = p2.y - p1.y;
if (tl.a < 0)
{
sign = -1;
tl.a = sign * tl.a;
}
tl.b = sign * (p1.x - p2.x);
tl.c = sign * (p1.y * p2.x - p1.x * p2.y);
return tl;
}
//求两点的平分线
LINE bisector(POINT a, POINT b)
{
LINE ab = makeline(a, b);
LINE ans;
double midx = (a.x + b.x) / 2.0, midy = (a.y + b.y) / 2.0;
ans.a = -ab.b, ans.b = -ab.a, ans.c = -ab.b * midx + ab.a * midy;
return ans;
}
// 根据直线解析方程返回直线的斜率k,水平线返回
// 0,竖直线返回 1e200
double slope(LINE l)
{
if (fabs(l.a) < 1e-20)
return 0;
if (fabs(l.b) < 1e-20)
return INF;
return -(l.a / l.b);
}
// 返回直线的倾斜角alpha ( 0 - pi)
double alpha(LINE l)
{
if (fabs(l.a) < EP)
return 0;
if (fabs(l.b) < EP)
return PI / 2;
double k = slope(l);
if (k > 0)
return atan(k);
else
return PI + atan(k);
}
// 求点p关于直线l的对称点
POINT symmetry(LINE l, POINT p)
{
POINT tp;
tp.x =
((l.b * l.b - l.a * l.a) * p.x - 2 * l.a * l.b * p.y - 2 * l.a * l.c) / (l.a * l.a + l.b * l.b);
tp.y = ((l.a * l.a - l.b * l.b) * p.y - 2 * l.a * l.b * p.x - 2 * l.b * l.c) / (l.a * l.a + l.b * l.b);
return tp;
}
/*
如果两条直线
l1(a1*x+b1*y+c1 = 0) l2(a2*x+b2*y+c2 = 0) 相交,返回true,且返回交点p
*/
bool lineintersect(LINE l1, LINE l2, POINT & p)
{
double d = l1.a * l2.b - l2.a * l1.b;
if (fabs(d) < EP) // 不相交
return false;
p.x = (l2.c * l1.b - l1.c * l2.b) / d;
p.y = (l2.a * l1.c - l1.a * l2.c) / d;
return true;
}
//如果线段l1和l2相交,返回true且交点由(inter)返回,否则返回false
bool intersection(LINESEG l1, LINESEG l2, POINT & inter)
{
LINE ll1, ll2;
ll1 = makeline(l1.s, l1.e);
ll2 = makeline(l2.s, l2.e);
if (lineintersect(ll1, ll2, inter))
{
return online(l1, inter);
}
else
return false;
}
/******************************
* *
* 三角形常用算法模块 *
* *
******************************/
POINT intersection(LINESEG u,LINESEG v)
{
POINT ret=u.s;
double t=((u.s.x-v.s.x)*(v.s.y-v.e.y)-(u.s.y-v.s.y)*(v.s.x-v.e.x))
/((u.s.x-u.e.x)*(v.s.y-v.e.y)-(u.s.y-u.e.y)*(v.s.x-v.e.x));
ret.x+=(u.e.x-u.s.x)*t;
ret.y+=(u.e.y-u.s.y)*t;
return ret;
}
// 计算三角形面积,输入三顶点
double area_triangle(POINT p1, POINT p2, POINT p3)
{
return fabs(multiply(p1, p2, p3)) / 2;
}
// 计算三角形面积,输入三边长
double area_triangle(double a, double b, double c)
{
double s = (a + b + c) / 2;
return sqrt(s * (s - a) * (s - b) * (s - c));
}
// 外心
POINT circumcenter(POINT a, POINT b, POINT c)
{
LINESEG u, v;
u.s.x = (a.x + b.x) / 2;
u.s.y = (a.y + b.y) / 2;
u.e.x = u.s.x - a.y + b.y;
u.e.y = u.s.y + a.x - b.x;
v.s.x = (a.x + c.x) / 2;
v.s.y = (a.y + c.y) / 2;
v.e.x = v.s.x - a.y + c.y;
v.e.y = v.s.y + a.x - c.x;
return intersection(u, v);
}
// 内心
POINT incenter(POINT a, POINT b, POINT c)
{
LINESEG u, v;
double m, n;
u.s = a;
m = atan2(b.y - a.y, b.x - a.x);
n = atan2(c.y - a.y, c.x - a.x);
u.e.x = u.s.x + cos((m + n) / 2);
u.e.y = u.s.y + sin((m + n) / 2);
v.s = b;
m = atan2(a.y - b.y, a.x - b.x);
n = atan2(c.y - b.y, c.x - b.x);
v.e.x = v.s.x + cos((m + n) / 2);
v.e.y = v.s.y + sin((m + n) / 2);
return intersection(u, v);
}
// 垂心
POINT perpencenter(POINT a, POINT b, POINT c)
{
LINESEG u, v;
u.s = c;
u.e.x = u.s.x - a.y + b.y;
u.e.y = u.s.y + a.x - b.x;
v.s = b;
v.e.x = v.s.x - a.y + c.y;
v.e.y = v.s.y + a.x - c.x;
return intersection(u, v);
}
// 重心
// 到三角形三顶点距离的平方和最小的点
// 三角形内到三边距离之积最大的点
POINT barycenter(POINT a, POINT b, POINT c)
{
LINESEG u, v;
u.s.x = (a.x + b.x) / 2;
u.s.y = (a.y + b.y) / 2;
u.e = c;
v.s.x = (a.x + c.x) / 2;
v.s.y = (a.y + c.y) / 2;
v.e = b;
return intersection(u, v);
}
// 费马点
// 到三角形三顶点距离之和最小的点
POINT fermentpoint(POINT a, POINT b, POINT c)
{
POINT u, v;
double step = fabs(a.x) + fabs(a.y) + fabs(b.x) + fabs(b.y) + fabs(c.x) + fabs(c.y);
int i, j, k;
u.x = (a.x + b.x + c.x) / 3;
u.y = (a.y + b.y + c.y) / 3;
while (step > 1e-10)
for (k = 0; k < 10; step /= 2, k++)
for (i = -1; i <= 1; i++)
for (j = -1; j <= 1; j++)
{
v.x = u.x + step * i;
v.y = u.y + step * j;
if (dist(u, a) + dist(u, b) + dist(u, c) >
dist(v, a) + dist(v, b) + dist(v, c))
u = v;
}
return u;
}
// 求曲率半径 三角形内最大可围成面积
double RadiusCurvature(double a, double b, double c, double d)
{
double p, s, r, ans, R, x, l;
l = a + b + c;
p = l / 2;
s = sqrt(p * (p - a) * (p - b) * (p - c));
R = s / p;
if (d >= l)
ans = s;
else if (2 * M_PI * R >= d)
ans = d * d / (4 * M_PI);
else
{
r = (l - d) / ((l / R) - (2 * M_PI));
x = r * r * s / (R * R);
ans = s - x + M_PI * r * r;
}
return ans;
}
/******************************
* *
* 多边形常用算法模块 *
* *
******************************/
// 如果无特别说明,输入多边形顶点要求按逆时针排列
/*
返回值:输入的多边形是简单多边形,返回true
要求:输入顶点序列按逆时针排序
说明:简单多边形定义:
1:循环排序中相邻线段对的交是他们之间共有的单个点
2:不相邻的线段不相交 本程序默认第一个条件已经满足
*/
bool issimple(int vcount, POINT polygon[])
{
int i, cn;
LINESEG l1, l2;
for (i = 0; i < vcount; i++)
{
l1.s = polygon[i];
l1.e = polygon[(i + 1) % vcount];
cn = vcount - 3;
while (cn)
{
l2.s = polygon[(i + 2) % vcount];
l2.e = polygon[(i + 3) % vcount];
if (intersect(l1, l2))
break;
cn--;
}
if (cn)
return false;
}
return true;
}
// 返回值:按输入顺序返回多边形顶点的凸凹性判断,bc[i]=1,iff:第i个顶点是凸顶点
void checkconvex(int vcount, POINT polygon[], bool bc[])
{
int i, index = 0;
POINT tp = polygon[0];
for (i = 1; i < vcount; i++) // 寻找第一个凸顶点
{
if (polygon[i].y < tp.y || (polygon[i].y == tp.y && polygon[i].x < tp.x))
{
tp = polygon[i];
index = i;
}
}
int count = vcount - 1;
bc[index] = 1;
while (count) // 判断凸凹性
{
if (multiply(polygon[(index + 1) % vcount], polygon[(index + 2) % vcount], polygon[index])
>= 0)
bc[(index + 1) % vcount] = 1;
else
bc[(index + 1) % vcount] = 0;
index++;
count--;
}
}
// 返回值:多边形polygon是凸多边形时,返回true
bool isconvex(int vcount, POINT polygon[])
{
bool bc[MAXV];
checkconvex(vcount, polygon, bc);
for (int i = 0; i < vcount; i++) // 逐一检查顶点,是否全部是凸顶点
if (!bc[i])
return false;
return true;
}
// 返回多边形面积(signed);输入顶点按逆时针排列时,返回正值;否则返回负值
double area_of_polygon(int vcount, POINT polygon[])
{
int i;
double s;
if (vcount < 3)
return 0;
s = polygon[0].y * (polygon[vcount - 1].x - polygon[1].x);
for (i = 1; i < vcount; i++)
s += polygon[i].y * (polygon[(i - 1)].x - polygon[(i + 1) % vcount].x);
return s / 2;
}
// 如果输入顶点按逆时针排列,返回true
bool isconterclock(int vcount, POINT polygon[])
{
return area_of_polygon(vcount, polygon) > 0;
}
// 另一种判断多边形顶点排列方向的方法
bool isccwize(int vcount, POINT polygon[])
{
int i, index;
POINT a, b, v;
v = polygon[0];
index = 0;
for (i = 1; i < vcount; i++) //找到最低且最左顶点,肯定是凸顶点
{
if (polygon[i].y < v.y || polygon[i].y == v.y && polygon[i].x < v.x)
{
index = i;
}
}
a = polygon[(index - 1 + vcount) % vcount]; //顶点v的前一顶点
b = polygon[(index + 1) % vcount]; // 顶点v的后一顶点
return multiply(v, b, a) > 0;
}
/* 射线法判断点q与多边形polygon的位置关系,要求polygon为简单多边形,顶点逆时针排列
如果点在多边形内: 返回0
如果点在多边形边上: 返回1
如果点在多边形外: 返回2 */
int insidepolygon(int vcount, POINT Polygon[], POINT q)
{
int c = 0, i, n;
LINESEG l1, l2;
bool bintersect_a, bonline1, bonline2, bonline3;
double r1, r2;
l1.s = q;
l1.e = q;
l1.e.x = double (INF);
n = vcount;
for (i = 0; i < vcount; i++)
{
l2.s = Polygon[i];
l2.e = Polygon[(i + 1) % n];
if (online(l2, q))
return 1; // 如果点在边上,返回1
if ((bintersect_a = intersect_A(l1, l2)) || // 相交且不在端点
((bonline1 = online(l1, Polygon[(i + 1) % n])) && // 第二个端点在射线上
((!(bonline2 = online(l1, Polygon[(i + 2) % n]))) && /* 前一个端点和后一个端点在射线两侧 */
((r1 = multiply(Polygon[i], Polygon[(i + 1) % n], l1.s) * multiply(Polygon[(i + 1) % n], Polygon[(i + 2) % n], l1.s)) > 0) || (bonline3 = online(l1, Polygon[(i + 2) % n])) && /* 下一条边是水平线, 前一个端点和后一个端点在射线两侧 */
((r2 = multiply(Polygon[i], Polygon[(i + 2) % n], l1.s) * multiply(Polygon[(i + 2) % n],Polygon[(i + 3) % n], l1.s)) > 0))))
c++;
}
if (c % 2 == 1)
return 0;
else
return 2;
}
//点q是凸多边形polygon内时,返回true;注意:多边形polygon一定要是凸多边形
bool InsideConvexPolygon(int vcount, POINT polygon[], POINT q) // 可用于三角形!
{
POINT p;
LINESEG l;
int i;
p.x = 0;
p.y = 0;
for (i = 0; i < vcount; i++) //寻找一个肯定在多边形polygon内的点p:多边形顶点平均值
{
p.x += polygon[i].x;
p.y += polygon[i].y;
}
p.x /= vcount;
p.y /= vcount;
for (i = 0; i < vcount; i++)
{
l.s = polygon[i];
l.e = polygon[(i + 1) % vcount];
if (multiply(p, l.e, l.s) * multiply(q, l.e, l.s) < 0)
/* 点p和点q在边l的两侧,说明点q肯定在多边形外 */
break;
}
return (i == vcount);
}
/**********************************************
寻找凸包的graham 扫描法
PointSet为输入的点集;
ch为输出的凸包上的点集,按照逆时针方向排列;
n为PointSet中的点的数目
len为输出的凸包上的点的个数
**********************************************/
void Graham_scan(POINT PointSet[], POINT ch[], int n, int &len)
{
int i, j, k = 0, top = 2;
POINT tmp;
// 选取PointSet中y坐标最小的点PointSet[k],如果这样的点有多个,则取最左边的一个
for (i = 1; i < n; i++)
if (PointSet[i].y < PointSet[k].y ||
(PointSet[i].y == PointSet[k].y) && (PointSet[i].x < PointSet[k].x))
k = i;
tmp = PointSet[0];
PointSet[0] = PointSet[k];
PointSet[k] = tmp; // 现在PointSet中y坐标最小的点在PointSet[0]
for (i = 1; i < n - 1; i++) /* 对顶点按照相对PointSet[0]的极角从小到大进行排序,极角相同 的按照距离PointSet[0]从近到远进行排序 */
{
k = i;
for (j = i + 1; j < n; j++)
if (multiply(PointSet[j], PointSet[k], PointSet[0]) > 0 || // 极角更小
(multiply(PointSet[j], PointSet[k], PointSet[0]) == 0) && /* 极角相等 距离更短 */
dist(PointSet[0], PointSet[j]) < dist(PointSet[0], PointSet[k]))
k = j;
tmp = PointSet[i];
PointSet[i] = PointSet[k];
PointSet[k] = tmp;
}
ch[0] = PointSet[0];
ch[1] = PointSet[1];
ch[2] = PointSet[2];
for (i = 3; i < n; i++)
{
while (multiply(PointSet[i], ch[top], ch[top - 1]) >= 0)
top--;
ch[++top] = PointSet[i];
}
len = top + 1;
}
// 卷包裹法求点集凸壳,参数说明同graham算法
void ConvexClosure(POINT PointSet[], POINT ch[], int n, int &len)
{
int top = 0, i, index, first;
double curmax, curcos, curdis;
POINT tmp;
LINESEG l1, l2;
bool use[MAXV];
tmp = PointSet[0];
index = 0;
// 选取y最小点,如果多于一个,则选取最左点
for (i = 1; i < n; i++)
{
if (PointSet[i].y < tmp.y || PointSet[i].y == tmp.y && PointSet[i].x < tmp.x)
{
index = i;
}
use[i] = false;
}
tmp = PointSet[index];
first = index;
use[index] = true;
index = -1;
ch[top++] = tmp;
tmp.x -= 100;
l1.s = tmp;
l1.e = ch[0];
l2.s = ch[0];
while (index != first)
{
curmax = -100;
curdis = 0;
// 选取与最后一条确定边夹角最小的点,即余弦值最大者
for (i = 0; i < n; i++)
{
if (use[i])
continue;
l2.e = PointSet[i];
curcos = cosine(l1, l2); // 根据cos值求夹角余弦,范围在(-1 -- 1 )
if (curcos > curmax || fabs(curcos - curmax) < 1e-6 && dist(l2.s, l2.e) > curdis)
{
curmax = curcos;
index = i;
curdis = dist(l2.s, l2.e);
}
}
use[first] = false; //清空第first个顶点标志,使最后能形成封闭的hull
use[index] = true;
ch[top++] = PointSet[index];
l1.s = ch[top - 2];
l1.e = ch[top - 1];
l2.s = ch[top - 1];
}
len = top - 1;
}
/* 判断线段是否在简单多边形内(注意:如果多边形是凸多边形,下面的算法可以化简)
原理: 必要条件一:线段的两个端点都在多边形内;
必要条件二:线段和多边形的所有边都不内交;
用途:1. 判断折线是否在简单多边形内 2.
判断简单多边形是否在另一个简单多边形内 */
bool LinesegInsidePolygon(int vcount, POINT polygon[], LINESEG l)
{
// 判断线端l的端点是否不都在多边形内
if (!insidepolygon(vcount, polygon, l.s) || !insidepolygon(vcount, polygon, l.e))
return false;
int top = 0, i, j;
POINT PointSet[MAXV], tmp;
LINESEG s;
for (i = 0; i < vcount; i++)
{
s.s = polygon[i];
s.e = polygon[(i + 1) % vcount];
if (online(s, l.s)) // 线段l的起始端点在线段s上
PointSet[top++] = l.s;
else if (online(s, l.e)) // 线段l的终止端点在线段s上
PointSet[top++] = l.e;
else
{
if (online(l, s.s)) // 线段s的起始端点在线段l上
PointSet[top++] = s.s;
else if (online(l, s.e)) // 线段s的终止端点在线段l上
PointSet[top++] = s.e;
else
{
if (intersect(l, s)) // 这个时候如果相交,肯定是内交,返回false
return false;
}
}
}
for (i = 0; i < top - 1; i++) /* 冒泡排序,x坐标小的排在前面;x坐标相同者,y坐标小的排在前面 */
{
for (j = i + 1; j < top; j++)
{
if (PointSet[i].x > PointSet[j].x || fabs(PointSet[i].x - PointSet[j].x) < EP
&& PointSet[i].y > PointSet[j].y)
{
tmp = PointSet[i];
PointSet[i] = PointSet[j];
PointSet[j] = tmp;
}
}
}
for (i = 0; i < top - 1; i++)
{
tmp.x = (PointSet[i].x + PointSet[i + 1].x) / 2; // 得到两个相邻交点的中点
tmp.y = (PointSet[i].y + PointSet[i + 1].y) / 2;
if (!insidepolygon(vcount, polygon, tmp))
return false;
}
return true;
}
/* 求任意简单多边形polygon的重心 需要调用下面几个函数:
void AddPosPart(); 增加右边区域的面积
void AddNegPart();增加左边区域的面积
void AddRegion(); 增加区域面积
在使用该程序时,如果把xtr,ytr,wtr,xtl,ytl,wtl设成全局变量就可以使这些函数的形式得到化简,但要注意函数的声明和调用要做相应变化
*/
void AddPosPart(double x, double y, double w, double &xtr, double &ytr, double &wtr)
{
if (fabs(wtr + w) < 1e-10)
return; // detect zero regions
xtr = (wtr * xtr + w * x) / (wtr + w);
ytr = (wtr * ytr + w * y) / (wtr + w);
wtr = w + wtr;
return;
}
void AddNegPart(double x, double y, double w, double &xtl, double &ytl, double &wtl)
{
if (fabs(wtl + w) < 1e-10)
return; // detect zero regions
xtl = (wtl * xtl + w * x) / (wtl + w);
ytl = (wtl * ytl + w * y) / (wtl + w);
wtl = w + wtl;
return;
}
void AddRegion(double x1, double y1, double x2, double y2, double &xtr, double &ytr,
double &wtr, double &xtl, double &ytl, double &wtl)
{
if (fabs(x1 - x2) < 1e-10)
return;
if (x2 > x1)
{
AddPosPart((x2 + x1) / 2, y1 / 2, (x2 - x1) * y1, xtr, ytr, wtr); /* rectangle 全局变量变化处 */
AddPosPart((x1 + x2 + x2) / 3, (y1 + y1 + y2) / 3, (x2 - x1) * (y2 - y1) / 2, xtr, ytr,
wtr);
// triangle 全局变量变化处
}
else
{
AddNegPart((x2 + x1) / 2, y1 / 2, (x2 - x1) * y1, xtl, ytl, wtl);
// rectangle 全局变量变化处
AddNegPart((x1 + x2 + x2) / 3, (y1 + y1 + y2) / 3, (x2 - x1) * (y2 - y1) / 2, xtl, ytl,
wtl);
// triangle 全局变量变化处
}
}
POINT cg_simple(int vcount, POINT polygon[])
{
double xtr, ytr, wtr, xtl, ytl, wtl;
// 注意:
// 如果把xtr,ytr,wtr,xtl,ytl,wtl改成全局变量后这里要删去
POINT p1, p2, tp;
xtr = ytr = wtr = 0.0;
xtl = ytl = wtl = 0.0;
for (int i = 0; i < vcount; i++)
{
p1 = polygon[i];
p2 = polygon[(i + 1) % vcount];
AddRegion(p1.x, p1.y, p2.x, p2.y, xtr, ytr, wtr, xtl, ytl, wtl); // 全局变量变化处
}
tp.x = (wtr * xtr + wtl * xtl) / (wtr + wtl);
tp.y = (wtr * ytr + wtl * ytl) / (wtr + wtl);
return tp;
}
// 求凸多边形的重心,要求输入多边形按逆时针排序
POINT gravitycenter(int vcount, POINT polygon[])
{
POINT tp;
double x, y, s, x0, y0, cs, k;
x = 0;
y = 0;
s = 0;
for (int i = 1; i < vcount - 1; i++)
{
x0 = (polygon[0].x + polygon[i].x + polygon[i + 1].x) / 3;
y0 = (polygon[0].y + polygon[i].y + polygon[i + 1].y) / 3; // 求当前三角形的重心
cs = multiply(polygon[i], polygon[i + 1], polygon[0]) / 2;
// 三角形面积可以直接利用该公式求解
if (fabs(s) < 1e-20)
{
x = x0;
y = y0;
s += cs;
continue;
}
k = cs / s; // 求面积比例
x = (x + k * x0) / (1 + k);
y = (y + k * y0) / (1 + k);
s += cs;
}
tp.x = x;
tp.y = y;
return tp;
}
/* 给定一简单多边形,找出一个肯定在该多边形内的点
定理1:每个多边形至少有一个凸顶点
定理2:顶点数>=4的简单多边形至少有一条对角线 结论:
x坐标最大,最小的点肯定是凸顶点
y坐标最大,最小的点肯定是凸顶点 */
POINT a_point_insidepoly(int vcount, POINT polygon[])
{
POINT v, a, b, r;
int i, index;
v = polygon[0];
index = 0;
for (i = 1; i < vcount; i++) // 寻找一个凸顶点
{
if (polygon[i].y < v.y)
{
v = polygon[i];
index = i;
}
}
a = polygon[(index - 1 + vcount) % vcount]; // 得到v的前一个顶点
b = polygon[(index + 1) % vcount]; // 得到v的后一个顶点
POINT tri[3], q;
tri[0] = a;
tri[1] = v;
tri[2] = b;
double md = INF;
int in1 = index;
bool bin = false;
for (i = 0; i < vcount; i++) // 寻找在三角形avb内且离顶点v最近的顶点q
{
if (i == index)
continue;
if (i == (index - 1 + vcount) % vcount)
continue;
if (i == (index + 1) % vcount)
continue;
if (!InsideConvexPolygon(3, tri, polygon[i]))
continue;
bin = true;
if (dist(v, polygon[i]) < md)
{
q = polygon[i];
md = dist(v, q);
}
}
if (!bin) // 没有顶点在三角形avb内,返回线段ab中点
{
r.x = (a.x + b.x) / 2;
r.y = (a.y + b.y) / 2;
return r;
}
r.x = (v.x + q.x) / 2; // 返回线段vq的中点
r.y = (v.y + q.y) / 2;
return r;
}
/* 求从多边形外一点p出发到一个简单多边形的切线,如果存在返回切点,其中rp点是右切点,lp是左切点
注意:p点一定要在多边形外 输入顶点序列是逆时针排列
原理:
如果点在多边形内肯定无切线; 凸多边形有唯一的两个切点,凹多边形就可能有多于两个的切点;
如果polygon是凸多边形,切点只有两个只要找到就可以,可以化简此算法
如果是凹多边形还有一种算法可以求解:先求凹多边形的凸包,然后求凸包的切线
*/
void pointtangentpoly(int vcount, POINT polygon[], POINT p, POINT & rp, POINT & lp)
{
LINESEG ep, en;
bool blp, bln;
rp = polygon[0];
lp = polygon[0];
for (int i = 1; i < vcount; i++)
{
ep.s = polygon[(i + vcount - 1) % vcount];
ep.e = polygon[i];
en.s = polygon[i];
en.e = polygon[(i + 1) % vcount];
blp = multiply(ep.e, p, ep.s) >= 0; // p is to the left of pre edge
bln = multiply(en.e, p, en.s) >= 0; // p is to the left of next edge
if (!blp && bln)
{
if (multiply(polygon[i], rp, p) > 0) // polygon[i] is above rp
rp = polygon[i];
}
if (blp && !bln)
{
if (multiply(lp, polygon[i], p) > 0) // polygon[i] is below lp
lp = polygon[i];
}
}
return;
}
//如果多边形polygon的核存在,返回true,返回核上的一点p.顶点按逆时针方向输入
bool core_exist(int vcount, POINT polygon[], POINT & p)
{
int i, j, k;
LINESEG l;
LINE lineset[MAXV];
for (i = 0; i < vcount; i++)
{
lineset[i] = makeline(polygon[i], polygon[(i + 1) % vcount]);
}
for (i = 0; i < vcount; i++)
{
for (j = 0; j < vcount; j++)
{
if (i == j)
continue;
if (lineintersect(lineset[i], lineset[j], p))
{
for (k = 0; k < vcount; k++)
{
l.s = polygon[k];
l.e = polygon[(k + 1) % vcount];
if (multiply(p, l.e, l.s) > 0) // 多边形顶点按逆时针方向排列,核肯定在每条边的左侧或边上
break;
}
if (k == vcount) // 找到了一个核上的点
break;
}
}
if (j < vcount)
break;
}
if (i < vcount)
return true;
else
return false;
}
/*************************
* *
* 圆的基本运算 *
* *
*************************/
/* 返回值: 点p在圆内(包括边界)时,返回true 用途:
因为圆为凸集,所以判断点集,折线,多边形是否在圆内时,只需要逐一判断点是否在圆内即可。
*/
bool point_in_circle(POINT o, double r, POINT p)
{
double d2 = (p.x - o.x) * (p.x - o.x) + (p.y - o.y) * (p.y - o.y);
double r2 = r * r;
return d2 < r2 || fabs(d2 - r2) < EP;
}
/* 用 途:
求不共线的三点确定一个圆 输 入:三个点p1,p2,p3
返回值:如果三点共线,返回false;反之,返回true。圆心由q返回,半径由r返回
*/
bool cocircle(POINT p1, POINT p2, POINT p3, POINT & q, double &r)
{
double x12 = p2.x - p1.x;
double y12 = p2.y - p1.y;
double x13 = p3.x - p1.x;
double y13 = p3.y - p1.y;
double z2 = x12 * (p1.x + p2.x) + y12 * (p1.y + p2.y);
double z3 = x13 * (p1.x + p3.x) + y13 * (p1.y + p3.y);
double d = 2.0 * (x12 * (p3.y - p2.y) - y12 * (p3.x - p2.x));
if (fabs(d) < EP) // 共线,圆不存在
return false;
q.x = (y13 * z2 - y12 * z3) / d;
q.y = (x12 * z3 - x13 * z2) / d;
r = dist(p1, q);
return true;
}
int line_circle(LINE l, POINT o, double r, POINT & p1, POINT & p2)
{
return true;
}
/**************************
* *
* 矩形的基本运算 *
* *
**************************/
/*
说明:因为矩形的特殊性,常用算法可以化简:
1.判断矩形是否包含点
只要判断该点的横坐标和纵坐标是否夹在矩形的左右边和上下边之间。
2.判断线段、折线、多边形是否在矩形中
因为矩形是个凸集,所以只要判断所有端点是否都在矩形中就可以了。
3.判断圆是否在矩形中
圆在矩形中的充要条件是:圆心在矩形中且圆的半径小于等于圆心到矩形四边的距离的最小值。
*/
// 已知矩形的三个顶点(a,b,c),计算第四个顶点d的坐标.
// 注意:已知的三个顶点可以是无序的
POINT rect4th(POINT a, POINT b, POINT c)
{
POINT d;
if (fabs(dotmultiply(a, b, c)) < EP) // 说明c点是直角拐角处
{
d.x = a.x + b.x - c.x;
d.y = a.y + b.y - c.y;
}
if (fabs(dotmultiply(a, c, b)) < EP) // 说明b点是直角拐角处
{
d.x = a.x + c.x - b.x;
d.y = a.y + c.y - b.x;
}
if (fabs(dotmultiply(c, b, a)) < EP) // 说明a点是直角拐角处
{
d.x = c.x + b.x - a.x;
d.y = c.y + b.y - a.y;
}
return d;
}
/*************************
* *
* 常用算法的描述 *
* *
*************************/
/* 尚未实现的算法:
1. 求包含点集的最小圆
2.求多边形的交
3. 简单多边形的三角剖分
4.寻找包含点集的最小矩形
5. 折线的化简
6.判断矩形是否在矩形中
7. 判断矩形能否放在矩形中
8.
矩形并的面积与周长 9. 矩形并的轮廓 10.矩形并的闭包
11.矩形的交 12.点集中的最近点对 13.多边形的并
14.圆的交与并 15.直线与圆的关系 16.线段与圆的关系
17.求多边形的核监视摄象机 18.求点集中不相交点对
railwai */
/* 寻找包含点集的最小矩形
原理:该矩形至少一条边与点集的凸壳的某条边共线
First take the convex hull of the points. Let the resulting convex polygon
be P. It has been known for some time that the minimum area rectangle
enclosing P must have one rectangle side flush with (i.e., collinear with
and overlapping) one edge of P. This geometric fact was used by Godfried
Toussaint to develop the "rotating calipers" algorithm in a hard-to-find
1983 paper, "Solving Geometric Problems with the Rotating Calipers" (Proc.
IEEE MELECON). The algorithm rotates a surrounding rectangle from one
flush edge to the next, keeping track of the minimum area for each edge.
It achieves O(n) time (after hull computation). See the "Rotating Calipers
Homepage" http://www.cs.mcgill.ca/~orm/rotcal.frame.html for a description
and applet. */
/* 折线的化简 伪码如下: Input: tol = the approximation tolerance
L = {V0,V1,...,Vn-1} is any n-vertex polyline
Set start = 0; Set k = 0; Set W0 = V0; for each vertex Vi (i=1,n-1) {
if Vi is within tol from Vstart then ignore it, and continue with the next
vertex
Vi is further than tol away from Vstart so add it as a new vertex of the
reduced polyline Increment k++; Set Wk = Vi; Set start = i; as the new
initial vertex }
Output: W = {W0,W1,...,Wk-1} = the k-vertex simplified polyline */
// 求含n个点的点集ps的最小面积矩形,并把结果放在ds(ds为一个长度是4的数组即可,ds中的点是逆时针的)中,并返回这个最小面积。
double getMinAreaRect(POINT * ps, int n, POINT * ds)
{
int cn, i;
double ans;
POINT con[n];
Graham_scan(ps, con, n, cn); // 凸包
if (cn <= 2)
{
ds[0] = con[0];
ds[1] = con[1];
ds[2] = con[1];
ds[3] = con[0];
ans = 0;
}
else
{
int l, r, u;
double tmp, len;
con[cn] = con[0];
ans = 1e40;
l = i = 0;
while (dotmultiply(con[i], con[i + 1], con[i], con[l])
>= dotmultiply(con[i], con[i + 1], con[i], con[(l - 1 + cn) % cn]))
{
l = (l - 1 + cn) % cn;
}
for (r = u = i = 0; i < cn; i++)
{
while (multiply(con[i], con[i + 1], con[i], con[u])
<= multiply(con[i], con[i + 1], con[i], con[(u + 1) % cn]))
{
u = (u + 1) % cn;
}
while (dotmultiply(con[i], con[i + 1], con[i], con[r])
<= dotmultiply(con[i], con[i + 1], con[i], con[(r + 1) % cn]))
{
r = (r + 1) % cn;
}
while (dotmultiply(con[i], con[i + 1], con[i], con[l])
>= dotmultiply(con[i], con[i + 1], con[i], con[(l + 1) % cn]))
{
l = (l + 1) % cn;
}
tmp =
dotmultiply(con[i], con[i + 1], con[i], con[r]) - dotmultiply(con[i], con[i + 1],
con[i], con[l]);
tmp *= multiply(con[i], con[i + 1], con[i], con[u]);
tmp /= dist2(con[i], con[i + 1]);
len = multiply(con[i], con[i + 1], con[i], con[u]) / dist(con[i], con[i + 1]);
if (sign(tmp - ans) < 0)
{
ans = tmp;
ds[0] = getRoot(con[l], con[i], con[i + 1]);
ds[1] = getRoot(con[r], con[i + 1], con[i]);
ds[2] = change(con[i], con[i + 1], ds[1], len);
ds[3] = change(con[i], con[i + 1], ds[0], len);
}
}
}
return ans + EP;
}
//下面几个函数共同求包含点集的最小圆
inline double dis_2(POINT & from, POINT & to)
{
return ((from.x - to.x) * (from.x - to.x) + (from.y - to.y) * (from.y - to.y));
}
int in_cic(POINT point[], int pt, double rad, POINT maxcic)
{
if (sqrt(dis_2(maxcic, point[pt])) < rad + EP)
return 1;
return 0;
}
int cal_mincic(POINT point[], double &radius, POINT & maxcic, int &set_cnt, int &pos_cnt,
int curset[], int posset[])
{
if (pos_cnt == 1 || pos_cnt == 0)
return 0;
else if (pos_cnt == 3)
{
double A1, B1, C1, A2, B2, C2;
int t0 = posset[0], t1 = posset[1], t2 = posset[2];
A1 = 2 * (point[t1].x - point[t0].x);
B1 = 2 * (point[t1].y - point[t0].y);
C1 = point[t1].x * point[t1].x - point[t0].x * point[t0].x +
point[t1].y * point[t1].y - point[t0].y * point[t0].y;
A2 = 2 * (point[t2].x - point[t0].x);
B2 = 2 * (point[t2].y - point[t0].y);
C2 = point[t2].x * point[t2].x - point[t0].x * point[t0].x +
point[t2].y * point[t2].y - point[t0].y * point[t0].y;
maxcic.y = (C1 * A2 - C2 * A1) / (A2 * B1 - A1 * B2);
maxcic.x = (C1 * B2 - C2 * B1) / (A1 * B2 - A2 * B1);
radius = sqrt(dis_2(maxcic, point[t0]));
}
else if (pos_cnt == 2)
{
maxcic.x = (point[posset[0]].x + point[posset[1]].x) / 2;
maxcic.y = (point[posset[0]].y + point[posset[1]].y) / 2;
radius = sqrt(dis_2(point[posset[0]], point[posset[1]])) / 2;
}
return 1;
}
int mindisk(POINT point[], double &radius, POINT & maxcic, int &set_cnt, int &pos_cnt,
int curset[], int posset[])
{
// double radius=0;
if (set_cnt == 0 || pos_cnt == 3)
{
return cal_mincic(point, radius, maxcic, set_cnt, pos_cnt, curset, posset);
}
int tt = curset[--set_cnt];
int res = mindisk(point, radius, maxcic, set_cnt, pos_cnt, curset, posset);
set_cnt++;
if (!res || !in_cic(point, tt, radius, maxcic))
{
set_cnt--;
posset[pos_cnt++] = curset[set_cnt];
res = mindisk(point, radius, maxcic, set_cnt, pos_cnt, curset, posset);
pos_cnt--;
curset[set_cnt++] = curset[0];
curset[0] = tt;
}
return res;
}
void getMinAreaCir(POINT point[], int n, POINT & maxcic, double &radius)
{
int posset[3], curset[MAXV];
int set_cnt, pos_cnt;
if (n == 1)
{
maxcic.x = point[0].x;
maxcic.y = point[0].y;
radius = 0;
return;
}
set_cnt = n;
pos_cnt = 0;
for (int i = 0; i < n; i++)
curset[i] = i;
mindisk(point, radius, maxcic, set_cnt, pos_cnt, curset, posset);
}
/********************
* *
* 补充 *
* *
********************/
// 两圆关系:
/*
相离: return 1;
外切: return 2;
相交: return 3;
内切: return 4;
内含: return 5;
*/
int CircleRelation(POINT p1, double r1, POINT p2, double r2)
{
double d = sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));
if (fabs(d - r1 - r2) < EP) // 必须保证前两个if先被判定!
return 2;
if (fabs(d - fabs(r1 - r2)) < EP)
return 4;
if (d > r1 + r2)
return 1;
if (d < fabs(r1 - r2))
return 5;
if (fabs(r1 - r2) < d && d < r1 + r2)
return 3;
return 0; // indicate an error!
}
// 判断圆是否在矩形内:
// 判定圆是否在矩形内,是就返回true(设矩形水平,且其四个顶点由左上开始按顺时针排列)
//
// 调用ptoldist函数,在第4页
bool CircleRecRelation(POINT pc, double r, POINT pr1, POINT pr2, POINT pr3, POINT pr4)
{
if (pr1.x < pc.x && pc.x < pr2.x && pr3.y < pc.y && pc.y < pr2.y)
{
LINESEG line1(pr1, pr2);
LINESEG line2(pr2, pr3);
LINESEG line3(pr3, pr4);
LINESEG line4(pr4, pr1);
if (r < ptoldist(pc, line1) && r < ptoldist(pc, line2) &&
r < ptoldist(pc, line3) && r < ptoldist(pc, line4))
return true;
}
return false;
}
// 点到平面的距离:
// 点到平面的距离,平面用一般式表示ax+by+cz+d=0
double P2planeDist(double x, double y, double z, double a, double b, double c, double d)
{
return fabs(a * x + b * y + c * z + d) / sqrt(a * a + b * b + c * c);
}
// 点是否在直线同侧:
// 两个点是否在直线同侧,是则返回true
bool SameSide(POINT p1, POINT p2, LINE line)
{
return (line.a * p1.x + line.b * p1.y + line.c) * (line.a * p2.x + line.b * p2.y + line.c) > 0;
}
// 镜面反射线:
// 已知入射线、镜面,求反射线。
// a1,b1,c1为镜面直线方程(a1 x + b1 y + c1 = 0 ,下同)系数;
// a2,b2,c2为入射光直线方程系数;
// a,b,c为反射光直线方程系数.
// 光是有方向的,使用时注意:入射光向量:<-b2,a2>;反射光向量:<b,-a>.
//
// 不要忘记结果中可能会有"negative zeros"
void reflect(double a1, double b1, double c1, double a2, double b2, double c2, double &a, double &b, double &c)
{
double n, m;
double tpb, tpa;
tpb = b1 * b2 + a1 * a2;
tpa = a2 * b1 - a1 * b2;
m = (tpb * b1 + tpa * a1) / (b1 * b1 + a1 * a1);
n = (tpa * b1 - tpb * a1) / (b1 * b1 + a1 * a1);
if (fabs(a1 * b2 - a2 * b1) < 1e-20)
{
a = a2;
b = b2;
c = c2;
return;
}
double xx, yy; // (xx,yy)是入射线与镜面的交点。
xx = (b1 * c2 - b2 * c1) / (a1 * b2 - a2 * b1);
yy = (a2 * c1 - a1 * c2) / (a1 * b2 - a2 * b1);
a = n;
b = -m;
c = m * yy - xx * n;
}
// 矩形包含:
bool r2inr1(double A, double B, double C, double D) // 矩形2(C,D)是否在1(A,B)内
{
double X, Y, L, K, DMax;
if (A < B)
{
double tmp = A;
A = B;
B = tmp;
}
if (C < D)
{
double tmp = C;
C = D;
D = tmp;
}
if (A > C && B > D) // trivial case
return true;
else if (D >= B)
return false;
else
{
X = sqrt(A * A + B * B); // outer rectangle's diagonal
Y = sqrt(C * C + D * D); // inner rectangle's diagonal
if (Y < B) // check for marginal conditions
return true; // the inner rectangle can freely rotateinside
else if (Y > X)
return false;
else
{
L = (B - sqrt(Y * Y - A * A)) / 2;
K = (A - sqrt(Y * Y - B * B)) / 2;
DMax = sqrt(L * L + K * K);
if (D >= DMax)
return false;
else
return true;
}
}
}
// 两圆交点:
// 两圆已经相交(相切)
void c2point(POINT p1, double r1, POINT p2, double r2, POINT & rp1, POINT & rp2)
{
double a, b, r;
a = p2.x - p1.x;
b = p2.y - p1.y;
r = (a * a + b * b + r1 * r1 - r2 * r2) / 2;
if (a == 0 && b != 0)
{
rp1.y = rp2.y = r / b;
rp1.x = sqrt(r1 * r1 - rp1.y * rp1.y);
rp2.x = -rp1.x;
}
else if (a != 0 && b == 0)
{
rp1.x = rp2.x = r / a;
rp1.y = sqrt(r1 * r1 - rp1.x * rp2.x);
rp2.y = -rp1.y;
}
else if (a != 0 && b != 0)
{
double delta;
delta = b * b * r * r - (a * a + b * b) * (r * r - r1 * r1 * a * a);
rp1.y = (b * r + sqrt(delta)) / (a * a + b * b);
rp2.y = (b * r - sqrt(delta)) / (a * a + b * b);
rp1.x = (r - b * rp1.y) / a;
rp2.x = (r - b * rp2.y) / a;
}
rp1.x += p1.x;
rp1.y += p1.y;
rp2.x += p1.x;
rp2.y += p1.y;
}
// 两圆公共面积:
// 必须保证相交
double c2area(POINT p1, double r1, POINT p2, double r2)
{
POINT rp1, rp2;
c2point(p1, r1, p2, r2, rp1, rp2);
if (r1 > r2) // 保证r2>r1
{
swap(p1, p2);
swap(r1, r2);
}
double a, b, rr;
a = p1.x - p2.x;
b = p1.y - p2.y;
rr = sqrt(a * a + b * b);
double dx1, dy1, dx2, dy2;
double sita1, sita2;
dx1 = rp1.x - p1.x;
dy1 = rp1.y - p1.y;
dx2 = rp2.x - p1.x;
dy2 = rp2.y - p1.y;
sita1 = acos((dx1 * dx2 + dy1 * dy2) / r1 / r1);
dx1 = rp1.x - p2.x;
dy1 = rp1.y - p2.y;
dx2 = rp2.x - p2.x;
dy2 = rp2.y - p2.y;
sita2 = acos((dx1 * dx2 + dy1 * dy2) / r2 / r2);
double s = 0;
if (rr < r2) // 相交弧为优弧
s = r1 * r1 * (PI - sita1 / 2 + sin(sita1) / 2) + r2 * r2 * (sita2 - sin(sita2)) / 2;
else // 相交弧为劣弧
s = (r1 * r1 * (sita1 - sin(sita1)) + r2 * r2 * (sita2 - sin(sita2))) / 2;
return s;
}
// 圆和直线关系:
// 0----相离 1----相切 2----相交
int clpoint(POINT p, double r, double a, double b, double c, POINT & rp1, POINT & rp2)
{
int res = 0;
c = c + a * p.x + b * p.y;
double tmp;
if (a == 0 && b != 0)
{
tmp = -c / b;
if (r * r < tmp * tmp)
res = 0;
else if (r * r == tmp * tmp)
{
res = 1;
rp1.y = tmp;
rp1.x = 0;
}
else
{
res = 2;
rp1.y = rp2.y = tmp;
rp1.x = sqrt(r * r - tmp * tmp);
rp2.x = -rp1.x;
}
}
else if (a != 0 && b == 0)
{
tmp = -c / a;
if (r * r < tmp * tmp)
res = 0;
else if (r * r == tmp * tmp)
{
res = 1;
rp1.x = tmp;
rp1.y = 0;
}
else
{
res = 2;
rp1.x = rp2.x = tmp;
rp1.y = sqrt(r * r - tmp * tmp);
rp2.y = -rp1.y;
}
}
else if (a != 0 && b != 0)
{
double delta;
delta = b * b * c * c - (a * a + b * b) * (c * c - a * a * r * r);
if (delta < 0)
res = 0;
else if (delta == 0)
{
res = 1;
rp1.y = -b * c / (a * a + b * b);
rp1.x = (-c - b * rp1.y) / a;
}
else
{
res = 2;
rp1.y = (-b * c + sqrt(delta)) / (a * a + b * b);
rp2.y = (-b * c - sqrt(delta)) / (a * a + b * b);
rp1.x = (-c - b * rp1.y) / a;
rp2.x = (-c - b * rp2.y) / a;
}
}
rp1.x += p.x;
rp1.y += p.y;
rp2.x += p.x;
rp2.y += p.y;
return res;
}
// 内切圆:
void incircle(POINT p1, POINT p2, POINT p3, POINT & rp, double &r)
{
double dx31, dy31, dx21, dy21, d31, d21, a1, b1, c1;
dx31 = p3.x - p1.x;
dy31 = p3.y - p1.y;
dx21 = p2.x - p1.x;
dy21 = p2.y - p1.y;
d31 = sqrt(dx31 * dx31 + dy31 * dy31);
d21 = sqrt(dx21 * dx21 + dy21 * dy21);
a1 = dx31 * d21 - dx21 * d31;
b1 = dy31 * d21 - dy21 * d31;
c1 = a1 * p1.x + b1 * p1.y;
double dx32, dy32, dx12, dy12, d32, d12, a2, b2, c2;
dx32 = p3.x - p2.x;
dy32 = p3.y - p2.y;
dx12 = -dx21;
dy12 = -dy21;
d32 = sqrt(dx32 * dx32 + dy32 * dy32);
d12 = d21;
a2 = dx12 * d32 - dx32 * d12;
b2 = dy12 * d32 - dy32 * d12;
c2 = a2 * p2.x + b2 * p2.y;
rp.x = (c1 * b2 - c2 * b1) / (a1 * b2 - a2 * b1);
rp.y = (c2 * a1 - c1 * a2) / (a1 * b2 - a2 * b1);
r = fabs(dy21 * rp.x - dx21 * rp.y + dx21 * p1.y - dy21 * p1.x) / d21;
}
// 求切点:
// p---圆心坐标, r---圆半径, sp---圆外一点,
// rp1,rp2---切点坐标
void cutpoint(POINT p, double r, POINT sp, POINT & rp1, POINT & rp2)
{
POINT p2;
p2.x = (p.x + sp.x) / 2;
p2.y = (p.y + sp.y) / 2;
double dx2, dy2, r2;
dx2 = p2.x - p.x;
dy2 = p2.y - p.y;
r2 = sqrt(dx2 * dx2 + dy2 * dy2);
c2point(p, r, p2, r2, rp1, rp2);
}
// 线段的左右旋:
/* l2在l1的左/右方向(l1为基准线)
返回 0: 重合;
返回 1: 右旋;
返回–1: 左旋; */
int rotat(LINESEG l1, LINESEG l2)
{
double dx1, dx2, dy1, dy2;
dx1 = l1.s.x - l1.e.x;
dy1 = l1.s.y - l1.e.y;
dx2 = l2.s.x - l2.e.x;
dy2 = l2.s.y - l2.e.y;
double d;
d = dx1 * dy2 - dx2 * dy1;
if (d == 0)
return 0;
else if (d > 0)
return -1;
else
return 1;
}
/*
计算圆心角
lat表示纬度 (-90,90)
lng表示经度 (0 ,2PI)
返回两点所在大圆劣弧对应圆心角,0<=angle<=M_PI
*/
double angle(double lng1, double lat1, double lng2, double lat2)
{
double dlng = fabs(lng1 - lng2) * M_PI / 180;
while (dlng >= M_PI + M_PI)
dlng -= M_PI + M_PI;
if (dlng > M_PI)
dlng = M_PI + M_PI - dlng;
lat1 *= M_PI / 180, lat2 *= M_PI / 180;
return acos(cos(lat1) * cos(lat2) * cos(dlng) + sin(lat1) * sin(lat2));
}
// 计算球面两点的直线距离,r为球半径
double line_dist(double r, double lng1, double lat1, double lng2, double lat2)
{
double dlng = fabs(lng1 - lng2) * M_PI / 180;
while (dlng >= M_PI + M_PI)
dlng -= M_PI + M_PI;
if (dlng > M_PI)
dlng = M_PI + M_PI - dlng;
lat1 *= M_PI / 180, lat2 *= M_PI / 180;
return r * sqrt(2 - 2 * (cos(lat1) * cos(lat2) * cos(dlng) + sin(lat1) * sin(lat2)));
}
// 计算球面距离,r为球半径
double sphere_dist(double r, double lng1, double lat1, double lng2, double lat2)
{
return r * angle(lng1, lat1, lng2, lat2);
}
/*****************三维几何********************/
// 计算cross product U x V
POINT3 xmult(POINT3 u, POINT3 v)
{
POINT3 ret;
ret.x = u.y * v.z - v.y * u.z;
ret.y = u.z * v.x - u.x * v.z;
ret.z = u.x * v.y - u.y * v.x;
return ret;
}
// 计算dot product U . V
double dmult(POINT3 u, POINT3 v)
{
return u.x * v.x + u.y * v.y + u.z * v.z;
}
// 矢量差 U - V
POINT3 subt(POINT3 u, POINT3 v)
{
POINT3 ret;
ret.x = u.x - v.x;
ret.y = u.y - v.y;
ret.z = u.z - v.z;
return ret;
}
// 取平面法向量
POINT3 pvec(PLANE3 s)
{
return xmult(subt(s.a, s.b), subt(s.b, s.c));
}
POINT3 pvec(POINT3 s1, POINT3 s2, POINT3 s3)
{
return xmult(subt(s1, s2), subt(s2, s3));
}
// 两点距离,单参数取向量大小
double distance(POINT3 p1, POINT3 p2)
{
return sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y) + (p1.z - p2.z) * (p1.z - p2.z));
}
// 向量大小
double vlen(POINT3 p)
{
return sqrt(p.x * p.x + p.y * p.y + p.z * p.z);
}
// 判三点共线
int dots_inline(POINT3 p1, POINT3 p2, POINT3 p3)
{
return vlen(xmult(subt(p1, p2), subt(p2, p3))) < EP;
}
// 判四点共面
int dots_onplane(POINT3 a, POINT3 b, POINT3 c, POINT3 d)
{
return zero(dmult(pvec(a, b, c), subt(d, a)));
}
// 判点是否在线段上,包括端点和共线
int dot_online_in(POINT3 p, LINE3 l)
{
return zero(vlen(xmult(subt(p, l.a), subt(p, l.b)))) && (l.a.x - p.x) * (l.b.x - p.x) < EP && (l.a.y - p.y) * (l.b.y - p.y) < EP && (l.a.z - p.z) * (l.b.z - p.z) < EP;
}
int dot_online_in(POINT3 p, POINT3 l1, POINT3 l2)
{
return zero(vlen(xmult(subt(p, l1), subt(p, l2)))) && (l1.x - p.x) * (l2.x - p.x) < EP && (l1.y - p.y) * (l2.y - p.y) < EP && (l1.z - p.z) * (l2.z - p.z) < EP;
}
// 判点是否在线段上,不包括端点
int dot_online_ex(POINT3 p, LINE3 l)
{
return dot_online_in(p, l) && (!zero(p.x - l.a.x) || !zero(p.y - l.a.y) || !zero(p.z - l.a.z))
&& (!zero(p.x - l.b.x) || !zero(p.y - l.b.y) || !zero(p.z - l.b.z));
}
int dot_online_ex(POINT3 p, POINT3 l1, POINT3 l2)
{
return dot_online_in(p, l1, l2) && (!zero(p.x - l1.x) || !zero(p.y - l1.y) || !zero(p.z - l1.z)) && (!zero(p.x - l2.x) || !zero(p.y - l2.y)|| !zero(p.z - l2.z));
}
// 判点是否在空间三角形上,包括边界,三点共线无意义
int dot_inplane_in(POINT3 p, PLANE3 s)
{
return zero(vlen(xmult(subt(s.a, s.b), subt(s.a, s.c))) -
vlen(xmult(subt(p, s.a), subt(p, s.b))) - vlen(xmult(subt(p, s.b), subt(p, s.c))) -
vlen(xmult(subt(p, s.c), subt(p, s.a))));
}
int dot_inplane_in(POINT3 p, POINT3 s1, POINT3 s2, POINT3 s3)
{
return zero(vlen(xmult(subt(s1, s2), subt(s1, s3))) - vlen(xmult(subt(p, s1), subt(p, s2))) -
vlen(xmult(subt(p, s2), subt(p, s3))) - vlen(xmult(subt(p, s3), subt(p, s1))));
}
// 判点是否在空间三角形上,不包括边界,三点共线无意义
int dot_inplane_ex(POINT3 p, PLANE3 s)
{
return dot_inplane_in(p, s) && vlen(xmult(subt(p, s.a), subt(p, s.b))) > EP &&
vlen(xmult(subt(p, s.b), subt(p, s.c))) > EP
&& vlen(xmult(subt(p, s.c), subt(p, s.a))) > EP;
}
int dot_inplane_ex(POINT3 p, POINT3 s1, POINT3 s2, POINT3 s3)
{
return dot_inplane_in(p, s1, s2, s3) && vlen(xmult(subt(p, s1), subt(p, s2))) > EP &&
vlen(xmult(subt(p, s2), subt(p, s3))) > EP && vlen(xmult(subt(p, s3), subt(p, s1))) > EP;
}
// 判两点在线段同侧,点在线段上返回0,不共面无意义
int same_side(POINT3 p1, POINT3 p2, LINE3 l)
{
return dmult(xmult(subt(l.a, l.b), subt(p1, l.b)), xmult(subt(l.a, l.b), subt(p2, l.b))) > EP;
}
int same_side(POINT3 p1, POINT3 p2, POINT3 l1, POINT3 l2)
{
return dmult(xmult(subt(l1, l2), subt(p1, l2)), xmult(subt(l1, l2), subt(p2, l2))) > EP;
}
// 判两点在线段异侧,点在线段上返回0,不共面无意义
int opposite_side(POINT3 p1, POINT3 p2, LINE3 l)
{
return dmult(xmult(subt(l.a, l.b), subt(p1, l.b)), xmult(subt(l.a, l.b), subt(p2, l.b))) < -EP;
}
int opposite_side(POINT3 p1, POINT3 p2, POINT3 l1, POINT3 l2)
{
return dmult(xmult(subt(l1, l2), subt(p1, l2)), xmult(subt(l1, l2), subt(p2, l2))) < -EP;
}
// 判两点在平面同侧,点在平面上返回0
int same_side(POINT3 p1, POINT3 p2, PLANE3 s)
{
return dmult(pvec(s), subt(p1, s.a)) * dmult(pvec(s), subt(p2, s.a)) > EP;
}
int same_side(POINT3 p1, POINT3 p2, POINT3 s1, POINT3 s2, POINT3 s3)
{
return dmult(pvec(s1, s2, s3), subt(p1, s1)) * dmult(pvec(s1, s2, s3), subt(p2, s1)) > EP;
}
// 判两点在平面异侧,点在平面上返回0
int opposite_side(POINT3 p1, POINT3 p2, PLANE3 s)
{
return dmult(pvec(s), subt(p1, s.a)) * dmult(pvec(s), subt(p2, s.a)) < -EP;
}
int opposite_side(POINT3 p1, POINT3 p2, POINT3 s1, POINT3 s2, POINT3 s3)
{
return dmult(pvec(s1, s2, s3), subt(p1, s1)) * dmult(pvec(s1, s2, s3), subt(p2, s1)) < -EP;
}
// 判两直线平行
int parallel(LINE3 u, LINE3 v)
{
return vlen(xmult(subt(u.a, u.b), subt(v.a, v.b))) < EP;
}
int parallel(POINT3 u1, POINT3 u2, POINT3 v1, POINT3 v2)
{
return vlen(xmult(subt(u1, u2), subt(v1, v2))) < EP;
}
// 判两平面平行
int parallel(PLANE3 u, PLANE3 v)
{
return vlen(xmult(pvec(u), pvec(v))) < EP;
}
int parallel(POINT3 u1, POINT3 u2, POINT3 u3, POINT3 v1, POINT3 v2, POINT3 v3)
{
return vlen(xmult(pvec(u1, u2, u3), pvec(v1, v2, v3))) < EP;
}
// 判直线与平面平行
int parallel(LINE3 l, PLANE3 s)
{
return vlen(xmult(subt(l.a, l.b), pvec(s))) < EP;
}
int parallel(POINT3 l1, POINT3 l2, POINT3 s1, POINT3 s2, POINT3 s3)
{
return vlen(xmult(subt(l1, l2), pvec(s1, s2, s3))) < EP;
}
// 判直线与平面垂直
int perpendicular(LINE3 l, PLANE3 s)
{
return zero(dmult(subt(l.a, l.b), pvec(s)));
}
int perpendicular(POINT3 l1, POINT3 l2, POINT3 s1, POINT3 s2, POINT3 s3)
{
return zero(dmult(subt(l1, l2), pvec(s1, s2, s3)));
}
// 判两直线垂直
int perpendicular(LINE3 u, LINE3 v)
{
return zero(dmult(subt(u.a, u.b), subt(v.a, v.b)));
}
int perpendicular(POINT3 u1, POINT3 u2, POINT3 v1, POINT3 v2)
{
return zero(dmult(subt(u1, u2), subt(v1, v2)));
}
// 判两平面垂直
int perpendicular(PLANE3 u, PLANE3 v)
{
return zero(dmult(pvec(u), pvec(v)));
}
int perpendicular(POINT3 u1, POINT3 u2, POINT3 u3, POINT3 v1, POINT3 v2, POINT3 v3)
{
return zero(dmult(pvec(u1, u2, u3), pvec(v1, v2, v3)));
}
// 判两线段相交,包括端点和部分重合
int intersect_in(LINE3 u, LINE3 v)
{
if (!dots_onplane(u.a, u.b, v.a, v.b))
return 0;
if (!dots_inline(u.a, u.b, v.a) || !dots_inline(u.a, u.b, v.b))
return !same_side(u.a, u.b, v) && !same_side(v.a, v.b, u);
return dot_online_in(u.a, v) || dot_online_in(u.b, v) || dot_online_in(v.a, u)
|| dot_online_in(v.b, u);
}
int intersect_in(POINT3 u1, POINT3 u2, POINT3 v1, POINT3 v2)
{
if (!dots_onplane(u1, u2, v1, v2))
return 0;
if (!dots_inline(u1, u2, v1) || !dots_inline(u1, u2, v2))
return !same_side(u1, u2, v1, v2) && !same_side(v1, v2, u1, u2);
return dot_online_in(u1, v1, v2) || dot_online_in(u2, v1, v2) || dot_online_in(v1, u1, u2)
|| dot_online_in(v2, u1, u2);
}
// 判两线段相交,不包括端点和部分重合
int intersect_ex(LINE3 u, LINE3 v)
{
return dots_onplane(u.a, u.b, v.a, v.b) && opposite_side(u.a, u.b, v)
&& opposite_side(v.a, v.b, u);
}
int intersect_ex(POINT3 u1, POINT3 u2, POINT3 v1, POINT3 v2)
{
return dots_onplane(u1, u2, v1, v2) && opposite_side(u1, u2, v1, v2)
&& opposite_side(v1, v2, u1, u2);
}
// 判线段与空间三角形相交,包括交于边界和(部分)包含
int intersect_in(LINE3 l, PLANE3 s)
{
return !same_side(l.a, l.b, s) && !same_side(s.a, s.b, l.a, l.b, s.c) &&
!same_side(s.b, s.c, l.a, l.b, s.a) && !same_side(s.c, s.a, l.a, l.b, s.b);
}
int intersect_in(POINT3 l1, POINT3 l2, POINT3 s1, POINT3 s2, POINT3 s3)
{
return !same_side(l1, l2, s1, s2, s3) && !same_side(s1, s2, l1, l2, s3) &&
!same_side(s2, s3, l1, l2, s1) && !same_side(s3, s1, l1, l2, s2);
}
// 判线段与空间三角形相交,不包括交于边界和(部分)包含
int intersect_ex(LINE3 l, PLANE3 s)
{
return opposite_side(l.a, l.b, s) && opposite_side(s.a, s.b, l.a, l.b, s.c) &&
opposite_side(s.b, s.c, l.a, l.b, s.a) && opposite_side(s.c, s.a, l.a, l.b, s.b);
}
int intersect_ex(POINT3 l1, POINT3 l2, POINT3 s1, POINT3 s2, POINT3 s3)
{
return opposite_side(l1, l2, s1, s2, s3) && opposite_side(s1, s2, l1, l2, s3) &&
opposite_side(s2, s3, l1, l2, s1) && opposite_side(s3, s1, l1, l2, s2);
}
// 计算两直线交点,注意事先判断直线是否共面和平行!
// 线段交点请另外判线段相交(同时还是要判断是否平行!)
POINT3 intersection(LINE3 u, LINE3 v)
{
POINT3 ret = u.a;
double t = ((u.a.x - v.a.x) * (v.a.y - v.b.y) - (u.a.y - v.a.y) * (v.a.x - v.b.x))
/ ((u.a.x - u.b.x) * (v.a.y - v.b.y) - (u.a.y - u.b.y) * (v.a.x - v.b.x));
ret.x += (u.b.x - u.a.x) * t;
ret.y += (u.b.y - u.a.y) * t;
ret.z += (u.b.z - u.a.z) * t;
return ret;
}
POINT3 intersection(POINT3 u1, POINT3 u2, POINT3 v1, POINT3 v2)
{
POINT3 ret = u1;
double t = ((u1.x - v1.x) * (v1.y - v2.y) - (u1.y - v1.y) * (v1.x - v2.x))
/ ((u1.x - u2.x) * (v1.y - v2.y) - (u1.y - u2.y) * (v1.x - v2.x));
ret.x += (u2.x - u1.x) * t;
ret.y += (u2.y - u1.y) * t;
ret.z += (u2.z - u1.z) * t;
return ret;
}
// 计算直线与平面交点,注意事先判断是否平行,并保证三点不共线!
// 线段和空间三角形交点请另外判断
POINT3 intersection(LINE3 l, PLANE3 s)
{
POINT3 ret = pvec(s);
double t = (ret.x * (s.a.x - l.a.x) + ret.y * (s.a.y - l.a.y) + ret.z * (s.a.z - l.a.z)) /
(ret.x * (l.b.x - l.a.x) + ret.y * (l.b.y - l.a.y) + ret.z * (l.b.z - l.a.z));
ret.x = l.a.x + (l.b.x - l.a.x) * t;
ret.y = l.a.y + (l.b.y - l.a.y) * t;
ret.z = l.a.z + (l.b.z - l.a.z) * t;
return ret;
}
POINT3 intersection(POINT3 l1, POINT3 l2, POINT3 s1, POINT3 s2, POINT3 s3)
{
POINT3 ret = pvec(s1, s2, s3);
double t = (ret.x * (s1.x - l1.x) + ret.y * (s1.y - l1.y) + ret.z * (s1.z - l1.z)) /
(ret.x * (l2.x - l1.x) + ret.y * (l2.y - l1.y) + ret.z * (l2.z - l1.z));
ret.x = l1.x + (l2.x - l1.x) * t;
ret.y = l1.y + (l2.y - l1.y) * t;
ret.z = l1.z + (l2.z - l1.z) * t;
return ret;
}
// 计算两平面交线,注意事先判断是否平行,并保证三点不共线!
LINE3 intersection(PLANE3 u, PLANE3 v)
{
LINE3 ret;
ret.a =
parallel(v.a, v.b, u.a, u.b, u.c) ? intersection(v.b, v.c, u.a, u.b,u.c) : intersection(v.a, v.b, u.a, u.b, u.c);
ret.b =
parallel(v.c, v.a, u.a, u.b, u.c) ? intersection(v.b, v.c, u.a, u.b,u.c) : intersection(v.c, v.a, u.a, u.b,
u.c);
return ret;
}
LINE3 intersection(POINT3 u1, POINT3 u2, POINT3 u3, POINT3 v1, POINT3 v2, POINT3 v3)
{
LINE3 ret;
ret.a =
parallel(v1, v2, u1, u2, u3) ? intersection(v2, v3, u1, u2, u3) : intersection(v1, v2, u1,u2, u3);
ret.b =
parallel(v3, v1, u1, u2, u3) ? intersection(v2, v3, u1, u2, u3) : intersection(v3, v1, u1,u2, u3);
return ret;
}
// 点到直线距离
double ptoline(POINT3 p, LINE3 l)
{
return vlen(xmult(subt(p, l.a), subt(l.b, l.a))) / distance(l.a, l.b);
}
double ptoline(POINT3 p, POINT3 l1, POINT3 l2)
{
return vlen(xmult(subt(p, l1), subt(l2, l1))) / distance(l1, l2);
}
// 点到平面距离
double ptoplane(POINT3 p, PLANE3 s)
{
return fabs(dmult(pvec(s), subt(p, s.a))) / vlen(pvec(s));
}
double ptoplane(POINT3 p, POINT3 s1, POINT3 s2, POINT3 s3)
{
return fabs(dmult(pvec(s1, s2, s3), subt(p, s1))) / vlen(pvec(s1, s2, s3));
}
// 直线到直线距离
double linetoline(LINE3 u, LINE3 v)
{
POINT3 n = xmult(subt(u.a, u.b), subt(v.a, v.b));
return fabs(dmult(subt(u.a, v.a), n)) / vlen(n);
}
double linetoline(POINT3 u1, POINT3 u2, POINT3 v1, POINT3 v2)
{
POINT3 n = xmult(subt(u1, u2), subt(v1, v2));
return fabs(dmult(subt(u1, v1), n)) / vlen(n);
}
// 两直线夹角cos值
double angle_cos(LINE3 u, LINE3 v)
{
return dmult(subt(u.a, u.b), subt(v.a, v.b)) / vlen(subt(u.a, u.b)) / vlen(subt(v.a, v.b));
}
double angle_cos(POINT3 u1, POINT3 u2, POINT3 v1, POINT3 v2)
{
return dmult(subt(u1, u2), subt(v1, v2)) / vlen(subt(u1, u2)) / vlen(subt(v1, v2));
}
// 两平面夹角cos值
double angle_cos(PLANE3 u, PLANE3 v)
{
return dmult(pvec(u), pvec(v)) / vlen(pvec(u)) / vlen(pvec(v));
}
double angle_cos(POINT3 u1, POINT3 u2, POINT3 u3, POINT3 v1, POINT3 v2, POINT3 v3)
{
return dmult(pvec(u1, u2, u3),
pvec(v1, v2, v3)) / vlen(pvec(u1, u2, u3)) / vlen(pvec(v1, v2, v3));
}
// 直线平面夹角sin值
double angle_sin(LINE3 l, PLANE3 s)
{
return dmult(subt(l.a, l.b), pvec(s)) / vlen(subt(l.a, l.b)) / vlen(pvec(s));
}
double angle_sin(POINT3 l1, POINT3 l2, POINT3 s1, POINT3 s2, POINT3 s3)
{
return dmult(subt(l1, l2), pvec(s1, s2, s3)) / vlen(subt(l1, l2)) / vlen(pvec(s1, s2, s3));
} | 23.545863 | 214 | 0.544437 | [
"geometry"
] |
5596aa720e3b409636b037a9b55ef68a91dd7419 | 6,916 | cpp | C++ | src/constitutive/mechanics/solid/nonaffine_microsphere.cpp | dbeurle/neon | 63cd2929a6eaaa0e1654c729cd35a9a52a706962 | [
"MIT"
] | 9 | 2018-07-12T17:06:33.000Z | 2021-11-20T23:13:26.000Z | src/constitutive/mechanics/solid/nonaffine_microsphere.cpp | dbeurle/neon | 63cd2929a6eaaa0e1654c729cd35a9a52a706962 | [
"MIT"
] | 119 | 2016-06-22T07:36:04.000Z | 2019-03-10T19:38:12.000Z | src/constitutive/mechanics/solid/nonaffine_microsphere.cpp | dbeurle/neon | 63cd2929a6eaaa0e1654c729cd35a9a52a706962 | [
"MIT"
] | 9 | 2017-10-08T16:51:38.000Z | 2021-03-15T08:08:04.000Z |
#include "nonaffine_microsphere.hpp"
#include "constitutive/internal_variables.hpp"
#include "constitutive/mechanics/detail/microsphere.hpp"
#include "constitutive/mechanics/volumetric_free_energy.hpp"
#include "io/json.hpp"
#include <tbb/parallel_for.h>
#include <stdexcept>
namespace neon::mechanics::solid
{
nonaffine_microsphere::nonaffine_microsphere(std::shared_ptr<internal_variables_t>& variables,
json const& material_data,
unit_sphere_quadrature::point const rule)
: affine_microsphere(variables, material_data, rule), material(material_data)
{
if (material_data.find("nonaffine_stretch_parameter") == material_data.end())
{
throw std::domain_error("\"nonaffine_stretch_parameter\" not specified in material data\n");
}
non_affine_stretch_parameter = material_data["nonaffine_stretch_parameter"];
}
void nonaffine_microsphere::update_internal_variables(double)
{
auto const& deformation_gradients = variables->get(variable::second::deformation_gradient);
auto& cauchy_stresses = variables->get(variable::second::cauchy_stress);
auto const& detF_list = variables->get(variable::scalar::DetF);
// Compute tangent moduli
auto& tangent_operators = variables->get(variable::fourth::tangent_operator);
// Material properties
auto const K_eff = material.bulk_modulus();
auto const G_eff = material.shear_modulus();
auto const N = material.segments_per_chain();
auto const p = non_affine_stretch_parameter;
tbb::parallel_for(std::size_t{0}, deformation_gradients.size(), [&](auto const l) {
// Determinant of the deformation gradient
auto const& J = detF_list[l];
matrix3 const F_unimodular = unimodular(deformation_gradients[l]);
auto const nonaffine_stretch = compute_nonaffine_stretch(F_unimodular);
// Compute the non-affine stretch derivatives
matrix3 const h = compute_h_tensor(F_unimodular);
matrix6 const H = compute_H_tensor(F_unimodular);
// Compute the microstress and micro moduli
auto const micro_kirchhoff_f = G_eff * pade_first(nonaffine_stretch, N) * nonaffine_stretch;
auto const micro_moduli_f = G_eff * pade_second(nonaffine_stretch, N);
// Compute the macrostress and macromoduli for chain force
matrix3 const macro_kirchhoff_f = micro_kirchhoff_f * std::pow(nonaffine_stretch, 1.0 - p)
* h;
matrix6 const macro_moduli_f = (micro_moduli_f * std::pow(nonaffine_stretch, 2.0 - 2.0 * p)
- (p - 1.0) * micro_kirchhoff_f
* std::pow(nonaffine_stretch, 1.0 - 2.0 * p))
* outer_product(h, h)
+ micro_kirchhoff_f * std::pow(nonaffine_stretch, 1.0 - p) * H;
// Compute the non-affine tube contribution
matrix3 const k = compute_k_tensor(F_unimodular);
matrix6 const K = compute_K_tensor(F_unimodular);
matrix6 const G = compute_G_tensor(F_unimodular);
// Compute the macrostress and macromoduli for tube contraint
matrix3 const macro_kirchhoff_c = -G_eff * N * effective_tube_geometry * k;
matrix6 const macro_moduli_c = G_eff * N * effective_tube_geometry * (K + G);
// Superimposed stress response from tube and chain contributions
matrix3 const macro_kirchhoff = macro_kirchhoff_f + macro_kirchhoff_c;
matrix6 const macro_moduli = macro_moduli_f + macro_moduli_c;
auto const pressure = J * volumetric_free_energy_dJ(J, K_eff);
// Perform the deviatoric projection for the stress and macro moduli
cauchy_stresses[l] = compute_kirchhoff_stress(pressure, macro_kirchhoff) / J;
tangent_operators[l] = compute_material_tangent(J, K_eff, macro_moduli, macro_kirchhoff);
});
}
double nonaffine_microsphere::compute_nonaffine_stretch(matrix3 const& F_unimodular) const
{
auto const p = non_affine_stretch_parameter;
return std::pow(unit_sphere.integrate(0.0,
[&](auto const& coordinates, auto) {
auto const& [r, _] = coordinates;
vector3 const t = deformed_tangent(F_unimodular, r);
return std::pow(compute_area_stretch(t), p);
}),
1.0 / p);
}
matrix3 nonaffine_microsphere::compute_h_tensor(matrix3 const& F_unimodular) const
{
auto const p = non_affine_stretch_parameter;
return unit_sphere.integrate(matrix3::Zero().eval(), [&](auto const& xyz, auto) -> matrix3 {
auto const& [r, _] = xyz;
vector3 const t = deformed_tangent(F_unimodular, r);
return std::pow(compute_microstretch(t), p - 2.0) * outer_product(t, t);
});
}
matrix6 nonaffine_microsphere::compute_H_tensor(matrix3 const& F_unimodular) const
{
auto const p = non_affine_stretch_parameter;
return (p - 2.0)
* unit_sphere.integrate(matrix6::Zero().eval(), [&](auto const& xyz, auto) -> matrix6 {
auto const& [r, _] = xyz;
vector3 const t = deformed_tangent(F_unimodular, r);
return std::pow(compute_microstretch(t), p - 4.0) * outer_product(t, t, t, t);
});
}
matrix3 nonaffine_microsphere::compute_k_tensor(matrix3 const& F_unimodular) const
{
auto const q = non_affine_tube_parameter;
return q * unit_sphere.integrate(matrix3::Zero().eval(), [&](auto const& xyz, auto) -> matrix3 {
auto const& [r, _] = xyz;
vector3 const n = deformed_normal(F_unimodular, r);
return std::pow(compute_area_stretch(n), q - 2.0) * outer_product(n, n);
});
}
matrix6 nonaffine_microsphere::compute_K_tensor(matrix3 const& F_unimodular) const
{
auto const q = non_affine_tube_parameter;
return q * (q - 2.0)
* unit_sphere.integrate(matrix6::Zero().eval(), [&](auto const& xyz, auto) -> matrix6 {
auto const& [r, _] = xyz;
vector3 const n = deformed_normal(F_unimodular, r);
return std::pow(compute_area_stretch(n), q - 4.0) * outer_product(n, n, n, n);
});
}
matrix6 nonaffine_microsphere::compute_G_tensor(matrix3 const& F_unimodular) const
{
auto const q = non_affine_tube_parameter;
return 2.0 * q
* unit_sphere.integrate(matrix6::Zero().eval(), [&](auto const& xyz, auto) -> matrix6 {
auto const& [r, _] = xyz;
vector3 const n = deformed_normal(F_unimodular, r);
return std::pow(compute_area_stretch(n), q - 2.0) * compute_o_dot_product(n);
});
}
}
| 39.295455 | 102 | 0.636061 | [
"solid"
] |
55995511dad1aabaa1a5774128a5663f8b4925a6 | 14,881 | hpp | C++ | include/GlobalNamespace/ResultsViewController.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/ResultsViewController.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/ResultsViewController.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: HMUI.ViewController
#include "HMUI/ViewController.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils-methods.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils-properties.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils-fields.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Begin forward declares
// Forward declaring namespace: GlobalNamespace
namespace GlobalNamespace {
// Forward declaring type: LevelBar
class LevelBar;
// Forward declaring type: FireworksController
class FireworksController;
// Forward declaring type: SongPreviewPlayer
class SongPreviewPlayer;
// Forward declaring type: AudioManagerSO
class AudioManagerSO;
// Forward declaring type: ResultsEnvironmentManager
class ResultsEnvironmentManager;
// Forward declaring type: LevelCompletionResults
class LevelCompletionResults;
// Forward declaring type: IDifficultyBeatmap
class IDifficultyBeatmap;
}
// Forward declaring namespace: UnityEngine::UI
namespace UnityEngine::UI {
// Forward declaring type: Button
class Button;
}
// Forward declaring namespace: UnityEngine
namespace UnityEngine {
// Forward declaring type: GameObject
class GameObject;
// Forward declaring type: AudioClip
class AudioClip;
// Forward declaring type: Coroutine
class Coroutine;
}
// Forward declaring namespace: TMPro
namespace TMPro {
// Forward declaring type: TextMeshProUGUI
class TextMeshProUGUI;
}
// Forward declaring namespace: System
namespace System {
// Forward declaring type: Action`1<T>
template<typename T>
class Action_1;
}
// Forward declaring namespace: System::Collections
namespace System::Collections {
// Forward declaring type: IEnumerator
class IEnumerator;
}
// Completed forward declares
// Type namespace:
namespace GlobalNamespace {
// Size: 0x11A
#pragma pack(push, 1)
// Autogenerated type: ResultsViewController
class ResultsViewController : public HMUI::ViewController {
public:
// Nested type: GlobalNamespace::ResultsViewController::$StartFireworksAfterDelay$d__32
class $StartFireworksAfterDelay$d__32;
// private UnityEngine.UI.Button _restartButton
// Size: 0x8
// Offset: 0x70
UnityEngine::UI::Button* restartButton;
// Field size check
static_assert(sizeof(UnityEngine::UI::Button*) == 0x8);
// private UnityEngine.UI.Button _continueButton
// Size: 0x8
// Offset: 0x78
UnityEngine::UI::Button* continueButton;
// Field size check
static_assert(sizeof(UnityEngine::UI::Button*) == 0x8);
// [SpaceAttribute] Offset: 0xE267C4
// private UnityEngine.GameObject _clearedPanel
// Size: 0x8
// Offset: 0x80
UnityEngine::GameObject* clearedPanel;
// Field size check
static_assert(sizeof(UnityEngine::GameObject*) == 0x8);
// private TMPro.TextMeshProUGUI _scoreText
// Size: 0x8
// Offset: 0x88
TMPro::TextMeshProUGUI* scoreText;
// Field size check
static_assert(sizeof(TMPro::TextMeshProUGUI*) == 0x8);
// private UnityEngine.GameObject _newHighScoreText
// Size: 0x8
// Offset: 0x90
UnityEngine::GameObject* newHighScoreText;
// Field size check
static_assert(sizeof(UnityEngine::GameObject*) == 0x8);
// private TMPro.TextMeshProUGUI _rankText
// Size: 0x8
// Offset: 0x98
TMPro::TextMeshProUGUI* rankText;
// Field size check
static_assert(sizeof(TMPro::TextMeshProUGUI*) == 0x8);
// private TMPro.TextMeshProUGUI _goodCutsPercentageText
// Size: 0x8
// Offset: 0xA0
TMPro::TextMeshProUGUI* goodCutsPercentageText;
// Field size check
static_assert(sizeof(TMPro::TextMeshProUGUI*) == 0x8);
// private TMPro.TextMeshProUGUI _comboText
// Size: 0x8
// Offset: 0xA8
TMPro::TextMeshProUGUI* comboText;
// Field size check
static_assert(sizeof(TMPro::TextMeshProUGUI*) == 0x8);
// [SpaceAttribute] Offset: 0xE2684C
// private UnityEngine.GameObject _clearedBannerGo
// Size: 0x8
// Offset: 0xB0
UnityEngine::GameObject* clearedBannerGo;
// Field size check
static_assert(sizeof(UnityEngine::GameObject*) == 0x8);
// private UnityEngine.GameObject _failedBannerGo
// Size: 0x8
// Offset: 0xB8
UnityEngine::GameObject* failedBannerGo;
// Field size check
static_assert(sizeof(UnityEngine::GameObject*) == 0x8);
// [SpaceAttribute] Offset: 0xE26894
// private LevelBar _levelBar
// Size: 0x8
// Offset: 0xC0
GlobalNamespace::LevelBar* levelBar;
// Field size check
static_assert(sizeof(GlobalNamespace::LevelBar*) == 0x8);
// [SpaceAttribute] Offset: 0xE268CC
// private UnityEngine.AudioClip _levelClearedAudioClip
// Size: 0x8
// Offset: 0xC8
UnityEngine::AudioClip* levelClearedAudioClip;
// Field size check
static_assert(sizeof(UnityEngine::AudioClip*) == 0x8);
// [InjectAttribute] Offset: 0xE26904
// private readonly FireworksController _fireworksController
// Size: 0x8
// Offset: 0xD0
GlobalNamespace::FireworksController* fireworksController;
// Field size check
static_assert(sizeof(GlobalNamespace::FireworksController*) == 0x8);
// [InjectAttribute] Offset: 0xE26914
// private readonly SongPreviewPlayer _songPreviewPlayer
// Size: 0x8
// Offset: 0xD8
GlobalNamespace::SongPreviewPlayer* songPreviewPlayer;
// Field size check
static_assert(sizeof(GlobalNamespace::SongPreviewPlayer*) == 0x8);
// [InjectAttribute] Offset: 0xE26924
// private readonly AudioManagerSO _audioMixer
// Size: 0x8
// Offset: 0xE0
GlobalNamespace::AudioManagerSO* audioMixer;
// Field size check
static_assert(sizeof(GlobalNamespace::AudioManagerSO*) == 0x8);
// [InjectAttribute] Offset: 0xE26934
// private readonly ResultsEnvironmentManager _resultsEnvironmentManager
// Size: 0x8
// Offset: 0xE8
GlobalNamespace::ResultsEnvironmentManager* resultsEnvironmentManager;
// Field size check
static_assert(sizeof(GlobalNamespace::ResultsEnvironmentManager*) == 0x8);
// [CompilerGeneratedAttribute] Offset: 0xE26944
// private System.Action`1<ResultsViewController> continueButtonPressedEvent
// Size: 0x8
// Offset: 0xF0
System::Action_1<GlobalNamespace::ResultsViewController*>* continueButtonPressedEvent;
// Field size check
static_assert(sizeof(System::Action_1<GlobalNamespace::ResultsViewController*>*) == 0x8);
// [CompilerGeneratedAttribute] Offset: 0xE26954
// private System.Action`1<ResultsViewController> restartButtonPressedEvent
// Size: 0x8
// Offset: 0xF8
System::Action_1<GlobalNamespace::ResultsViewController*>* restartButtonPressedEvent;
// Field size check
static_assert(sizeof(System::Action_1<GlobalNamespace::ResultsViewController*>*) == 0x8);
// private LevelCompletionResults _levelCompletionResults
// Size: 0x8
// Offset: 0x100
GlobalNamespace::LevelCompletionResults* levelCompletionResults;
// Field size check
static_assert(sizeof(GlobalNamespace::LevelCompletionResults*) == 0x8);
// private IDifficultyBeatmap _difficultyBeatmap
// Size: 0x8
// Offset: 0x108
GlobalNamespace::IDifficultyBeatmap* difficultyBeatmap;
// Field size check
static_assert(sizeof(GlobalNamespace::IDifficultyBeatmap*) == 0x8);
// private UnityEngine.Coroutine _startFireworksAfterDelayCoroutine
// Size: 0x8
// Offset: 0x110
UnityEngine::Coroutine* startFireworksAfterDelayCoroutine;
// Field size check
static_assert(sizeof(UnityEngine::Coroutine*) == 0x8);
// private System.Boolean _newHighScore
// Size: 0x1
// Offset: 0x118
bool newHighScore;
// Field size check
static_assert(sizeof(bool) == 0x1);
// private System.Boolean _practice
// Size: 0x1
// Offset: 0x119
bool practice;
// Field size check
static_assert(sizeof(bool) == 0x1);
// Creating value type constructor for type: ResultsViewController
ResultsViewController(UnityEngine::UI::Button* restartButton_ = {}, UnityEngine::UI::Button* continueButton_ = {}, UnityEngine::GameObject* clearedPanel_ = {}, TMPro::TextMeshProUGUI* scoreText_ = {}, UnityEngine::GameObject* newHighScoreText_ = {}, TMPro::TextMeshProUGUI* rankText_ = {}, TMPro::TextMeshProUGUI* goodCutsPercentageText_ = {}, TMPro::TextMeshProUGUI* comboText_ = {}, UnityEngine::GameObject* clearedBannerGo_ = {}, UnityEngine::GameObject* failedBannerGo_ = {}, GlobalNamespace::LevelBar* levelBar_ = {}, UnityEngine::AudioClip* levelClearedAudioClip_ = {}, GlobalNamespace::FireworksController* fireworksController_ = {}, GlobalNamespace::SongPreviewPlayer* songPreviewPlayer_ = {}, GlobalNamespace::AudioManagerSO* audioMixer_ = {}, GlobalNamespace::ResultsEnvironmentManager* resultsEnvironmentManager_ = {}, System::Action_1<GlobalNamespace::ResultsViewController*>* continueButtonPressedEvent_ = {}, System::Action_1<GlobalNamespace::ResultsViewController*>* restartButtonPressedEvent_ = {}, GlobalNamespace::LevelCompletionResults* levelCompletionResults_ = {}, GlobalNamespace::IDifficultyBeatmap* difficultyBeatmap_ = {}, UnityEngine::Coroutine* startFireworksAfterDelayCoroutine_ = {}, bool newHighScore_ = {}, bool practice_ = {}) noexcept : restartButton{restartButton_}, continueButton{continueButton_}, clearedPanel{clearedPanel_}, scoreText{scoreText_}, newHighScoreText{newHighScoreText_}, rankText{rankText_}, goodCutsPercentageText{goodCutsPercentageText_}, comboText{comboText_}, clearedBannerGo{clearedBannerGo_}, failedBannerGo{failedBannerGo_}, levelBar{levelBar_}, levelClearedAudioClip{levelClearedAudioClip_}, fireworksController{fireworksController_}, songPreviewPlayer{songPreviewPlayer_}, audioMixer{audioMixer_}, resultsEnvironmentManager{resultsEnvironmentManager_}, continueButtonPressedEvent{continueButtonPressedEvent_}, restartButtonPressedEvent{restartButtonPressedEvent_}, levelCompletionResults{levelCompletionResults_}, difficultyBeatmap{difficultyBeatmap_}, startFireworksAfterDelayCoroutine{startFireworksAfterDelayCoroutine_}, newHighScore{newHighScore_}, practice{practice_} {}
// public System.Void add_continueButtonPressedEvent(System.Action`1<ResultsViewController> value)
// Offset: 0x10AD110
void add_continueButtonPressedEvent(System::Action_1<GlobalNamespace::ResultsViewController*>* value);
// public System.Void remove_continueButtonPressedEvent(System.Action`1<ResultsViewController> value)
// Offset: 0x10AD1B4
void remove_continueButtonPressedEvent(System::Action_1<GlobalNamespace::ResultsViewController*>* value);
// public System.Void add_restartButtonPressedEvent(System.Action`1<ResultsViewController> value)
// Offset: 0x10AD258
void add_restartButtonPressedEvent(System::Action_1<GlobalNamespace::ResultsViewController*>* value);
// public System.Void remove_restartButtonPressedEvent(System.Action`1<ResultsViewController> value)
// Offset: 0x10AD2FC
void remove_restartButtonPressedEvent(System::Action_1<GlobalNamespace::ResultsViewController*>* value);
// public System.Boolean get_practice()
// Offset: 0x10AD3A0
bool get_practice();
// public System.Void Init(LevelCompletionResults levelCompletionResults, IDifficultyBeatmap difficultyBeatmap, System.Boolean practice, System.Boolean newHighScore)
// Offset: 0x10AD3A8
void Init(GlobalNamespace::LevelCompletionResults* levelCompletionResults, GlobalNamespace::IDifficultyBeatmap* difficultyBeatmap, bool practice, bool newHighScore);
// private System.Collections.IEnumerator StartFireworksAfterDelay(System.Single delay)
// Offset: 0x10ADE68
System::Collections::IEnumerator* StartFireworksAfterDelay(float delay);
// private System.Void SetDataToUI()
// Offset: 0x10AD574
void SetDataToUI();
// private System.Void EnableResultsEnvironmentController()
// Offset: 0x10ADAB8
void EnableResultsEnvironmentController();
// private System.Void DisableResultEnvironmentController()
// Offset: 0x10ADFC4
void DisableResultEnvironmentController();
// private System.Void ContinueButtonPressed()
// Offset: 0x10AE2B8
void ContinueButtonPressed();
// private System.Void RestartButtonPressed()
// Offset: 0x10AE324
void RestartButtonPressed();
// protected override System.Void DidActivate(System.Boolean firstActivation, System.Boolean addedToHierarchy, System.Boolean screenSystemEnabling)
// Offset: 0x10AD3C0
// Implemented from: HMUI.ViewController
// Base method: System.Void ViewController::DidActivate(System.Boolean firstActivation, System.Boolean addedToHierarchy, System.Boolean screenSystemEnabling)
void DidActivate(bool firstActivation, bool addedToHierarchy, bool screenSystemEnabling);
// protected override System.Void DidDeactivate(System.Boolean removedFromHierarchy, System.Boolean screenSystemDisabling)
// Offset: 0x10ADEE8
// Implemented from: HMUI.ViewController
// Base method: System.Void ViewController::DidDeactivate(System.Boolean removedFromHierarchy, System.Boolean screenSystemDisabling)
void DidDeactivate(bool removedFromHierarchy, bool screenSystemDisabling);
// public System.Void .ctor()
// Offset: 0x10AE390
// Implemented from: HMUI.ViewController
// Base method: System.Void ViewController::.ctor()
// Base method: System.Void MonoBehaviour::.ctor()
// Base method: System.Void Behaviour::.ctor()
// Base method: System.Void Component::.ctor()
// Base method: System.Void Object::.ctor()
// Base method: System.Void Object::.ctor()
template<::il2cpp_utils::CreationType creationType = ::il2cpp_utils::CreationType::Temporary>
static ResultsViewController* New_ctor() {
static auto ___internal__logger = ::Logger::get().WithContext("GlobalNamespace::ResultsViewController::.ctor");
return THROW_UNLESS((::il2cpp_utils::New<ResultsViewController*, creationType>()));
}
}; // ResultsViewController
#pragma pack(pop)
static check_size<sizeof(ResultsViewController), 281 + sizeof(bool)> __GlobalNamespace_ResultsViewControllerSizeCheck;
static_assert(sizeof(ResultsViewController) == 0x11A);
}
DEFINE_IL2CPP_ARG_TYPE(GlobalNamespace::ResultsViewController*, "", "ResultsViewController");
| 51.670139 | 2,141 | 0.737652 | [
"object"
] |
559d3736f965eb0c01814e0de0b5670af6bf6e63 | 829 | cpp | C++ | Arrays/miscellaneous/next_permutation.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Arrays/miscellaneous/next_permutation.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Arrays/miscellaneous/next_permutation.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | //leetcode.com/problems/next-permutation/
#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
void nextPermutation(vector<int>& nums) {
int less_than_next = -1;
int idx = -1;
for (int i = nums.size() - 2; i >= 0; --i) {
if (nums[i] < nums[i + 1]) {
less_than_next = i;
break;
}
}
if (less_than_next == -1) {
reverse(nums.begin(), nums.end());
} else {
for (int i = nums.size() - 1; i >= 0; --i) {
if (nums[i] > nums[less_than_next]) {
idx = i;
break;
}
}
swap(nums[less_than_next], nums[idx]);
reverse(nums.begin() + less_than_next + 1, nums.end());
}
}
}; | 27.633333 | 67 | 0.433052 | [
"vector"
] |
55aa6082c3bbf8078fe76f9730996748d12970df | 10,101 | cpp | C++ | VarFlow/example.cpp | liuzc188/Convolutional-LSTM-in-Tensorflow-master | 541eebf6a40d4e8f53d9789360a9ef794da2e35a | [
"Apache-2.0"
] | 1 | 2019-04-04T09:25:03.000Z | 2019-04-04T09:25:03.000Z | VarFlow/example.cpp | liuzc188/Convolutional-LSTM-in-Tensorflow-master | 541eebf6a40d4e8f53d9789360a9ef794da2e35a | [
"Apache-2.0"
] | null | null | null | VarFlow/example.cpp | liuzc188/Convolutional-LSTM-in-Tensorflow-master | 541eebf6a40d4e8f53d9789360a9ef794da2e35a | [
"Apache-2.0"
] | null | null | null | //------------------------------------------------------------------
// Released under the BDS License
//
// Located at http://sourceforge.net/projects/varflow
//
//------------------------------------------------------------------
//---------------------------------------------------------------------------------------------------------
//
// Sample program demonstrating usage of the VarFlow class to calculate optical flow
// Two images from the classic Yosemite flyby sequence are used to generate a dense optical flow field.
// The original image is displayed, along with vector and color field representations of the underlying flow field.
//
// Author: Adam Harmat
// Date: April 2009
//
//----------------------------------------------------------------------------------------------------------
#include <highgui.h>
#include <iostream>
#include "VarFlow.h"
#include "ProfTimer.h"
using namespace std;
// Calculates RGB values from HSV color space
void hsv2rgb(float h, float s, float v, uchar &r, uchar &g, uchar &b){
if(h > 360)
{
h = h - 360;
}
float c = v*s; // chroma
float hp = h / 60;
float hpmod2 = hp - (float)((int)(hp/2))*2;
float x = c*(1 - fabs(hpmod2 - 1));
float m = v - c;
float r1, g1, b1;
if(0 <= hp && hp < 1){
r1 = c;
g1 = x;
b1 = 0;
}
else if(1 <= hp && hp < 2){
r1 = x;
g1 = c;
b1 = 0;
}
else if(2 <= hp && hp < 3){
r1 = 0;
g1 = c;
b1 = x;
}
else if(3 <= hp && hp < 4){
r1 = 0;
g1 = x;
b1 = c;
}
else if(4 <= hp && hp < 5){
r1 = x;
g1 = 0;
b1 = c;
}
else
{
r1 = c;
g1 = 0;
b1 = x;
}
r = (uchar)(255*(r1 + m));
g = (uchar)(255*(g1 + m));
b = (uchar)(255*(b1 + m));
}
// Draw a vector field based on horizontal and vertical flow fields
void drawMotionField(IplImage* imgU, IplImage* imgV, IplImage* imgMotion, int xSpace, int ySpace, float cutoff, int multiplier, CvScalar color)
{
int x, y;
CvPoint p0 = cvPoint(0,0);
CvPoint p1 = cvPoint(0,0);
float deltaX, deltaY, angle, hyp;
for(y = ySpace; y < imgU->height; y+= ySpace ) {
for(x = xSpace; x < imgU->width; x+= xSpace ){
p0.x = x;
p0.y = y;
deltaX = *((float*)(imgU->imageData + y*imgU->widthStep)+x);
deltaY = -(*((float*)(imgV->imageData + y*imgV->widthStep)+x));
angle = atan2(deltaY, deltaX);
hyp = sqrt(deltaX*deltaX + deltaY*deltaY);
if(hyp > cutoff){
p1.x = p0.x + cvRound(multiplier*hyp*cos(angle));
p1.y = p0.y + cvRound(multiplier*hyp*sin(angle));
cvLine( imgMotion, p0, p1, color,1, CV_AA, 0);
p0.x = p1.x + cvRound(3*cos(angle-M_PI + M_PI/4));
p0.y = p1.y + cvRound(3*sin(angle-M_PI + M_PI/4));
cvLine( imgMotion, p0, p1, color,1, CV_AA, 0);
p0.x = p1.x + cvRound(3*cos(angle-M_PI - M_PI/4));
p0.y = p1.y + cvRound(3*sin(angle-M_PI - M_PI/4));
cvLine( imgMotion, p0, p1, color,1, CV_AA, 0);
}
}
}
}
// Draws the circular legend for the color field, indicating direction and magnitude
void drawLegendHSV(IplImage* imgColor, int radius, int cx, int cy)
{
int width = radius*2 + 1;
int height = width;
IplImage* imgLegend = cvCreateImage( cvSize(width, height), 8, 3 );
IplImage* imgMask = cvCreateImage( cvSize(width, height), 8, 1 );
IplImage* sub_img = cvCreateImageHeader(cvSize(width, height),8,3);
uchar* legend_ptr;
float angle, h, s, v, legend_max_s;
uchar r,g,b;
int deltaX, deltaY;
legend_max_s = radius*sqrt(2);
for(int y=0; y < imgLegend->height; y++)
{
legend_ptr = (uchar*)(imgLegend->imageData + y*imgLegend->widthStep);
for(int x=0; x < imgLegend->width; x++)
{
deltaX = x-radius;
deltaY = -(y-radius);
angle = atan2(deltaY,deltaX);
if(angle < 0)
angle += 2*M_PI;
h = angle * 180 / M_PI;
s = sqrt(deltaX*deltaX + deltaY*deltaY) / legend_max_s;
v = 0.9;
hsv2rgb(h, s, v, r, g, b);
legend_ptr[3*x] = b;
legend_ptr[3*x+1] = g;
legend_ptr[3*x+2] = r;
}
}
cvZero(imgMask);
cvCircle( imgMask, cvPoint(radius,radius) , radius, CV_RGB(255,255,255), -1,8,0 );
sub_img->origin = imgColor->origin;
sub_img->widthStep = imgColor->widthStep;
sub_img->imageData = imgColor->imageData + (cy-radius) * imgColor->widthStep + (cx-radius) * imgColor->nChannels;
cvCopy(imgLegend, sub_img, imgMask);
cvCircle( imgColor, cvPoint(cx,cy) , radius, CV_RGB(0,0,0), 1,CV_AA,0 );
cvReleaseImage(&imgLegend);
cvReleaseImage(&imgMask);
cvReleaseImageHeader(&sub_img);
}
// Draws a color field representation of the flow field
void drawColorField(IplImage* imgU, IplImage* imgV, IplImage* imgColor)
{
IplImage* imgColorHSV = cvCreateImage( cvSize(imgColor->width, imgColor->height), IPL_DEPTH_32F, 3 );
cvZero(imgColorHSV);
float max_s = 0;
float *hsv_ptr, *u_ptr, *v_ptr;
uchar *color_ptr;
float angle;
float h,s,v;
uchar r,g,b;
float deltaX, deltaY;
int x, y;
// Generate hsv image
for(y = 0; y < imgColorHSV->height; y++ ) {
hsv_ptr = (float*)(imgColorHSV->imageData + y*imgColorHSV->widthStep);
u_ptr = (float*)(imgU->imageData + y*imgU->widthStep);
v_ptr = (float*)(imgV->imageData + y*imgV->widthStep);
for(x = 0; x < imgColorHSV->width; x++){
deltaX = u_ptr[x];
deltaY = v_ptr[x];
angle = atan2(deltaY,deltaX);
if(angle < 0)
angle += 2*M_PI;
hsv_ptr[3*x] = angle * 180 / M_PI;
hsv_ptr[3*x+1] = sqrt(deltaX*deltaX + deltaY*deltaY);
hsv_ptr[3*x+2] = 0.9;
if(hsv_ptr[3*x+1] > max_s)
max_s = hsv_ptr[3*x+1];
}
}
// Generate color image
for(y = 0; y < imgColor->height; y++ ) {
hsv_ptr = (float*)(imgColorHSV->imageData + y*imgColorHSV->widthStep);
color_ptr = (uchar*)(imgColor->imageData + y*imgColor->widthStep);
for(x = 0; x < imgColor->width; x++){
h = hsv_ptr[3*x];
s = hsv_ptr[3*x+1] / max_s;
v = hsv_ptr[3*x+2];
hsv2rgb(h, s, v, r, g, b);
color_ptr[3*x] = b;
color_ptr[3*x+1] = g;
color_ptr[3*x+2] = r;
}
}
drawLegendHSV(imgColor, 25, 28, 28);
cvReleaseImage(&imgColorHSV);
}
int main(int argc, char *argv[])
{
// Load sample images
IplImage* imgA = cvLoadImage( "Data/yos_img_08.jpg", 0 );
IplImage* imgB = cvLoadImage( "Data/yos_img_09.jpg", 0 );
int width = imgA->width;
int height = imgA->height;
IplImage* imgU = cvCreateImage(cvSize(width, height), IPL_DEPTH_32F, 1);
IplImage* imgV = cvCreateImage(cvSize(width, height), IPL_DEPTH_32F, 1);
IplImage* imgColor = cvCreateImage( cvSize(width, height), 8, 3 );
IplImage* imgMotion = cvCreateImage(cvSize(width, height), 8, 3);
IplImage* swap_img;
//We will start at level 0 (full size image) and go down to level 4 (coarse image 16 times smaller than original)
//Experiment with these values to see how they affect the flow field as well as calculation time
int max_level = 4;
int start_level = 0;
//Two pre and post smoothing steps, should be greater than zero
int n1 = 2;
int n2 = 2;
//Smoothing and regularization parameters, experiment but keep them above zero
float rho = 2.8;
float alpha = 1400;
float sigma = 1.5;
char c;
// Set up VarFlow class
VarFlow OpticalFlow(width, height, max_level, start_level, n1, n2, rho, alpha, sigma);
ProfTimer t;
cvZero(imgU);
cvZero(imgV);
cvZero(imgMotion);
cvZero(imgColor);
// Start timing
t.Start();
// Calculate the flow
OpticalFlow.CalcFlow(imgA, imgB, imgU, imgV, 0);
// Stop timing
t.Stop();
double dur = t.GetDurationInSecs();
cout<<"Executing CalcFlow took "<<dur<<" seconds"<<endl;
cvNamedWindow("Motion",CV_WINDOW_AUTOSIZE);
cvNamedWindow("Original",CV_WINDOW_AUTOSIZE);
cvNamedWindow("Color",CV_WINDOW_AUTOSIZE);
// Draw motion field with grid spacing of 10, minimium displacement 1 pixel, arrow length multiplier of 5
drawMotionField(imgU, imgV, imgMotion, 10, 10, 1, 5, CV_RGB(255,0,0));
drawColorField(imgU, imgV, imgColor);
cvShowImage("Color", imgColor);
cvShowImage("Motion", imgMotion);
cvShowImage("Original", imgA);
cout<<"Press ESC to quit"<<endl;
while(1){
c = cvWaitKey(500);
CV_SWAP(imgA, imgB, swap_img);
cvShowImage("Original", imgA);
if( c == 27 ) break;
}
cvDestroyWindow("Color");
cvDestroyWindow("Motion");
cvDestroyWindow("Original");
cvReleaseImage(&imgA);
cvReleaseImage(&imgB);
cvReleaseImage(&imgU);
cvReleaseImage(&imgV);
cvReleaseImage(&imgColor);
cvReleaseImage(&imgMotion);
system("PAUSE");
return 0;
}
| 28.696023 | 143 | 0.508366 | [
"vector"
] |
55ac9b836c1078161b6d709ce3e14deef53c50b1 | 1,640 | cc | C++ | ash/system/status_area_widget_test_api.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | ash/system/status_area_widget_test_api.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | ash/system/status_area_widget_test_api.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/system/status_area_widget_test_api.h"
#include "ash/root_window_controller.h"
#include "ash/shell.h"
#include "ash/system/accessibility/select_to_speak_tray.h"
#include "base/run_loop.h"
#include "base/strings/string16.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "ui/events/event.h"
#include "ui/events/event_constants.h"
#include "ui/gfx/geometry/point.h"
#include "ui/views/controls/label.h"
#include "ui/views/view.h"
namespace ash {
StatusAreaWidgetTestApi::StatusAreaWidgetTestApi(StatusAreaWidget* widget)
: widget_(widget) {}
StatusAreaWidgetTestApi::~StatusAreaWidgetTestApi() = default;
// static
void StatusAreaWidgetTestApi::BindRequest(
mojom::StatusAreaWidgetTestApiRequest request) {
StatusAreaWidget* widget =
Shell::Get()->GetPrimaryRootWindowController()->GetStatusAreaWidget();
mojo::MakeStrongBinding(std::make_unique<StatusAreaWidgetTestApi>(widget),
std::move(request));
}
void StatusAreaWidgetTestApi::TapSelectToSpeakTray(
TapSelectToSpeakTrayCallback callback) {
// The Select-to-Speak tray doesn't actually use the event, so construct
// a bare bones event to perform the action.
ui::TouchEvent event(
ui::ET_TOUCH_PRESSED, gfx::Point(), base::TimeTicks::Now(),
ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_TOUCH), 0, 0.0f);
widget_->select_to_speak_tray_->PerformAction(event);
std::move(callback).Run();
}
} // namespace ash
| 34.893617 | 77 | 0.753049 | [
"geometry"
] |
55b796e0eb57c3b3eab05395284bcf12f8522c77 | 8,740 | cpp | C++ | raidutil/intlist.cpp | barak/raidutils | 8eed7a577ac4565da324cd742e8f1afe7ae101e0 | [
"BSD-3-Clause"
] | null | null | null | raidutil/intlist.cpp | barak/raidutils | 8eed7a577ac4565da324cd742e8f1afe7ae101e0 | [
"BSD-3-Clause"
] | null | null | null | raidutil/intlist.cpp | barak/raidutils | 8eed7a577ac4565da324cd742e8f1afe7ae101e0 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 1996-2004, Adaptec Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* - Neither the name of the Adaptec Corporation nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/****************************************************************************
*
* Created: 7/17/98
*
*****************************************************************************
*
* File Name: IntList.cpp
* Module:
* Contributors: Lee Page
* Description: Encapsulates an array of items. Used as a least-common denominator
solution in coding C++ without STL.
* Version Control:
*
* $Revision$
* $NoKeywords: $
* $Log$
* Revision 1.1.1.1 2004-04-29 10:20:12 bap
* Imported upstream version 0.0.4.
*
*****************************************************************************/
/*** INCLUDES ***/
#include "debug.hpp"
#include "intlist.hpp"
#include <string.h>
/*** CONSTANTS ***/
/*** TYPES ***/
/*** STATIC DATA ***/
/*** MACROS ***/
/*** PROTOTYPES ***/
/*** FUNCTIONS ***/
Int_List::Int_List():
num_Items( 0 ),
items( 0 ),
next_Item_Index( 0 )
{
ENTER( "Int_List::Int_List():" );
EXIT();
}
Int_List::Int_List( const Int_List &right )
{
ENTER( "Int_List::Int_List( const Int_List &right )" );
Copy_Items( right );
num_Items = right.num_Items;
next_Item_Index = right.next_Item_Index;
EXIT();
}
Int_List::~Int_List()
{
ENTER( "Int_List::~Int_List()" );
Destroy_Items();
EXIT();
}
Int_List &Int_List::operator += ( const Int_List &right )
{
ENTER( "Int_List &Int_List::operator += ( const Int_List &right )" );
int int_Index;
long *temp_Items;
// allocate a larger buffer and copy over the existing entries
temp_Items = new long[ num_Items + right.num_Items ];
memcpy( temp_Items, items, num_Items * sizeof( long ) );
delete items;
items = temp_Items;
// now copy over the ones being added
for( int_Index = 0;
int_Index < right.num_Items;
int_Index++ )
{
items[ int_Index + num_Items ] = right.get_Item( int_Index );
}
num_Items += right.num_Items;
EXIT();
return( *this );
}
const Int_List &Int_List::operator = ( const Int_List &right )
{
ENTER( "const Int_List &Int_List::operator = ( const Int_List &right )" );
Destroy_Items();
Copy_Items( right );
num_Items = right.num_Items;
next_Item_Index = right.next_Item_Index;
EXIT();
return( *this );
}
/****************************************************************************
*
* Function Name: add_Int(), Created:7/17/98
*
* Description: Appends a int to the end of the list of items.
*
* Notes:
*
*****************************************************************************/
void Int_List::add_Item( const long new_Int )
{
ENTER( "void Int_List::add_Item( const long new_Int )" );
long *temp_Ints;
// create a new table large enough to contain the previously entered items
// plus this new one.
temp_Ints = new long[ num_Items + 1 ];
if( temp_Ints )
{
num_Items++;
if( items )
{
//Copy all the previous items over to the new array
memcpy( temp_Ints, items, num_Items * sizeof( long ) );
// we don't need this old one any more.
delete[] items;
}
items = temp_Ints;
items[ num_Items - 1 ] = new_Int;
}
EXIT();
}
/****************************************************************************
*
* Function Name: set_Int(), Created:7/17/98
*
* Description: Sets a particular item in the list
*
* Notes:
*
*****************************************************************************/
void Int_List::set_Item(int item_pos, long item_value)
{
ENTER( "void Int_List::set_Item(unsigned short item_pos, long item_val)" );
items[item_pos] = item_value;
EXIT();
}
/****************************************************************************
*
* Function Name: get_Int(), Created:7/17/98
*
* Description: Fetches the nth int (0 based). The user should not
deallocate the returned int. It is owned by the
object.
*
* Notes:
*
*****************************************************************************/
long Int_List::get_Item( int index ) const
{
ENTER( "long Int_List::get_Item( int index ) const" );
long ret_Int = 0;
if( index < num_Items )
{
ret_Int = items[ index ];
}
EXIT();
return( ret_Int );
}
/****************************************************************************
*
* Function Name: get_Next_Int(), Created:7/17/98
*
* Description: Fetches the next int. The user should not deallocate
the returned int. It is owned by the object.
*
* Return: C-int
*
* Notes:
*
*****************************************************************************/
long Int_List::get_Next_Item()
{
ENTER( "long Int_List::get_Next_Item()" );
long ret_Int = 0;
if( next_Item_Index < num_Items )
{
ret_Int = items[ next_Item_Index ];
next_Item_Index++;
}
EXIT();
return( ret_Int );
}
/****************************************************************************
*
* Function Name: get_Num_Uniques(), Created:11/5/99
*
* Description: Fetches the number of unique items in the list.
* The user should not deallocate the returned int.
* It is owned by the object.
*
* Return: C-int
*
* Notes:
*
*****************************************************************************/
long Int_List::get_Num_Uniques()
{
ENTER( "long Int_List::get_Num_Uniques()" );
long ret_Int = 1;
long currInt, oldInt;
oldInt = items[0];
for (int i = 1; i < num_Items; i++)
{
currInt = items[i];
if (currInt != oldInt)
{
ret_Int++;
oldInt = currInt;
}
}
EXIT();
return( ret_Int );
}
/****************************************************************************
*
* Function Name: shift_Item(), Created:7/28/98
*
* Description: FIFO. Removes the first item from the list, and returns it.
*
* Return: The first item in the list.
*
* Notes: This is a destructive read.
*
*****************************************************************************/
long Int_List::shift_Item()
{
ENTER( "long Int_List::shift_Item()" );
long ret_Item( items[ 0 ] );
int copy_Index;
for( copy_Index = 0; copy_Index < num_Items - 1; copy_Index++ )
{
items[ copy_Index ] = items[ copy_Index + 1 ];
}
num_Items--;
next_Item_Index = ( next_Item_Index > 0 )?next_Item_Index - 1:0;
EXIT();
return( ret_Item );
}
/****************************************************************************
*
* Function Name: reset_Next_Index(), Created:7/17/98
*
* Description: Resets the get_Next_Int index to point to the first item.
*
* Notes:
*
*****************************************************************************/
void Int_List::reset_Next_Index()
{
ENTER( "void Int_List::reset_Next_Index()" );
next_Item_Index = 0;
EXIT();
}
int Int_List::num_Left() const
{
ENTER( "int Int_List::num_Left() const" );
EXIT();
return( num_Items - next_Item_Index );
}
void Int_List::Destroy_Items()
{
ENTER( "void Int_List::Destroy_Items()" );
delete[] items;
EXIT();
}
void Int_List::Copy_Items( const Int_List &right )
{
ENTER( "void Int_List::Copy_Items( const Int_List &right )" );
int int_Index;
items = new long[ right.num_Items ];
num_Items = right.num_Items;
for( int_Index = 0; int_Index < num_Items; int_Index++ )
{
items[ int_Index ] = right.get_Item( int_Index );
}
EXIT();
}
/*** END OF FILE ***/
| 25.18732 | 83 | 0.569451 | [
"object"
] |
55cc55a2d9766d151c8efce8b56c59769ddf2054 | 7,482 | cpp | C++ | TengineStudy/app/src/main/cpp/src/openpose.cpp | LightSun/tengine_demo | ad9e2cc92865cd8b5092346137e5e8528309425f | [
"Apache-2.0"
] | null | null | null | TengineStudy/app/src/main/cpp/src/openpose.cpp | LightSun/tengine_demo | ad9e2cc92865cd8b5092346137e5e8528309425f | [
"Apache-2.0"
] | null | null | null | TengineStudy/app/src/main/cpp/src/openpose.cpp | LightSun/tengine_demo | ad9e2cc92865cd8b5092346137e5e8528309425f | [
"Apache-2.0"
] | null | null | null | //
// Created by Administrator on 2020/10/14 0014.
//
#include <opencv2/imgcodecs.hpp>
#include "openpose.h"
#include "opencv2/imgproc.hpp"
#include "GraphParam.h"
#include "log.h"
#include "ext.h"
#define getPosePairs(type, op)\
switch (type){ \
case OPENPOSE_TYPE_MPI: { \
const static int POSE_PAIRS[14][2] = {{0, 1}, \
{1, 2}, \
{2, 3}, \
{3, 4}, \
{1, 5}, \
{5, 6}, \
{6, 7}, \
{1, 14},\
{14, 8},\
{8, 9}, \
{9, 10},\
{14, 11}, \
{11, 12}, \
{12, 13}}; \
op;\
break;\
}\
case OPENPOSE_TYPE_COCO:{\
static const int POSE_PAIRS[17][2] = {{1, 2},\
{1, 5},\
{2, 3},\
{3, 4},\
{5, 6},\
{6, 7},\
{1, 8},\
{8, 9},\
{9, 10},\
{1, 11},\
{11, 12},\
{12, 13},\
{1, 0},\
{0, 14},\
{14, 16},\
{0, 15},\
{15, 17}};\
op;\
break;\
}\
case OPENPOSE_TYPE_BODY25:{ \
static const int POSE_PAIRS[24][2] = {{1, 2}, {1, 5}, {2, 3}, {3, 4}, {5, 6}, {6, 7}, {1, 8}, {8, 9},\
{9, 10}, {10, 11}, {11, 24}, {11, 22}, {22, 23}, {8, 12}, {12, 13}, {13, 14},\
{14, 21}, {14, 19}, {19, 20}, {1, 0}, {0, 15}, {16, 18}, {0, 16}, {15, 17}};\
op;\
}break;\
}
static void get_input_data_pose(cv::Mat img, float *input_data, int img_h, int img_w) {
cv::resize(img, img, cv::Size(img_h, img_w));
img.convertTo(img, CV_32FC3);
float *img_data = (float *) img.data;
int hw = img_h * img_w;
double scalefactor = 1.0 / 255;
float mean[3] = {0, 0, 0};
//深度学习要求,数据排列RRR....GGG...BBB... so. make RGBRGB... TO RRR...GGG...BBB
for (int h = 0; h < img_h; h++) {
for (int w = 0; w < img_w; w++) {
for (int c = 0; c < 3; c++) {
input_data[c * hw + h * img_w + w] = scalefactor * (*img_data - mean[c]);
img_data++;
}
}
}
}
static void
post_process_pose(int openpose_type, cv::Mat img, cv::Mat frameCopy, float threshold, float *outdata, int num, int H,
int W) {
const int nPoints = Openpose::getNPoints(openpose_type);
getPosePairs(openpose_type, {
std::vector<cv::Point> points(nPoints);
int frameWidth = img.rows;
int frameHeight = img.cols;
LOGD("KeyPoints Coordinate:");
for (int n = 0; n < num; n++) {
cv::Point maxloc;
int piexlNums = H * W;
double prob = -1;
for (int piexl = 0; piexl < piexlNums; ++piexl) {
if (outdata[piexl] > prob) {
prob = outdata[piexl];
maxloc.y = (int) piexl / H;
maxloc.x = (int) piexl % W;
}
}
cv::Point2f p(-1, -1);
if (prob > threshold) {
p = maxloc;
p.y *= (float) frameWidth / W;
p.x *= (float) frameHeight / H;
cv::circle(frameCopy, cv::Point((int) p.x, (int) p.y), 8, cv::Scalar(0, 255, 255), -1);
cv::putText(frameCopy, cv::format("%d", n), cv::Point((int) p.x, (int) p.y),
cv::FONT_HERSHEY_COMPLEX, 1,
cv::Scalar(0, 0, 255), 3);
}
points[n] = p;
LOGD("n : p.x, p.y = %d, %d, %d", n, p.x, p.y);
outdata += piexlNums;
}
int nPairs = sizeof(POSE_PAIRS) / sizeof(POSE_PAIRS[0]);
for (int n = 0; n < nPairs; n++) {
cv::Point2f partA = points[POSE_PAIRS[n][0]];
cv::Point2f partB = points[POSE_PAIRS[n][1]];
if (partA.x <= 0 || partA.y <= 0 || partB.x <= 0 || partB.y <= 0)
continue;
cv::line(img, partA, partB, cv::Scalar(0, 255, 255), 8);
cv::circle(img, partA, 8, cv::Scalar(0, 0, 255), -1);
cv::circle(img, partB, 8, cv::Scalar(0, 0, 255), -1);
}
});
}
int Openpose::getNPoints(int type) {
switch (type) {
case OPENPOSE_TYPE_MPI:
return 15;
case OPENPOSE_TYPE_COCO:
return 18;
case OPENPOSE_TYPE_BODY25:
return 25;
default:
LOGW("wrong openpose type = %d", type);
}
return 0;
}
void Openpose::setInputBuffer(cv::Mat& frame,const char* uniqueId) {
if(mInput_data != nullptr){
this->uniqueId = copyStr(uniqueId);
this->frame = frame;
get_input_data_pose(frame, getInputBufferAsFloat(), gp->height, gp->width);
// set_tensor_buffer(input_tensor, input_data, img_size*4);
if (set_tensor_buffer(input_tensor, mInput_data, gp->getImageSize() * 4) < 0) {
LOGW("Set input tensor buffer failed");
return;
}
}
}
void Openpose::setInputBuffer(const char *frameFile, const char *uniqueId) {
if(mInput_data != nullptr){
this->uniqueId = copyStr(uniqueId);
this->frame = cv::imread(frameFile);
get_input_data_pose(frame, getInputBufferAsFloat(), gp->height, gp->width);
// set_tensor_buffer(input_tensor, input_data, img_size*4);
if (set_tensor_buffer(input_tensor, mInput_data, gp->getImageSize() * 4) < 0) {
LOGW("Set input tensor buffer failed");
return;
}
}
}
void Openpose::postProcess() {
float *outdata = (float *) get_tensor_buffer(out_tensor);
int num = getNPoints(gp->stype);
//46 * 46
int H = outDims[2];
int W = outDims[3];
float show_threshold = 0.1;
cv::Mat frameCopy = frame.clone();
post_process_pose(gp->stype, frame, frameCopy, show_threshold, outdata, num, H, W);
char *outDir = gp->getOutDir();
const char *result1 = concatStr2(outDir, uniqueId, "_Keypionts.jpg");
const char *result2 = concatStr2(outDir, uniqueId, "_Skeleton.jpg");
cv::imwrite(result1, frameCopy);
cv::imwrite(result2, frame);
free((void *) result1);
free((void *) result2);
}
| 39.172775 | 131 | 0.40123 | [
"vector"
] |
55d5e20a8b5f51690414d49a5bee5b14ac5a390a | 2,648 | cc | C++ | waf-openapi/src/model/DescribeProtectionModuleRulesResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | waf-openapi/src/model/DescribeProtectionModuleRulesResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | waf-openapi/src/model/DescribeProtectionModuleRulesResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeProtectionModuleRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Waf_openapi;
using namespace AlibabaCloud::Waf_openapi::Model;
DescribeProtectionModuleRulesResult::DescribeProtectionModuleRulesResult() :
ServiceResult()
{}
DescribeProtectionModuleRulesResult::DescribeProtectionModuleRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeProtectionModuleRulesResult::~DescribeProtectionModuleRulesResult()
{}
void DescribeProtectionModuleRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allModuleRulesNode = value["ModuleRules"]["ModuleRulesItem"];
for (auto valueModuleRulesModuleRulesItem : allModuleRulesNode)
{
ModuleRulesItem moduleRulesObject;
if(!valueModuleRulesModuleRulesItem["Id"].isNull())
moduleRulesObject.id = std::stol(valueModuleRulesModuleRulesItem["Id"].asString());
if(!valueModuleRulesModuleRulesItem["Version"].isNull())
moduleRulesObject.version = std::stol(valueModuleRulesModuleRulesItem["Version"].asString());
if(!valueModuleRulesModuleRulesItem["Content"].isNull())
moduleRulesObject.content = valueModuleRulesModuleRulesItem["Content"].asString();
if(!valueModuleRulesModuleRulesItem["Time"].isNull())
moduleRulesObject.time = std::stol(valueModuleRulesModuleRulesItem["Time"].asString());
moduleRules_.push_back(moduleRulesObject);
}
if(!value["TaskStatus"].isNull())
taskStatus_ = std::stoi(value["TaskStatus"].asString());
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
std::vector<DescribeProtectionModuleRulesResult::ModuleRulesItem> DescribeProtectionModuleRulesResult::getModuleRules()const
{
return moduleRules_;
}
int DescribeProtectionModuleRulesResult::getTotal()const
{
return total_;
}
int DescribeProtectionModuleRulesResult::getTaskStatus()const
{
return taskStatus_;
}
| 33.948718 | 124 | 0.780967 | [
"vector",
"model"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.