text
stringlengths
5
1.04M
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
#include <iostream> #include <vector> using namespace std; vector<int> arrayRightRotation(const vector<int> &inputArray, int arraySize, int numberOfRotations) { vector<int> outputArray(arraySize); for (auto i = 0; i < arraySize; ++i) { auto rotatedIndex = ((i - numberOfRotations) % arraySize + arrayS...
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // Please refer to the license text that comes with this tendis open source // project for additional information. #include <string> #include <utility> #include <memory> #include <algorithm> #include <cctype> #include <clocale> #include <v...
#include "fps_controller.h" #include "Dxlib.h" namespace game::fps { FPSController::FPSController() : startTime_(0), count_(0), fps_(0) {} FPSController::~FPSController() {} void FPSController::update() { if (count_ == 0) startTime_ = GetNowCount(); else if (count_ == N) { int t...
/* * Copyright (C) 2015 The Android Open Source Project * * 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 app...
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by app BSD-style license that can be // found in the LICENSE file. #include "intl_wisdom_server_impl.h" #include <lib/sys/cpp/component_context.h> #include <zircon/assert.h> #include <iostream> #include <sstream> #inc...
#ifndef PLASKOWYZ_HH #define PLASKOWYZ_HH #include <iostream> #include "BrylaGeometryczna.hh" #define PLIK_WLASCIWY__PLASKOWYZ "dat/PlikWlasciwy_Plaskowyz0.dat" /*! * \file * \brief Ten plik zawiera diefinicje klasy Plaskowyz * * Klasa dziedziczy klase BrylaGeometryczna. Jako dane prywatne * mamy poloze...
#include"stdafx.h" #include<opencv2\opencv.hpp> #include<iostream> using namespace cv; int pause() { Mat src = imread("lena.jpg", 0); std::vector<std::vector<Point>> points; return 0; }
// // population.cpp // Reeval // // Created by Francesco Quinzan on 28.10.15. // Copyright © 2015 Francesco Quinzan. All rights reserved. // #include "population.hpp" #include "random.hpp" #include "table.hpp" using namespace std; /* generate random population */ void population::set(int dimension, int size, in...
#include <stdio.h> #include <algorithm> #include <math.h> using namespace std; struct Pt { double x, y; }; Pt P[1000], CH[1000]; double calc_area(Pt P[], int n) { double ans = 0; int i; for(i = 0; i < n; i++) ans += P[i].x*P[i+1].y - P[i].y*P[i+1].x; return fabs(ans)/2; } double cross(Pt o, ...
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
/************************************************************************* SPDX-License-Identifier: MIT Copyright (c) 2020 Qazi Fahim Farhan (@fahimfarhan) May the CodeForces be with you! ************************************************************************/ /** // ⢀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⣠⣤⣶⣶ ⠄⠄⠄⠄⠄⠄⢴⡶⣶⣶⣶⡒...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.IO.Stream #include "System/I...
#include <Arduino.h> #include <stdio.h> #include <FreeRTOS.h> #include <I2SMEMSSampler.h> #include <ADCSampler.h> #include <I2SOutput.h> #include <DACOutput.h> #include <SDCard.h> #include "SPIFFS.h" #include <WAVFileReader.h> #include <WAVFileWriter.h> #include "config.h" #define DEBOUNCE_TIME 50 int lastSteadyStat...
#ifndef OBJECT_H #define OBJECT_H class Object { protected: int x, y; int dx, dy; int color; public: Object(int _x = 0, int _y = 0, int _color = 0); void setLocation(int _x, int _y); void setCol(int c); int getX() const; int getY() const; int getCol() const; int left() const; ...
#include "qgeotilefetchergooglemaps.h" #include "qgeomapreplygooglemaps.h" #include "qgeotiledmapgooglemaps.h" #include "qgeotiledmappingmanagerenginegooglemaps.h" #include <QtLocation/private/qgeotilespec_p.h> #include <QDebug> #include <QSize> #include <QDir> #include <QUrl> #include <QUrlQuery> #include ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the "License"); * you m...
/* Copyright (c) 2018 PaddlePaddle 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...
// STL #include <chrono> #include <vector> #include <cstdlib> #include <iostream> // GL3W #include <GL/gl3w.h> // SDL2 #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> // GLM #include <glm/vec3.hpp> #include <glm/matrix.hpp> #include <glm/gtc/type_ptr.hpp> #include <glm/gtc/matrix_transform.hpp> // assimp #include <a...
/* * Copyright (C) 2017-2018 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "runtime/os_interface/linux/device_command_stream.inl" #include "runtime/os_interface/linux/drm_command_stream.inl" #include "runtime/command_stream/command_stream_receiver_with_aub_dump.inl" namespace OCLRT { template...
#ifndef _MNIST_HPP_ #define _MNIST_HPP_ // MNIST構造体 typedef struct mnist_data { double image[IMG_WIDTH][IMG_HEIGHT]; // 28x28 の画素値 unsigned int label; // 0~9のラベル } mnist_data; int load_mnist(const string image_filename, const string label_filename, mnist_data *data); void mnist_one_hot(mnist_data *...
#include "Params.h" Params::Params(std::string pathToInstance, int nbVeh, int seedRNG) : nbVehicles(nbVeh) { std::string content, content2, content3; double serviceTimeData = 0.; nbClients = 0; totalDemand = 0.; maxDemand = 0.; durationLimit = 1.e30; vehicleCapacity = 1.e30; isRoundingInteger = true; isDurati...
/* ------------------------------------------------------------------------- * * explain.cpp * Explain query execution plans * * Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd. * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group * Portions Copyright (c) 1994-5, Regents of the Unive...
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <Tests/Streamer/StreamStackEntryConformityTests.h> namespace AZ::IO { class StreamStac...
#include <iostream> #include <iomanip> #include "color/color.hpp" int main( int argc, char *argv[] ) { ::color::hsv< float > c0; //!< Instead of float you may put std::uint8_t,std::uint16_t, std::uint32_t, std::uint64_t, double, long double ::color::lms< std::uint8_t > c1; //!< Instea...
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
/* * Copyright (C) 2012 Google Inc. 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 condit...
// NCCode.cpp /* * Copyright (c) 2009, Dan Heeks * This program is released under the BSD license. See the file COPYING for * details. */ #include "stdafx.h" #include <math.h> #include "NCCode.h" #include "OutputCanvas.h" #include "interface/Geom.h" #include "interface/MarkedObject.h" #include "interface/PropertyL...
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkGradientShader.h" using namespace skiagm; struct GradData { int fCount; const SkColor* fColors; const SkScalar* fPos; };...
/* * Swift Parallel Scripting Language (http://swift-lang.org) * * Copyright 2012-2014 University of Chicago * * 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....
class C { std::mutex mutex; int f_impl(int n) { return (n == 0) ? 1 : n*f_impl(n-1); } public: // GOOD: recursion is delegated to f_impl. int f(int n) { mutex.lock(); int result = f_impl(n); mutex.unlock(); return result; } };
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // This file was generated by the CEF translato...
#ifndef SPROUT_RANGE_ALGORITHM_FIT_COPY_HPP #define SPROUT_RANGE_ALGORITHM_FIT_COPY_HPP #include <sprout/config.hpp> #include <sprout/container/traits.hpp> #include <sprout/container/functions.hpp> #include <sprout/algorithm/fit/result_of.hpp> #include <sprout/algorithm/fit/copy.hpp> namespace sprout { nam...
#include "pxt.h" using namespace pxt; namespace test { //% void dammy(int32_t x, int32_t y){ uBit.display.image.setPixelValue(0, 0, 255); } }
/* * Copyright (c) 2021 Samsung Electronics Co., Ltd. All rights reserved. * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights *...
#include <boost/config/warning_disable.hpp>
#include "unit_tests.h" void testFlow() { System* s1 = new System(); System* s2 = new System(); //Testing the exponential model Flow* test1 = new Exponential(s1,s2); assert(test1->getSource() == s1); assert(test1->getDestination() == s2); //Testing the logistic model Flow* test2 = new...
// Boost.Bimap // // Copyright (c) 2006-2007 Matias Capeletto // // 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) /// \file container_adaptor/multimap_adaptor.hpp /// \brief Container adaptor to easily build a st...
/* Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. For example, Given [0,1,0,2,1,0,1,3,2,1,2,1], return 6. */ #include <iostream> #include <vector> using namespace std; class Solution { public: // int result ...
// RUN: %clang -cc1 -verify -std=c++11 %s 8gi///===--- recovery.cpp ---===// // expected-error {{unqualified-id}} namespace Std { // expected-note {{here}} typedef int Important; } / redeclare as an inline namespace // expected-error {{unqualified-id}} inline namespace Std { // expected-error {{cannot be reopened a...
#include "globalSignalHandle.h" namespace global_sighandle { int no_meaning_test = 0; } // namespace global_sighandle
/* * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
#include <pybind11/pybind11.h> #include <pybind11/numpy.h> #include <armadillo> namespace py = pybind11; using namespace arma; typedef py::array_t<double, py::array::f_style | py::array::forcecast> array_tf; typedef py::array_t<double, py::array::c_style | py::array::forcecast> array_tc; cube array_to_cube(array_...
/* * Scene_Middleage_Jail.cpp * enigma * * Created by Rockford on 06/10/10. * Copyright 2010 Casual Games France. All rights reserved. * */ #include "EScene.h" #include "Scene_Middleage_Jail.h" #include "ESceneDirector.h" #include "GlobalBank.h" #include "EMiniJeuPlantAddition.h" #include "EMiniJeuGardening...
// // VertexData.cpp // HEAssets // // Created by Sid on 22/04/13. // Copyright (c) 2013 whackylabs. All rights reserved. // #include <he/Vertex/VertexData.h> #include <he/Utils/Screen.h> #include <gtest.h> TEST(VertexData, Equality){ he::Vertex::V2 a; he::Vertex::Set(a, GLKVector2Make(50, -100), GLKVector2Make...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied w...
#ifdef _WIN32 #include "uv.h" #include "windows.h" namespace xprofiler { #define GET_CURRENT_TIME(curtime) \ HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, getpid()); \ BOOL bRetCode = FALSE; \ FILETIM...
/********************************************************************** * Copyright (c) 2008-2015, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Fre...
// // "$Id$" // // Filename expansion routines for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2010 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this // file is missing or d...
/***************************************************************************************** Copyright 2011 Rafael Muñoz Salinas. 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. Redistribution...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/prefs/json_pref_store.h" #include "base/bind.h" #include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "ba...
/*************************************** OpenTptInetPPC.o compatible library This replaces Apple's OpenTptInetPPC.o file so profiling, debugging and other compiler features that are available with source level debugging become available to an application. This code is intended only for MacOS Clas...
typedef struct st_STRAN_SCENE; typedef struct st_PACKER_READ_DATA; typedef struct st_PACKER_ASSETTYPE; typedef struct st_STRAN_DATA; typedef struct st_PKR_ASSET_TOCINFO; typedef struct st_PACKER_READ_FUNCS; typedef enum en_LAYER_TYPE; typedef uint32(*type_0)(st_PACKER_READ_DATA*, uint32); typedef void(*type_1)(void*, ...
/**_________________________________________________________________ class: BeamSpotOnlineProducer.h package: RecoVertex/BeamSpotProducer author: Francisco Yumiceva, Fermilab (yumiceva@fnal.gov) modified by: Simone Gennai, INFN MIB ________________________________________________________________**/ #inc...
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * 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 cop...
/*************************************************************************/ /* gltf_spec_gloss.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/****************************************************************************** * Copyright 2017 The Apollo 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 ...
// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
/*! @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause */ #include <pyclustering/utils/metric.hpp> #include <algorithm> namespace pyclustering { namespace utils { namespace metric { double average_neighbor_distance(const std::vector<std::vector<doubl...
#include "sjdbInsertJunctions.h" #include "sjdbLoadFromStream.h" #include "sjdbLoadFromFiles.h" #include "sjdbPrepare.h" #include "ErrorWarning.h" #include "loadGTF.h" #include "sjdbBuildIndex.h" #include "streamFuns.h" #include "genomeParametersWrite.h" void sjdbInsertJunctions(Parameters & P, Genome & mapGen, Genome...
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
// Copyright (c) 2013-2020 The worldwideweb Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <consensus/tx_check.h> #include <consensus/validation.h> #include <hash.h> #include <script/interpreter.h> #inc...
// Copyright (c) 2008-2009 The Chromium Embedded Framework Authors. // Portions copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "libcef/browser_webkit_glue.h" #include "third_party/WebKi...
#include <ply-build-repo/Module.h> // [ply module="codec"] void module_ply_codec(ModuleArgs* args) { args->addSourceFiles("ply-codec"); args->addIncludeDir(Visibility::Public, "."); args->addTarget(Visibility::Public, "runtime"); args->addTarget(Visibility::Public, "image"); args->addTarget(Visibil...
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2003-2007 Jonathan Turkanis // 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.) // See http://www.boost.org/libs/iostreams for docume...
#include "chainerx/native/native_device.h" #include <cstdint> #include "chainerx/arithmetic_ops.h" #include "chainerx/array.h" #include "chainerx/device.h" #include "chainerx/dtype.h" #include "chainerx/float16.h" #include "chainerx/kernels/arithmetic.h" #include "chainerx/native/elementwise.h" #include "chainerx/nat...
#ifndef BOOST_MPL_AUX_PREPROCESSOR_FILTER_PARAMS_HPP_INCLUDED #define BOOST_MPL_AUX_PREPROCESSOR_FILTER_PARAMS_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LI...
#include <iostream> #include "ql/quantlib.hpp" int main() { using namespace QuantLib; auto date = Date(2, August, 2019); std::cout << date << '\n'; return 0; }
#pragma once #include <cli/Cli.hpp> #include <client/Notifier.hpp> #include <db/LevelMap.hpp> #include <db/Exception.hpp> #include <net/ChainServer.hpp> #include <net/Upnp.hpp> #include <fc/log/appender.hpp> #include <boost/accumulators/accumulators.hpp> #include <boost/accumulators/statistics/rolling_mean.hpp> #inc...
/* * (C) 2016 Daniel Neus, Rohde & Schwarz Cybersecurity * * Botan is released under the Simplified BSD License (see license.txt) */ #include "tests.h" #include <botan/symkey.h> namespace Botan_Tests { namespace { using Botan::OctetString; Test::Result test_from_rng() { Test::Result result("OctetString"); ...
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
/* * File: dht.hpp * Created Date: 2019-12-29 * Author: Lei Pan * Contact: <panlei7@gmail.com> * * Last Modified: Sunday December 29th 2019 12:00:12 pm * * MIT License * * Copyright (c) 2019 Lei Pan * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and asso...
/*++ Copyright (c) 2016 KelvinChan. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. Module Name: vmx.cpp Abstract: Intel VT-x , VMX Instruction and behavior Emulation Author: Kelvin Chan Environment: Kernel VMM Mode...
/** * 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 unde...
#include <tempus/timer_queue.hpp> #include <cassert> #include "timer_queue_impl.hpp" namespace tempus { timer_queue::timer_queue() : impl_(new impl::timer_queue()) { } timer_queue::~timer_queue() { delete impl_; } uint64_t timer_queue::add( int64_t milliseconds, std::function<void(bool)> handler) {...
#include <touchgfx/Font.hpp> #ifndef NO_USING_NAMESPACE_TOUCHGFX using namespace touchgfx; #endif FONT_LOCATION_FLASH_PRAGMA KEEP extern const touchgfx::KerningNode kerning_NotoSans_Regular_12_4bpp[] FONT_LOCATION_FLASH_ATTRIBUTE = { {0, 0} };
#include "wiGPUBVH.h" #include "wiScene.h" #include "wiRenderer.h" #include "ShaderInterop_BVH.h" #include "wiProfiler.h" #include "wiResourceManager.h" #include "wiGPUSortLib.h" #include "wiTextureHelper.h" #include "wiBackLog.h" #include "wiEvent.h" //#define BVH_VALIDATE // slow but great for debug! #ifdef BVH_VALI...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Copyright (c) 2013 GeoCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license....
#include "../VM.hpp" #include "../../common/Instruction.hpp" namespace sbl::vm { bool VM::_performLogical(Instruction* instr) { switch (instr->mnemonic) { case Mnemonic::And_R_R: _assertReadWrite(Register{ instr->arg1 }); _forceWrite(Register{ instr->arg1 }, _forceRead(Register{ instr->arg1 }) & _tryRea...
/** * Height map generator implementation. * * @author Raoul Harel * @url github.com/rharel/cpp-diamond-square */ #include <diamond_square/HeightMapGenerator.hpp> namespace diamond_square { template <typename T> HeightMapGenerator<T>::HeightMapGenerator ( const unsigned int level_of_detail, ...
/** * If not stated otherwise in this file or this component's LICENSE * file the following copyright and licenses apply: * * Copyright 2019 RDK Management * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of th...
#include "common.h" #include "rosflight.h" #include "test_board.h" #include "mavlink.h" #include "cmath" #define CHN_LOW 1100 #define CHN_HIGH 1900 #define OFFBOARD_X -1.0 #define OFFBOARD_Y 0.5 #define OFFBOARD_Z -0.7 #define OFFBOARD_F 0.9 #define RC_X_PWM 1800 #define RC_X ((RC_X_PWM - 1500)/500.0 * rf.params_.ge...
#include<Game/Strategy/cStrategyObjectBase.h> namespace Game { namespace Strategy { cStrategyObjectBase::cStrategyObjectBase() { }; cStrategyObjectBase::~cStrategyObjectBase() { } ci::vec3 cStrategyObjectBase::getScale() { return scale; } int cStrategyObjectBase::getId() { return id; } bool ...
#include "group_3d.h" Group3D::Group3D(const QString &name) { setName( name ); } Group3D::~Group3D() { // IObject3D::~IObject3D(); } void Group3D::draw(QOpenGLShaderProgram *program, QOpenGLFunctions *functions) { QMatrix4x4 modelMatrix = createModelMatrix(); for ( const Object3D &obj: __objects ) {...
#include <iostream> #include <string> #include <vector> #include <fstream> #include "unit_cost_model.h" #include "string_label.h" #include "node.h" #include "bracket_notation_parser.h" #include "lgm_tree_index.h" #include "to_string_converters.h" int main() { // Type aliases. using Label = label::StringLabel; u...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/> * * Copyright (C) 2012 - 2012 FrenchCORE <http://www.frcore.com/> * * This program is free software; you ca...
// RUN: rm -f %t // RUN: %clang_cc1 -analyze -analyzer-checker=debug.DumpCFG -analyzer-config cfg-temporary-dtors=true %s > %t 2>&1 // RUN: FileCheck --input-file=%t %s // XPASS: * class A { public: A() {} ~A() {} static A make() { return A(); } operator bool() { return false; } operator int() { return 0; ...
#include <vector> using namespace std; int maxSequence(const std::vector<int>& arr){ //... if(arr.size() == 0){ return 0; } bool negArray = true; for(int i=0; i<arr.size(); i++){ if(arr.at(i) > 0){ negArray = false; } } if(negArray == true){ return 0; } vector<int> vec; for(in...
#include "boo/inputdev/IHIDListener.hpp" namespace boo { class HIDListenerNX : public IHIDListener { DeviceFinder& m_finder; public: HIDListenerNX(DeviceFinder& finder) : m_finder(finder) {} bool startScanning() override { return false; } bool stopScanning() override { return false; } bool scanNow() overr...
#include <iostream> #include <algorithm> #include <fstream> #include <vector> #include <limits> #include <sstream> #include <string> #include "windows.h" #include "quicksort.h" #include "bstr.h" int main() { //I begin by declaring some variables that will be used throughout the scope of this progr...
/* //@HEADER // ***************************************************************************** // // spec.cc // DARMA/vt => Virtual Transport // // Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contrac...
/****************************************************************************** * * Project: GDAL * Purpose: Implements a EXIF directory reader * Author: Frank Warmerdam, warmerdam@pobox.com * ****************************************************************************** * Copyright (c) 2000, Frank Warmerdam...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: OggVorbisEncoder.Setup.IStaticCodeB...
//===--- DiagnosticConsumer.cpp - Diagnostic Consumer Impl ----------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// // TileData.cpp // AntificialAntelligence // // Created by Jonathan Wood on 14/11/2015. // // #include "TileData.h" //__________________TileData_____________________ TileData::TileData(sf::Sprite newSprite){ sprite = newSprite; } const std::vector<TileTransformation> & TileData::getPossibleTransformations...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <n...
//---------------------------------*-C++-*-----------------------------------// /*! * \file shift_driver.cpp * \author Steven Hamilton * \date Wed Aug 15 09:25:43 2018 * \brief ShiftDriver class definitions. * \note Copyright (c) 2018 Oak Ridge National Laboratory, UT-Battelle, LLC. */ //------------------...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
/*============================================================================= Copyright (c) 2011-2019 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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.tx...