text
stringlengths
3.08k
12.5k
/**************************************************************************** * * Copyright (c) 2021 PX4 Development Team. 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. Redistri...
#include "max_contact_with_obstacle_playout.hpp" #include "node.hpp" #include "placement.hpp" #include "lower_bound.hpp" #include "globals.hpp" #include <vector> #include <limits> #include <iostream> #include <algorithm> using namespace std; using namespace procon26; MaxContactWithObstaclePlayout::MaxContactWithObst...
#include "clients/debug_lifting.hpp" #include <list> #include "grid/field.hpp" #include "grid/grid.hpp" #include "operator/xblas.hpp" #include "tools/ioh5.hpp" #include "tools/patch.hpp" // class InitialCondition : public SetValue { // protected: // void FillGridBlock(const qid_t* qid, GridBlock* block, Fie...
// // "$Id: keyboard.cxx 5445 2006-09-18 20:28:08Z spitzak $" // // Keyboard/event test program for the Fast Light Tool Kit (FLTK). // // Continuously display FLTK's event state. // // Known bugs: // // X insists on reporting the state *before* the shift key was // pressed, rather than after, on shift key events. I fi...
#include <iostream> #include <cstdio> #include <cmath> #include <algorithm> #include <queue> using namespace std; struct QSS{ int requesttime;//请求时间 int waitflt;//起始楼数 int tegetflt;//目标楼层 int quan = 0;//当前等待顺序,-1代表已上电梯,0代表未发出请求,1代表未上电梯 bool operator < (const QSS &p) const { return this-...
/* * File: main.cpp * Author: mlilback * * Created on February 26, 2015, 2:47 PM */ #include <cstdlib> #include <unistd.h> #include <signal.h> #include "RServer.hpp" #include "tclap/CmdLine.h" #include "common/RC2Utils.hpp" #define BOOST_NO_CXX11_SCOPED_ENUMS #include <boost/filesystem.hpp> using namespace st...
#include <xtd/xtd> using namespace std; using namespace xtd; using namespace xtd::diagnostics; class operations_timer { public: static void display_timer_properties() { // Display the timer frequency and resolution. if (stopwatch::is_high_resolution()) console::write_line("Operations timed using the s...
#include "kmods.h" #include "Socket/SocketServer.h" #include "StructsPUBG.h" #include "FNames.h" using namespace std; SocketServer server; #define maxplayerCount 30 #define maxvehicleCount 20 #define maxitemsCount 20 enum Mode { InitMode = 1, ESPMode = 2, HackMode = 3, StopMode = 4, }; struct Request { int Mo...
//============================================================================= /** * @file Connection_Handler.cpp * * $Id: Connection_Handler.cpp 97075 2013-04-24 15:01:48Z schmidt $ * * This test illustrates how to use the Acceptor role of the * Acceptor-Connector pattern to create multiple threads,...
#include <string> #include <cstring> #include <vector> #include <cstdint> #include <cstdio> #include <cstdlib> #include <getopt.h> #include <unistd.h> #include <libhackrf/hackrf.h> using namespace std; const int SAMPLE_RATE = 2000000; const int SYMBOL_RATE = 2000; static hackrf_device *device = NULL; static volatile...
/* * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
#include <cmath> #include <iomanip> #include <iostream> #include <string> #include "ace/FILE_Connector.h" #include "boost/algorithm/minmax.hpp" #include "boost/algorithm/minmax_element.hpp" #include "IO/FileReaderTask.h" #include "IO/MessageManager.h" #include "Messages/Video.h" #include "Utils/CmdLineArgs.h" #includ...
#include "Slider.h" CSlider::CSlider(int x, int y, int w, int h, float fStepSize, int iOrientation, bool bReverse, float fMin, float fMax, const char* pText) : IControlTooltip(x, y, w, h), m_iOrientation(iOrientation), m_bReverse(bReverse), m_bDrawValue(true), m_fMinValue(fMin), m_fMaxValue(fMax), m_fStepSize(fStep...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/> * * Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/> * * This program is free software; ...
#include <Arduino.h> #include <WiFi.h> #include <esp_now.h> #include <esp_wifi.h> #include <PubSubClient.h> const char* ssid = "YOUR_SSID"; const char* password = "<PASSWORD>"; const char* mqtt_server = "YOUR_BROKER_IP"; // Gateway MAC Address: 7C:DF:A1:55:B6:B2 WiFiClient espClient; PubSubClient client(espClient); ...
/* Copyright (C) 2016 Ion Torrent Systems, Inc. All Rights Reserved */ #include "WellsSpatial.h" #include "RawWells.h" #include "../BaseCaller/WellsNormalization.h" #include "../BaseCaller/BaseCallerParameters.h" #include <iostream> #include <string> using namespace std; OrderedDatasetWriter::OrderedDatasetWriter(){}...
/* * StringConverter.cpp * * Created on: 06.02.2014 * Author: parojtbe */ #include "StringConverter.h" #include <cstdlib> #include <memory> #include <core/Node.h> #include <OgreStringConverter.h> using namespace std; namespace { // templated declaration template <typename T> struct components { }; // c...
// Copyright 2015 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
#include <uWS/uWS.h> #include <iostream> #include <vector> #include "json.hpp" #include "PID.h" #include "twiddle.h" #include <math.h> // for convenience using json = nlohmann::json; // For converting back and forth between radians and degrees. constexpr double pi() { return M_PI; } double deg2rad(double x) { return ...
/* -------------------------------------------------------------------------- * * File T18_SplitScreen.cpp * Author <NAME> * * -------------------------------------------------------------------------- * * Copyright (C) 2010-2012 XMSoft. All rights reserved. * * ...
#include <v8.h> #include <string> #ifdef FASTCGI # include <fcgi_stdio.h> #endif #include "macros.h" #include "common.h" #include "app.h" #include "system.h" #include "path.h" #include <sys/time.h> #ifndef HAVE_SLEEP # include <windows.h> # define sleep(num) { Sleep(num * 1000); } # define usleep(num) { Sleep(num /...
/* * The MIT License (MIT) * * 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,...
// // Parser.cc // Copyright (C) 2021 <NAME> // #include "Parser.hh" #include "Keywords.hh" #include "Tokenizer.hh" #include "Print.hh" #include <fstream> #include <sstream> #include <memory> #include <cctype> namespace { struct ParseError { std::string msg; int file_id; int line; int column; }; }...
// Generate hands and map them to hand indices. // Hand indices are generated using a semi-dense encoding. #include <stdio.h> #include <stdlib.h> #include <memory> #include <string> #include <unordered_set> #include "board_tree.h" #include "canonical.h" #include "cards.h" #include "game.h" #include "game_params.h" #...
#include <cmath> #include <functional> #include <iostream> #include <list> #include <memory> #include <random> #include <tuple> #include <vector> using namespace std; class neuron_t { public: // pary: waga,neuron vector<pair<double, shared_ptr<neuron_t>>> inputs; // funkcja aktywacji tego konkretnego neuronu func...
#include <Handler.hpp> Handler::Handler(){ int index = 0; float step = 2*PI / CIRCLERESOLUTION; for(float i = 0; i < 2*PI; i += step) { mUnitCircle[index] = cos(i); mUnitCircle[index + 1] = sin(i); index += 2; } for(int i = 0; i < CIRCLERESOLUTION - 2; i++) { mIndices[i * 3] = 0; mIndices[i * 3 + 1] = ...
// // Created by CainHuang on 2019/5/18. // #include "GifMakeEditor.h" GifMakeEditor::GifMakeEditor(const char *srcUrl, const char *dstUrl) : Editor(), srcUrl(srcUrl), dstUrl(dstUrl), start(0), duration(0) { abort_request = false; frame_count = 0; out_fmt = AV_PIX_FMT_RGB8; time_base = ...
/*** drawer.cpp start ***/ #include "drawer.h" #include <cmath> #include <iostream> drawer::drawer() : l(5), g(9.81), m1(2), m2(2), p(0), r(2), L(10.0) { lastTime = std::chrono::system_clock::now(); } drawer::~drawer(){ } bool drawer::reCalculate() { double dT = std::chrono::duration_cast<std::chrono::milliseco...
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
#include "gettf.h" #include <iostream> #include <fstream> using namespace std; //getTf constructor Gettf::Gettf(pcl::PointCloud<pcl::PointXYZ>::Ptr cloud, bool debug) { cout << "GetTf CREATED" << endl; cout << "##############################" << endl; main_cloud = cloud; if (debug) { //Cre...
#include <PrecompiledHeader.h> #include "Micro/Units/ProtossSpecial/HighTemplarUnit.h" #include "Micro/UnitsGroup.h" #include "Regions/MapManager.h" using namespace BWAPI; int HighTemplarUnit::lastStormableUnitsUpdateFrame; HighTemplarUnit::HighTemplarUnit(Unit* u) : SpecialUnit(u) , _lastStormFrame(0) ,...
#include <cstdio> #include <algorithm> #include <atomic> #include <cassert> #include <thread> #include <ctime> using namespace std; template <typename T> class lock_free_queue { private: const int32_t empty = 0; const int32_t writing = 1; const int32_t valid = 2; const int32_t read...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <numeric> using namespace std; long long temp[1<<20]; long long ctz[1<<20]; // count of trailing zeros // computes all posible subset sums of...
#include "eeg_change_point.hpp" #include <armadillo> using namespace arma; static inline int round_up(int num_to_round, int multiple) { return ((num_to_round + multiple - 1) / multiple) * multiple; } void init_cp_data_t(cp_data_t* cp_data, int nt) { frowvec m = zeros<frowvec>(nt); m(0) = 1000; frowvec mu =...
#include <iostream> #include <map> #include <set> #include <vector> #include <string> #include <boost/python.hpp> using namespace std; class Graph { public: // string name; map<string, map<string, vector<string> > > edges; map<string, set<string> > relation_targets; public: Graph(); void addEdge(string st...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "mozilla/FloatingPoint.h"...
#include <deepstate/DeepState.hpp> using namespace deepstate; extern "C" { #include"red_black_tree.h" #include "container.h" } #define LENGTH 100 void IntDest(void* a) { free((int*)a); } int IntComp(const void* a,const void* b) { if( *(int*)a > *(int*)b) return(1); if( *(int*)a < *(int*)b) return(-1); retu...
#include "ratio.hpp" #include <iostream> #include <ratio> // Blog: http://blog.csdn.net/fengbingchun/article/details/72934929 ////////////////////////////////////////////////////////////////// // reference: http://www.cplusplus.com/reference/ratio/ int test_ratio_1() { typedef std::ratio<1, 3> one_third; typedef st...
#include "symbolart.h" #include "blowfish.h" #include "memorystream.h" #include "psr.h" #include "debug.h" SarFile::SarFile(IStream* stream) { STATSTG stat; stream->Stat(&stat, STATFLAG_NONAME); ULONG64 file_size = stat.cbSize.QuadPart; ULONG read; uint8_t k[] = { 9, 7, 193, 43 }; crypto_blowfish::blowfish b(k...
//Optimise #include <bits/stdc++.h> using namespace std; // #define multitest 1 #ifdef Debug #define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__); #define pc(...) PC(#__VA_ARGS__, __VA_ARGS__); template <typename T, typename U> ostream &operator<<(ostream &out, const pair<T, U> &p) { out << '[' << p.first << ", " << p.secon...
/*--------------------------------------------------------------------------------- Copyright (C) 2007 Acekard, www.acekard.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 in the Software without restrictio...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "pow.h" #include "bignum.h" #include "chain.h" #include "chainparams.h" #include "...
#include "WebServerSN.h" #include "ServerUtil.h" #include "../Settings.h" /** * Construct the webserver */ WebServerSN::WebServerSN(FileServ *fileServ) { this->webServer = new ESP8266WebServer(80); this->fileServ = fileServ; } /** * Destroy the webserver */ WebServerSN::~WebServerSN() { de...
/** \file debug.cpp \author <EMAIL> \copyright Valiant's Universal Circuit Construction Optimized for Private Function Evaluation Copyright (C) 2016 Engineering Cryptographic Protocols Group, TU Darmstadt This program is free software: you can redistribute it and/or modify it under the terms of the GNU A...
#include <dppmusic/context.h> #include <dppmusic/bot.h> #include <dppmusic/player.h> #include <sstream> #include <dpp/nlohmann/json.hpp> #include <uv.h> #include <ytdl/dl.h> #include <ytdl/info.h> #include <iostream> #include <dpp/fmt/format.h> static size_t ytdl_info_get_best_opus_format (ytdl_info_ctx_t *info) { ...
#include "diagram.h" #include <algorithm> #include <functional> using namespace std; /* * * Diagram implementation * */ Diagram::Diagram(const Graph& _graph, const std::vector<uint>& _tensIdList) : graph(_graph), tensIdList(_tensIdList) { _sortTensorList(); } Diagram::D...
#include <gst/gst.h> #include <stdio.h> #include <string.h> #include <iostream> typedef struct gst_app { GstPipeline *pipeline; GstElement *src[2]; GstCaps *vcaps[2]; GstElement *crop[2]; GstElement *distort[2]; GstElement *box[2]; GstElement *mixer; GstElement *convert; GstElement *sink; GMainLoop...
// Leka - LekaOS // Copyright 2020 APF France handicap // SPDX-License-Identifier: Apache-2.0 #include <memory> #include "platform/Callback.h" #include "rtos/ThisThread.h" #include "rtos/Thread.h" #include "CoreDMA2D.hpp" #include "CoreDSI.hpp" #include "CoreFont.hpp" #include "CoreGraphics.hpp" #include "CoreJPEG.h...
#include "task.h" #include <errno.h> #include <fcntl.h> #include <log/log.h> #include <stdio.h> #include <cctype> #include <cstdlib> #include <memory> #include <sstream> #include <android-base/unique_fd.h> #include "stdio_filebuf.h" #include "string_trim.h" namespace { const char kProcBase[] = "/proc"; android::...
#include <iostream> #include "Funcion.h" #include <fstream> using namespace std; char menu(){ char opcion; cout << "Menu:\n"; cout << "a) Actores en lista: \n"; cout << "b) Películas en lista: \n"; cout << "c) Funciones disponibles: \n"; cout << "d) Funciones por hora: \n"; cout << "e) Funci...
//===- aie-reset.cpp --------------------------------------------*- C++ -*-===// // // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // // (c) Copyright 2020 Xilinx Inc. //...
/* <Lenet Neural Network High Level Synthesis Lenet> 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 r...
/* * ASF decryption * Copyright (c) 2007 <NAME> * This is a rewrite of code contained in freeme/freeme2 * * This file is part of FFmpeg. * * FFmpeg 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 Foundatio...
/* * Copyright (c) 2015, msyksphinz * 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 ...
#include "scene.h" #include "settings.h" static const Mass baseOrgamismMass = Mass(100); static const Mass baseFoodMass = Mass(10); static const uint32_t foodCnt = 400; static const uint32_t maxOrgamismCnt = 150; Cell::Cell(CellType type, Mass mass) : m_type(type) , m_mass(mass) { } void Cell::move(Cell& to) { ...
#include <iterator> #include <stdio.h> #include <sys/stat.h> #include <sys/types.h> #include "MakeMidi.hpp" #include "ParseMidi.hpp" #include "Storage.hpp" // to do : not sure if we need radix 64 encoded midi or not ... // depends on whether user is allowed to choose to store sequences in patches ... // the...
/** * A class which describes the actions and properties of an event session. This * session will notify the connected endpoint of server events (like device * updates, e.d.). This way, we can prevent polling. * * @date 17 January, 2015 * @author <NAME> * @version ...
#pragma once #include <algorithm> #include "ECSTreeItem.hpp" enum DiffType { Add, Remove, Update }; struct ECSDiffItem { uint64_t eid; std::string name; std::string typeString; }; struct DiffNode { DiffType type; ECSDiffItem data; }; using DiffSet = std::unordered_map<uint64_t, DiffNode>; // key is par...
/******************************************************************************* * Copyright (c) 2017, 2017 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this * distribution and is available at http://ec...
#include <bits/stdc++.h> using namespace std; typedef long long ll; struct node { char type; int cost,beauty, id; } ara[100100]; bool cmp(node a, node b) { return a.cost<=b.cost; } int C_id[100100], D_id[100100]; int C[100100], D[100100]; int cnt_c[100100], cnt_d[100100], cum_c[100100]...
// STL includes #include <cstring> #include <csignal> // QT includes #include <QDir> #include <QFile> // Local LedDevice includes #include "LedDevicePiBlaster.h" // Constants namespace { const bool verbose = false; // Pi-Blaster discovery service const char DISCOVERY_DIRECTORY[] = "/dev/"; const char DISCOVERY...
/* ------------------------------------------------------------------- Dinfio Programming Language Version: 3.1 ------------------------------------------------------------------- By: <NAME> Copyright (C) 2014-2022. All Rights Reserved. ------------------------------------------------------------------- Platform: ...
#include <cmath> // for sqrt #include <ellalgo/cut_config.hpp> // for CUTStatus, CUTStatus::success #include <ellalgo/ell.hpp> // for ell, ell::Arr #include <ellalgo/ell_assert.hpp> // for ELL_UNLIKELY #include <tuple> // for tuple #include <xtensor...
// Copyright 2013 <NAME>. #include "Character.h" #include "Camera.h" #include "StageState.h" #include "Vec2.h" #include "Rect.h" #include "Interactive.h" #include "Projectile.h" #include "Logger.h" #include <assert.h> Character::Character(int x, int y) { graphicsComponent = nullptr; soundComponent =...
/* * This source code is a product of Sun Microsystems, Inc. and is provided * for unrestricted use. Users may copy or modify this source code without * charge. * * SUN SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING * THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR ...
#include "utils.hpp" bool caseInSensStringCompare(string str1, string str2){ return ((str1.size() == str2.size()) && equal(str1.begin(), str1.end(), str2.begin(), [](char & c1, char & c2){ return (c1 == c2 || toupper(c1) == toupper(c2)); })); } string joinRootfsPath(const string & rootfs, const string & ...
/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. * Author(s): <NAME> * * Copyright (C) 2014 Inria * * Modification(s): * - YYYY/MM Author: Descriptio...
#include "stdafx.h" #include "BlindEngine.h" #include "Time.h" #include "ObjectManager.h" #include "Object.h" #include "MeshRenderer.h" BlindEngine::BlindEngine(HWND winHandle) { m_WindowHandle = winHandle; m_RenderManager = new BlindRenderer(m_WindowHandle); m_RenderManager->InitRenderer(); DataManager* dataman = ...
//********************************************************* // Read_Lane_Use.cpp - read the lane use file //********************************************************* #include "Network_Service.hpp" #include "Lane_Use_File.hpp" //--------------------------------------------------------- // Read_Lane_Use //------------...
#include "Player.h" #include "TicTacToe.h" #include <iostream> #include <algorithm> #include <iterator> #include <tuple> Player::Player(){} /** * Gets the AI's next move. * * Calls minimax and extracts the move from the result. * * @param : takes in a board state (int array) * @return integer re...
#include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> #include <glm/gtc/matrix_transform.hpp> #include <assert.h> #include <math.h> #include <map> #include <functional> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <memory> #include <iostream> #include <X11/Xlib.h> #include <X11/Xatom.h> #inclu...
/* taken from REP120 base_footprint The base_footprint is the representation of the robot position on the floor. The floor is usually the level where the supporting leg rests, i.e. z = min(l_sole_z, r_sole_z) where l_sole_z and r_sole_z are the left and right sole height respecitvely. The translation component of ...
#include <ros/ros.h> // PCL specific includes #include <sensor_msgs/PointCloud2.h> #include <pcl_conversions/pcl_conversions.h> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pnc_msgs/move_status.h> #include <nav_msgs/Path.h> #include <std_msgs/Int32.h> ros::Publisher pub, pub_next_goal; bool pat...
/* * Copyright (c) 2008, Autodesk, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of c...
#include "MultiplayerScene.hpp" #include "glTextureLoader.hpp" #include "ApplicationRunLoop.hpp" using namespace std; MultiplayerScene::MultiplayerScene(const std::string & name, const std::string rootPath, struct nk_context *ctx) : BaseScene(name, rootPath, ctx) { } SceneType MultiplayerScene::Render(struct nk_fon...
/* * Vega Strike * Copyright (C) 2003 <NAME> * * http://vegastrike.sourceforge.net/ * * 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 opti...
/* -*- 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 distri...
#include "pch.h" LinearKalmanFilter::LinearKalmanFilter(cv::Point2f point, float delta) { kf.init(m_state_size, m_meas_size, m_contr_size, m_type); cv::Mat state(m_state_size, 1, m_type); // [x,y,v_x,v_y,w,h] cv::Mat meas(m_meas_size, 1, m_type); // [z_x,z_y,z_w,z_h] //cv::Mat procNoise(stateSize, 1, type) /...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "pow.h" #include "main.h" #include "arith_uint256.h" #include "chain.h" #include "...
/* * Copyright (c) 2012, <NAME>, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions...
#include "OpenGLRenderer.hpp" #include "opencv2/calib3d/calib3d.hpp" #include "Vector.hpp" #include <GL/glut.h> using namespace std; using namespace cv; OpenGLRenderer::OpenGLRenderer(Ptr<StereoCamera> stereoCamera) : stereoCamera(stereoCamera), width(640), height(480) { namedWindow("OpenGL", WINDOW_OPEN...
// // CopyComplexList_1.cpp // OfferReview // // Created by CHM on 2020/11/6. // Copyright © 2020 CHM. All rights reserved. // #include "CopyComplexList_1.hpp" // 复制节点,把每个复制的节点直接链接在原节点的后面 void CopyComplexList_1::cloneNodes(ComplexListNode* pHead) { ComplexListNode* pNode = pHead; while (pNode != nullptr) ...
// (C) 1992-2016 Intel Corporation. // Intel, the Intel logo, Intel, MegaCore, NIOS II, Quartus and TalkBack words // and logos are trademarks of Intel Corporation or its subsidiaries in the U.S. // and/or other countries. Other marks and brands may be claimed as the property // ...
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/> * 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....
// Copyright (c) 2020-2021 vadique // Distributed under the WTFPLv2 software license http://www.wtfpl.net #include "mempoolmodel.h" #include "primitives/transaction.h" #include "txmempool.h" #include "validation.h" #include "unitsofcoin.h" #include "tinyformat.h" // strprintf #include "utiltime.h" // GetTime, DateTi...
// // bounded_enum.hpp // bounded_enum // #include <exception> #include <iostream> #include <sstream> #include <type_traits> template<class ULType> class bounded_iterator { public: bounded_iterator() = delete; ~bounded_iterator() = default; explicit bounded_iterator(ULType val) noexcept : m_pare...
// MIT License // // Copyright (c) 2021-2022. <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...
#include <stdio.h> #include <stdlib.h> #include "tensor.h" #include "bitmap.h" #pragma pack(push, 1) typedef struct tagBITMAPFILEHEADER { uint16_t bfType; //specifies the file type uint32_t bfSize; //specifies the size in bytes of the bitmap file uint16_t bfReserved1; //reserved; must be 0 uint16_t ...
#pragma once #include <pomagma/atlas/macro/structure_impl.hpp> #include <pomagma/atlas/macro/util.hpp> #include <pomagma/util/dense_set_store.hpp> #include <pomagma/util/lazy_map.hpp> #include <pomagma/util/trool.hpp> #include <string> #include <unordered_map> #include <utility> #include <tuple> #include <vector> // ...
/* * WebServer.cpp * 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, modify, merge, publ...
/* * Copyright 2019 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright (c) 2007, Vanderbilt University * 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...
/* * skiplist.cpp: definitions of the skip list data structure, updated for NUMA architecture * * Author: <NAME>, 2017 * * Based on No Hotspot Skip List skiplist.c (2013) */ #include <stdio.h> #include <stdlib.h> #include <numa.h> #include <numaif.h> #include "common.h" #include "skiplist.h" #include "allocator....
#include "Cube.h" #include <iostream> #include <ctime> #include "Texture.hpp" #include "WaterGrid.h" Cube::Cube(CNuanceurProg shader, glm::vec3 position, float edgeLength) : Renderable(shader, position), m_edgeLength(edgeLength) { init(); } void Cube::init() { generateBuffers(); m_texture = Texture::loa...
/* * Copyright 2010-2011 ZXing 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...
// Copyright 2019 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. // fops_probe utility helps to understand what file_operations callbacks // are attached to a particular file. Requries KCOV and KALLSYMS. // Build with: /...
#include "lab_m1/Tema2/Hunter.h" #include <iostream> Hunter::Hunter() { }; Hunter::Hunter(float health, float fireRate, float speed) { m_health = health; m_fireRate = fireRate; m_hunterSpeed = speed; }; Hunter::~Hunter() { }; void Hunter::setModelMatrix(glm::mat4 newModelMatrix) { m_modelMatrix = ...
/************************************************************************** * * Copyright 2014 LunarG, Inc. All Rights Reserved. * Copyright (C) 1999-2007 <NAME> All Rights Reserved. * Copyright (c) 2008 VMware, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this s...
/* * ===================================================================================== * * Filename: main.cpp * * Description: A polygon to rectangle conversion tool * Reference: <NAME> and <NAME> * "A Polygon-to-Rectangle Conversion Algorithm" * ...
// // Track class with minimal number of information // (targets at selection of primary tracks). // // Author: C.Loizides #include "AliPicoTrack.h" #include "AliExternalTrackParam.h" #include "AliVCluster.h" #include "AliAODTrack.h" //_________________________________________________________________________________...