text
stringlengths
3.08k
22k
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -*- Mode: C++ -*- // // Copyright (C) 2013-2020 Red Hat, Inc. #include <sys/types.h> #include <sys/stat.h>// The two above is for 'stat' #include <cstring> // for 'strcmp' #include <cstdlib> // for 'system' #include <iostream> #include <fstream> #include <l...
/* * The information in this file is * Copyright(c) 2010 <NAME> * and is subject to the terms and conditions of the * GNU Lesser General Public License Version 2.1 * The license text is available from * http://www.gnu.org/licenses/lgpl.html */ #include "AnnotationElement.h" #include "AoiElement.h" #include "...
#include <iostream> #include <cmath> #include <GL/gl.h> #include <GL/glu.h> #include <SDL2/SDL.h> #include "common.hpp" #include "coord.hpp" #include "coord.hpp" #include "qtree.hpp" #include "game.hpp" #include "generator.hpp" #include "ui.hpp" #include "cube.hpp" #include "resource.hpp" #include "physics.hpp" SDL_...
#include <iostream> #include <chrono> #include <SFML/Audio.hpp> #include "Types.h" #include "GameBoy.h" #include "CustomAudioStream.h" #include "Roms.h" #include "GameWindow.h" #include "TileViewer.h" #include "TileMapViewer.h" #include "SpritesViewer.h" #include "SoundViewer.h" #include "StateViewer.h" #include "Pal...
#include <mpi.h> #include <sys/stat.h> #include <math.h> #include <string> #include <bits/stdc++.h> using namespace std; #define MEMORY 1083741824 size_t lastPos = 0; long long int buff_size; struct pairs{ int count; char character; }; char* readFile(FILE* file, size_t fileSize) { long long reads...
#include "gboard.h" #include <thread> #include <chrono> #define _USE_MATH_DEFINES #include <math.h> #include <GL/glut.h> #include "game.h" #include "board.h" using namespace std::chrono_literals; void GBoard::plot() { /* Board */ auto m_board = m_game->getBoard(); const int dim = m_board->getDimension(); con...
/* // Copyright (c) 2015 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...
#include "frame.h" //============================================================================== // Constructors //============================================================================== Frame::Frame(const cv::Mat& img, const std::vector<cv::Point2f>& centers, const std::vector<float>& radius, ...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
// Standard libraries #include "headers.hpp" // My libraries #ifndef INCLUDE_MESH #include "mesh.hpp" #define INCLUDE_MESH #endif #ifndef INCLUDE_UTIL #include "util.hpp" #define INCLUDE_UTIL #endif Mesh::Mesh(const double &_depth, const std::vector<unsigned int> &_N, const std::vector<Material> &materials, const...
#include <iostream> #include <fstream> #include <limits.h> #include <unistd.h> #include "Core-pch.hpp" #include "Audio.hpp" #include "SceneManager.hpp" #include "NewGameScene.hpp" #include "LoadGameScene.hpp" #include "RenderScene.hpp" #include "SettingsScene.hpp" #include "MultiplayerScene.hpp" #include "MakeRoomSce...
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "SlatePrivatePCH.h" void SSlider::Construct( const SSlider::FArguments& InDeclaration ) { check(InDeclaration._Style); Style = InDeclaration._Style; IndentHandle = InDeclaration._IndentHandle; LockedAttribute = InDeclaration._Locked; Orienta...
/// /// @file pi_deleglise_rivat1.cpp /// @brief Simple demonstration implementation of the Deleglise-Rivat /// prime counting algorithm. The Deleglise-Rivat algorithm is /// an improvement over the Lagarias-Miller-Odlyzko algorithm, /// in the Deleglise-Rivat algorithm the special leaves /// ...
#include "core/core.hpp" #include "core/debug/print.hpp" #include "gl/shader.hpp" #include "gl/shader_compiler.hpp" #include "gl/object.hpp" #include "gl/buffer.hpp" #include "gl/frame.hpp" #include "gl/modules/ubo.hpp" #include "gl/texture.hpp" #include "render/pipeline.hpp" #include "GLFW/glfw3.h" const char *vtx_sh...
/* This file is part of PyMesh. Copyright (c) 2015 by <NAME> */ #include <cmath> #include <Core/Exception.h> #include "LoopSubdivision.h" using namespace PyMesh; void LoopSubdivision::subdivide( MatrixFr vertices, MatrixIr faces, size_t num_iterations) { if (faces.cols() != 3) { throw NotImplement...
// // OpenCLPluginModule.cpp // MNNCodegen // // Created by MNN on 2020/12/29. // Copyright © 2018, Alibaba Group Holding Limited // #include <string> #include <vector> #include <fstream> #include <sstream> #include <unordered_map> #include "core/TensorUtils.hpp" #include "MNN_generated.h" #include "PluginModule.h...
#include "pch.h" #include "DSSSpecifiedGridInfo.h" #include <string> #include <iostream> #include "DSSSpecifiedGridInfoFlat.h" extern "C" { #include "heclib.h" #include "zStructSpatialGrid.h" } DSSSpecifiedGridInfo::DSSSpecifiedGridInfo() :DSSGridInfo(DATA_TYPE_SGT) { _infoSize = 160; _gridInfoSize = 124; _ver...
#include "PhysicsSystem.hpp" #include "../LoadEvents.hpp" #include "Collision/Collider.hpp" #include "Collision/CollisionDetector.hpp" PhysicsSystem::PhysicsSystem() : mContactResolver(1000, 1000) { } PhysicsSystem::~PhysicsSystem() { } void PhysicsSystem::start() { auto &em = fr::EventManager::Instance(); ...
#include "Atom.hpp" Atom::Atom() : m_number(-1), m_position(0.0, 0.0, 0.0), m_occupancy(1.0) { } Atom::Atom(int n, double x, double y, double z, double occupancy) : m_number(n), m_position(x, y, z), m_occupancy(occupancy) { } void Atom::SetPos(Vector3 v) { m_position = v; } Vector3 Atom::GetPos() const { re...
#include<stdio.h> #include<stdlib.h> #include<conio.h> #include<bits/stdc++.h> using namespace std; class InterTree; class InterNode{ private: int data; // same as start i.e the key of node that facilitates search int end; int maxVal; InterNode *L; InterNode *R; InterNode(int a, int b, int c, I...
// // $Id: BuildNavMethod.cpp,v 1.17 2005/11/30 23:07:02 clamatius Exp $ // Copyright (c) 2003, WhichBot 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...
#include <chrono> #include <cstdint> #include <exception> #include <fstream> #include <iomanip> #include <iostream> #include <stdexcept> #include <string> #include <vector> #include <glog/logging.h> #include <tudocomp/Compressor.hpp> #include <tudocomp/io.hpp> #include <tudocomp/io/IOUtil.hpp> #include <tudocomp/vers...
// // Created by <NAME> on 04.12.19. // /* Copyright (c) 2019 <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, mod...
/* The MIT License Copyright (c) 2013 <NAME> <<EMAIL>> 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, mo...
// C++ program to print all valid words that // are possible using character of array #include <iostream> #include <iomanip> #include <numeric> #include <cstring> #include <tuple> #include <memory> #include <set> #include <vector> #include <unordered_set> #include <unordered_map> #include <fstream> #include <algorithm...
#include "Geo_Proc.hpp" #include "add_ons.h" #include "basic.h" Geo_Proc::Geo_Proc(int f_len) : ball_rad(33), table_depth(-40), edge_thickness(52), B_W(1224), B_H(2448), e_num(0), cum(0) { // 입력 영상의 픽셀을 고려해야함. double * intrinsic_para; double f = f_len; double cx = 240; double cy = 360; if(dev...
#include "Planet.h" #include "Map.h" #include "Log.h" #include <algorithm> #include <boost/foreach.hpp> #define foreach BOOST_FOREACH Planet::Planet( int planet_id, Player owner, int num_ships): id(planet_id), owner_(owner), num_ships_(num_ships), locked_ships_(0), growth_rate_(Map::GrowthRate(id...
#include <QObject> #include <QDebug> #include <QPoint> #include <QComboBox> #include <QPalette> #include <QPushButton> #include <QLayout> #include <QHBoxLayout> #include <QGridLayout> #include <QWidgetList> #include <coreplugin/coreconstants.h> #include <coreplugin/modemanager.h> #include "ausgabetextedit.h" #include...
/* * * Copyright (c) 2006 The Apache Software 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 app...
#include<stdio.h> #include<stdlib.h> #include<time.h> #include <sys/time.h> #include <chrono> using namespace std::chrono; long long int ** create(long long int ,long long int ); long long int ** createZeroMatrix(long long int ); long long int ** strassensMultiplication(long long int **, long long int **,long long in...
#define PCL_NO_PRECOMPILE #include <pcl/point_types.h> #include <pcl/io/pcd_io.h> #include <pcl/console/time.h> #include <pcl/filters/voxel_grid.h> #include <pcl/filters/extract_indices.h> #include <pcl/features/normal_3d.h> #include <pcl/segmentation/conditional_euclidean_clustering.h> #include <pcl/search/impl/kd...
/* Copyright (c) 2020 ANON authors, see AUTHORS file. 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...
// // cvtodbg.cpp // // Takes a PE file and a file containing CV info, and jams the CV info // into the PE file (trashing it). However, The Jammed PE File when // splitsym'ed gives a dbg file, which can be used for debugging. // // #undef UNICODE #include "windows.h" #include "imagehlp.h" #include "stdi...
#include <bench/bench.hpp> #include <sal/lockable.hpp> #include <sal/net/async/completion_queue.hpp> #include <sal/net/async/service.hpp> #include <sal/net/ip/udp.hpp> #include <sal/time.hpp> #include <iomanip> #include <iostream> #include <thread> #include <unordered_map> namespace { using namespace std::chrono; us...
/// MIT License /// /// Copyright (c) 2020 <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, mo...
// Segment.cpp #include "stdafx.h" #include "LightManager.h" #include "WallManager.h" // ----------------------------------------------------------------------------- void CSegmentManager::Textures (CSideKey key, short& nBaseTex, short& nOvlTex) { Side (key)->GetTextures (nBaseTex, nOvlTex); } // ------------------...
#include "RadixSort.hpp" #include "Logging.hpp" #include <ctime> #include <iostream> #include <numeric> #include <sstream> using namespace Physics; #define PROGRAM_RADIXSORT "RadixSort" #define KERNEL_RESET_INDEX "resetIndex" #define KERNEL_HISTOGRAM "histogram" #define KERNEL_MERGE "merge" #define KERNEL_SCAN "sca...
//======================================================================================== // Athena++ astrophysical MHD code // Copyright(C) 2014 <NAME> <<EMAIL>> and other code contributors // Licensed under the 3-clause BSD License, see LICENSE file for details //=====================================================...
/*************************************************************************** Capcom System QSound(tm) ======================== A 16 channel stereo sample player. Register 0 xxbb xx = unknown bb = start high address 1 ssss ssss = sample start address 2 pitch 3 unknown (always 0x8...
#include <pure_pursuit/pure_pursuit.hpp> PurePursuit::PurePursuit(ros::NodeHandle nh) : _nh(nh), _current_vel(0.0), _init_path(false) { ros::NodeHandle _pnh("~"); _pnh.param<std::string>("output_vel", _output_vel, "/cmd_vel"); _pnh.param<std::string>("input_path", _input_path, "/path"); _pnh.param<int>("rate",...
#include <CGAL/Simple_cartesian.h> #include <CGAL/Polyhedron_3.h> #include <CGAL/Surface_mesh.h> #include <CGAL/boost/graph/Seam_mesh.h> #include <CGAL/Surface_mesh_parameterization/IO/File_off.h> #include <CGAL/Surface_mesh_parameterization/parameterize.h> #include <CGAL/Surface_mesh_parameterization/Square_border_pa...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdarg.h> #include "common.h" /* Creates a packet data structure. * Returns NULL if data is not a full packet, or a Packet structure. * next is the offset of the next packet, in case data contains more than one packet. */ Packet * unpackPacket (c...
#include "cell.h" #include "ChiMesh/MeshContinuum/chi_meshcontinuum.h" #include "ChiDataTypes/byte_array.h" #include "chi_log.h" #include "chi_mpi.h" extern ChiLog& chi_log; extern ChiMPI& chi_mpi; //################################################################### /**Provides the text name associated with a cell...
/* * toolbar.h * * Created on: Nov 24, 2017 * Author: <NAME> * <NAME> * */ #include"toolbar.h" void clearButtons(){ for(int i = 0; i < 20; i++){ Button temp; buttons[i] = temp; } } void toolbar(){ glColor3f(.3,.35,.4); glBegin(GL_QUADS); glVertex2f(0,768); glVertex2f(1366,768); ...
/* ***** BEGIN LICENSE BLOCK ***** * Version: NPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Netscape Public License * Version 1.1 (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.mozilla.org/NPL/ *...
#include "pch.h" #include "AntiTamper.hpp" #pragma warning(disable: 4996) const PCSTR MY_IP = "127.0.0.1"; // 클라이언트 아이피 const u_short SERVER_PORT = 7777; // 서버 포트 const int BUFFER_SIZE = 50; // send & recv 버퍼 크기 bool RECV_FROM_SERVER = true; // 서버로 응답을 받는 걸 활성화할지 말지 // 서버에 유저 HWID를 보냄 void AntiTamper::SendUserIn...
#include <iostream> #include <fstream> #include <algorithm> #include "WordModelMgr.h" #include "DictionaryTrie.h" #define DICTIONARY_DATA_FILE "data/sowpods.txt" #define TIMING_PENALTY_THRES 300 #define WORD_BREAK_HIGH_THRES 600 #define WORD_BREAK_LOW_THRES 400 #define DECAY_PER_MS (1.0 / 400) using names...
// Copyright (c) 2010-present Bifrost Entertainment AS and <NAME> // Distributed under the MIT License. // (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT) #include "Graphics/ShaderManager.h" #include <memory> #include "Common/Data.h" #include "FileSystem/FileSystem.h" #include "Graphics...
#include <cassert> #include <functional> #include <iostream> #include <limits> #include <string> #include <string_view> #include <vector> #include "../include/nstd/string.hpp" #include "../include/nstd/type.hpp" namespace { void test_between() { assert(nstd::between("abcdef", "ab", "ef") == "cd"); } void test_con...
#include "Wu.h" #include "PolyReader.h" #include "Reduce.h" const string Wu::Description() { return "Wu's method"; } // // Prove geometric theorem using Wu's method // PROVER_STATUS Wu::Prove(vxp &vxps, XPolynomial *xpConclusion, int conjectureIndex, double timeout) { _ProofInitia...
#include <common.h> #include <comparison.h> #include <mvn.h> Eigen::MatrixXd pathsfinder ( double S0 ,double E ,double r ,double sigma ,double T ,int N ,int M ,int rank ) { double dt = T/M; // matrix to store paths Eigen::MatrixXd paths(M+1,N); // // make a generator from N(0,sqrt(T)) time_t cur_...
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2017 IDLab-imec * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is dis...
#include "model/Model.hpp" #include "utils/AminoAcid.hpp" #include <Eigen/Geometry> using namespace std; using namespace mdk; Model::Residue& Model::addResidue(Chain *chain) { auto& res = residues.emplace_back(); res.idx = residues.size()-1; if (chain) { res.chainIdx = chain->idx; if (chain...
/* * Copyright (c) 2016, NVIDIA CORPORATION. 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 co...
// // CFtpHandler.cpp // TSFtpServer // // Created by zhaoxy on 14-5-7. // Copyright (c) 2014年 tsinghua. All rights reserved. // #include "CFtpHandler.h" #include <sstream> #include <fstream> #include <sys/stat.h> #include "define.h" #include <dirent.h> #include <iomanip> //is file a directory bool isDirectory(co...
//=---------------------------------------------------------------------= // // $Id$ $Name$ // // The contents of this file are subject to the AAF SDK Public Source // License Agreement Version 2.0 (the "License"); You may not use this // file except in compliance with the License. The License is available // in AAFSD...
#include <chrono> #include <gmock/gmock.h> #include "reader.hpp" #include "serial_impl.hpp" using namespace clustering; // tests for centroid kernel TEST(kernel, centroid_small) { std::string input = "3 32 -1.29547 8.00796 -7.49481 0.873838 0.59632 -1.51012 2.29091 0.944923 1.97487 -11.8492 0.220984 -3...
// ***************************************************************************** /*! \file src/PDE/MultiMat/Problem/InterfaceAdvection.cpp \copyright 2012-2015 <NAME>, 2016-2018 Los Alamos National Security, LLC., 2019 Triad National Security, LLC. All rights reserved. Se...
#include "gtest/gtest.h" #include <ups/upscaledb.hpp> /* A structure for the "customer" database */ typedef struct { uint32_t id; /* customer id; will be the key of the customer table */ char name[32]; /* customer name */ /* ... additional information could follow here */ } customer_t; /*...
// // Created by <NAME> on 1/25/17. // #include "DeformGUI.h" #include "../ReWeightedARAP.h" #include "../StateManager.h" #include "../util/triangle_utils.h" #include <igl/slim.h> #include <igl/file_dialog_save.h> #include <igl/file_dialog_open.h> #include <igl/unproject_onto_mesh.h> #include <igl/unproject.h> #includ...
// do_flow is triggered by the MQTT flow_go command, which sets f_flowing to true // f_active is initially zero, which initiates various setup activities on first do_flow entry // in general case, do_flow executes a small servo movement on all 3 servos, at a calculated time interval /* Need a diagram to visualize fr...
#include "Map.h" #include <math.h> Map::Map() { } void Map::initializeGraph() { //Remember the purpose of this function is to assign the location of each node on the grid, and set up each nodes neighboors. //Imagine this grid as creating nodes from left to right. //It will assign the x value of nodes until it gets ...
#include <iostream> #include <string> #include <fstream> #ifdef _WIN32 #include <Windows.h> #else #include <unistd.h> #endif int parser(std::string c) { size_t pos = 0; int value = 0; std::string output; size_t len = c.length(); int i; std::string input; for(i = 0; i != len; i++) { if(c[i] == '+') value++; ...
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2013 Pelican Mapping * http://osgearth.org * * osgEarth 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; e...
#include "GLTools.h" #include "GLMatrixStack.h" #include "GLShaderManager.h" #include "GLGeometryTransform.h" #include "GLFrame.h" #include "GLFrustum.h" #include <GLUT/GLUT.h> GLShaderManager shaderManager; //管道,用来管理投影视图矩阵堆栈和模型视图矩阵堆栈的 GLGeometryTransform transformPipeline; //球 GLTriangleBatch sphereBatc...
/******************************************************* * Copyright (c) 2015, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *****************************************************...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAM...
/* * Program: text * Project: reneeverly/trivial-retro-style-editors * License: Apache 2.0 * Author: <NAME> * * Description: * * This is a text editor. */ #include <string> #include "../../include/terminal/terminal.h" #include "../../include/terminal/tui.h" #include "../../include/terminal/keyboard.h" ...
#include <boost/container/flat_set.hpp> #include <list> #include <algorithm> #include <vector> #include <cstdint> #include <queue> #include <chrono> #include <iostream> #include <random> /** * Compare 2 ways to do union of N sets * (a) using min heap of N iterators (one for each set) * (b) do union of 2 sets at a ...
#include <emscripten/bind.h> #include <vector> #include <string> #include "game/square.h" #include "game/board.h" #include "enum.h" #include "version.h" #include "pieceID.h" #include "game/piece.h" #include "game/game.h" #include "engine/engine.h" #include "game/clock.h" using namespace emscripten; Version core_v(){r...
/** * @file acl.cpp * * Copyright (C) Huawei Technologies Co., Ltd. 2019-2020. All Rights Reserved. * * This program 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. */ #include "acl/acl.h" #inclu...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include "TalkBox32.h" #include "calcAutoCoeff32.h" #include "durbin32.h" #include "lpcFilter32.h" #include "log32.h" #define M_PI 3.14159265358979323846 const int32_t k_max = (int32_t) (0.99 * 0x7FFFFFFF); /* a tunable high-pass filter based on a first or...
/* Corto Copyright(C) 2017 - <NAME> ISTI - Italian National Research Council - Visual Computing Lab This program 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 3 of the License, or (at you...
#include <iostream> #include <vector> #include <set> #include <algorithm> // for std::sort #include <string> #define MAX_PASS 10 #define FLOOR_NUM 7 #define ELEVATOR_NUM 2 using namespace std; enum class Direction { IDLE, // 0 DOWN, // 1 UP // 2 }; enum class Place { OUTER, // 0 INNER /...
#include <stdio.h> #include <Application.h> #include <Window.h> #include <View.h> #include <MessageRunner.h> #include <LayoutBuilder.h> #include <Rect.h> #include <OS.h> #include <sys/stat.h> #include <fs_info.h> #include <syscalls.h> #include <vfs_defs.h> #include <private/interface/ColumnListView.h> #include <private...
/****************************************************************************** ** Copyright (C) 2008 by CEA ******************************************************************************* ** ** UNIT ** ** Version: 1.0 ** ** Author: <NAME> ** ** Date: 25/10/08 ** ** File: mrs...
#include "object_perception_node.h" template<typename T> T getParam(ros::NodeHandle& n, const std::string& name, const T& defaultValue) { T v; if (n.getParam(name, v)) { ROS_INFO_STREAM("Found parameter: " << name << ", value: " << v); return v; } ...
#include <ros/ros.h> #include <vector> #include <string> #include <memory> #include <serial/serial.h> #include "monitor/GetSerialDevice.h" #include "peripherals/motor.h" #include "peripherals/motors.h" #include "peripherals/motor_enums.h" #include "peripherals/rpms.h" #include "peripherals/get_motor_enums.h" #define N...
//-------------------------------------------------- // // File: SequenceBasedNJ.cpp // // Author: <NAME> // e-mail: <EMAIL> // // cvs: $Id: SequenceBasedNJ.cpp,v 1.2 2006/04/23 08...
//============================================================================ // Name : asrdemo2.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include ...
// // Created by <NAME> on 25/09/16. // #include "MSTWCompare.hpp" class Coin { private: static std::mt19937 generator; static std::uniform_int_distribution<> coin; public: static int flip() { static bool init = false; if (!init) { coin = std::uniform_int_distribution<>(0, 1...
// Copyright 2021 <NAME> #include <mpi.h> #include "../../../modules/task_1/kitaev_counting_sentences/kitaev_counting_sentences.h" int sequentialCountingSentences(std::string text) { const int Len = text.length(); // Getting the length of the text int Count = 0; // Total number of counted offers for (int i =...
#include <windows.h> #include <iostream> #include <fstream> struct tr_model // 18 bytes { uint32_t ID; // Type Identifier (matched in Entities[]) uint16_t NumMeshes; // Number of meshes in this object uint16_t StartingMesh; // Stating mesh (offset into MeshPointers[]) uint32_t MeshTree; // Offset...
#include "Scene.h" #include <stdlib.h> #include <time.h> #include <fstream> #include <iterator> Scene::Scene(Input* input) : Superscene(input) { // Make a new Railtrack rt = new RailTrack(); // Railtrack uses a integer to determine where you are on the railtrack, // We want to start in the beginning so...
#include "clibretro.h" #include <string> #include <iostream> #include <filesystem> #include "io.h" #include "utils.h" #include <algorithm> #define INI_IMPLEMENTATION #define INI_STRNICMP(s1, s2, cnt) (strcmp(s1, s2)) #include "ini.h" #ifdef _WIN32 #include <windows.h> #endif using namespace std; #ifdef _WIN32 static s...
#include "skel.h" Skel::Skel(const char* filename) { cout << "Load Skel: " << filename << endl; strcpy(m_path, filename); m_file.open(filename, ios::in|ios::binary); //read head memset(&m_head, 0, sizeof(m_head)); m_file.seekg(0); m_file.read((char *)&m_head, sizeof(m_head)); //read info m_file.seekg(m_hea...
//#include <string.h> #include <iostream> #include <cmath> #include "wx/sizer.h" #include "classes.cpp" #include "window.cpp" #include "input.cpp" using namespace std; /* TODO material class fix fresnel add absorbtion spectra linear rgb conversion end step brightness adjustment object inside list tracking & p...
/* Copyright (c) 1999 - 2010, Vodafone Group Services 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: * Redistributions of source code must retain the above copyright notice, this list of condit...
#include <hdbscan/_C_undirected_graph.h> #include <cstdlib> #include <cstdio> UndirectedGraph_C* UDG_Create(size_t num_vertices, size_t* vertices_A, size_t* vertices_B, double* edge_weights, size_t edge_weights_length) { UndirectedGraph_C* udg = (UndirectedGraph_C*)malloc(sizeof(*udg)); udg->num_vertices_ ...
#include "maze.hpp" #include "Compass.hpp" #include "Exit.hpp" #include "Helper.hpp" #include "Teleport.hpp" #include "Ghost.hpp" #if (__cplpusplus <= 201103L) // make_unique defined with C++14, if <= C++11 we have to define it by ourselves template<typename T, typename... Args> std::unique_ptr<T> make_unique(Args&&.....
/*----------------------------------------------------------------------------- * This file is part of the Colony.Core Project. The Colony.Core Project is an * open source project with a BSD type of licensing agreement. See the license * agreement (license.txt) in the top/ directory or on the Internet at * http://int...
#include "Processer.h" #include<QDebug> #include<limits> #include<qmath.h> Processer::Processer() { } Processer::~Processer() { } /** * @brief Processer::initRoute * @param route 高斯类型数据 * @return */ bool Processer::initRoute(QList<QPointF> route){ for(int i=0;i<route.size();i++){ gps_route.push_back(...
/***************************************************************************** * Copyright (C) 2008 <NAME> <<EMAIL>> * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this...
// // SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenEXR Project. // #ifdef NDEBUG # undef NDEBUG #endif #include <ImathMatrix.h> #include <ImathMatrixAlgo.h> #include <algorithm> #include <cassert> #include <cmath> #include <ctime> #include <iostream> #include <limits> #include <math.h...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
// FunctionInfo class is originally from https://www.codeproject.com/articles/17275/really-easy-logging-using-il-rewriting-and-the-net // modified by https://github.com/math314/ #define _CRT_SECURE_NO_WARNINGS #include "FunctionInfo.h" #include "ComUtil.h" #include "Debugger.h" #include <wrl/client.h> using Microsof...
#include <vector> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include "BouncingVerticesSettings.h" #include "CalculateMovingPermit.h" #include "cgal_helper.h" #include "random.h" using cgal = CGAL::Exact_predicates_inexact_constructions_kernel; using Segments = std::vector<cgal::Segment_2>; usi...
#include "anglesolver.h" //AngleSolverParam::AngleSolverParam() //{ //} //void AngleSolverParam::read_XMLFile(void) //{ // FileStorage fsRead("../config/camera.xml", FileStorage::READ); // if(!fsRead.isOpened()) // { // cout << "failed to open xml" << endl; // return; // } // fsRead["...
/******************************************************************************* * include/huffman/huff_codes.hpp * * Copyright (C) 2017 <NAME> <<EMAIL>> * Copyright (C) 2018 <NAME> <<EMAIL>> * * All rights reserved. Published under the BSD-2 license in the LICENSE file. *****************************************...
// variable.cpp // Copyright (c) 2014 - 2017, zhiayang // Licensed under the Apache License Version 2.0. #include "defs.h" #include "pts.h" #include "ast.h" #include "errors.h" #include "sst.h" #include "typecheck.h" #include "resolver.h" #include "polymorph.h" #include "ir/type.h" #include "memorypool.h" static...