text
stringlengths
3.08k
12.5k
/* C++ code for generating the Campbell-Robson CSF image. This algorhtim generates one image in linear scale with the C(cols,rows) function, and another image in logarithmic scale with the Cl(cols,rowas) function. */ #include "grapher.cpp" #include <iostream> #include <boost/program_options/options_description.hpp> ...
// Copyright (2015) Gustav #include "ride/cargo.h" #include <string> #include <algorithm> #include "cpptoml.h" // NOLINT this is how it should be included ////////////////////////////////////////////////////////////////////////// // cpptoml doesn't support wxString, only std::string template <typename T> std::share...
#include<bits/stdc++.h> using namespace std; #define MAX 256 template<typename T> class Stack{ T arr[MAX]; int top; public: Stack(){ top=-1; } bool push(T key){ top++; if(top<MAX){ arr[top]=key; return true; } cout<<"\nStack Full!"; top--; return false; } T peek(){ if(top==-1) return...
/******************************************************************************/ /* Mednafen, Cheat Formats Decoding */ /******************************************************************************/ /* gb.cpp: ** Copyright (C) 2006-2016 Mednafen Team ** ** This program is fr...
#include <cstdio> #include <cerrno> #include <cstring> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <iostream> #include <map> #include "config.h" using namespace std; namespace httpd_config { string root = "/srv/www/htdocs", base = "/"; string upload = ""; map<string, string> kfile, ...
#include "patWriteKML.h" #include <fstream> #include <sstream> #include "patSample.h" #include "patTripParser.h" #include "patString.h" #include "patType.h" #include "patError.h" #include "patReadSample.h" #include <set> #include "patDisplay.h" #include "patTraveler.h" #include "patPathJ.h" #include "patOdJ.h" #include...
/* * Copyright (C) 2017 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...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * * THE BSD LICENSE * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistribut...
/*********************************************************************************************************************** * * * libscopeprotocols ...
#include <csignal> #include <cstdio> #include <math.h> #include <SickLMS5xx.hh> #include "ros/ros.h" #include "sensor_msgs/LaserScan.h" using namespace SickToolbox; using namespace std; void publish_scan(ros::Publisher *pub, uint32_t *range_values, uint32_t n_range_values, uint32_t *intensity_values...
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 //int A[202][202]; int A[1002][1002]; //int M[1002][1002][12][12]; vector<vector<int > >M[10][10]; int sum[1002][1002]; int result; int p[12]; int lll[1002]; void logarithm() { for(int i=0;i<=1000;i++) lll[i] = (int)log2(i); ...
/** * @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may find a copy of the License in the LICENCE file. * * Unless required by applicable law...
/*-------------------------------------------------------------------------------------- Ethanon Engine (C) Copyright 2008-2013 <NAME> http://ethanonengine.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal...
/** * @file main * */ /********************* * INCLUDES *********************/ #define _DEFAULT_SOURCE /* needed for usleep() */ #include <stdlib.h> #include <unistd.h> #include <memory> #define SDL_MAIN_HANDLED /*To fix SDL's "undefined reference to WinMain" issue*/ #include "lv_drivers/display/monitor.h" ...
/******************************************************************************* * This file is part of the "Data structures and algorithms" course. FMI 2018/19 *******************************************************************************/ /** * @file traversing_adj_matrix.cpp * @author <NAME> * @author <NAM...
/* Copyright 2001, 2019 IBM 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 * following d...
#ifndef CPL_TEMPLATE #define CPL_TEMPLATE /* Simulated annealing example, version 1.0. Solves the TSP problem. */ // Standard library in one include. #include <bits/stdc++.h> using namespace std; // ordered_set library. #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namesp...
#include <vector> #include <cstdio> #include <cstring> #include "MidiIOUtils.h" #include "MidiFile.h" #include "MidiEvent.h" #include "Midi.h" #include "MidiEventFactory.h" /* <Track Chunk> = <chunk type><length><MTrk event>+ <MTrk event> = <delta-time><event> <event> = <MIDI event> | <sysex event> | <meta-event> <MI...
#include "world.h" World* world; World::~World() { for( unsigned int l=0;l<LAYERCOUNT;l++ ) { for( unsigned int i=0;i<entities[l].size();i++ ) { if ( entities[l][i] ) { delete entities[l][i]; } } } } World::World( sf::View v ) { c = sf::Color(255,25...
#include <iostream> #include <string> #include <vector> #include <locale> #include <algorithm> #include <cmath> #include <unordered_map> #include <unordered_set> #include <set> #include <bitset> #include <climits> #include <list> #include <queue> #include <stack> #include <utility> using namespace std; // GRAPH int n...
/****************************************************************************** @File PVRTTexture.cpp @Title PVRTTexture @Version @Copyright Copyright (C) Imagination Technologies Limited. @Platform ANSI compatible @Description Texture loading. ******************...
/* * * Copyright (c) 2014, weizhenwei * 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 condi...
// clang-format off #include <common/Device.hpp> #include <common/Instance.hpp> // for Instance, Instance::ValidationLayers #include <common/QueueFamily.hpp> // for QueueFamilyIndices, QueueFamily, vkl #include <common/SwapChain.hpp> // for SwapChainSupportDetails, SwapChain #include <common/Window.hpp> /...
#include "../../template.hpp" vi NewArr(const vi& arr, const int k) { vi res; const int n = arr.size(); for (int i = 0; i < n; ++i) { if (i != k - 1) { res.push_back(arr[i]); } } return res; } int rec_straight(const vi& arr, const int n, map<vi, int>& tab) { if (arr...
#include <platform.h> #include <log.h> #include "physmap.h" #include "acpi/Parser.h" #include "io/spew.h" #include "irq/Manager.h" #include "timer/Hpet.h" #include "timer/pit.h" #include "timer/Tsc.h" #include <version.h> #include <printf.h> #include <debug/FramebufferConsole.h> #include <sched/Task.h> #include <mem/...
/* Copyright (C) 2022 The Falco Authors. 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 writing, s...
#include <fstream> #include <iostream> #include <string> #include "Common.h" #include "ReturnConstraintsPointer.h" #include "ReturnPropagationPointer.h" #include "llvm/IR/CFG.h" #include "llvm/IR/Constants.h" using namespace llvm; using namespace std; using namespace errspec; #define DEBUG false bool ReturnConstrai...
/* Copyright 2017 <NAME>, German Research Center for Artificial Intelligence (DFKI GmbH), Technical University of Berlin MIT License 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 restri...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <algorithm> #include <cmath> #include <iterator> #include <random> #include <string> #include <vector> #include "helper_functions.h" using std::normal_distribution; using std::string; using std::vec...
// ======================================================================== // // Copyright 2009-2018 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
/* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 <NAME> (Glaurung author) Copyright (C) 2008-2010 <NAME>, <NAME>, <NAME> Stockfish 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 ...
/* pbrt source code Copyright(c) 1998-2010 <NAME> and <NAME>. This file is part of pbrt. pbrt 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, or (at your...
// NOLINT(legal/copyright) // SYMBOL "convexify_strategy_t" typedef enum { CVX_REGULARIZE, CVX_EIGEN_CLIP, CVX_EIGEN_REFLECT } casadi_convexify_strategy_t; // SYMBOL "convexify_type_in_t" typedef enum { CVX_SYMM, CVX_TRIL, CVX_TRIU } casadi_convexify_type_in_t; // SYMBOL "convexify_config" template<typenam...
#include "ImporterMesh.h" #include "ComponentMesh.h" #include "Application.h" #include "FileSystem.h" #include "ModuleRenderer3D.h" #include "ResourceMesh.h" #include "Assimp/include/scene.h" #include "OpenGL.h" #include "Math.h" #include "mmgr/mmgr.h" ImporterMesh::ImporterMesh() { } ImporterMesh::~ImporterMesh(...
#include "helper.hpp" using namespace vcl; void initialize_density_color(grid_2D<vec3>& density, size_t N) { density.resize(N,N); density.fill({1,1,1}); for(size_t kx=N/6; kx<N/2; ++kx) for(size_t ky=N/6; ky<5*N/6; ++ky) density(kx,ky) = {1,0,0}; for(size_t kx=N/2; kx<5*N/6; ++kx) ...
#include "GateMul2.h" #include "CircuitMatrixMultiply.h" #include "Field.h" #include "GateAddN.h" // Generates a standard circuit for matrix multiplication // c_{ij} = \sum_{k=1..N} a_ik * b_kj CircuitMatrixMultiply::CircuitMatrixMultiply(Field* field, const int dimension) : Circuit(field) { this->dimensi...
/* * FILE: Equation-727.cpp * * @author: Md. <NAME> <arafathasanjenin[at]gmail[dot]com> * * LINK: * * DATE CREATED: 12-05-17 14:05:23 (+06) * LAST MODIFIED: 19-05-17 15:07:10 (+06) * * DESCRIPTION: * * DEVELOPMENT HISTORY: * Date Version Description * ------------------------------------------...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* HttpServer.cpp :+: :+: :+: ...
// Copyright 2021 University of Adelaide // // 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 agr...
#include "cwnd_cr_engine.h" #include <iostream> CwndCREngine::CwndCREngine(uint32_t flow_cnt){ this->flow_cnt = flow_cnt; none_elem = FLOW_ID_NONE; tx_fifo = new Fifo2W(flow_cnt, &none_elem); queue_w_data_0 = new uint32_t(FLOW_ID_NONE); queue_w_data_1 = new uint32_t(FLOW_ID_NONE); for (uint32_t i = 0;...
#include <CGAL/Simple_cartesian.h> #include <CGAL/Eigen_solver_traits.h> #include <CGAL/Eigen_matrix.h> #include <CGAL/Surface_mesh.h> #include <CGAL/Weights.h> // Typedefs. using Kernel = CGAL::Simple_cartesian<double>; using FT = typename Kernel::FT; using Point_3 = typename Kernel::Point_3; using Solver_trai...
#include <iostream> #include <string> #include <fstream> // IO to files #include <iomanip> using namespace std; const int MAX = 30; // array length //struct declaration struct Student { string FirstName; string LastName; int ID; double GPA; //constructors // Constructors construct an object (of student type) //...
#include "mtsfinder.h" #include <QtMath> #include <QDebug> #include <QElapsedTimer> namespace { // далее идёт код алгоритма Крускала // источник: https://www.geeksforgeeks.org/kruskals-minimum-spanning-tree-using-stl-in-c/ // были произведены небольшие правки алгорита из источника, чтобы убрать утечки памяти // вр...
// RUN: %dexter int foo = 0; int randomglobal = 0; bool bar = true; int baz(int *ptr) { int qux = 0, quux = 0, corge; volatile int zero = 0; volatile int four = 4; volatile int five = 5; corge = zero; // DexWatch('ptr', '*ptr', 'foo', 'corge', 'qux', 'quux') if (bar) { // DexWatch('ptr', '*ptr...
#include <cstdio> #include <algorithm> #include <utility> #include <vector> #include <memory> #include <queue> #include <array> template <typename Tp, size_t B = 3> class fully_persistent_vector { public: using size_type = size_t; using value_type = Tp; private: constexpr static size_type S_log_branch = B; co...
/*! This example demonstrates the technique used to extend the point * kernel-object. */ #include <CGAL/Cartesian.h> #include <CGAL/Exact_rational.h> #include <CGAL/Arr_non_caching_segment_traits_2.h> #include <CGAL/Arrangement_2.h> #include <iostream> #include <iterator> #include <algorithm> // Kernel is the new ke...
#include <Arduino.h> #include <AALeC.h> #include <NeoPixelBus.h> #include <SimpleDHT.h> #include "SSD1306.h" c_AALeC aalec; void AALeC_ISR_DREH() { static int16_t val, z, n; const static int8_t delta[4][4] = { {0, 1, 2, 0}, {0, 1, 0, 3}, {0, 0, 2, 3}, {0, 1, 2, 3} }, lambda[4][4] = { { 0...
#include "LWEUI/LWEUIComponent.h" #include <LWCore/LWVector.h> #include <LWCore/LWTimer.h> #include <algorithm> #include <iostream> LWEUIComponent *LWEUIComponent::XMLParse(LWEXMLNode *Node, LWEXML *XML, LWEUIManager *Manager, LWEXMLNode *Style, const char *ActiveComponentName, LWEXMLNode *ActiveComponent, LWEXM...
// Copyright 2017 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 "ash/public/cpp/accelerators.h" #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/tabs/tab_strip_model.h" #include "chrome/commo...
/* MIT License Copyright (c) 2008-2019 Netive Media Group & <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, modif...
#include <gtest/gtest.h> #include <FL/Grammar.hpp> #include <vector> #include <tuple> #include <limits> using namespace FL; struct GrammarPrivate: public Grammar { using Grammar::Grammar; using Grammar::addNewTerminal; using Grammar::addNewNonterminal; }; TEST(Grammar, CreationAndCorrectness) { std:...
/********************************************************************* * * * This file is posted by Dr. <NAME> (<EMAIL>) * * as a result of work performed in the research group of Professor * * <NAME> (<EMAIL>) at the University of British * * Colu...
#include "../Infiltration.h" #include "Simulator/SimulatorBase/Rotation.h" #include <Simulator/SimulatorBase/Ability.h> #include <Simulator/SimulatorBase/Target.h> #include <gtest/gtest.h> using namespace Simulator; namespace { struct TestData { TargetPtr source; TargetPtr target; std::shared_ptr<Infiltrat...
#include "AGELight.h" #include "Engine/Graphics/Objects/AGLight.h" #include "Engine/Graphics/Objects/Shapes/AGBoxShape.h" #include "Engine/Graphics/Objects/Shapes/AGConeShape.h" #include "Engine/Graphics/Objects/Shapes/AGLine.h" #include "Engine/Graphics/Objects/Shapes/AGCylinderShape.h" #include "Engine/Graphics/Obj...
#include "ConvexPolygonVsConvexPolygon.h" #include <cassert> #include "BoxCollider.h" #include "Manifold.h" #include "RigidbodyComponent.h" bool BiasGreaterThan(float a, float b) { const float k_biasRelative = 0.95f; const float k_biasAbsolute = 0.01f; return a >= b * k_biasRelative + a * k_biasAbsolute;...
#include <ros/ros.h> #include <cdpr/cdpr.h> #include <log2plot/logger.h> #include <chrono> #include <cdpr_controllers/butterworth.h> #include <cdpr_controllers/tda.h> using namespace std; /* * Basic PID controller to show input/output of the CDPR class * * Does not consider dynamics except for gravity * Actual T...
#include "ExtendAudioFrameObserver.h" #include <stdio.h> CMeidaPlayerAudioFrameObserver::CMeidaPlayerAudioFrameObserver():agoraAudioBuf(new AudioCircularBuffer<char>(2048,true)), play_back_audio_circular_buffer_(new AudioCircularBuffer<char>(2048, true)) { } CMeidaPlayerAudioFrameObserver::~CMeidaPlayerAudioFrameObs...
#include "llc_encoding.h" #include "llc_bit_view.h" static constexpr const char base64Symbols[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; ::llc::error_t llc::base64Encode (const ::llc::array_view<const ubyte_t> & inputBytes, ::llc::array_pod<char_t> ...
#include "PrecompiledHeaders.h" #include "StudentListPage.h" #include "Poco/Net/HTTPServerRequest.h" #include "Poco/Net/HTTPServerResponse.h" #include "Poco/Net/HTMLForm.h" #include "CommonUtils.h" #line 11 "D:\\CppDev\\PocoLab\\cppweb\\LightWeightServer\\src\\StudentListPage.cpsp" using Poco::Tuple; using P...
// Copyright 2015 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
/* <base/path.cc> Copyright 2010-2014 OrlyAtomics, 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 applicabl...
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
/** * @file shim.cpp * @author lotuspar * @brief Wrapper to run instances of Minecraft with aarch64 Java from the normal launcher * @date 2021-2022 */ #include <fstream> #include <iostream> #include <string.h> #include <filesystem> #include <sstream> #include <string> #include <vector> enum error_code { RES_...
#include <iostream> #include <chrono> #include <iomanip> #include <stdlib.h> #include <fstream> #include "Classes/SimpleMultiwayDecoder.h" #include "Classes/MultiwayDecoder.h" #include "BRKGA/MTRand.h" #include "BRKGA/BRKGA.h" using namespace std; void decoder_test(string file_name, const vector< double >& chromosom...
#include "stdafx.h" #include "ui/SliderScriptFuncs.h" #include "ui/Slider.h" #include "script/Environment.h" // Helper macros for smaller code #define REGISTER_RDEL(env, name) env->addCRDelegate(#name, makeRDelegate(*this, &SliderScriptFuncs::name)); #define REGISTER_DEL(env, name) env->addCDelegate(#name, makeDelegat...
// 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 "ball_query.h" #include "utils.h" void query_ball_point_kernel_wrapper(int b, int n, int m, float radius, ...
//===--- Swift3Migration.cpp - Swift 3 Migration --------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
/*deepsearch to solve the horse chess problem*/ #include<stdio.h> #include<stdlib.h> #include<time.h> #define ROWS 4 #define COLS 4 int chess[ROWS][COLS]; /*eight directions of x moved*/ const int x_move[] = {-2,-1,1,2,2,1,-1,-2}; /*eight directions of y moved*/ const int y_move[] = {1,2,2,1,-1,-2,-2,-1}; void...
#include "buffer_common.h" #include "enums.h" #include "render_state.h" #include "cvar.h" #include <algorithm> namespace { using namespace std; static bool biggest_off_first(const BufferRange& a, const BufferRange& b){ return a.off > b.off; } static void tidy_buffer(vector<uint8_t>& data, vector<BufferRange>& del_r...
/* * 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 "InternalBindings.h" #include "hermes/hermes.h" #include "uv.h" using namespace facebook; /// Takes a file path and r...
#include "program.hpp" #include "ast/node_utils.hpp" #include "ast/top_lvl_nodes.hpp" #include "emit_asm.hpp" #include "global_map.hpp" #include "jit.hpp" #include "utils/execute.hpp" #include "utils/string_utils.hpp" #include "visitor/codegen.hpp" #include "visitor/printer.hpp" #include "visitor/type_checker.hpp" #i...
#include <iostream> #include <fstream> #include <cstring> #include <vector> #include <string> #include <tuple> #include "math.h" using namespace std; double distance_BetweenP(int f,int s,int f2,int s2){ return sqrt( ( (f2-f)*(f2-f) ) + ( (s2-s)*(s2-s) ) ); } int heuristic(vector<vector<char>> map,int f,int s){...
/*! * @file game_text.cpp * Builds the XCOMMON.TXT text files. Each file contains all the strings that appear in the game * translated into a language. * * The decompiler/data/game_text.cpp file extracts text from the game and creates a file that * can be read with these functions. * * Also builds the XSUBTIT....
/* * ===================================================================================== * * Filename: * * Description: * * Version: 1.0 * Created: Thanks to github you know it * Revision: none * Compiler: g++ * * Author: <NAME> <EMAIL> * * * ====...
#include <libdariadb/storage/bloom_filter.h> #include <libdariadb/storage/chunk.h> #include <libdariadb/storage/cursors.h> #include <libdariadb/utils/crc.h> #include <algorithm> #include <cstring> using namespace dariadb; using namespace dariadb::utils; using namespace dariadb::storage; using namespace dariadb::compr...
#include <chrono> #include <iostream> #include <iterator> #include <optional> #include <string> #include <utility> #include <vector> #include "sha256.h" std::ostream& operator<<(std::ostream& os, const struct Transaction& transaction); struct Transaction { std::string from_address; std::string to_address; int3...
/******************************************************************************* + + LEDA 6.3 + + + geowin_hpinter.c + + + Copyright (c) 1995-2010 + by Algorithmic Solutions Software GmbH + All rights reserved. + *******************************************************************************/ #...
#include "Transformation.h" Transformation::Transformation(Scan& scan) : m_scan(scan) { } Transformation::~Transformation() { } void Transformation::projection(Points_2D& points_2D, double height, double width) { //Translations double translationXYZ = 0; double offsetX = 0; double offsetY = 0; ...
#include "../entetes/parc_old.h" #include <cstdlib> #include <ctime> using namespace std; void Parc::supprimerUnEnclos(Enclos * ptrEnclos) { if(iNbAnimaux != 0) { cout << "Attention, l'enclos n'est pas vide, veuillez déplacer ou relâcher les animaux." << endl; cout << "Il y en a " << getIDAnimaux() << "." << ...
#include "CartridgeReader.h" #include "Logger.h" #include <iomanip> #include <iostream> #include <cstring> #include "string_formatting.h" //#define CARTRIDGE_READER_NO_COPY_CHECK CartridgeReader::CartridgeReader(const std::string &filename) : m_filename{filename} { m_romFile.open(m_filename, std::ios::binary)...
#include "TrackedCoord.h" TrackedCoord::TrackedCoord(Vector<Vector2d*> Bind, int Size, HWND Parent, COLORREF Border, COLORREF Bk, HINSTANCE ins) { if (!_ThisAtom) InitBase(ins); if (Bind.Size == 0) return; Modify = Bind; _Track = false; this->Border = Border; this->Bk = Bk; Vector2d* Tar = Modify[0]; fo...
#include "GraphicBuffer.h" #include <string> #include <cstdlib> #include <iostream> using std::string; const int GRAPHICBUFFER_SIZE = 1024; template<typename Func> bool setFuncPtr (Func*& funcPtr, const DynamicLibrary& lib, const string& symname) { bool isSupport = lib.isSupport; if (isSupport) { funcPtr = rein...
#include <algorithm> #include <limits> #include <new> #include "Sorter.h" #include "core/MemoryAllocationContext.h" #include "core/MemoryUtils.h" #include "core/RawBuffer.h" #include "mapreduce/common/buffers/KVPairBuffer.h" #include "mapreduce/common/sorting/SortStrategyFactory.h" Sorter::Sorter( uint64_t id, cons...
#include <boost/filesystem.hpp> #include <boost/regex.hpp> #include <iostream> #include <fstream> #include <string> #include <cstdlib> #include <utility> #include <thread> #include <future> #include <chrono> #include <fsystem/execute_file.hpp> #include <utility/logged_val.hpp> using namespace std; int isCompiled(str...
// #define NDEBUG #include <cassert> #include <cctype> #include <cstdio> #include <cstring> #include <algorithm> #include <queue> using namespace std; #define NMAX 500 #define PINCH (NMAX + 10) #define INFTY 0x3f3f3f3f #define UP 0 #define DOWN 1 #define LEFT 2 #define RIGHT 3 #define CW 0 #define CCW 1 constexpr...
#include "common.h" /* * Light rain //小雨 * */ const char* ssid = WIFI_SSID; //wifi 账号 const char* password = WIFI_PASSWORD; //wifi 密码 const char* host = "api.seniverse.com"; //将要连接的服务器地址 const int httpPort = 80; //将要连接的服务器端口 // 心知天气HTTP请求所需信息 String privateKey = PRIVATE_KEY; //填写心...
/** * func_memory.cpp - the module implementing the concept of * programer-visible memory space accesing via memory address. * @author <NAME> <<EMAIL>> * Copyright 2012 uArchSim iLab project */ // Generic C // Generic C++ // uArchSim modules #include <func_memory.h> #include <bitset> #include <string.h> using ...
/* CirKit: A circuit toolkit * Copyright (C) 2009-2015 University of Bremen * Copyright (C) 2015-2017 EPFL * * 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, in...
#include <dirent.h> #include <unistd.h> #include <string> #include <vector> #include "linux_parser.h" #include "format.h" using std::stof; using std::string; using std::to_string; using std::vector; using std::stoi; string LinuxParser::OperatingSystem() { string line; string key; string value; std::ifstream ...
// ***************************************************************************** // // Copyright (c) 2008, Pleora Technologies Inc., All rights reserved. // // ***************************************************************************** // // To receive images using PvPipeline // #include <PvSampleUtils.h> #incl...
/* ** Copyright (C) 2000-2010 <NAME> <<EMAIL>> ** ** 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 2 of the License, or ** (at your option) any later version. ** ** This program...
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
#include <exception> #include <iomanip> #include <iostream> #include <utility> #include "global.h" #include "fileRead.h" #include "lapTimes.h" #include "vectorHelpers.h" #include "latLongHelpers.h" using namespace std; using namespace gwDainese; void parseArgs(int, char*[]); void populateConfig(const string cfgFile)...
#include "itkOrientImageFilter.h" #include "itkImage.h" #include "itkImageFileReader.h" #include "itkImageFileWriter.h" #include "itkImageIOBase.h" #include <string> #include "tkdCmdParser.h" template< class TPixel, unsigned int VDimension > int OrientImage( const std::string& inputFileName, const std::string& out...
/* * File: lineTokenizer.cpp * Author: <NAME> */ #include "lineTokenizer.h" #include <iostream> //Generate the Regular Expression string based on the log_line_prefix. //Later use the same to generate the regex object void lineTokenizer::genExprStr(const string & lineFormat_in) noexcept { exprStr = lineForma...
#include "preproc.hpp" #include "icemet/math.hpp" #include "icemet/util/time.hpp" #include <opencv2/imgproc.hpp> #include <exception> Preproc::Preproc(ICEMETServerContext* ctx) : Worker(COLOR_BRIGHT_GREEN "PREPROC" COLOR_RESET, ctx), m_skip(0) { if (m_cfg->bgsub.stackLen > 0) { m_stack = cv::makePtr<BGSubStack...
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "/debug.h" #else #define db(...) #endif #define all(v) v.begin(), v.end() #define pb push_back using ll = long long; const int NAX = 2e5 + 5, MOD = 1000000007; #define int ll const int p1 = 29, p2 = 34483; const int p = p1 * p2; // int ncr_p1[NAX]...
#include <algorithm> #include "chapter.h" #include "blotch_generator.h" #include "utils.h" using namespace std; /* ---------------------------------------------------------------------------- * Constructs a blotch generator. */ Blotch_Generator::Blotch_Generator() : team(0), min_blotch_size(0), max_blo...
/* ************************************************************************ * Copyright 2015 Advanced Micro Devices, 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...
#include "LuaDropScript.h" #include <boost/foreach.hpp> boost::unordered_map<LuaDropScript::ACTION, std::string> LuaDropScript::actionToStr = boost::assign::map_list_of (LuaDropScript::ACTION_INVALID , "ACTION_INVALID") (LuaDropScript::ACTION_OUTPUT , "ACTION_OUTPUT") (LuaDropScript::ACTI...