text
stringlengths
3.08k
22k
/* qsufsort.c Copyright 1999, <NAME>, all rights reserved. This file contains an implementation of the algorithm presented in "Faster Suffix Sorting" by <NAME> (<EMAIL>) and <NAME> (<EMAIL>). This software may be used freely for any purpose. However, when distributed, the original source must be clearl...
// $Id: cxid.cpp,v 1.3 2020-12-12 22:09:29-08 - - $ #include <iostream> #include <string> #include <vector> #include <memory> #include <fstream> using namespace std; #include <libgen.h> #include <sys/types.h> #include <unistd.h> #include "protocol.h" #include "logstream.h" #include "sockets.h" logstream outlog (cou...
#include "zmq.h" #include <iostream> #include "AliHLTDataTypes.h" #include "AliHLTComponent.h" #include "AliHLTMessage.h" #include "TClass.h" #include "TMap.h" #include "TPRegexp.h" #include "TObjString.h" #include "TList.h" #include "TMessage.h" #include "AliHLTMessage.h" #include "TH1F.h" #include "TF1.h" #include <c...
#include "image.h" #include "movie.h" #include "yuv_util.h" #include "xutil.h" #include <cstdio> #include <map> #include <string> #include <fstream> using namespace std; #define MINMAX(value,min,max) ((value)>(max)?(max):((value)<(min)?(min):(value))) struct Mode{ static int diff;//0:pixel,1:macro,-1,2:none s...
/** * $Id: I3ConfigurationImpl.cxx 168750 2016-06-01 18:26:57Z cweaver $ * * Copyright (C) 2007 * <NAME> <<EMAIL>> * and the IceCube Collaboration <http://www.icecube.wisc.edu> * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License...
/** * \file PnlIdecScfRecord.cpp * job handler for job PnlIdecScfRecord (implementation) * \author <NAME> * \date created: 30 Dec 2017 * \date modified: 30 Dec 2017 */ #ifdef IDECCMBD #include <Ideccmbd.h> #else #include <Idecd.h> #endif #include "PnlIdecScfRecord.h" #include "PnlIdecScfRecord_blks.cpp...
#include <iostream> #include <fstream> #include <string.h> #include <string> #include <sstream> #include <list> using namespace std; class textblock { public: int blockpointer; char * engtextpointer; char * engtext; unsigned int textlocation; unsigned int englishtextlocation; int engtextlen; textblock(int bloc...
/******************************************************************************* * Copyright (c) 2007, 2008, CerroKai Development * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistribu...
/* Copyright (c) 2014, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaime...
/*---------------------------------------------------------------------------*\ Copyright (C) 2013-2017 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of Caelus. Caelus is free software: you can redistribute it and/or modify it ...
#include <cmath> #include <sstream> #include "Config.h" #include "GameMap.h" #include "GameResult.h" #include "Music.h" using namespace cocos2d; /* helper function, return distance between two dots */ double _distance(const Vec2 &p1, const Vec2 &p2) { return sqrt(pow(p1.x - p2.x, 2.0) + pow(p1.y - p2.y, 2.0)); } ...
/* * Copyright (c) 2011 Intel Corporation * * 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...
/***************************************************************************\ BSPbuild.cpp <NAME> January 29, 1998 This is the tool which reads Multigen FLT files and writes out our proprietary BSP file format. \***************************************************************************/ #include <wi...
#include "hashmapwrapper.h" #include <qdebug.h> #include <QDir> HashMapWrapper::HashMapWrapper(StopWords *stopWords, FileHolder *fileHolder) : stopWords(stopWords), fileHolder(fileHolder) { this->hashMap = new HashMap; } bool isWordHash(QString text) { for (int i=0; i<text.length(); i++) { if (text.at...
#include <iostream> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> //Linux #include <arpa/inet.h> //Linux //#include <winsock2.h> //Windows #include "conexion.h" const int PORT = 5126; int conexion_server::Crear_Servidor(){ char error[200]; char bienvenido[]="Bienvenido al ser...
#include "moviegenerator.h" #include "timage.h" #include "tpalette.h" #include "tvectorimage.h" #include "trasterimage.h" #include "tlevel_io.h" #include "tvectorrenderdata.h" #include "tcolorstyles.h" #include "tofflinegl.h" #include "tsop.h" #include "tcolorfunctions.h" #include "tfilepath_io.h" #include "toutputp...
/* LibreSolar MPPT charge controller firmware * Copyright (c) 2016-2018 <NAME> (www.libre.solar) * * 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/...
#include "InputManager.h" #include <atlbase.h> #include "hnrt/ComException.h" #include "hnrt/String.h" #include "hnrt/StringBuffer.h" #include "hnrt/VirtualKey.h" #include "hnrt/Debug.h" #pragma warning(push) #pragma warning(disable:4192) #import <msxml6.dll> named_guids raw_interfaces_only #pragma warning(po...
#include <pybind11/numpy.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <vector> // ------------- // pure C++ code // ------------- #include "mlir/Dialect/StandardOps/IR/Ops.h" #include "mlir/IR/MLIRContext.h" #include "mlir/IR/BuiltinOps.h" #include "mlir/IR/BuiltinTypes.h" #include "mlir/Pars...
// MIT License // // Copyright (c) 2020 sonson // // 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, merg...
#include "casefactory.h" CaseFactory::CaseFactory(BoardDescription board) : board(board) { // Calculate the maximum dimensions in z direction // TODO: Can we do this nicer with some code extraction? boardBottomInnerHeight = 0.0; for (auto area : board.bottomForbiddenAreas) { boardBottom...
#include"card.h" using namespace std; card deck[52]; int card_index; int number_of_player; holder *player[10]; void card_init() { srand(time(0)); card_index = 0; number_of_player = 0; bool fill[52] = {false}; for(int i = 1; i <= 52; ++i) { while(1) { int index = rand() % 52; ...
#include "aes-256-gcm.h" #include <openssl/conf.h> #include <openssl/evp.h> #include <openssl/err.h> #include "../../core/config.h" #include "../exception.h" #include "../../core/exception.h" Cout::Encryption::Algorithm::AES256gcm::AES256gcm() : _tag(nullptr), _tag_length(16), _aad(nullptr), _aad_length(0), _iv(n...
#include "ns.h" #include "ns_ter.h" #include "ns_ext.h" #include "ns_comb.h" #include "ns_cer.h" #include "ns_wer.h" #include "ns_ssk.h" #include <cstdio> #include <cassert> #include <cmath> #include <cstdlib> #include <iostream> #include <sstream> #include "config.h" #include "tdict.h" #include "filelib.h" #include...
/*************************************************************************************** *** *** *** Copyright (c) 2019, <NAME>, Inc. *** *** ...
/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2017, <NAME>, all rights reserved. // // ACADEMIC OR NON-PROFIT ORGANIZATION NONCOMMERCIAL RESEARCH USE ONLY // // BY USING OR DOWNLOADING THE SOFTWARE, YOU ARE AGREEING TO THE TERMS OF THIS // LICENSE AGREEMENT. IF YOU DO ...
#include "BarnsleyFern.h" #include <QPainter> #include <QVector> #include <QTransform> #include <QPainterPath> #include <QPainterPath> #include <QDebug> class Transform { public: double a,b,c,d,tx,ty; double prob; Transform(double _a, double _b, double _c, double _d, double _tx, double _ty, double _p) : a(_a),...
// -*- c-basic-offset: 4 -*- /* * runparse.cc -- unparse a tool router * <NAME> * * Copyright (c) 1999-2000 Massachusetts Institute of Technology * Copyright (c) 2000 Mazu Networks, Inc. * Copyright (c) 2001-2003 International Computer Science Institute * Copyright (c) 2009 Meraki, Inc. * * Permission is hereb...
// Copyright 2016-2018 mik14a / Admix Network. All Rights Reserved. #include "MonotoneMesh.h" #include "Vox.h" #include "VoxImportOption.h" /** * Construct mesh generator using referenced voxel */ MonotoneMesh::MonotoneMesh(const FVox* InVox) { Vox = InVox; } /** * CreateRawMesh * Create raw mesh use monotone d...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * ...
#include "rainbow.hh" #include <thread> #include <stddef.h> #include <unistd.h> #include <cstdio> #include <cerrno> #include <cmath> #include <cstdlib> using namespace std; Rainbow& Rainbow::getInstance() { const char* cooperative_string = getenv("cooperative"); bool cooperative; if (cooperative_string != NULL) {...
// Copyright (C) 2017-2019 <NAME> <<EMAIL>> // This file is subject to the license terms in the LICENSE file // found in the top-level directory of this distribution. #include <iostream> #include <unistd.h> #include <cxxopts.hpp> #include <xpcf/xpcf.h> #include "xpcf/threading/BaseTask.h" #include <xpcf/api/ICompone...
#include "stone/Driver/Driver.h" #include "stone/Basic/LLVM.h" #include "stone/Basic/Ret.h" #include "stone/Driver/Job.h" #include "stone/Driver/ToolChain.h" #include "stone/Session/ModeType.h" #include "llvm/Config/llvm-config.h" #include "llvm/Support/FormatVariadic.h" using namespace stone; using namespace stone::f...
#include <cassert> #include <cmath> #include <boost/multiprecision/gmp.hpp> #include <array> #include <algorithm> #include <bitset> #include <numeric> #include <sstream> #include <utility> #include <vector> #include <functional> #include <QtDebug> #include <QTime> #include "lrucache.hpp" using namespace std; using...
//******************************************************************************** // Copyright (c) 2010-2014 Intel Corporation. All rights reserved. ** // ** // Redistribution and use in source and binary forms, with or withou...
#include <ros/ros.h> #include <rosbag/bag.h> #include <rosbag/view.h> #include <iostream> #include <boost/foreach.hpp> #include <boost/program_options.hpp> #include <message_filters/subscriber.h> #include <message_filters/synchronizer.h> #include <message_filters/sync_policies/exact_time.h> #include <message_filters/sy...
#include "FileData.h" #include <fstream> #include <iostream> #include <vector> #include <stdexcept> #include "TypeDefs.h" // this method should ideally be implemented using a proper JSON library, // but for the purpose of demonstrating which infos are needed from // the file header simple string searches should be suf...
#include <map> #include <vector> #include <string> #include <iostream> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <gl_camera.h> #include <gl_shader.h> #include "../include/model.h" #include ".....
#include "resource.h" #include <windows.h> #include <tchar.h> #include <cstdio> #include <cstring> #include <cstdlib> #include <GL/gl.h> #include <GL/glu.h> #include "ugldialog.h" #include "udlgapp.h" #include "uglut.h" #define MAX_VERTICES 2000 // Max number of vertices (for each object) #define MAX_POLYGONS 2000...
#include <cassert> #include <iostream> #include <fstream> #include <boost/program_options.hpp> #include <graphlab.hpp> #include "factor_graph.hpp" #include "factor_bp.hpp" // Command Line Support // ============================================================================> struct options { size_t ncpus; ...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2020-2021 Intel Corporation. All Rights Reserved. #include "Matcher.h" #include "Logger.h" #include "RealSenseID/Faceprints.h" #include <assert.h> #include <cstring> #include <stdexcept> static const int s_minExperienceForStrongThreshold = 0;...
/* * Copyright (c) 2021, edgecraft. 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, c...
// == mojo ==================================================================== // // Copyright (c) <EMAIL>. All rights reserved. // See LICENSE in root folder // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files(the "...
/* * This file is released under the terms of the Artistic License. Please see * the file LICENSE, included in this package, for details. * * Copyright (C) 2006-2007 <NAME> * 2010 <NAME> * * 03 July 2006 */ #include "TradeOrderDB.h" // Call Trade Order Frame 1 void CTradeOrderDB::DoTradeOr...
// Network.cpp // <NAME> (<EMAIL>) // 03/13/2021 #include "stdio.h" #include "Network.h" #include "Transistor.h" #include "InputOutput.h" #include "math.h" namespace CASENA { Network* Network::network = 0; int Network::analysis_type = 0; Network* Network::GetNetwork() { if(network == 0) network = new Network; ...
/* * Copyright (c) 2013 - 2020 Jolla Ltd. * * You may use this file under the terms of the BSD license as follows: * * "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 ret...
/* Copyright 2016-2020 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 or agreed to in w...
/* * The code is a part of our project called VEGITO, which retrofits * high availability mechanism to tame hybrid transaction/analytical * processing. * * Copyright (c) 2021 Shanghai Jiao Tong University. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you ma...
#include "vcinpl.h" #include "can_plugin.hpp" #include <string.h> #include <string> #include <memory> #define RX_FIFO_SIZE 512 #define TX_FIFO_SIZE 128 //----------------------------------------------------------------------------- // Utils //---------------------------------------------------------------------------...
// Copyright 2015 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 in wri...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "pow.h" #include "arith_uint256.h" #include "chain.h" #include "primitives/block....
/* * Copyright 2021 IBM 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 or agreed...
#include <GL/sgl.hpp> #include "hexgamelogic.h" // The game engine that controls the flow of the game and // determines a winner. HexGameLogic engine; const double WINDOW_WIDTH = 800.0; // The scaling factor // (more rows mean smaller cells) const double SCALE = WINDOW_WIDTH / (3.2*ROWS); // The visual representat...
#include "MouseSelector.h" #include <cmath> #include <vector> #include "Bresenham3D.hpp" #include "Section.h" #include "../mesh/StaticMeshFactory.h" #include <iostream> MouseSelector::MouseSelector(EventBus& eventBus, CameraBase& camera, WindowBase& window, VoxelScene& voxelScene): camera(&camera), window(&window)...
/**************************************************************************\ | | Copyright (C) 2009 <NAME> | | This program is free software: you can redistribute it and/or modify | it under the terms of the GNU General Public License as published by | the Free Software Foundation, either version 3 of the L...
#include "theta_driver/theta_driver_nodelet.hpp" #include <pluginlib/class_list_macros.h> PLUGINLIB_EXPORT_CLASS(theta_driver::ThetaDriverNodelet, nodelet::Nodelet); namespace { theta_driver::gst_src gsrc; } namespace theta_driver { gboolean gst_bus_callback(GstBus* bus, GstMessage* message, gpointer data) { GE...
// Copyright © <NAME>. All rights reserved. // Licensed under the MIT license. #include "uniqueID.h" ArduinoUniqueID::ArduinoUniqueID() { #if defined(ARDUINO_ARCH_AVR) for (size_t i = 0; i < UniqueIDsize; i++) { id[i] = boot_signature_byte_get(0x0E + i + (UniqueIDsize == 9 && i > 5 ? 1 : 0)); } #elif define...
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file eggReader.cxx * @autho...
//This file is released under terms of BSD license` //See LICENSE.txt for more information #include <iostream> #include "serializer/FieldsTable.h" #include "serializer/DataFieldInfo.h" #include "libjson.h" #include "gtest/gtest.h" using namespace ser; class FieldsTableUnittest : public ::testing::Test { protected: ...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include "AdvectionPhysics.H" #include "AdvectionPhysicsF_F.H" #include "LoH...
/* -------------------------------------------------------------------------- * * File Ch4_DifferentShapes.cpp * Ported By <NAME> * Contact <EMAIL> * * Created By <NAME> * Contact <EMAIL> * * ------------------------------------------------------...
/* * SystemFunctions.cpp * OpenLieroX * * Created by <NAME> on 01.12.09. * code under LGPL * */ #include <iomanip> #include <time.h> #include <SDL.h> #define Font Font_Xlib // Hack to prevent name clash in precompiled header #include <SDL_syswm.h> #undef Font #include <cstdlib> #include <sstream> #include...
/* * This file is part of the Simutrans project under the Artistic License. * (see LICENSE.txt) */ #include "pedestrian.h" #include "../simdebug.h" #include "../world/simworld.h" #include "../display/simimg.h" #include "../utils/simrandom.h" #include "../ground/grund.h" #include "../dataobj/loadsave.h" #include "...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * ------------...
#include "pet_manager.hpp" #include <iterator> int interface_grafica() { int alternativa = 0; // valor que indica a opção de menu a ser escolhida pelo usuário cout << "******** MENU *********" << endl << endl; cout << "(1) - Cadastrar animal" << endl; cout << "(2) - Remover animal" << endl; cout << "(3) - Altera...
#include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #include <fcntl.h> #include <string.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <sys/socket.h> #include <resolv.h> #include <stdlib.h> #include <netinet/in.h> #include <arpa/inet.h...
/** * Copyright 2017 Food Tiny Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions an...
#include "FreeTypeFont.h" #include <minmax.h> #pragma comment(lib, "lib/freetype2410.lib") CFreeTypeFont::CFreeTypeFont() { m_isLoaded = false; } CFreeTypeFont::~CFreeTypeFont() {} /*----------------------------------------------- Name: createChar Params: iIndex - character index in Unicode. Result: Creates one ...
#include "MLSM.h" MLSM::MLSM() { resolution_ = 0.3; spanX_ = DEFAULTSIZEXMETERS / resolution_; spanY_ = DEFAULTSIZEYMETERS / resolution_; sizeXMeters_ = DEFAULTSIZEXMETERS; sizeYMeters_ = DEFAULTSIZEYMETERS; grid_ = boost::make_shared<QuadGrid>( QuadGrid(spanX_, spanY_, spanX_, ...
/* * Debugger.cpp * * Created on: 6 Aug 2010 * Author: db434 */ #include "Debugger.h" #include "Instrumentation.h" #include "Statistics.h" #include "StringManipulation.h" #include "../Chip.h" #include "../Datatype/DecodedInst.h" #include "../Datatype/Instruction.h" #include "../Tile/Core/Core.h" #include "I...
#include "dht.h" // Various named constants. #define DHTLIB_DHT11_WAKEUP 18 #define DHTLIB_DHT_WAKEUP 1 #define DHTLIB_DHT11_LEADING_ZEROS 1 #define DHTLIB_DHT_LEADING_ZEROS 6 #ifndef F_CPU #define DHTLIB_TIMEOUT 1000 // should be approx. clock/40000 #else #define DHTLIB_TIMEOUT (F_CPU / 40000) #endif #include <Ardu...
#include "CC1101.h" #include "spi.h" CSpi mSpi; CC1101 cc1101; void CC1101::RegConfigSettings(byte f) { SpiWriteReg(CC1101_FSCTRL1, 0x08); SpiWriteReg(CC1101_FSCTRL0, 0x00); switch(f) { case F_868: SpiWriteReg(CC1101_FREQ2, F2_868); SpiWriteReg(CC1101_FREQ1, F1_868); ...
// ----------------------------------------------------------------------------------------------------- // satellite_terminal - Easily spawn and communicate bidirectionally with client processes in separate // terminal emulator instances. // --------------------------------------------------------...
// This file contains the code for emulating the GPU // of the Gameboy // We will eventually use gtkmm to create a // canvas of 160 * 144 on which we'll // draw // Right now have to make do with a 2d array of numbers // this address contains the line being scanned currently const uint16_t linereg = 0xff44; // this ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <algorithm> #include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string/replace.hpp> #include <boos...
/*****************************************************************************/ /* Copyright (c) 2015, <NAME> */ /* All rights reserved. */ /* */ /* Redistrib...
//-------------------------------------------------------------------------------------- // Copyright 2013 Intel Corporation // All Rights Reserved // // Permission is granted to use, copy, distribute and prepare derivative works of this // software for any purpose and without fee, provided, that the above copyright no...
/* * Copyright 2008, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/wait.h> #include <unistd.h> #include <SupportDefs.h> #include <syscalls.h> #include <spinlock_contention.h> #define panic printf ...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "hermes/Support/OSCompat.h" #include "hermes/hermes.h" #include "nodelib/NodeBytecode.h" #include "llvh/Support/CommandLi...
// // Created by <NAME> on 11/2/19. // #include "Mesh.h" #include <iostream> #include <fstream> #include <Eigen/Core> #include <Eigen/Dense> #include <vector> #include "Utils.h" #include <unordered_map> using namespace std; using namespace Eigen; Mesh::Mesh() { } Mesh::Mesh(const MatrixXf& vertices, const MatrixXf...
#include "Game.h" #include "GLTexture.h" #include "ResourceManager.h" #include "GameErrors.h" #include "ExtensionManager.h" #include "InputManager.h" #include <iostream> #include <string> #include <random> Game::Game() : m_width(320), m_height(320) { } Game::Game(int t_width, int t_height) : m_width(t_width), ...
#include <fstream> #include <locale> #include <algorithm> #include <cmath> #include <random> #include "Interpolator.h" #include "matrix.h" #include "solvingmethods.h" Interpolator::Interpolator() { } Interpolator& Interpolator::loadData(std::string dataSetFileName) { std::ifstream input(dataSetFileName, std::ios::i...
/* -*- Mode: c++; -*- */ // copyright (c) 2010 by <NAME> <<EMAIL>> /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the ter...
/** * \file PnlWzskLlvTermArty.cpp * job handler for job PnlWzskLlvTermArty (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 25 Oct 2021 */ // IP header --- ABOVE #ifdef WZSKCMBD #include <Wzskcmbd.h> #else #include <Wzskd.h> #endif #includ...
#include "simpleSidewalk.h" #include "Engine.h" simpleSidewalk::simpleSidewalk() { } simpleSidewalk::~simpleSidewalk() { } void simpleSidewalk::SetID(const TCHAR* id) { EdgeID = FString(id); } void simpleSidewalk::setShapeCoordinates(const std::vector<float>& inputShapeVector) { edgeShapeCoordinates = inputShap...
#include "datasetFactories.h" #include <fstream> #include <sstream> #include <queue> #include <unordered_map> #include <mutex> #include "exceptions.h" #include "math.h" using namespace std; mutex mapMtx; mutex maxMtx; static default_random_engine generator = default_random_engine((unsigned int)time(NULL)); ////////...
#include "Persona.h" #include "Air.h" #include "Fire.h" #include "Water.h" #include "Earth.h" #include "Non.h" #include "Poder.h" #include "Ofensivo.h" #include "Defensa.h" #include "Curativo.h" #include "Invocacion.h" #include <iostream> using std::cout; using std::cin; using std::endl; #include<string> using std::s...
/* -*- c-basic-offset: 4 -*- */ #include "Unit.h" using namespace BOSS; Unit::Unit() : m_id (-1) , m_frameStarted (-1) , m_frameFinished (-1) , m_builderID (-1) , m_type (-1) , m_addon (ActionTypes::N...
// Raster Library // Copyright (C) 2015-2022 <NAME> #include "raster/raster.h" #include "test.h" #include <vector> using namespace raster; template<typename Pixel> void expect_array(image_view& img, const std::vector<typename Pixel::value_type>& values) { auto it = values.begin(), end = values.end(); auto speci...
#include "rtRemoteNameService.h" #include "rtRemoteSocketUtils.h" #include "rtRemoteMessage.h" #include "rtRemoteConfig.h" #include "rtRemoteEnvironment.h" #include <condition_variable> #include <thread> #include <mutex> #include <rtLog.h> #include <errno.h> #include <fcntl.h> #include <string.h> #include <netinet/i...
/* * run.cpp * * Created on: 11-Mar-2016 * Author: enlighter */ #include <iostream> #include <string> #include <regex> #include <fstream> //file handling #include <sstream> //for reading things word by word #include <vector> /* inlude the headers for OpenGL development */ #include <GL/glew.h> #include <GL/f...
#include <iostream> #include <fstream> #include <cstdint> #include <cstdio> #include <cstdlib> #include <cstring> #include "DebugLog.h" #include "Downloader.hpp" static size_t curlWriteCallback( char *buffer, size_t size, size_t nitems, void *userdata ) { DEBUG_LOG( "Write callback." ); return static_cast<Downloade...
/** BSD 3-Clause License Copyright (c) 2018, Khalifa University Robotics Institute Copyright (c) 2018, <NAME> <EMAIL> Copyright (c) 2018, <NAME> <EMAIL> Copyright (c) 2020, <NAME> <EMAIL> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that ...
/* * Copyright (C) 2012-2013 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 b...
/* * APSRack.cpp * * Created on: Jun 13, 2012 * Author: cryan */ #include "APSRack.h" APSRack::APSRack() : numDevices_{0} { } //Initialize the rack by polling for devices and serial numbers int APSRack::init() { //Enumerate the serial numbers of the devices attached enumerate_devices(); return 0; } /...
/* Copyright (C) 2016-2018 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 law or agreed ...
/***************************************************************************************** * * * OpenSpace * * ...
#include <stdio.h> #include <stdlib.h> #include "ap_int.h" #define ARRAY_SIZE 32 int* getLocalLine(volatile ap_uint<512> *mem, int lineNumber){ #pragma HLS inline static int local_int_mem[16]; ap_uint<512> local_line = mem[lineNumber]; for(int i=0; i<16;i++){ #pragma HLS UNROLL COMPLETE unsigned int itemp = lo...
//===--------------- LLJITWithCustomObjectLinkingLayer.cpp ----------------===// // // 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 // //===---------------------------...
/** * @file fly.cpp * @author nickgu * @date 2015/01/13 14:55:16 * @brief * **/ #include <getopt.h> #include "helper.h" #include "cfg.h" #include "fly_core.h" #include "fly_measure.h" #include "all_models.h" void test(IReader_t* treader, FlyModel_t* model, int thread_num, FILE* output_file); void show_hel...