text
stringlengths
3.08k
12.5k
#include "SEEXYZImporter.hpp" #include "SEEXYZImporterGUI.hpp" #include "SAMSON.hpp" #include "SBIFileReader.hpp" SEEXYZImporter::SEEXYZImporter() { propertyDialog = new SEEXYZImporterGUI(this); propertyDialog->loadDefaultSettings(); } SEEXYZImporter::~SEEXYZImporter() { propertyDialog->saveDefaultSettings(); ...
// Copyright 2020 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 w...
#include <algorithm> // std::find_if_not #include <cctype> // std::tolower, std::isspace #include <fstream> #include <iostream> #include <sstream> #include <string> #include <string_view> #include <utility> // std::move #include <vector> std::vector<std::string_view> split(std::string_view str, ...
/* * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * * THE BSD LICENSE * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistribut...
/********** Copyright (c) 2020, Xilinx, 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 conditions and the fol...
// Copyright 2016 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...
// Copyright 2018 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. #include <lib/zx/channel.h> #include <lib/zx/vmo.h> #include <lib/zxio/inception.h> #include <lib/zxio/zxio.h> #include <zxtest/zxtest.h> constexpr const...
/** * @file GuidedFilter_.cpp * @brief mex interface for cv::ximgproc::GuidedFilter * @ingroup ximgproc * @author Amro * @date 2016 */ #include "mexopencv.hpp" #include "opencv2/ximgproc.hpp" using namespace std; using namespace cv; using namespace cv::ximgproc; // Persistent objects namespace { /// Last object ...
#include "Fireworks/Calo/plugins/FWCaloRecHitDigitSetProxyBuilder.h" #include "TEveBoxSet.h" #include "FWCaloRecHitDigitSetProxyBuilder.h" #include "Fireworks/Core/interface/FWDigitSetProxyBuilder.h" #include "Fireworks/Core/interface/FWEventItem.h" #include "Fireworks/Core/interface/FWGeometry.h" #include "Fireworks/C...
/* * Copyright 1996, University Corporation for Atmospheric Research. * See ../COPYRIGHT file for copying and redistribution conditions. */ /* $Id: recs.cc,v 1.4 2013/11/22 19:07:49 dicast Exp $ */ #include <netcdf.h> #include <string.h> #include "log/log.hh" #include "timeunits.h" #include "nc.h" #include "rec...
/* Q Light Controller Plus audiorenderer.cpp Copyright (c) <NAME> 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.txt Unless require...
/** * Created by TekuConcept on May 12, 2021 */ #include "video_codec/video_encoder.h" #include <cstring> #include <string> #include <stdexcept> #include "mpi_venc.h" #include "mpp_utils.h" using namespace hisilicon; video_encoder::video_encoder( HI_U32 __width, HI_U32 __height, HI_U32 __gop) : m_cha...
/*************************************************************************** *cr *cr (C) Copyright 2007 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr **************************************************************...
/** * \file dnn/test/common/svd.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BA...
#include "image_align.hh" #include "eigen_helpers.hh" #include "out.hh" #include "util/clamp.hh" #include "viewer/primitives/frame.hh" #include "viewer/primitives/image.hh" #include "viewer/primitives/image_frame.hh" #include "viewer/primitives/simple_geometry.hh" #include "viewer/window_3d.hh" #include "viewer/windo...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QtGui> #include <QtCore> #include <QtWidgets> #include <QApplication> #include <QTextEdit> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { // == WINDOW SETTINGS == setWindowTitle("Laser Alignment"); ...
/* * Copyright 2017 Facebook, 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...
// Copyright 2019 DeepMind Technologies Ltd. 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 require...
/*===================================================================*/ /* */ /* Mapper 191 : SACHEN Super Cartridge Xin1 (Ver.1-9), Q-BOY Support */ /* */ /*==========================...
#include "usb.hpp" #include <cstring> #include "tusb.h" #include "config.h" #include "file.hpp" #include "storage.hpp" #include "engine/api_private.hpp" // msc static bool storage_ejected = false; void tud_mount_cb() { storage_ejected = false; } void tud_msc_inquiry_cb(uint8_t lun, uint8_t vendor_id[8], uint8_...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SampleCode.h" #include "SkView.h" #include "SkCanvas.h" #include "SkColorPriv.h" #include "SkDevice.h" #include "SkPaint.h" #include "SkRandom.h" #define W 150 #d...
#include "externals.h" #include "AccessorPacker.h" #include "accessors.h" using GLTF::Constants::WebGL; GLTF::BufferView *AccessorPacker::packAccessorsForTargetByteStride( const std::vector<GLTF::Accessor *> &accessors, WebGL target) { std::map<GLTF::Accessor *, int> byteOffsets; int byteLeng...
/* * Copyright © 2015 Intel 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 Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
#pragma once #include <vector> #include "Camera.cpp" #include "GameCollision.cpp" #include "GameLogic.cpp" #include "PHP.cpp" #if defined(NETWORKING) #include "Networking.cpp" #endif enum GameResult { NONE, GAME_WON, GAME_LOST }; struct GameInput { bool32 up; bool32 left; bool32 down; bool32 right; ...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. /** * \class storage::StorageApp * \ingroup serverapp * * \brief The storage daemon application. * * This code is NOT unit tested and should be as minimal as possible. * * It should handle proc...
#include "Osa.h" #include "Graphics/GUI/Screen.h" Screen* Osa::screen = NULL; Screen* Osa::serverScreen = NULL; bool Osa::run = false; bool Osa::server = false; bool Osa::init(std::string title, int width, int height) { std::cout << "Starting " << OSA_VERSION << std::endl; SCREEN_WIDTH = width; SCREEN_HEIGHT = ...
#include <iostream> #include <climits> #include <chrono> /* structure to store the result */ typedef struct { int left; int right; int sum; } MaxSubarray; /* brute force method */ MaxSubarray FindMaxSubarrayBruteForce(int A[], int low, int high) { int tempSum; MaxSubarray ret = {0, 0, INT_MIN}; ...
#include <stdio.h> #include <string.h> #include <unistd.h> //Used for UART #include <fcntl.h> //Used for UART #include <termios.h> //Used for UART #include <errno.h> #define error_message printf int set_interface_attribs (int fd, int speed, int parity) { struct termios tty; memset (&tty, 0...
/*Begining of Auto generated code by Atmel studio */ #include <Arduino.h> /*End of auto generated code by Atmel studio */ /* EEPROM/FLASH/SRAM interface 62256 SRAM 28C256 EEPROM 39FS010 FLASH ATmega644P PD7 - !WE PD6 - !OE PD5 - !CE PORTA - Data PORTB - Address L PORTC - Address H 39SF010 A15 and A16 tied LOW */ ...
#include "caffeine/Interpreter/CaffeineContext.h" #include "caffeine/Interpreter/Context.h" #include "caffeine/Interpreter/Interpreter.h" #include "caffeine/Interpreter/Policy.h" #include "caffeine/Interpreter/Store.h" #include "caffeine/Interpreter/ThreadQueueStore.h" #include "caffeine/Solver/LoggingSolver.h" #inclu...
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2006, Industrial Light & Magic, a division of Lucas // Digital Ltd. LLC // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the f...
#include "simulation/windows/drivetrains.h" #include <frc/RobotController.h> #include <algorithm> using namespace simulation; using namespace curtinfrc; void drivetrain_window::init() { static Usage<DrivetrainConfig>::Registry<drivetrain_window> registry(&ui::init_window<drivetrain_window, DrivetrainConfig *>); } ...
#include <fstream> #include <stdio.h> #include <commonmath.h> #include <numericalintegration.h> #include <convexoptimization.h> using namespace ContinuumRobotLibrary; //Independent Parameters const double E = 200e9; const double G = 80e9; const double rad = 0.001; const double rho = 8000; const Vector3d g = 9.81*Vecto...
#include "desencdump.h" #include "hwconstant.h" #include "hwutil.h" #include "sha1data.h" /** * C'tor. * * @param filePath File path */ DesEncDump::DesEncDump(std::string filePath) : DesBaseDump(filePath) { } /** * Virtual D'tor. */ DesEncDump::~DesEncDump() {} /** * Dumps the output (based on i...
#include "viewport_test.hpp" #include <munin/render_surface.hpp> #include <munin/viewport.hpp> #include <terminalpp/canvas.hpp> #include <gtest/gtest.h> #include <gmock/gmock.h> using testing::Return; using testing::ValuesIn; using testing::_; namespace { using viewport_cursor_test_data = std::tuple< terminalpp:...
#include "bignum.h" string bignum::internal_addition(string a, string b) const{ vector<long long int> upper_adden = str_part_by(18,a); vector<long long int> lower_adden = str_part_by(18,b); size_t adden_size = upper_adden.size(); size_t n = adden_size+1ll; long long int *index_sums = new long long int[n]; ind...
/** * This file is part of tum_ardrone. * * Copyright 2012 <NAME> <<EMAIL>> (Technical University of Munich) * For more information see <https://vision.in.tum.de/data/software/tum_ardrone>. * * tum_ardrone is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
// Copyright (C) 2010 - 2013 by <NAME>, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and The University // of Manchester. // All rights reserved. // Copyright (C) 2008 - 2009 by <NAME>, Virginia Tech Intellectual // Properties, Inc., EML Research, gGmbH, University of Heidelberg, // ...
#include "CamDxf/camscene.h" ///Todo move to class window and get value from settings dialog /// used when drawing toolpath and for homing on G-code QPointF absoluteHome(0,0); QPointF homePoint(0,0); int currentLoop=0; QGraphicsPixmapItem *toolPix; QGraphicsLineItem toolLine; /// margin used to properly sh...
#include "ThreeSun.cpp" //---------------------------------------------------------------------------------------------------- vectors::vectors() { x = 0; y = 0; z = 0; } vectors::vectors(const vectors &other) { x = other.x; y = other.y; z = other.z; } vectors::vectors(double x, double y, double z) { this->x ...
#include "QRectF.hpp" #include "../convert/callable.hpp" #include "../thread.hpp" #include "../algorithm.hpp" #include "QVariant.hpp" #include "QPointF.hpp" #include "QSizeF.hpp" #include <QRectF> //bool contains ( const QPoint & point, bool proper = false ) const //bool contains ( int x, int y, bool proper ) c...
#include <iostream> #include <stdlib.h> // rand #include <math.h> // pow, sqrt #include <vector> // vector using namespace std; //* cout, endl *// namespace stats{ //Encapsulamos las funciones solicitadas. // Function para calcular la media de los datos. float mean_calculate(vector<int> &v){ float mean_muestra...
//#include <stdint.h> //#include <stdlib.h> //#include <stdio.h> //#include <string> //#include <iostream> //#include <mysql.h> //#include <mysql/client_plugin.h> //#include <mysqld_error.h> #include "sql/sql_class.h" #include "sql/protocol_classic.h" #include "sql/conn_handler/channel_info.h" #include "sql/conn_handle...
/** * tests/test_utils/test_utils.cpp * Part of the NV Virtual Buffer Library * This library is copyright 2007, 2008 NV Virtual Buffer Library Contributors * This library is licensed under the GNU Lesser General Public Licence. See license.txt which is included with this library, or see * http://www.gnu.org/...
#include <vector> #include <iostream> #include <iomanip> #include "helper.hh" #include "DirectedGraph.hh" #include "Path.hh" #include "PathHelper.hh" #include "EdgeSelector.hh" #include <chrono> // Helper output function std::ostream& operator <<(std::ostream& os, const std::map<size_t, std::map<size_t, std::vector<s...
//===- NpcompDialect.cpp - Custom dialect classes -------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
//================================================= // Name : gpsDate.cpp // Author : <NAME> // Version : 1.0 // Description : Global Positioning System Dates //================================================= #include "gpsDate.h" /* CONSTRUCTOR */ gpsDate::gpsDate(){ this->valid = false; this->...
#include "jass_convert.h" race ConvertRace(int i) { return race(i); } alliancetype ConvertAllianceType(int i) { return alliancetype(i); } racepreference ConvertRacePref(int i) { return racepreference(i); } igamestate ConvertIGameState(int i) { return igamestate(i); } fgamestate ConvertFGameState(int i) { retur...
# include "hierarchical_motion_planner/controller.h" PID_Base :: PID_Base() : _kp(0.0f) , _ki(0.0f) , _kd(0.0f){ std::cout << "PID_Base Default C'tor \n"; } PID_Base :: PID_Base(double kp, double kd, double ki) : _kp(kp) , _ki(ki) , _kd(kd){ std::cout << "PID_Base C'tor \n"; } PID_Base :: ~PID_Base(){ } void...
/*The MIT License (MIT) Copyright (c) 2014 <NAME> https://github.com/natcl/Artnet, http://forum.pjrc.com/threads/24688-Artnet-to-OctoWS2811 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...
#include <unistd.h> #include <iostream> #include <string> #include "robot.h" using namespace robot; //bool drawn = false; UserInterface::UserInterface(Robot& rob) : Process("user input"), _robot(rob) { initscr(); // Start ncurses timeout(1); // Timeout for waiting for user input noecho(); // Do no...
#include <queue> #include <limits> #include <cmath> #include <Python.h> #include <numpy/arrayobject.h> #include <iostream> const float INF = std::numeric_limits<float>::infinity(); // represents a single pixel class Node { public: int idx; // index in the flattened grid float cost; // cost of traversing th...
#include "OpenFileStrategy.h" OpenFileStrategy::OpenFileStrategy(char *fname, ClusterNo rootDirLvl1Index) { this->fname = fname; this->rootDirLvl1Index = rootDirLvl1Index; } ClusterNo OpenFileStrategy::allocateAndSetLvl2Cluster(ClusterNo dataCluster) { ClusterNo newRootDirLvl2IndexCluster = ClusterAllocation::allo...
//bcw0x1bd2 {{{ #include<bits/stdc++.h> using namespace std; #define FZ(n) memset((n),0,sizeof(n)) #define FMO(n) memset((n),-1,sizeof(n)) #define MC(n,m) memcpy((n),(m),sizeof(n)) #define F first #define S second #define MP make_pair #define PB push_back #define FOR(x,y) for(__typeof(y.begin())x=y.begin();x!=y.end();x...
#include "saber/core/context.h" #include "saber/funcs/layer_norm.h" #include "saber/core/tensor_op.h" #include "saber/saber_types.h" #include "test_saber_func.h" #include "test_saber_base.h" #include <vector> using namespace anakin::saber; /** * @brief normalize each layer. * Given tensor with shape NCHW, s...
// Copyright 2021 <NAME> #include "../../../modules/task_2/vanyushkov_m_producer_consumer/producer_consumer.h" #include <chrono> // NOLINT [build/c++11] #include <thread> // NOLINT [build/c++11] #include <random> Consumer::Consumer() { MPI_Scatter(nullptr, 0, MPI_INT, &resourcesCount, 1, MPI_INT, 0, MPI_COMM_WOR...
/* -*- mode: c++; -*- *----------------------------------------------------------------------------- * $RCSfile: QueueManager_main.cpp,v $ * * See Copyright for the status of this software. * * The OpenSOAP Project * http://opensoap.jp/ *--------------------------------------------------------------------------...
// Copyright (C) 2019. Huawei Technologies 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 to use,...
/* test_minimizer.cpp - Test Adept minimizer with N-dimensional Rosenbrock function Copyright (C) 2020 ECMWF Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is...
// This example shows how to work with the BodyIndex image in order to create // a green screen effect. Note that this isn't super fast, but is helpful // in understanding how the different image types & coordinate spaces work // together. If you need performance, you will probably want to do this with shaders! #inclu...
/* * Copyright (C) 2011, British Broadcasting Corporation * All Rights Reserved. * * Author: <NAME> * * 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...
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include "conf.hpp" conf::config_t configuration; void printUsage() { std::cout << "ToQueMidaS - Topological Querying Middleware System" << std::endl << std::endl << "Usage: toquemidas [options]" << std::endl << std::endl << "Options:" << std::endl ...
#include "core.hpp" #include "Sun.hpp" #include "Atmosphere.hpp" #include "Colors.hpp" #include "PMK.hpp" #include "SunPos.hpp" #include "Yaml.hpp" Sun::Sun(const Yaml& sett, GeoTimePosition& geoTimePosition) : m_geoTimePosition(geoTimePosition) { size = sett["Size"].number(); power = sett["Power"].number(); ...
#include <torch/extension.h> //#include <ATen/ATen.h> // #include <THC/THCAtomics.cuh> # would fail the complilation process #include <pybind11/pybind11.h> int deform_conv2d_forward_cuda( at::Tensor input, at::Tensor weight, at::Tensor bias, at::Tensor offset, at::Tensor output, const int kernel_h,const in...
/* Copyright (c) 2003-2013 KenamicK Entertainment 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, ...
/* WiFi Example * Copyright (c) 2018 ARM 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 ...
// graph.cpp // functions for mlgc // by frg #include <iostream> #include <fstream> #include <string> #include <vector> #include <deque> using namespace std; //#include <fstream> //pour lire les fichiers class Node{ public: Node(string alabel = ""){label = alabel;visited = false;} ~Node(){} ...
/*****************************************************************************\ FILE: painting.cpp DESCRIPTION: BryanSt 12/24/2000 Copyright (C) Microsoft Corp 2000-2001. All rights reserved. \*****************************************************************************/ #include "stdafx.h" ...
#include <cstdlib> #include <cstdio> #include "esp_adc.h" #define ADC_CAL_CHECK(cond, ret) ({ \ if(!(cond)){ \ return ret; \ } ...
/* * Visual animator base classes */ #include <cstdlib> #include <curses.h> #include <unistd.h> #include <cstring> #include <vector> #include <thread> #include <future> #include <string> // Program headers #include <animator.hpp> #include <clock.hpp> #include <maths.hpp> #include <stdscr.hpp> // Base animator prov...
#include <QMouseEvent> #include <cmath> #include <MyWidget.hpp> static const char *vertex_shader = R"( #version 130 uniform mat4 mvp_matrix; //in vec3 vert; //in vec3 vertNor...
/** * @file main.cpp * @author <NAME> <<EMAIL>> * @date Wed Oct 21 17:37:10 2015 * * @brief Example for Polar->Nodal basis transformation and quadrature * in the nodal basis * * */ #include <boost/filesystem.hpp> #include <boost/program_options.hpp> #include <iostream> #include <Eigen/Dense> #in...
// // "$Id: Fl_Overlay_Window.cxx 5190 2006-06-09 16:16:34Z mike $" // // Overlay window code for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2005 by <NAME> and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public //...
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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 ...
// main17.cc is a part of the PYTHIA event generator. // Copyright (C) 2013 <NAME>. // PYTHIA is licenced under the GNU GPL version 2, see COPYING for details. // Please respect the MCnet Guidelines, see GUIDELINES for details. // This is a simple test program. // It illustrates // (a) how to use UserHooks to regula...
/* Title: GoodDocs.cpp Description: Program for question Date: July 15, 2018 Author: <NAME> Version: 1.0 Copyright: 2018 <NAME> */ /* DOCUMENTATION Program Purpose: Write a program in which you create a Hen class. Inside this class, nest a Nest class. Inside Nest, place an Egg cl...
/* * Copyright information and license terms for this software can be * found in the file LICENSE that is included with the distribution */ /** * @author mrk */ /* Author: <NAME> */ #include <iostream> #include <epicsStdlib.h> #include <epicsGetopt.h> #include <epicsThread.h> #include <pv/pvaClient.h> using na...
#include "core.h" #include "mathfunc.h" #include "mathcore.h" #include "random.h" #include <math.h> static Random Generator; void Math::Bresenham(int x0, int y0, int x1, int y1, BresenhamPointFunc PointFunc, void* pContext) { bool steep = abs(y1 - y0) > abs(x1 - x0); // Is the slope greater th...
/* * Copyright <NAME> 2007 - 2014. * 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 attr_named_scope.cpp * \author <NAME> * \date 25.01.2009 * * \brief This header c...
/* * test_plane_sw_normal_mode.cpp * * Created on: 14 Nov 2019 * Author: <NAME> <<EMAIL>> */ #if !SWEET_USE_PLANE_SPECTRAL_SPACE #error "Spectral space not activated" #endif #if SWEET_GUI # error "GUI not supported" #endif #include <sweet/plane/PlaneData.hpp> #include <sweet/SimulationVariables.hpp> #...
/* * sbookreader.cpp: * * Test the program. */ #include "libsbook.h" /* C++ stuff */ #include <string> #include "xmlparse.h" #include "nxatom.h" #include "encrypted_object.h" #include <sys/stat.h> #include <fcntl.h> #include <stdlib.h> #include <unistd.h> #include <err.h> #include <stdio.h> #include <iostream>...
/*************************************************************************** * Copyright 2012 CertiVox IOM Ltd. * * This file is...
#include "DataFormats/EcalDetId/interface/EcalElectronicsId.h" #include "FWCore/Utilities/interface/Exception.h" #include <ostream> EcalElectronicsId::EcalElectronicsId() { EcalElectronicsId_=0xFFFFFFFFu; } EcalElectronicsId::EcalElectronicsId(uint32_t id) { EcalElectronicsId_=id; } EcalElectronicsId::EcalElect...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #include <iosfwd...
/* Camera.cpp */ #include "Camera.h" #include <vector> /* * We need to know the new view (character) position, * the direction the character is facing, * and a list of the other objects which could colide with the camera * the transformation of the other objects must have been set ! */ void Camera::render() { ...
//----------------------------------- // Copyright <NAME> 2013-2017 //----------------------------------- #include "TcpServer.h" #include "BlackBoard.h" #include "Capture.h" #include "Card.h" #include "Context.h" #include "Log.h" #include "RuleEditor.h" #include "App.h" //--------------------------------------------...
#include "core.h" #include "gl2vertexshader.h" #include "idatastream.h" #include "memorystream.h" #ifdef HAVE_GLES #include <stdio.h> #ifdef PANDORA const char* SimplePixelShader = "#version 100\n\ precision mediump float;\n\ uniform vec4 Gamma; // Used as float\n\ vec2 FixUV( vec2 UV )\n\ {\n\ return vec2( UV.x, 1...
/* * This file is part of the Simutrans project under the Artistic License. * (see LICENSE.txt) */ #include <stdio.h> #include "../simdebug.h" #include "../world/simworld.h" #include "simobj.h" #include "../obj/way/schiene.h" #include "../ground/grund.h" #include "../display/simimg.h" #include "../dataobj/ribi.h" ...
// __BEGIN_LICENSE__ // Copyright (C) 2006-2010 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ #include <vw/Camera/LensDistortion.h> #include <vw/Camera/PinholeModel.h> #include <vw/Math/LevenbergMarquard...
/* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is distributed i...
/* * Copyright (c) 2019 <NAME>, * Copyright (c) 2019 Triad National Security, LLC, as operator of * Los Alamos National Laboratory. * 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"), t...
/*! * \file password.cpp * * \copyright Copyright 2013 (C) <NAME> * * \author <NAME> * * 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) */ // compile as // g++ -o password password.cpp -lboost_random #in...
#include <mbgl/test/stub_file_source.hpp> #include <mbgl/test/getrss.hpp> #include <mbgl/test/util.hpp> #include <mbgl/map/map.hpp> #include <mbgl/map/backend_scope.hpp> #include <mbgl/gl/headless_backend.hpp> #include <mbgl/gl/offscreen_view.hpp> #include <mbgl/util/default_thread_pool.hpp> #include <mbgl/util/io.hpp...
// Copyright (c) 2015-2017, RAPtor Developer Team // License: Simplified BSD, http://opensource.org/licenses/BSD-2-Clause #include "gtest/gtest.h" #include "raptor.hpp" #include "tests/par_compare.hpp" #include <iostream> #include <fstream> using namespace raptor; ParCSRMatrix* form_Prap(ParCSRMatrix* A, ParCSRMatri...
// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* The MIT License Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or http://flusspferd.org/contributors.txt) Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
/* * httpget.cc : part of the Mace toolkit for building distributed systems * * Copyright (c) 2011, <NAME>, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistribut...
 #include "from_client_session.h" #include "to_ws_session.h" #include "to_gs_session.h" #include "gate/logic/HandleMsgMacros.h" #include "gate/logic/PlayerManager.h" #include "gate/logic/Player.h" #include "gate/logic/LoginHandler.h" #include "gate/config/GameConfig.h" #include "gate/pbconfig/msginfo.conf.pb.h" #inc...
#include <iostream> #include <string> #include <tuple> #include <unistd.h> #include <vector> #include "advancer.h" #include "analyzer.h" #include "backtracker.h" #include "exceptions.h" #include "FENParser.h" #include "helper.h" #include "meeterInTheMiddle.h" #include "move.h" #include "progressReporter.h" #include "v...