text
stringlengths
5
1.04M
#include "Farms_Timing.h" #include "Controller.h" using namespace AISCRIPT; Farms_Timing farms_notiming_impl(AISCRIPT::Enum::FARMS_NOTIMING); Farms_Timing farms_timing_impl(AISCRIPT::Enum::FARMS_TIMING); bool Farms_Timing::execute(aithread &thread) const { if ( this->getOpcode() == AISCRIPT::Enum::FARMS_...
//===- SimplifyCFG.cpp - Code to perform CFG simplification ---------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "Loader.h" #include "../models/RawModel.h" #include <SFML/Graphics.hpp> #include <GL/glew.h> // CleanUp Loader::~Loader() { for(auto& VAO : VAOs) { glDeleteVertexArrays(1, &VAO); } for(auto& VBO : VBOs) { glDeleteBuffers(1, &VBO); } for(auto& TXR : Textures) { glDeleteTextures(1, &TXR); } } ...
// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/common/platform_util.h" #include <stdio.h> #include "base/files/file_util.h" #include "base/process/kill.h" #include "base/process/launch.h" #include "url/gurl.h" nam...
#include "Source_Files/precompiled_header.h" #include "map.h" //Constructors / Destructors Map::Map() { } Map::~Map() { }
#include <iostream> #include <atomic> #include <brynet/net/EventLoop.hpp> #include <brynet/net/TcpService.hpp> #include <brynet/base/AppStatus.hpp> #include <gayrpc/utils/UtilsWrapper.h> #include "./pb/echo_service.gayrpc.h" using namespace brynet; using namespace brynet::net; using namespace gayrpc::core; using name...
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe // SPDX-License-Identifier: MIT #include <Jolt.h> #include <TriangleSplitter/TriangleSplitterLongestAxis.h> #include <Geometry/AABox.h> namespace JPH { TriangleSplitterLongestAxis::TriangleSplitterLongestAxis(const VertexList &inVertices, const IndexedTriangleList &inTri...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
#include <../LibJava/Java.hxx> #include <JavaExternHdl.hxx> #include <JavaResources.hxx> #include <Manager.hxx> #include <WaitCond.hxx> #include <DpIdentifierVar.hxx> #include <DpVCItem.hxx> #include <Variable.hxx> #include <FloatVar.hxx> #include <IntegerVar.hxx> #include <CharVar.hxx> #include <...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" namespace...
/** * @file iqn_test.cpp * @author Marcus Edel * * Test file for IQN (incremental Quasi-Newton). * * ensmallen is free software; you may redistribute it and/or modify it under * the terms of the 3-clause BSD license. You should have received a copy of * the 3-clause BSD license along with ensmallen. If not, s...
/* Copyright (c) 2017-2018 Hans-Kristian Arntzen * * 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, me...
#include "gtest/gtest.h" #include "channel.h" #include <json/value.h> using namespace core::jsonrpc;
/*! \brief FlexProxFoot class */ #ifndef _FLEX_PROX_FOOT_HH_ #define _FLEX_PROX_FOOT_HH_ #include "ContactFoot.hh" /*! \brief Model of a contact foot: flexible foot, part 1 (flat on the ground) */ class FlexProxFoot: public ContactFoot { public: FlexProxFoot(MbsData *mbs_data, GaitFeatures *gait_features, Senso...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "frc2/command/ScheduleCommand.h" using namespace frc2; ScheduleCommand::ScheduleCommand(wpi::span<Command* co...
/* * Written by: * Kevin J. Bowers, Ph.D. * Plasma Physics Group (X-1) * Applied Physics Division * Los Alamos National Lab * March/April 2004 - Original version * */ #include "vpic.h" # define RANK_TO_INDEX(rank,ix) BEGIN_PRIMITIVE { \ int _ix, _iy, _iz; \ ...
/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, development version * * (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH * * * ...
/** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "logdevice/server/StoreStorageTask.h" #include <initializer_list> #include <...
/* * 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 <AzCore/UnitTest/TestTypes.h> #include <AzFramework/Spawnable/SpawnableEntitiesInterface....
/* * Copyright (c) 2018 Clyde Stanfield * * 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, pub...
// Copyright (c) 2017 GeometryFactory (France). // All rights reserved. // // Licensees holding a valid commercial license may use this file in // accordance with the commercial license agreement provided with the software. // // This file is part of CGAL (www.cgal.org) // // SPDX-License-Identifier: LGPL-2.1-only // /...
#include <string> // for allocator #include <utility> // for move #include "ftxui/component/captured_mouse.hpp" // for CapturedMouse #include "ftxui/component/component.hpp" // for Make, Slider #include "ftxui/component/component_base.hpp" // for ComponentBase #include "ftxui/component/event.hpp" // for Ev...
// ------------------------------------------------------------------------------------------------- // Copyright 2016 - NumScale SAS // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE.txt or copy at // ...
// stdafx.cpp : source file that includes just the standard includes // Win32ConsoleApplication.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
/* * Copyright (C) Volition, Inc. 1999. All rights reserved. * * All source code herein is the property of Volition, Inc. You may not sell * or otherwise commercially exploit the source or things you created based on the * source. * */ #ifdef _WIN32 #include <winsock2.h> // for inet_addr() #else #include <...
// Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au) // Copyright 2008-2016 National ICT Australia (NICTA) // // 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....
/** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "logdevice/admin/MetadataNodesetSelector.h" #include <gtest/gtest.h> #inclu...
//================================================================================================= /*! // \file src/mathtest/smatsmatschur/MCbSCa.cpp // \brief Source file for the MCbSCa sparse matrix/sparse matrix Schur product math test // // Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved // // Th...
#include<stdio.h> #include<stdlib.h> main(){ printf("Ola estou no SENAI\n"); system("pause"); }
//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------...
#include "DebugUtility.h" #if PRINT_TO_FILE std::ofstream out("debug.txt", std::ios_base::app); #endif
/* Copyright 2022 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 a...
//======================================================================================== // Athena++ astrophysical MHD code // Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors // Licensed under the 3-clause BSD License, see LICENSE file for details //===============================...
#pragma once /* * Copyright (c) 2016-20017 Max Cong <savagecm@qq.com> * this code can be found at https://github.com/maxcong001/logger * 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...
/* // Copyright (c) 2016 Intel Corporation // // 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 o...
/** * @file checkcollision.hpp * @author Licheng Wen (wenlc@zju.edu.cn) * @brief check collision function singleton class * @version 0.1 * @date 2021-01-17 * * @copyright Copyright (c) 2021 * */ #pragma once #include <typeindex> #include "models/ackermann_model.hpp" #include "models/holonomic_model.hpp" #inc...
#ifndef BIOFILM_SIMULATION_COMPONENTS_HPP #define BIOFILM_SIMULATION_COMPONENTS_HPP #include <string> #include <vector> #include <data.hpp> /// Aliases for the different components of the simulation. namespace component { using Names = std::vector<std::string>; using Bacteria = std::vector<int>; using Nutrients = st...
//---------------------------------------------------------------------------// //! //! \file Utility_LinearCongruentialGenerator.hpp //! \author Alex Robinson //! \brief Declaration of a linear congruential pseudo-random number that //! can be used to create reproducible parallel random number streams. //! ...
// Dear ImGui: standalone example application for SDL2 + OpenGL // (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) // (GL3W is a helper library to access OpenGL functions since there is no standard header to access modern OpenGL functio...
// MIT License // // Copyright (c) 2020 Jean-Louis Haywood // // 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...
/* * Copyright 2014 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
// This file is part of LatticeTester. // // LatticeTester // Copyright (C) 2012-2018 Pierre L'Ecuyer and Universite de Montreal // // 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 // // ...
/*========================================================================= Program: Visualization Toolkit Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; with...
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*- //----------------------------------------------------------------------------- // Copyright 2000-2021 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) // See the top-level COPYRIGHT file for details. // SPDX-License-Identifier: Apache-2...
/********************************************************************** * 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 ...
#ifndef OPENPOSE_WRAPPER_WRAPPER_HPP #define OPENPOSE_WRAPPER_WRAPPER_HPP #include <openpose/core/common.hpp> #include <openpose/thread/headers.hpp> #include <openpose/wrapper/enumClasses.hpp> #include <openpose/wrapper/wrapperStructExtra.hpp> #include <openpose/wrapper/wrapperStructFace.hpp> #include <openpose/wrappe...
#include "ResourceDefs.h" #include "ChunkLoader.h" ChunkPtr CChunkLoader::Load(const ResourceNodePtr& parent, Framework::CStream& inputStream) { uint32 chunkType = inputStream.Read32(); inputStream.Seek(-4, Framework::STREAM_SEEK_CUR); ChunkPtr result; switch(chunkType) { case '\0DHS': //Shader Sect...
/* * Copyright (c) 2021 Project CHIP 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 * ...
#include <qpointsview/QFlyCamera> #include <QMatrix4x4> #include <QtMath> #include <algorithm> namespace qpointsview { QFlyCamera::QFlyCamera(QObject* parent) : QAbstractCamera(parent) {} QMatrix4x4 QFlyCamera::viewMatrix() const { QMatrix4x4 out; out.lookAt(m_position, m_position + direction(), m_up); ...
#pragma once // ---------------------------------------------------------------------- namespace acmacs { void enable_coredump(); } // ---------------------------------------------------------------------- /// Local Variables: /// eval: (if (fboundp 'eu-rename-buffer) (eu-rename-buffer)) /// End:
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2015-2017 The dogecash developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "base58.h" #include "clientversion.h" #include "coins.h" #include ...
/* * * Copyright (c) 2020 Project CHIP 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...
// // ShaderModules.cpp // Vulkan Setup // // See matched header file for definitive main comment. // // 5/19/19 Tadd Jensen // © 0000 (uncopyrighted; use at will) // #include "ShaderModules.h" #include "PlatformSpecifics.h" // (for __emplace_back on iOS, possibly) ShaderModules::ShaderModules(GraphicsDevice& graphic...
// MIT License // // Copyright (c) 2021 Marko Malenic // // 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, modif...
// Copyright 2005-2009 Daniel James. // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include "./config.hpp" #include <boost/container_hash/hash.hpp> int f() { return 0; }
#include <net/ethernet.h> #include <gtest/gtest.h> #include <stdexcept> #include "common/macaddress.h" using namespace swss; using namespace std; TEST(MacAddress, to_string) { const uint8_t a_bin[] = {0x52, 0x54, 0x00, 0xac, 0x3a, 0x99}; auto a = MacAddress(a_bin); EXPECT_EQ(a.to_string(), "52:54:00:ac:3a...
// // Sabreen's Antialias Module // Reduces an image by 1/2 in each direction, and performs a // 3x3 lowpass filter to construct the new image. // Assumes ARGB 4-byte images on input and output // #include "xp_comm_proj/a_alias/gen.h" // // uncomment the following line to get diagnostic info // // #define TRACE...
//queue #include<bits/stdc++.h> using namespace std; class Queue { int sz; int front,end; int arr[1000]; public: Queue(int a) { //a is size of array sz=a; front=-1; end=-1; } bool isFull() { if(end==sz-1) { return true; } return false; } bool isEmpty() { if(end=...
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Example 1: Input: ["flower","flow","flight"] Output: "fl" Example 2: Input: ["dog","racecar","car"] Output: "" Explanation: There is no common prefix among the input string...
// Copyright (c) 2016-2020 FRC Team 3512. All Rights Reserved. #pragma once #include <frc/Timer.h> #include "es/Service.hpp" class AutoRightScale : public Service { public: AutoRightScale(); void Reset(); void HandleEvent(Event event) override; private: frc::Timer autoTimer; enum class State ...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2013-2022 Regents of the University of California. * * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions). * * ndn-cxx library is free software: you can redistribute it and/or modify it under the ...
/* * SphericalBoxSampler.cpp * * Created on: Apr 11, 2010 * Author: papazov */ #include "SphericalBoxSampler.h" SphericalBoxSampler::SphericalBoxSampler() { mOneThird = 1.0/3.0; } SphericalBoxSampler::~SphericalBoxSampler() { }
#include <stdio.h> #include <math.h> #define N 40 // \int \sqrt(x^2+y^2) dx dy double int00raw(double x, double y) { double h = sqrt(x*x + y*y); return ((x == 0 ? 0 : x*x*x*log(h + y)) + (y == 0 ? 0 : y*y*y*log(h + x)) + 2*x*y*h) / 6; } // \int \sqrt(x^2+y^2) y dx dy double int01raw(double x, double y...
// // Copyright © 2018-2021 Arm Limited. // SPDX-License-Identifier: Apache-2.0 // #pragma once #include "Buffer.hpp" #include "Inference.hpp" #include <string> #include <vector> // Version information #define ETHOSN_DRIVER_LIBRARY_VERSION_MAJOR 1 #define ETHOSN_DRIVER_LIBRARY_VERSION_MINOR 1 #define ETHOSN_DRIVER_...
#include <Arduino.h> #include <FS.h> #include "CiniParser.h" #include "Debug.h" //iniファイル名を設定。 存在しない場合は-1を返す //ファイル名が長過ぎる場合 1 を返す int CiniParser::setIniFileName(char *fnm){ SPIFFS.begin(); String tmp = fnm; String fnmDir = tmp.substring(0, tmp.lastIndexOf('/')+1); String fnmExt = tmp.substring(tmp.lastIndex...
/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentatio...
#include "test-common.h" #include <cassert> #include <sigslot/signal.hpp> static constexpr int32_t grps = 30; static constexpr int64_t slts = 3; static constexpr int64_t emissions = 10000; static constexpr int64_t runs = 1000; static void fun(int64_t &i) { i++; } static void test_groups(int64_t &i) { sigslot::s...
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Christian Schulte <schulte@gecode.org> * Vincent Barichard <Vincent.Barichard@univ-angers.fr> * * Copyright: * Christian Schulte, 2005 * Vincent Barichard, 2012 * * Last modified: * $Date: 2013-02-04 ...
#include "<%- timer.sanitizedName %>.hpp" #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/timers.h" #define MS_TO_TICKS( xTimeInMs ) (uint32_t)( ( ( TickType_t ) xTimeInMs * configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) namespace <%- timer.sanitizedName %> { // User definitions for the time...
// Copyright (C) 2008-2018 Lorenzo Caminiti // Distributed under the Boost Software License, Version 1.0 (see accompanying // file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt). // See: http://www.boost.org/doc/libs/release/libs/contract/doc/html/index.html // Test all derived and base classes wi...
// Copyright 2010 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__char_file_snprintf_84_goodB2G.cpp Label Definition File: CWE134_Uncontrolled_Format_String.label.xml Template File: sources-sinks-84_goodB2G.tmpl.cpp */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: file R...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "amount.h" #include "tinyformat.h" CFeeRate::CFeeRate(const CAmount& nFeePa...
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE SignalFinderToolsTest #include <boost/test/unit_test.hpp> #include "SignalFinderTools.h" #include "JPetLoggerInclude.h" BOOST_AUTO_TEST_SUITE(FirstSuite) BOOST_AUTO_TEST_CASE( getSigChsPMMapById_nullPointer ) { auto results = SignalFinderTools::getSigChsPMMap...
// Copyright 2015-2020 Tier IV, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
//---------------------------------------------------------------------------- // Microsoft Confidential // Copyright (C) 1995-2000 Microsoft Corporation. All Rights Reserved. // //---------------------------------------------------------------------------- #include "pch.h" #include "utable.h" /* Generated by objd\ux...
/*************************************************** * Problem Name : C.cpp * Problem Link : https://codeforces.com/contest/1367/problem/C * OJ : Codeforces * Verdict : Trying * Date : 2020-06-16 * Problem Type : Div/Edu - * Author Name : Saikat Sharma * University : CSE, MBSTU ******...
// Copyright 2014 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 <memory> #include "base/bind.h" #include "base/macros.h" #include "base/memory/ptr_util.h" #include "base/memory/ref_counted.h" #include "base/m...
// RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -emit-llvm -o - %s -std=c++11 -g | FileCheck %s void crash() { volatile char *ptr = 0; char x = *ptr; } int test() { crash(); return 1; } static int i = test(); __attribute__((nodebug)) static int j = test(); int main(void) {} // CHECK: define internal v...
#ifndef __server_encoder_decoder_hpp__ #define __server_encoder_decoder_hpp__ /* * Copyright (c) 2016, Anonymous Institution. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_listen_socket_execl_81_goodG2B.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-81_goodG2B.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket ...
#include "soundDataHolder.hpp" #include "soundData.hpp" #include "Utilities/xml.hpp" namespace ph { SoundDataHolder::SoundDataHolder() { Xml soundDataXml; soundDataXml.loadFromFile("sounds/soundData.xml"); const auto soundDataNode = soundDataXml.getChild("soundData"); const std::vector<Xml> soundNodes = soundData...
/** * @file * @copyright defined in eos/LICENSE.txt */ #pragma once #include <eosiolib/core/eosio/time.hpp> #include <eosiolib/contracts/eosio/eosio.hpp> #include <ibc.chain/types.hpp> #include <ibc.chain/block_header.hpp> namespace eosio { typedef uint64_t pbft_message_type; struct pbft_message_common {...
#include "EC3D/Gui/Listener/GenericHScrollBarListener.h" namespace ec { GenericHScrollBarListener::GenericHScrollBarListener() : m_valueChangedCb(nullptr), m_minValueChangedCb(nullptr), m_maxValueChangedCb(nullptr), m_arrowWidthChangedCb(nullptr), m_largeAmountChangedCb(nullptr), m_leftAmountChangedCb(nul...
/*========================================================================= Program: Visualization Toolkit Module: TestQuadRotationalExtrusion.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
/* Copyright (c) 2021 Mitya Selivanov * * This file is part of the Laplace project. * * Laplace 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 MIT License for more details. ...
// Copyright (c) 2011-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-license.php. #include "transactiondesc.h" #i...
//Here is some void and non-void functions using 0,1 and more than 1 parameters //with pass by value and pass by references #include<iostream> using namespace std; void printGoodMorning() { cout<<"Good Morning"<<endl; } int *printOddNumbersZeroToFifty() { int arr[51]; for(int a =0; a<51; a+...
// // Created by jared on 9/15/20. // #include "engine/Physics/Emitter/Emitter.h" namespace PHYSZY { Emitter::Emitter() { } }
// pch.cpp : source file that includes just the standard includes // physics.desktop.pch will be the pre-compiled header // pch.obj will contain the pre-compiled type information #include "pch.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
/** @file HTTP state machine @section license License 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...
/* * Copyright (C) 2009 Google Inc. All rights reserved. * Copyright (C) 2010 Apple 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: * * * Redistributions of source code must retai...
// Copyright 2012 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/profiler/cpu-profiler.h" #include <unordered_map> #include <utility> #include "src/base/lazy-instance.h" #include "src/base/platform/mut...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 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 <i...
#include "reflex/ruby/selector.h" #include "defs.h" RUCY_DEFINE_VALUE_OR_ARRAY_FROM_TO(Reflex::Selector) #define THIS to< Reflex::Selector*>(self) #define C_THIS to<const Reflex::Selector*>(self) #define CHECK RUCY_CHECK_OBJ(Reflex::Selector, self) static RUCY_DEF_ALLOC(alloc, klass) { return new_type<R...
#include <Backups/BackupRenamingConfig.h> #include <Parsers/ASTBackupQuery.h> namespace DB { using Kind = ASTBackupQuery::Kind; using ElementType = ASTBackupQuery::ElementType; void BackupRenamingConfig::setNewTableName(const DatabaseAndTableName & old_table_name, const DatabaseAndTableName & new_table_name) { o...
/* * Copyright (C) 2019 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
#pragma once #include <string> #include <vector> #include <optional> #include <opencv2/core/core.hpp> struct CameraCalibrationData { cv::Mat cameraMatrix; cv::Mat distortionCoefficients; std::vector<cv::Mat> rotationVectors; std::vector<cv::Mat> translationVectors; }; std::ostream& operator<< ( ...
#include "stdafx.h" #include "Camera.h" #include <glm/gtc/matrix_transform.hpp> #include <stdexcept> using namespace Daybreak; // Default world up direction for new cameras. const glm::vec3 Camera::DefaultWorldUp = { 0.0f, 1.0f, 0.0f }; // Initial yaw for new cameras. This rotates the camera on the Y axis to face t...
#include "skia.hpp" #include <xpc/xpc.h> #include <FunctionHook.h> typedef void * tcp_connection_t; typedef void * nw_endpoint_t; typedef void * nw_path_t; enum nw_endpoint_type { nw_endpoint_type_invalid = 0, nw_endpoint_type_address = 1, nw_endpoint_type_hostname = 2, nw_endpoint_type_bonjour = 3, ...