text
stringlengths
5
1.04M
// Copyright Carl Philipp Reh 2009 - 2021. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef FCPPT_CONTAINER_INDEX_MAP_HPP_INCLUDED #define FCPPT_CONTAINER_INDEX_MAP_HPP_INCLUDED #inc...
/** * This file is part of GEO Project. * It is subject to the license terms in the LICENSE.md file found in the top-level directory * of this distribution and at https://github.com/GEO-Project/GEO-Project/blob/master/LICENSE.md * * No part of GEO Project, including this file, may be copied, modified, propagated, ...
/******************************************************************************/ /* */ /* Name : LINETBL.CPP */ /* Date : 10/17/1997 */ /* Author : Jim Susoy */ ...
/** * Copyright 2020-2021 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
#include <boost/interprocess/offset_ptr.hpp> #include "../../util/src/configuration/ImoveConfiguration.hpp" #include "../../util/src/Projection.hpp" #include "Scene/Scene.h" #include "Scene/SceneConfiguration.h" #include "../../scene_interface_sma/src/PeopleQueue.hpp" #include "../../peopleextractor_interface_sma/src...
// Implement pow(x,n) class Solution { public: double myPow(double x, int n) { double temp; if( n == 0) return 1; temp = myPow(x, n/2); if (n%2 == 0) return temp*temp; else { if(n > 0) return x*temp*temp;...
/* * Copyright (c) 2020, Alibaba Group Holding Limited * 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 l...
// Copyright (c) 2007-2014 Hartmut Kaiser // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #if !defined(HPX_RUNTIME_THREADS_DETAIL_SCHEDULING_LOOP_JAN_11_2013_0838PM) #define HPX_RUNTIME_THREADS_DETAIL_SCHEDUL...
//asked in Amazon, Samsung, Snapdeal, Accolite. #include<iostream> using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; int arr[n]; for(int i=0;i<n;i++){ cin>>arr[i]; } const int N=100; //should be N=1e6+2 but compile...
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { const vector<int> v = {1, 2, 3, 4, 4, 3, 7, 8, 9, 10}; const int value1 = 3; int num_value1 = count(v.cbegin(), v.cend(), value1); cout << "Count of " << value1 << " is: " << num_value1 << endl; return ...
#include "core/bepch.h" #include "ConfigurationPanel.h" #include "core/preferences/editor/EditorPreferences.h" BoxerEngine::ConfigurationPanel::ConfigurationPanel() : Panel("Configuration", true) { } void BoxerEngine::ConfigurationPanel::Update() { prefs = static_cast<EditorPreferences*>(App->preferences->GetEdit...
/* * icon.cpp * * This file is a part of NSIS. * * Copyright (C) 1999-2021 Nullsoft and Contributors * * Licensed under the zlib/libpng license (the "License"); * you may not use this file except in compliance with the License. * * Licence details can be found in the file COPYING. * * This software is ...
#pragma once #include <QTreeWidget> #include "core/NodeWidget/nodewidget.h" #include "napi.h" class NTreeWidget : public QTreeWidget, public NodeWidget { Q_OBJECT NODEWIDGET_IMPLEMENTATIONS(QTreeWidget) public: using QTreeWidget::QTreeWidget; // inherit all constructors of QTreeWidget void connectWidgetS...
#include "OnRamp.hpp" #include <unistd.h> using namespace marlin::core; using namespace marlin::asyncio; using namespace marlin::beacon; using namespace marlin::pubsub; using namespace marlin::rlpx; int main(int argc, char **argv) { std::string beacon_addr = "127.0.0.1:8002"; std::string discovery_addr = "0.0.0.0...
// // Created by Hesray on 2020/3/29. // /* DO NOT EDIT THIS FILE - it is machine generated */ #include "ImageProc.h" #include <opencv2/core/core.hpp> #include <string> #include <vector> #include <iostream> using namespace cv; using namespace std; extern "C" { JNIEXPORT jintArray JNICALL Java_com_de...
struct A { void foo(); }; struct B { A* operator->(); }; struct C { B operator->(); }; struct D { C operator->(); }; int main() { D d; d->foo(); }
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2020 Ben Vanik. All rights reserved. ...
/**************************************************************************** ** ** Copyright (C) 2017 Ramazan Utku ** Contact: ramazanutku@gmail.com ** ** This file is part of the examples of the Qt Toolkit. ** ** $UKIRIS_BEGIN_LICENSE:BSD$ ** BSD License Usage ** Alternatively, you may use this file under the terms o...
// render texture // alternative render target #include "pch.h" #include "rendertexture.h" // Initialise texture object based on provided dimensions. Usually to match window. RenderTexture::RenderTexture(ID3D11Device* device, int ltextureWidth, int ltextureHeight, float screenNear, float screenFar) { D3D11_TE...
/* * BeagleCPUSSEImpl.hpp * BEAGLE * * Copyright 2010 Phylogenetic Likelihood Working Group * * This file is part of BEAGLE. * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. * * @author Marc Suchard * @aut...
// Copyright David Stone 2020. // 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) #pragma once #include <tm/pokemon/max_pokemon_per_team.hpp> #include <tm/pokemon/pokemon.hpp> #include <tm/pokemon/pokemon_not_foun...
#include <memory> #include "tmachine.h" #include "tsio_wav.h" #include "tsystem.h" #include "tfilepath_io.h" #include "tsop.h" using namespace std; #if !defined(TNZ_LITTLE_ENDIAN) TNZ_LITTLE_ENDIAN undefined !! #endif //------------------------------------------------------------------------------ void ...
#define _CRT_SECURE_NO_WARNINGS #include "Mazda.h" #include <stdlib.h> #include <string> Mazda::Mazda() { this->Name = (char*)malloc(sizeof(char) * 8); strcpy(this->Name, "Mazda"); setFuelCap(38); setFuelCons(49); setAvgSpeed(43); } void Mazda::setFuelCons(float n) { this->FuelCons = n; } void Mazda::setFuel...
/** * \file DlgWdbeCprNew_evals.cpp * job handler for job DlgWdbeCprNew (implementation of availability/activation evaluation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE using namespace std; using nam...
#include "PPMAnalyzerSettings.h" #include <AnalyzerHelpers.h> PPMAnalyzerSettings::PPMAnalyzerSettings() : mInputChannel(UNDEFINED_CHANNEL), mFrequency(50), mSyncTimePercentage(20) { mInputChannelInterface.reset(new AnalyzerSettingInterfaceChannel()); mInputChannelInterface->SetTitleAndTooltip("Serial", "Sta...
#include "DirectionalLight.h" DirectionalLight::DirectionalLight() : Light() , Direction(0.0f, -1.0f, 0.0f) , Rotation(0.0f, 0.0f, 0.0f) , ShadowMapPosition(0.0f, 0.0f, 0.0f) , LookAt(0.0f, 0.0f, 0.0f) , Matrix() { CORE_OBJECT_INIT(); XMStoreFloat4x4(&Matrix, XMMatrixIdentity()); } Di...
version https://git-lfs.github.com/spec/v1 oid sha256:20c51b5d9d5a8a90bda9e887b887b5874af1afd646ef510e2120d03b5083abb0 size 6260
// ----------------------------------------------------------------------------- // Fern © Geoneric // // This file is part of Geoneric Fern which is available under the terms of // the GNU General Public License (GPL), version 2. If you do not want to // be bound by the terms of the GPL, you may purchase a proprietary...
/** * Class to process csv-lines, formatted in the LinTim Activities-periodic.giv, Events-periodic.giv or * Timetable-periodic.tim format. Use a {@link CsvReader} * with an instance of this class to read a periodic activities, events or timetable file. * <p> */ #ifndef PERIODICEANREADER_HPP #define PERIODICEANREA...
#include <iostream> #include <string> using namespace std; /* Laboratory 2 Ex 1 Write a program to prompt user name of favourite game and decide what kind of game he chose. Use switch statemant, at least five cases and default case. */ int main () { string favouritegame; int genre; cout << "...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long long unsigned llu; typedef double dl; typedef pair<int,int> pii; typedef pair<ll,ll> pll; typedef vector<int> vi; typedef vector<ll> vl; typedef map<int,int> mii; typedef map<ll,ll> ...
#include "KTimer.h" #include "KSelectorManager.h" struct timer_run_param { KSelector *selector; timer_func func; void *arg; }; void result_timer_call_back(void *arg, int got) { timer_run_param *param = (timer_run_param *)arg; param->func(param->arg); delete param; } void next_timer_call_back(void *arg, int got) {...
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE namespace ATL { struct _IDispEventVtbl { HRESULT (WINAPIV *_LocDEQueryInterface)(_IDispEvent *_this, _GUID *, vo...
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <vector> #include <list> #include <utility> #include "gna_plugin_log.hpp" namespace GNAPluginNS { template <class T> class PermuteSequence { public: using cnt_type = std::vector<std::pair<T, T>>; private...
/* GWEN Copyright (c) 2010 Facepunch Studios See license in Gwen.h */ #include "Gwen/Gwen.h" #include "Gwen/Skin.h" #include "Gwen/Controls/TabButton.h" #include "Gwen/Controls/TabControl.h" #include "Gwen/Controls/Highlight.h" #include "Gwen/DragAndDrop.h" using namespace Gwen; using namespace Gwen::Controls; GW...
// Author(s): Thomas Walter // $Date$ // $Rev$ // $URL$ #ifndef MORPHO_BASIC_HXX_ #define MORPHO_BASIC_HXX_ #include "morpho_utilities.hxx" namespace vigra{ namespace morpho{ template<class Iterator1, class Accessor1, class Iterator2, class Accessor2, class SElement, class Functor> void morphoBasicSEOperation( I...
#include <asset.hpp> #include <componentlibrary.hpp> #include "modules/upstage-module.h" #include "upstage-widget.h" namespace rack_plugin_DHE_Modules { struct UpstageButtonDark : rack::SVGSwitch, rack::MomentarySwitch { UpstageButtonDark() { addFrame(rack::SVG::load(rack::assetPlugin(plugin, "res/upstage/butt...
#include <assert.h> #include <algorithm> #include <cinttypes> #include <cstdarg> #include <iomanip> #include <sstream> #include <string> #include "deps/rang/include/rang.hpp" #include "llv8-inl.h" #include "llv8.h" #include "src/settings.h" namespace llnode { namespace v8 { using lldb::addr_t; using lldb::SBError; ...
// Copyright 2014 Open Source Robotics Foundation, 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 appli...
#include "RenderingPipeline.h" // https://medium.com/@bgolus/anti-aliased-alpha-test-the-esoteric-alpha-to-coverage-8b177335ae4f // Alpha-to-Coverage(A2C) technique and use of MSAA for VR // 요즘 게임들은 Deferred rendering같은 technique으로 인해서, 또는 MSAA의 high-cost로 인해 FXAA를 사용함. // 근데 VR환경에서는 MSAA 가 괜찮음. namespace gr { std...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-li...
// Borland C++ Builder // Copyright (c) 1995, 2002 by Borland Software Corporation // All rights reserved // (DO NOT EDIT: machine generated header) 'ReqMulti.pas' rev: 6.00 #ifndef ReqMultiHPP #define ReqMultiHPP #pragma delphiheader begin #pragma option push -w- #pragma option push -Vx #include <HTTPPa...
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://baldzar@gmail.com class: org.apache.http.MethodNotSupportedException ================================================================================*/ #ifndef J2...
/* * (C) 2015,2016 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include "driver.h" #include <botan/tls_client.h> class Fuzzer_TLS_Client_Creds : public Credentials_Manager { public: std::string psk_identity_hint(const std::string&, const std::string&) override { ...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library // (ge...
// license:GPL-2.0+ // copyright-holders:Couriersud /*************************************************************************** netlib.c Discrete netlist implementation. ****************************************************************************/ #include "net_lib.h" #include "nld_system.h" #include "nl_f...
// // detail/winrt_ssocket_service_base.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.tx...
// CChar is either an NPC or a Player. #include "../../common/resource/CResourceLock.h" #include "../../common/CException.h" #include "../../common/CUID.h" #include "../../common/CRect.h" #include "../../common/CLog.h" #include "../../sphere/ProfileTask.h" #include "../clients/CAccount.h" #include "../clients/CClient...
// // Created by Theophile Champion on 02/12/2020. // #include <iostream> #include "catch.hpp" #include "iterators/ObservedVarIter.h" #include "contexts/FactorGraphContexts.h" #include "graphs/FactorGraph.h" #include "helpers/UnitTests.h" using namespace hopi::iterators; using namespace tests; TEST_CASE( "ObservedVa...
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
/*------------------------------------------------------------------------- * drawElements Quality Program OpenGL ES 3.0 Module * ------------------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not ...
#include "myhash.h" #include "windows.h" #include "blake2.h" #include "common.h" //using namespace CryptoPP; myhash my; typedef void (__stdcall *Blake2b_Func)(char* output, long outlen, char* input, long inputlen); Blake2b_Func func; CryptoPP::BLAKE2b b(false, 20); CryptoPP::BLAKE2b b28(false, 28); CryptoPP::BLAKE...
#include <iostream> namespace Foo { // Goo is a namespace inside Foo namespace namespace Goo { const int g_x = 5; } } // C++17 // namespace Foo::Goo{ // const int g_x = 5; // } // namespaces alliases namespace Boo = Foo::Goo; // Boo now refers to Foo::Goo int main(){ std::cout << Foo::Goo::g_x << "\...
#include "includes.h" bool GPSCurriculumDesign::Findhead(FILE * FObs) { unsigned char buff[MAXRAWLEN]; unsigned char temp[3]; if (fread(buff, sizeof(unsigned char), 1, FObs) < 1) { return false; } temp[0] = buff[0]; if (fread(buff, sizeof(unsigned char), 1, FObs) < 1) { return false; } temp[1] = buff[0];...
#include "RE/B/BSTArray.h" #include "RE/S/ScrapHeap.h" namespace RE { BSScrapArrayAllocator::~BSScrapArrayAllocator() { if (_data) { deallocate(_data); } memzero(this); } void* BSScrapArrayAllocator::allocate(std::size_t a_size) { if (!_allocator) { auto heap = MemoryManager::GetSingleton(); _a...
/* * 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...
#include <iostream> int main() { int x = 0; std::cin >> x; std::cout << "Unesena vrijednost je: " << x << std::endl; }
#include "Level/Enemies/DragonWhelpEnemy.h" #include "Level/MOBBehavior/MovingBehaviors/AggressiveFlyingBehavior.h" #include "Level/MOBBehavior/MovingBehaviors/AllyFlyingBehavior.h" #include "Level/MOBBehavior/AttackingBehaviors/AggressiveBehavior.h" #include "Level/MOBBehavior/AttackingBehaviors/AllyBehavior.h" #inclu...
#include "SimpleJSON.h" #include "logger.h" #include <sstream> #include <algorithm> using namespace std; /***************************************************************************** * Writers *****************************************************************************/ SimpleJSONBuilde...
/**************************************************************************** ** ** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Script Generator project on Qt Labs. ** ** $QT_BEGIN_LICE...
#include <ossim/elevation/ossimDtedElevationDatabase.h> #include <ossim/base/ossimDirectory.h> #include <ossim/base/ossimGeoidManager.h> #include <ossim/base/ossimNotify.h> #include <ossim/base/ossimPreferences.h> #include <ossim/base/ossimTrace.h> #include <sstream> #include <iomanip> #include <cstdlib> /* for abs(int...
#ifdef STAND_ALONE # define BOOST_TEST_MODULE Main #else #ifndef _WIN32 # define BOOST_TEST_MODULE ParserIfTests #endif #endif #include "toslang_parser_fixture.h" BOOST_FIXTURE_TEST_SUITE( ParseTestSuite, TosLangParserFixture ) //////////////////// CORRECT USE CASES //////////////////// BOOST_AUTO...
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:20 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.ValueType #include "System/ValueType.hpp" // Includin...
//===- DataBlock.hpp --------------------------------------------*- C++ -*-===// // // Copyright (C) 2020 GrammaTech, Inc. // // This code is licensed under the MIT license. See the LICENSE file in the // project root for license terms. // // This project is sponsored by the Office of Naval Research, One Liberty //...
#include "movingbody.h" MovingBody::MovingBody() { } MovingBody::~MovingBody() { } void MovingBody::Update(float delta) { }
/** * @file pointPolygonTest.cpp * @brief mex interface for cv::pointPolygonTest * @ingroup imgproc * @author Kota Yamaguchi * @date 2013 */ #include "mexopencv.hpp" #include "opencv2/imgproc.hpp" using namespace std; using namespace cv; /** * Main entry called from Matlab * @param nlhs number of left-hand-sid...
/* -*- c++ -*- */ /* * Copyright 2004,2010,2012 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3, or (at y...
/* ============================================================================== This file is part of the JUCE library - "Jules' Utility Class Extensions" Copyright 2004-11 by Raw Material Software Ltd. ------------------------------------------------------------------------------ JUCE can be redistrib...
#pragma once #include <fstream> #include <iostream> #include <map> #include <string> namespace param { typedef std::map<std::string, std::string> ptype; class parameter { private: ptype params; bool valid; bool contains(std::string &key) const { return params.find(key) != params.end(); } public: param...
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file...
/*************************************************************************/ /* space_sw.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// 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. #include "chrome/browser/policy/cloud/cloud_policy_invalidator.h" #include <utility> #include "base/bind.h" #include "base/hash.h" #include "base/locati...
// // $Id$ // // // Original author: Matt Chambers <matt.chambers .@. vanderbilt.edu> // // Copyright 2008 Spielberg Family Center for Applied Proteomics // Cedars Sinai Medical Center, Los Angeles, California 90048 // Copyright 2008 Vanderbilt University - Nashville, TN 37232 // // Licensed under the Apache License...
// -*- mode: c++ -*- /************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. ...
// 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 <stddef.h> #include <stdint.h> #include <string> #include "base/files/file_path.h" #include "base/files/scoped_temp_dir.h" #include "base/m...
/* Drive.h - Library for controlling Robot Car with L298x bridge series Created by Oladapo E. Ajala, November 13, 2018. Released into the public domain. Copy right InvenTech llc. */ #include "Arduino.h" #include "analogWrite.h" #include "Drive.h" #define LOW 0 Drive::Drive(int IN1, int IN2, int ...
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef IROHA_AMETSUCHI_FIXTURE_HPP #define IROHA_AMETSUCHI_FIXTURE_HPP #include <gtest/gtest.h> #include <soci/postgresql/soci-postgresql.h> #include <soci/soci.h> #include <boost/filesystem.hpp> #include <boost/uuid...
// Copyright (c) 2017-2019 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAO_PEGTL_CONTRIB_PARSE_TREE_HPP #define TAO_PEGTL_CONTRIB_PARSE_TREE_HPP #include <cassert> #include <memory> #include <string> #include <string_view> #include <tuple> #incl...
// // Copyright (c) 2008-2019 the Urho3D project. // // 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, mod...
/* * This is the source code of thread_highways library * * Copyright (c) Dmitriy Bondarenko * feel free to contact me: bondarenkoda@gmail.com */ #include <thread_highways/include_all.h> #include <gtest/gtest.h> #include <atomic> #include <cstdint> #include <memory> #include <mutex> #include <set> #include <vec...
/* This file is part of VROOM. Copyright (c) 2015-2018, Julien Coupey. All rights reserved (see LICENSE). */ #include "problems/cvrp/operators/intra_exchange.h" #include "utils/helpers.h" namespace vroom { namespace cvrp { IntraExchange::IntraExchange(const Input& input, const utils::...
// // Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. // #include <set> #include <vector> #include <tbb/atomic.h> #include <boost/function.hpp> #include <base/util.h> #include "watermark.h" WaterMarkTuple::WaterMarkTuple() : hwater_index_(-1), lwater_index_(-1) { hwater_mark_set_ = false; ...
// // Created by YANG Zehai on 2021/11/23. // #include "AST/Unary.h" using namespace pur; using namespace pur::ast; Unary::Unary(const pars::Location& location, Expr& expr, UnaryOp op): Expr(ASTNodeType::kUnary, location), mExpr(&expr), mOp(op) { /* empty */ } Expr& Unary::GetExpr() { return *mExpr; } UnaryOp ...
/*************************************************************************** * * $Id: StPxlHitCollection.cxx,v 2.1 2013/03/05 14:40:21 ullrich Exp $ * * Author: X. Dong, Jan 2013 *************************************************************************** * * Description: * *************************************...
/* * Copyright (c) 2016-2020 Arm Limited. * * SPDX-License-Identifier: MIT * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * ri...
//===--- GenProto.cpp - Swift IR Generation for Protocols -----------------===// // // 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...
// MFEM modified from Example 10 and 16 // // Compile with: make exMHD // // Sample runs: // exMHD -m xperiodic-square.mesh -r 2 -o 3 -tf 3 -vs 100 -dt .001 -visit // exMHD -r 2 -tf 10 -vs 50 -dt .004 -i 2 // // Description: it solves a time dependent resistive MHD problem // Aut...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2018-2021 Intel Corporation #ifndef OPENCV_GAPI_GKERNEL_HPP #define OPENCV_GAPI_GKERNEL_HPP #include <f...
/* ============================================= * * FileName : testError.cpp * date: 2021-05-01 23:48 * Author: sunyi * ============================================== */ #include <iostream> #include "BtError.h" #include "BtLogger.h" #include "BtParse.h" // @brief test BtError.h int main(int argc, char* arg...
// #include<iostream> #include "arr_functions.h" void iterate_array(int* ints, int SIZE) { for (int i = 0; i < SIZE; ++i) { std::cout << *ints << "\n"; ints++; } }
// Copyright Vladimir Prus 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) #ifndef BOOST_DLL_HPP_VP_2004_08_24 #define BOOST_DLL_HPP_VP_2004_08_24 #include <string> #include <stdexcept> #include <boost/sh...
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/background-parsing-task.h" #include "src/objects-inl.h" #include "src/parsing/parser.h" #include "src/vm-state-inl.h" namespace v8 { nam...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2017-2018 The Monkey developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/m...
#include <iostream> #include <jni.h> #include "SkRegion.h" #include "interop.hh" static void deleteRegion(SkRegion* region) { // std::cout << "Deleting [SkRegion " << Region << "]" << std::endl; delete region; } extern "C" JNIEXPORT jlong JNICALL Java_org_jetbrains_skia_RegionKt_Region_1nMake(JNIEnv* env, jcl...
// 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. #include "cc/layers/picture_layer_impl.h" #include <utility> #include "cc/layers/append_quads_data.h" #include "cc/layers/picture_layer.h" #include "cc/...
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/payments/core/autofill_payment_instrument.h" #include <memory> #include "base/macros.h" #include "base/strings/string16.h" #include...
/*-------------------------------------------------------------------------------- The MIT License (MIT) Copyright (c) 2016 Great Hill Corporation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Soft...
#ifndef CGE_PRIOR_TRICK_WIDGET_HPP #define CGE_PRIOR_TRICK_WIDGET_HPP #include "Agui/Widget.hpp" #include "Game/Card/Card.hpp" #include "Game/UI/GuiFontManager.hpp" namespace cge { class PriorTrickWidget : public agui::Widget { std::vector<Card> m_cards; agui::Image* m_heartImg; agui::Image* m_diamondImg; agu...
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <climits> #include <cassert> #include <iomanip> #include <vector> #include <utility> #include <map> #include <set> #include <list> #include <stack> #include <queue> #include <deque> #include <bitset> #include <complex>...
#include "submodules/svg/Rasterizer.h" #include <iostream> #include "core/math/Math.h" #include "submodules/svg/Commands.h" #include "submodules/svg/Document.h" #include "submodules/svg/Path.h" namespace vanadium::svg { glm::vec2 Rasterizer::rasterizeCubicStep(const glm::vec2 &p0, ...