text
stringlengths
3.08k
22k
#include "Draw3D.h" void Draw3D::Init(int32_t iHeight, int32_t iWidth) { nScreenHeight = iHeight; nScreenWidth = iWidth; zBuffer.assign(iHeight * iWidth, 0.0f); } void Draw3D::Update() { zBuffer.assign(nScreenHeight * nScreenWidth, 0.0f); } // Using the implementation of Bresenham Algorithm // https...
/** * \file PnlBrlyUsgRec.cpp * job handler for job PnlBrlyUsgRec (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 11 Jan 2021 */ // IP header --- ABOVE #ifdef BRLYCMBD #include <Brlycmbd.h> #else #include <Brlyd.h> #endif #include "PnlBrly...
/* * libjingle * Copyright 2004--2005, Google Inc. * * 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 a...
/** * This file is part of the CernVM File System. */ #include "payload_processor.h" #include <fcntl.h> #include <unistd.h> #include <vector> #include "logging.h" #include "params.h" #include "util/posix.h" #include "util/string.h" namespace { const size_t kConsumerBuffer = 10 * 1024 * 1024; // 10 MB } namesp...
#include "TextToSpeech.h" #include "Log.h" #include "LocaleES.h" #if WIN32 #include "SystemConf.h" #include <sapi.h> #include <sphelper.h> #include <thread> #pragma comment(lib, "sapi.lib") void TextToSpeech::SpeakThread() { if (FAILED(::CoInitializeEx(NULL, COINITBASE_MULTITHREADED))) return; ISpVoice* pVoice ...
#include "thread.hpp" #include "core_state.hpp" #include "constant.hpp" #include "memory/include/vm.hpp" #include "process.hpp" #include "pe64.hpp" #include "dev/include/timer.hpp" #include "lock_guard.hpp" #include "assert.hpp" using namespace UOS; id_gen<dword> thread::new_id; //initial thread thread::thread(init...
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
#include "micro_http.h" #include <sstream> #include <util/thread.h> #include <util/utility.h> #include <util/string_utils.h> using namespace std; using namespace Yb; using namespace Yb::StrUtils; HttpServerBase::HttpServerBase(int port, ILogger *root_logger, const String &content_type, const String &bad_resp)...
#include <ERF.H> #include <NCInterface.H> #include <AMReX_PlotFileUtil.H> using namespace amrex; void ERF::WriteNCCheckpointFile () const { // checkpoint file name, e.g., chk00010 const std::string& checkpointname = amrex::Concatenate(check_file,istep[0],5); amrex::Print() << "Writing NetCDF checkpoint "...
/* * SpawnAreaMap.cpp * * Created on: 12/08/2011 * Author: TheAnswer */ #include "SpawnAreaMap.h" #include "server/zone/Zone.h" #include "server/zone/managers/object/ObjectManager.h" #include "server/zone/objects/area/areashapes/CircularAreaShape.h" #include "server/zone/objects/area/areashapes/RectangularA...
/* * Author: <NAME> (<EMAIL>) */ #ifdef _WIN32 #pragma warning (disable : 4100) /* Disable Unreferenced parameter warning */ #endif #include <memory> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <QtCore/qglobal.h> #include "teamspeak/public_errors.h" #include "teamspe...
#include <zxtest/zxtest.h> #include <vector> #include <lib/kernel-mexec/kernel-mexec.h> #include <fuchsia/device/manager/c/fidl.h> #include <lib/async-loop/cpp/loop.h> #include <lib/async-loop/default.h> #include <zircon/assert.h> #include <lib/fidl-async/bind.h> #include <lib/svc/outgoing.h> #include <lib/zx/vmar.h>...
#include "Components/Transform.h" #include "Log/Log.h" Transform::Transform() { isDirty = true; position = Vector3::zero; rotation = Quaternion::identity; scale = Vector3::one; gameObject = NULL; } Transform::Transform(const Vector3& _position, const Quaternion& _rotation, const Vector3& _scale) :position(_posi...
#ifdef _MSC_VER #define _CRT_SECURE_NO_WARNINGS #endif #ifdef __MINGW32__ #define __USE_MINGW_ANSI_STDIO 1 #endif #include <algorithm> #include <cstdio> #include <iterator> #include <memory> #include <unordered_map> #include <utility> #include <vector> namespace { using std::size_t; class DisjointPlayerSets...
#include <boost/shared_ptr.hpp> #include <lcm/lcm-cpp.hpp> #include <path_util/path_util.h> #include <lcmtypes/bot_core.hpp> #include <bot_param/param_client.h> #include <bot_param/param_util.h> #include <lcmtypes/bot_core/pose_t.hpp> #include <bot_frames_cpp/bot_frames_cpp.hpp> #include <ConciseArgs> /////////////...
#include "AliMuonCompactManuStatus.h" #include "AliAnalysisTriggerScalers.h" #include "AliCDBManager.h" #include "AliMUONCDB.h" #include "AliMUONCalibrationData.h" #include "AliMUONPadStatusMaker.h" #include "AliMUONRecoParam.h" #include "AliMUONRejectList.h" #include "AliMpCDB.h" #include "AliMpConstants.h" #include ...
// $Id$ //**************************************************************************** //* This file is property of and copyright by the ALICE HLT Project * //* ALICE Experiment at CERN, All rights reserved. * //* ...
/* * Copyright 2019 Centreon (https://www.centreon.com/) * * 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 applica...
// 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 <math.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string> #include "ppapi/cpp/graphics_2d.h" #include "ppapi/c...
/* * NDPluginGather.cpp * * A plugin that subscribes to callbacks from multiple ports, not just a single port * Author: <NAME> * * February 27. 2017. */ #include <stdlib.h> #include <stdio.h> #include <epicsTypes.h> #include <epicsMessageQueue.h> #include <epicsThread.h> #include <epicsTime.h> #include <iocsh...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
// Copyright (c) Nuralogix. All rights reserved. Licensed under the MIT license. // See LICENSE.txt in the project root for license information. #include "dfx/api/cli/ConfigCommand.hpp" #include "nlohmann/json.hpp" using nlohmann::json; ConfigViewCommand::ConfigViewCommand(CLI::App* config, std::shared_ptr<Options> ...
/** * File : E.cpp * Author : <NAME> * Created : 2018-3-25 21:58:58 * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn) // substr...
/* * SceneFondMarin.cpp * * Created by Rockford on 19/04/10. * Copyright 2010 Casual Games France. All rights reserved. * */ #include "EScene.h" #include "Scene_Island_Dive.h" #include "ESceneDirector.h" #include "SoundBank.h" #include "MyGame.h" #include <string> #include "EMiniJeuTemplate.h" #include "Globa...
/* * Copyright (C) 2008 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 "ClassControllCamera.h" #include <stdio.h> #include "driver/gpio.h" #include "esp_timer.h" #include "esp_log.h" #include "Helper.h" #include "CFindTemplate.h" // #include "camera_define.h" ///////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////...
#include "TetrahedralBoundary.h" #include "Geometry/GMSPolyhedron.h" #include "Simulator/Conversions.h" #include "Utilities/MPUtils.h" #include "Utilities/PMPLExceptions.h" #include <algorithm> /*------------------------------- Construction -------------------------------*/ TetrahedralBoundary:: TetrahedralBoundar...
/** * @file bat.cpp * @author <NAME> (<EMAIL>) * @brief Battery reading functions * @version 0.1 * @date 2021-04-24 * * @copyright Copyright (c) 2021 * */ #include "main.h" /** Millivolts per LSB 3.0V ADC range and 12-bit ADC resolution = 3000mV/4096 */ #define VBAT_MV_PER_LSB (0.73242188F) /** 1.5M + 1M vo...
//+--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1997 - 2000 // // File: H N C S T R S . C P P // // Contents: Constant string definitions // // Notes: // // Author: jonburs 21 June 2000 // //---...
/* CODE SAMPLE # 008: Social Distancing This code sample allows users to check if the distance between two people is within a limit or not. >>>>>> Compile this code using the following command.... g++ 008_social_distancing.cpp /usr/src/tensorrt/bin/common/logger.o ../lib/libPAL.so ../lib/libPAL_CAMERA...
#include <iostream> #include <fstream> #include <string> #include <memory> #include <chrono> #include "input.hpp" #include "output.hpp" #include <thread> #include <cmath> #include "encoder.hpp" #include "decoder.hpp" #include "progressbar.hpp" #include "tempfilenames.hpp" void printHelp() { std::cout << "tiralabra-co...
#include <cstdint> #include <iostream> #include <fstream> #include <chrono> #include <functional> #include <blaze/Math.h> #include <fast-lopq/model.h> #include <fast-lopq/searcher.h> #include "argsparser.h" struct Searcher final : public lopq::Searcher { Searcher(Cluster& cluster) : cluster(cluster) { } Clust...
/* Adplug - Replayer for many OPL2/OPL3 audio file formats. Copyright (C) 1999 - 2004, 2006 <NAME>, <<EMAIL>>, et al. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version...
/* * Copyright (c) 2020, NVIDIA CORPORATION. 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...
#include "PinTrigger.h" //#define DEBUG //#define WARN #include "Debug.h" #include "utility/sharedutils.h" extern unsigned long timer0_millis; // in interrupts we access this variable directly - this is faster #if defined(DEBUG) || defined(WARN) AsyncDebugBuffer asyncBuf = AsyncDebugBuffer(); #endif PinTrigger::PinT...
#include "Net.h" #include <iostream> #include <cassert> #include <vector> #include<cmath> using namespace std; // Number of training samples to average over. double Net::m_recentAverageSmoothingFactor = 100.0; /* pass the reference topology vector e.g {3,2,1}. */ Net::Net(const vector<unsigned> &topology) { /* T...
#include "QuadGeom.h" #include <iostream> #include <cstddef> #include <vector> using namespace glm; using namespace std; #pragma pack(push, 1) struct PointQuad { //vec3 position; uint8_t x; uint8_t y; uint8_t z; //uint8_t pad0; //PackedColor color; uint8_t r; uint8_t g; uint8_t ...
/* * TLSampleMethodResistive.cpp - Resistive sensing implementation for * TouchLibrary for Arduino Teensy 3.x * * https://github.com/AdmarSchoonen/TLSensor * Copyright (c) 2016 - 2017 <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the f...
// SEST library. // <NAME> -- 2017. #include "SEST.h" #include "Arduino.h" // #include <algorithm> #include <cstdint> #include <math.h> #include <string> const unsigned int MS_WAIT_BEFORE_TIMEOUT = 5000; SEST::SEST(Client& client, const std::string& address, const std::string& write_key) : _client...
/* * Unit tests for XmlRpc++ * * Copyright (C) 2017, Zoox Inc * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ...
/** ****************************************************************************** Copyright 2019, by the California Institute of Technology. ALL RIGHTS RESERVED. United States Government Sponsorship acknowledged. Any commercial use must be negotiated with the Office of Technology Transfer at the California...
#include "LoadUtil.h" #include <iostream> #include <string> #include <string.h> #include <math.h> #include <vector> #include <map> #include <set> #include <fstream> #include <sstream> #include <stdlib.h> #include <vulkan/vulkan.h> #include "FileUtil.h" using namespace std; size_t splitString(const string& strSrc, cons...
#include "opencv2/opencv.hpp" #include "opencv2/features2d/features2d.hpp" #include "opencv2/nonfree/features2d.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/nonfree/nonfree.hpp" #include <fstream> using namespace cv; using namespace std; const double ANGLE_W = .3; const double SIZE_W = .3; const dou...
/* * Author: <NAME> */ #include "Source.h" #include <stdlib.h> // NULL #include <map> #include <set> #include <vector> /* * debug output */ // #define PRINT_PROGRESS /* * stores minMistransported and minWeights * increases computation time of evaluate() */ // #define STORE_INTERMEDIATE_RESULTS Source::Source...
#include <vector> #include "Drone.h" #include <math.h> #include <boost/asio/io_service.hpp> #include <Fullnavdata.h> #include <gnuplot_iostream.h> #include <deque> #include <fstream> #include <iostream> #include <sstream> /* * PRIVATE HEADER */ #define DRONE_IP "192.168.42.1" #define DRONE_MAX_ALT...
/***************************************** TRICK HEADER ******************************************** @copyright Copyright 2019 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. PURPOSE: (Provides the classes for mod...
#include <casacore/casa/Arrays/IPosition.h> #include <casacore/casa/Arrays/Matrix.h> #include <casacore/casa/Containers/Record.h> #include <casacore/casa/Quanta/MVTime.h> #include <casacore/coordinates/Coordinates/Coordinate.h> #include <casacore/coordinates/Coordinates/CoordinateSystem.h> #include <casacore/coordinate...
#include "region.h" #include "common.h" // biases for Nb=5 const std::string classNames20[] = { "aeroplane","bicycle","bird","boat","bottle","bus","car","cat","chair","cow","diningtable","dog","horse","motorbike","person","pottedplant","sheep","sofa","train","tvmonitor"}; // helper functions // sort indexes based ...
#include "SampleCode.h" #include "SkDumpCanvas.h" #include "SkView.h" #include "SkCanvas.h" #include "Sk64.h" #include "SkGradientShader.h" #include "SkGraphics.h" #include "SkImageDecoder.h" #include "SkPath.h" #include "SkPicture.h" #include "SkRandom.h" #include "SkRegion.h" #include "SkShader.h" #include "SkUtils.h...
//------------------------------------------------------------------ // **MEDYAN** - Simulation Package for the Mechanochemical // Dynamics of Active Networks, v4.0 // // Copyright (2015-2018) Papoian Lab, University of Maryland // // ALL RIGHTS RESERVED // // See the MEDYAN web page ...
/* -------------------------------------------------------------------------- * * OpenMM * * -------------------------------------------------------------------------- * * This is part of the OpenMM molecular simulation toolkit originating from * ...
#include "SimuCtrl.hh" #include "SensorsInfo.hh" #include "GaitFeatures.hh" #include "FitnessRun.hh" #include "FitnessQq.hh" #include "StopSimu.hh" #include "SwingStanceAnalysis.hh" #include "user_IO.h" #include "SimuOptions.h" #include "ContactGestion.hh" #include "SimuIndex.hh" #include "user_all_id.h" #include "cma...
#include "vive_bridge/vive_interface.h" // Default functions for logging inline void DefaultDebugMsgCallback(const std::string &msg) { std::cerr << "VR Debug: " << msg << std::endl; } inline void DefaultInfoMsgCallback(const std::string &msg) { std::cerr << "VR Info: " << msg << std::endl; } inline void Defaul...
#include <iostream> #include <fstream> #include <string> #include <vector> #include <cstring> #include <getopt.h> #include <algorithm> #include <set> using namespace std; #include "tree.h" #include "tree_reader.h" #include "sequence.h" #include "seq_reader.h" #include "utils.h" #include "log.h" void print_help() { ...
/* * This file is part of RCBot. * * RCBot by <NAME> adapted from Botman's HPB Bot 2 template. * * RCBot 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 2 of the License, o...
#ifndef CPL_TEMPLATE #define CPL_TEMPLATE /* Normie's Aho-Corasick, version 2.0. This data structure receives a set of strings and builds 2 trees: +) A trie of the strings +) A suffix link tree of the strings The implementation is kept as barebones as possible to promote flexibility. Tested with https://codeforc...
#include "CudaTestKernels.h" #include "CudaTestKernelSources.h" #include "openmm/internal/ContextImpl.h" #include "openmm/cuda/CudaBondedUtilities.h" #include "openmm/cuda/CudaNonbondedUtilities.h" #include "openmm/cuda/CudaForceInfo.h" #include "openmm/cuda/CudaParameterSet.h" #include "CudaKernelSources.h" #include <...
/* $Id: RState.cpp,v 1.1.1.1 2000/03/05 06:22:40 tpv Exp $ Copyright 1996, 1997, 1998 <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: 1. Redistributions of source code must retai...
/** * Created by Daniel. * Contains all the information for * running the internal logic of * the game, such as spawning * enemies and moving all objects. */ #include "World.h" #include "Enemy.h" #include "Player.h" #include "Basic_Enemy.h" #include "Basic_Shooter.h" #include "Repeater.h" #in...
//******************************************************************************** // Copyright (c) 2007-2014 Intel Corporation. All rights reserved. ** // ** // Redistribution and use in source and binary forms, with or without ...
#include <windows.h> #include "GL/freeglut.h" #include <bits/stdc++.h> #include <sstream> #include <fstream> using namespace std; // Globals int index=0,range,s_angle=0,start_x,start_y,mouse_state=-1,spin_state=1; GLfloat LpX=1.0f, LpY=1.0f,T_size=1.0f,x_angle=0.0,y_angle=0.0; //function to spin animation voi...
/*************************************************************** * Name: DirectionControler.cpp * Purpose: PID-Controler and keeping communication * Over I2C with CMPS14 (compass) * Over serial with Arduino for motor control * Author: <NAME> (<EMAIL>) * Created: 2021-01-08 * Cop...
/* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright 2021 XIA LLC, 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/LICE...
#include "SceneImporter.h" #include "Assimp/include/assimp/cimport.h" #include "Assimp/include/assimp/postprocess.h" #include "Assimp/include/assimp/scene.h" #include "Assimp/include/assimp/material.h" #include "Assimp/include/assimp/mesh.h" #include "Application.h" #include "MathGeoLib/include/Math/Quat.h" #include "G...
/* * MIT License * * Copyright (c) 2018 <NAME> * * 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, m...
//don't use this class for demo purposes ~ unstable #include <SDL2/SDL.h> #include <stdio.h> #include <iostream> #include <string> #include <Vect2.h> #include "../MasterHeader.h" using namespace std; //use this function to check if a coordinate is between minCoordinate and maxCoordinate bool isOnLi...
#include "surface_perception/shape_extraction.h" #include <limits.h> #include "Eigen/Eigen" #include "geometry_msgs/Pose.h" #include "geometry_msgs/Vector3.h" #include "pcl/ModelCoefficients.h" #include "pcl/filters/project_inliers.h" #include "pcl/point_cloud.h" #include "pcl/point_types.h" #include "pcl/surface/con...
/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2018, University of Luxembourg * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the f...
#include <iostream> #include <string> #include <fstream> #include <math.h> #include <sstream> #include "H5Cpp.h" using namespace H5; // Constants const H5std_string PRESSURE("pressure"); const H5std_string X_VELO("x_velo"); const H5std_string Y_VELO("y_velo"); const H5std_string Z_VELO("z_velo"); const H5std_string VE...
/* To run, go to the root folder and execute: make partition */ #include <cassert> #include <cstdio> #include <algorithm> #include <functional> #include <vector> #include "random.h" #include "time_it.h" #define BSIZE (1 << 12) #define block_size 64 static long long arr[BSIZE]; int std_partition(long long p) { ...
#include <list> #include <string> #include "expressions.hpp" #include "operations/types.hpp" #include "types.hpp" #include "utils.hpp" using std::list; using std::string; using namespace expr; using namespace interp; Object *op_typep(list<Object *> arg_list, LocalRuntime &r, LexicalScope &s) { Object *obj = arg_...
#include "PathSimulator.hpp" #include <iterator> #include <utility> PathSimulator::SimulationPath::SimulationPath(std::size_t nleaves, PathSimulator::SimulationPath::Components components, const qc::QuantumComputation* qc, bool assumeCorrectOrder): components(std::move(components)), nleaves(nleaves), qc(qc) { ...
#include <pcl/point_types.h> #include <pcl/point_cloud.h> #include <pcl/common/common.h> #include <pcl/common/transforms.h> #include <pcl/visualization/pcl_visualizer.h> #include <pcl/console/parse.h> #include <pcl/console/print.h> #include <pcl/io/pcd_io.h> #include <iostream> #include <flann/flann.h> #include <flann/...
// // HSP3 graphics command // (GUI関連コマンド・関数処理) // onion software/onitama 2004/6 // #include <windows.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <tchar.h> #include <direct.h> #include <shlobj.h> #include <io.h> #include <fcntl.h> #include "../hsp3code.h" #include "../hsp...
#include <stdio.h> #include "gm_backend_gps.h" #include "gm_error.h" #include "gm_code_writer.h" #include "gm_frontend.h" #include "gm_transform_helper.h" #include "gm_traverse.h" #include "gm_argopts.h" #include <set> typedef gm_gps_basic_block gps_bb; //--------------------------------------------------------------...
#include "GCS_UTM.h" void GCS_UTM::updateSlots() { for (auto company : CompanyList) { for (auto const& [key, uav] : company->UAV_MAP) { //Update UAV Data Coord uavGridPos = geoToGrid(Geo( uav->lat, uav->lon), gconf); ...
#pragma once #include "class-menu.h" #include "class-restaurant.h" #include "class-pizza.h" #include <string.h> #include <cstdlib> #include <iostream> #include <fstream> #include "functions.h" using std::string; restaurant::restaurant(){ name = ""; phone = ""; address = ""; week = NULL; employee...
////////////////////////////////////////////////////// // // status.cpp // ////////////////////////////////////////////////////// /* LICENSE: BEGIN =============================================================================== @author <NAME> @email <EMAIL> @source https://github.com/shan-anand @brief HTTP library imp...
/* * World.cpp * Leavs * * Created by <NAME> on 10/27/12. * Copyright 2012 Lumeet. All rights reserved. * */ #include "World.h" #include "Tile.h" #include "LVSEngine.h" #include "TileLevel.h" using namespace ci; void World::setup( Configuration *config, const Vec2i newSize ) { rnd.seed(time(0)); ...
#include "cards.h" #include "log.h" #include <json11.hpp> #include <fstream> using namespace json11; using CardTable = std::vector<Card>; std::map<Action,std::string> CARD_ACTION_DESC; CardTable CARD_TABLE_PROTO; CardTable CARD_TABLE; const Card& Card::Get(CardRef card) { return CARD_TABLE[card]; } std::strin...
#include "minorGems/game/game.h" #include <math.h> #include "ageControl.h" // loudness of music that we're currently playing at static double musicLoudnessLive = 0; static double musicTargetLoudness = 0; extern double musicHeadroom; // set so that a full 0-to-1 loudness transition happens // in 1 second static ...
/*! * @author <NAME> * @date 2019 * @copyright BSD-3-Clause */ #define __CL_ENABLE_EXCEPTIONS #include <CL/cl.hpp> #include <cassert> #include <cstdio> #include <fstream> #include <iostream> #include <random> #include <sstream> #include <stdexcept> #include <vector> #include "sim_conf.hh" #include "matri...
/******************************************************************************* ** ** UNIT ** ** Version: 3.2 ** ** Author: <NAME> ** ** Date: 96/06/13 ** ** File: MR1D_Transf.cc ** ***************************************************************************** ** ** DESCRIPTION 1D wavelet trans...
/*************************************************************************** * Copyright (C) 2003-2007 <NAME> <joachim.eibl at gmx.de> * * * * This program is free software; you can redistribute it and/or modify * * it under the ...
#include "sync.h" #define TRACE 0 #include "trace.h" size_t Sync::idealLoopBlocks(Track *track) { SyncPoint *p; uint8_t ti; uint8_t i = track->index; // count sync points to the track for each other track size_t *counts = new size_t[_trackCount]; for (ti = 0; ti < _trackCount; ti++) counts[ti] = 0; for ...
/*! * @file feature_detector.cpp * @author <NAME> <<EMAIL>> * @version 1.0 * * @section LICENSE * * Copyright (c) 2014 <NAME> http://www.christophpacher.com * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that * the following conditions are met: *...
/* * Project 25 IMBE Encoder/Decoder Fixed-Point implementation * Developed by <NAME> E-mail: <EMAIL> * Version 1.0 (c) Copyright 2009 * * This 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 ve...
#include "XmlFonts.h" #include "GlobalParams.h" #include "UnicodeMap.h" #include <stdio.h> #ifndef _WIN32 #include <unistd.h> #endif struct Fonts{ char *Fontname; char *name; }; const int font_num=13; static Fonts fonts[font_num+1]={ {"Courier", "Courier" }, {"Courier-Bold", ...
#include <stdio.h> #include <math.h> #include "cephes.h" static const double rel_error = 1E-12; double MACHEP = 1.11022302462515654042E-16; // 2**-53 double MAXLOG = 7.09782712893383996732224E2; // log(MAXNUM) double MAXNUM = 1.7976931348623158E308; // 2**1024*(1-MACHEP) double PI = 3.1415926535897932...
// keystream_distribution.cc // // computes an empirical keystream distribution for the RC4 (or other) // keystream generator(s) // compilation: // // g++ -Wall keystream_distribution.cc -O3 -std=c++17 -o keystream_distribution -ltbb // // libtbb is required; on debian/ubuntu, 'apt install libtbb-dev' #include <s...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <shlobj.h> #include "chrome/installer/setup/setup.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/path_se...
#include "graphics/Animation.h" #include <fstream> Animation::Animation(){ currentAnimElemIndex = 0; currentAnimElemTimePassed = 0; animationTime = 0; animationTimePassed = 0; animFrame = 0; } Animation::~Animation(){ } AnimationStateObj* Animation::saveState(){ animObj.animFrame = animFrame; animObj...
#include "Shader.h" Shader::Shader(int name, const std::string &vertexFilename, const std::string &fragmentFilename) : Resource(name) { this->vertexFilename = std::string(vertexFilename); this->fragmentFilename = std::string(fragmentFilename); this->geometryFilename = ""; this->tessCtrlFilename = ...
#include "svg.h" svg::Text::Text(const std::string &text, const Point<double> &p, const Point<double> &d, const svg::Attributes &font, const svg::Attributes &fill) : text_(text), p_(p), d_(d) { name = "text"; attributes.insert(font.begin(), font.end()); attributes.insert(fill...
#include <fstream> #include "json11.hpp" #include "ZipLib/ZipFile.h" #include "utility/lodepng.h" #include "utility/utility.h" #include "blocks/blocks.h" namespace { /* This is a std::map comparison functor that returns * true if two SDL_Colors are similar. By doing this, * similar colors can be grouped together */...
#include <TVector.hpp> #include <iostream> #include <vector> #include <string> #include <map> using namespace std; template <typename T, typename U> bool testValue(T Expected, U Received) { // Check whatever the value are equal bool Test = Expected == Received; // Debug message if (Test) cout << "passed." << e...
/** * @file lleventpoll.cpp * @brief Implementation of the LLEventPoll class. * * $LicenseInfo:firstyear=2006&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GN...
/* -------------------------------------------------------------------------- * * SimTK Simbody: SimTKmath * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating from * ...
// TextObject.cpp: implementation of the CTextObject class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "CD Label.h" #include "TextObject.h" #include <math.h> #include "ProprieteTexte.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #defi...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2013, <NAME>, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...