text stringlengths 54 60.6k |
|---|
<commit_before>/**
* @file Reader.cpp
* @author Pallamidessi Joseph
* @version 1.0
*
* @section LICENSE
*
* 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
* Lice... |
<commit_before>#include <curses.h>
#include <stdio.h>
#include <string.h>
#include "../include/debugC.h"
#include "../include/machine.h"
using namespace std;
debugC::debugC(machine* BFM){
localMachine = BFM;
}
debugC::~debugC(){
delete this;
}
void debugC::setupDebugger(){
initscr();
raw();
noecho();
start_co... |
<commit_before>#include <GL/glew.h>
#include <GL/gl.h>
#include <orz/exception.h>
#include "hw3d_opengl_texture.h"
#include "hw3d_opengl_common.h"
namespace Hw3D
{
Texture::Lock OpenGlTexture::LockRegion(const Geom::RectInt ®ion, bool readOnly)
{
if(region.Width() < 0 || region.Height() < 0)
{
DO_THROW(Err... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: preferencesEntry.C,v 1.6 2004/09/29 18:58:15 amoll Exp $
//
#include <BALL/VIEW/KERNEL/preferencesEntry.h>
#include <BALL/VIEW/DATATYPE/colorRGBA.h>
#include <qslider.h>
#include <qlabel.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#in... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <[email protected]>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission no... |
<commit_before>#include <cstdlib>
#include <ctime>
#include "array_prepare.h"
void prepare_array(pipeline_data& data)
{
srand((unsigned int)time(nullptr));
for (unsigned int i = 0; i < data.array_size; i++)
data.unsorted_array[i] = rand() % (data.max_number + 1 - data.min_number) + data.min_number;
memcpy(data.... |
<commit_before>//
// Aspia Project
// Copyright (C) 2020 Dmitry Chapyshev <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your ... |
<commit_before>
#include <cppexpose/json/JSON.h>
#include <iostream>
#include <cppassist/string/conversion.h>
#include <cppassist/logging/logging.h>
#include <cppexpose/base/Tokenizer.h>
#include <cppexpose/variant/Variant.h>
using namespace cppassist;
using namespace cppexpose;
namespace
{
bool readValue(Vari... |
<commit_before>/*
* HashUil.cpp
*
* Created on: 30 Aug 2013
* Author: nicholas
*/
#include <boost/program_options.hpp>
#include <cstdio>
namespace po = boost::program_options;
using namespace std;
int main(int argc, char* argv[]) {
po::options_description desc = po::options_description("Allowed options")... |
<commit_before>/*******************************************************************************
* thrill/common/stat_logger.hpp
*
* Logger for Stat-Lines, which creates basic JSON lines
*
* Part of Project Thrill.
*
* Copyright (C) 2015 Alexander Noe <[email protected]>
*
* This file has no license. Only Chuc... |
<commit_before>/*
Generic Console Output Support
Copyright (C) 1998-2001 by Jorrit Tyberghein
Copyright (c) 2004-2005 by Frank Richter
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Softw... |
<commit_before>/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| ... |
<commit_before>#include <list>
#include <vector>
using namespace std;
#include <climits>
#include "algorithms.h"
#include "graph.h"
#include "heuristics.h"
#include "stats.h"
#include "node_heap.h"
// These algorithms 'close' nodes by flagging them with the id of the
// current problem being solved. This saves us unc... |
<commit_before>#ifdef NG_PYTHON
#include <boost/python.hpp>
#include <boost/python/slice.hpp>
#include <../general/ngpython.hpp>
#include <mystdlib.h>
#include "meshing.hpp"
using namespace netgen;
namespace bp = boost::python;
template <typename T, int BASE = 0, typename TIND = int>
void ExportArray ()
{
strin... |
<commit_before>/*
* Author: Yevgeniy Kiveisha <[email protected]>
* Copyright (c) 2014 Intel Corporation.
*
* 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... |
<commit_before>//////////////////////////////////
//
// Compile: g++ -std=c++14 -O3 ex5.cxx -o ex5
//
//////////////////////////////////
#include <iostream> // std::cout
#include <fstream> // std::ifsteam
#include <utility> // std::pair
#include <vector> // std::vector
#include <boost/graph/graph_traits.hpp>
#incl... |
<commit_before>/**
* Skeleton.cpp
* Contributors:
* * Arthur Sonzogni (author)
* Licence:
* * Public Domain
*/
#include "Skeleton.hpp"
#include <stdexcept>
#include <iostream>
#define GLM_FORCE_RADIANS
#include <glm/gtx/matrix_operation.hpp>
#include <glm/gtc/matrix_transform.hpp>
#define DEGTORAD 0.... |
<commit_before>#pragma once
#include "messages/limitedqueuesnapshot.hpp"
#include <memory>
#include <mutex>
#include <vector>
namespace chatterino {
namespace messages {
template <typename T>
class LimitedQueue
{
public:
LimitedQueue(int limit = 100, int buffer = 25)
: _offset(0)
, _limit(limit)... |
<commit_before>//===-- tsan_platform_mac.cc ----------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief RX24T グループ MTU3 制御
@author 平松邦仁 ([email protected])
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/mast... |
<commit_before>/**
* @file nmf_test.cpp
* @author Mohan Rajendran
*
* Test file for NMF class.
*/
#include <mlpack/core.hpp>
#include <mlpack/methods/amf/amf.hpp>
#include <mlpack/methods/amf/init_rules/random_acol_init.hpp>
#include <mlpack/methods/amf/update_rules/nmf_mult_div.hpp>
#include <mlpack/methods/amf/u... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2013-2014 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 me... |
<commit_before>#include "contour.hpp"
ContourTransition::ContourTransition( cv::Mat& image )
{
copy_data( image );
}
void ContourTransition::bw_push_transition(std::vector<IndexTransition> const & indexTransition)
{
std::for_each(indexTransition.begin(), indexTransition.end(), [ this ](auto& el){
matDataTrans( el... |
<commit_before>#include "CppUnitTest.h"
#include "JsonArray.h"
#include "JsonObject.h"
using namespace ArduinoJson::Generator;
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace JsonGeneratorTests
{
TEST_CLASS(Issue10)
{
struct Person {
int id;
... |
<commit_before>#pragma once
#include <sstream>
#include <stdexcept>
#include <deque>
namespace nervana {
class conststring
{
public:
template<size_t SIZE>
constexpr conststring(const char(&p)[SIZE]) :
_string(p),
_size(SIZE)
{
}
constexpr char operator[](size_t i) const {
... |
<commit_before>// @(#)root/quadp:$Id$
// Author: Eddy Offermann May 2004
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/message_loop.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/renderer_host/render_view_host.h"
#inc... |
<commit_before>#pragma once
//=========================================================================//
/*! @file
@brief DMAC マネージャー @n
@author 平松邦仁 ([email protected])
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICE... |
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / __... |
<commit_before>/*!
* Copyright (c) 2015 by Contributors
* \file slice_channel.cc
* \brief
* \author Bing Xu
*/
#include "./slice_channel-inl.h"
namespace mxnet {
namespace op {
template<>
Operator* CreateOp<cpu>(SliceChannelParam param, int dtype) {
Operator* op = nullptr;
MSHADOW_TYPE_SWITCH(dtype, DType, {
... |
<commit_before>/*
* SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
* Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in ... |
<commit_before>// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgInt... |
<commit_before>/** @file
@brief Regstry to maintain instantiated loggers and global settings.
@date 2016
@author
Sensics, Inc.
<http://sensics.com>
*/
// Copyright 2016 Sensics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in comp... |
<commit_before>/*
Odometer.cpp
Source: https://github.com/DrGFreeman/RasPiBot202.V2
MIT License
Copyright (c) 2017 Julien de la Bruere-Terreault <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to d... |
<commit_before>/* Copyright 2017 R. Thomas
* Copyright 2017 Quarkslab
*
* 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 re... |
<commit_before>/*
* Copyright (C) 2015 Fabia Serra Arrizabalaga
*
* This file is part of Crea
*
* Crea is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF), either version 3 of the License, or (a... |
<commit_before>//
// Pipeline.cpp
// Cinder-Pipeline
//
// Created by Jean-Pierre Mouilleseaux on 19 Apr 2014.
// Copyright 2014 Chorded Constructions. All rights reserved.
//
#include "Pipeline.h"
#include "cinder/Utilities.h"
using namespace ci;
namespace Cinder { namespace Pipeline {
PipelineRef Pipeline::cr... |
<commit_before>// Copyright Daniel Wallin 2009. Use, modification and distribution is
// subject to the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef LUABIND_INHERITANCE_090217_HPP
# define LUABIND_INHERITANCE_090217_HPP
# inclu... |
<commit_before>/**
* @project zqrpc
* @file src/RpcServer.cc
* @author S Roychowdhury <sroycode @ gmail DOT com>
* @version 0.1
*
* @section LICENSE
*
* Copyright (c) 2014 S Roychowdhury
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated docume... |
<commit_before>#include "Func.h"
#include "Function.h"
#include "IR.h"
#include "IRMutator.h"
#include "Schedule.h"
#include "Var.h"
namespace Halide {
LoopLevel::LoopLevel(Internal::IntrusivePtr<Internal::FunctionContents> f,
const std::string &var_name,
bool is_rvar)
... |
<commit_before>/* See Project CHIP LICENSE file for licensing information. */
#include <platform/logging/LogV.h>
#include <core/CHIPConfig.h>
#include <platform/CHIPDeviceConfig.h>
#include <src/lib/support/CodeUtils.h>
#include <support/logging/Constants.h>
#include <cstring>
#define K32W_LOG_MODULE_NAME chip
#def... |
<commit_before>/**
* File : Atomic.cpp
* Author : Emir Uner
* Summary : Atomic increment/decrement implementations for Linux.
*/
/**
* This file is part of XCOM.
*
* Copyright (C) 2003 Emir Uner
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesse... |
<commit_before>#include <string.h>
#include "lpc17xx_pinsel.h"
#include "lpc17xx_uart.h"
#include "interface/uart.h"
#include "pipeline.h"
#include "atcommander.h"
#include "util/bytebuffer.h"
#include "util/log.h"
#include "util/timer.h"
#include "gpio.h"
// Only UART1 supports hardware flow control, so this has to b... |
<commit_before>/*******************************************************************************
Licensed to the OpenCOR team under one or more contributor license agreements.
See the NOTICE.txt file distributed with this work for additional information
regarding copyright ownership. The OpenCOR team licenses this file... |
<commit_before>/*
Copyright (c) 2008, Arvid Norberg
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... |
<commit_before>#ifdef INTERFACE_DEFINITION
#define PURE = 0
#else
#define PURE
#endif
virtual Mode viewMode() const PURE;
virtual QStringList viewMimeTypes() const PURE;
virtual QString viewDefaultFileExtension() const PURE;
virtual bool showBusyWidget(const QString &pFileName) PURE;
virt... |
<commit_before>// If possible disable interrupts whilst switching pin direction. Sadly
// there is no generic Arduino function to read the current interrupt
// status, only to enable and disable interrupts. As a result the
// protection against spurious signals on the I2C bus is only available
// for AVR architectures... |
<commit_before>/*
Copyright (c) 2008, Arvid Norberg
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... |
<commit_before>//************************************************************/
//
// Spectrum
//
// @Author: J. Gibson, C. Embree, T. Carli - CERN ATLAS
// @Date: 19.09.2014
// @Email: [email protected]
//
//************************************************************/
#include <iostream>
#include "SPXROOT.h"... |
<commit_before>/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkCommonFlags.h"
#include "SkThreadPool.h"
DEFINE_string(config, "565 8888 pdf gpu nonrendering angle",
"Options: 565 8888 pdf gpu nonr... |
<commit_before>/*
* Copyright (c) 2016, The Bifrost Authors. All rights reserved.
* 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:
* * Redistributio... |
<commit_before>#include "libirc/atom.h"
#include <stdexcept>
namespace irc {
namespace atom {
AtomicNumber::AtomicNumber(size_t an) {
if (!periodic_table::valid_atomic_number(an)) {
throw std::logic_error("Invalid atomic number.");
}
atomic_number = an;
}
AtomicNumber::AtomicNumber(const std::string& sy... |
<commit_before>// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2004-2009 Sage Weil <[email protected]>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free S... |
<commit_before>/*
Flexisip, a flexible SIP proxy server with media capabilities.
Copyright (C) 2010-2015 Belledonne Communications SARL, All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free S... |
<commit_before>#pragma once
/*
** Copyright (C) 2012 Aldebaran Robotics
** See COPYING for the license
*/
#ifndef _QITYPE_SIGNAL_HPP_
#define _QITYPE_SIGNAL_HPP_
#include <qi/atomic.hpp>
#include <qi/eventloop.hpp>
#include <qitype/signature.hpp>
#include <qitype/functiontype.hpp>
#include <boost/thread/thread.hpp>... |
<commit_before>///
/// @file main.cpp
/// @brief primecount console application.
///
/// Copyright (C) 2017 Kim Walisch, <[email protected]>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include "cmdoptions.hpp"
#include <primecount.hpp>
#incl... |
<commit_before>#ifndef AUTOMATA_HPP__
#define AUTOMATA_HPP__
#include "state.hpp"
template <typename Tstates, size_t Tstart = 0>
struct Automata {
typedef Tstates states;
static const size_t start = Tstart;
template <typename T>
struct push_state {
typedef
Automata<
... |
<commit_before>#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <limits.h>
#include <vector>
#include <algorithm>
#include <tr1/unordered_set>
#define PAGE_SIZE 4096
#define SCALE_FACTOR 100
#include "../workload.h"
int main(int argc, char *argv[])
{
if (argc < 2) {
fpr... |
<commit_before>// @(#)root/main:$Name: $:$Id: ssh2rpd.cxx,v 1.9 2005/10/07 10:28:54 rdm Exp $
// Author: G Ganis 10/5/2007
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>// Copyright (c) 2019 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/pivx/requestdialog.h"
#include "qt/pivx/forms/ui_requestdialog.h"
#include <QListView>
#include "qt/pivx/qtut... |
<commit_before>/***************************************************************************************[System.cc]
Copyright (c) 2003-2006, Niklas Een, Niklas Sorensson
Copyright (c) 2007, Niklas Sorensson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated... |
<commit_before>/*
* Copyright (C) 2017 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... |
<commit_before>#pragma once
#include "RawBuffer.hpp"
#include "depthai-shared/common/Point3f.hpp"
#include "depthai-shared/common/Timestamp.hpp"
namespace dai {
struct IMUReport {
enum class IMUReportAccuracy : std::uint8_t {
UNRELIABLE = 0,
LOW = 1,
MEDIUM = 2,
HIGH = 3,
};
... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is dis... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is dis... |
<commit_before>/*
* superviseddescent: A C++11 implementation of the supervised descent
* optimisation method
* File: superviseddescent/matserialisation.hpp
*
* Copyright 2014, 2015 Patrik Huber
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ex... |
<commit_before>#ifndef TWISTEDCPP_PROTOCOL_CORE
#define TWISTEDCPP_PROTOCOL_CORE
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/steady_timer.hpp>
#include <boost/optional.hpp>
#include <boost/asio/spawn.hpp>
#include <boost/asio/write.hpp>
namespace twisted {
template <typename ChildProtocol, typename BufferT... |
<commit_before>#include "dialog.h"
#include "ui_dialog.h"
#include "Serial.hpp"
#include <string>
/**
* @brief Ctor
*/
Dialog::Dialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dialog)
//conn("/dev/ttyUSB0",9600)
{
ui->setupUi(this);
}
/**
* @brief Dtor
*/
Dialog::~Dialog()
{
delete ui;
}
... |
<commit_before>/*$Id$
*
* This source file is a part of the Fresco Project.
* Copyright (C) 2000 Stefan Seefeld <[email protected]>
* Copyright (C) 2001 Philip Philonenko <[email protected]>
* http://www.fresco.org
*
* This library is free software; you can redistribute it and/or
* modify it under the ter... |
<commit_before>
#include "log4cplus/logger.h"
#include "log4cplus/consoleappender.h"
#include "log4cplus/loglevel.h"
#include <log4cplus/loggingmacros.h>
#include <iomanip>
using namespace std;
using namespace log4cplus;
int
main()
{
SharedAppenderPtr append_1(new ConsoleAppender());
append_1->setName(LOG4CPL... |
<commit_before>// SSSSCpp.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "GF256.h"
#include "SSSSCpp.h"
#include <vector>
#include <assert.h>
#define UINT unsigned int
using std::vector; using std::pair;
using std::make_pair;
extern vector<unsigned int> _log... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>//===- llvm-link.cpp - Low-level LLVM linker ------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "browser/api/atom_api_protocol.h"
#include "base/stl_util.h"
#include "browser/atom_browser_context.h"
#include "browser/net/adapter_r... |
<commit_before>#include <Spark/Dse.hpp>
#include <Spark/Utils.hpp>
#include <boost/program_options.hpp>
#include <chrono>
#include <string>
using namespace spark::utils;
int main(int argc, char** argv) {
namespace po = boost::program_options;
std::string numPipes = "numPipes";
std::string cacheSize = "cacheSi... |
<commit_before>#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/rmat_graph_generator.hpp>
#include <boost/random/linear_congruential.hpp>
#include <boost/graph/graph_traits.hpp>
#include <iostream>
#include <ctime>
#include <stdio.h>
using namespace boost;
typedef adjacency_list<> Graph;
typedef rmat_it... |
<commit_before>//----------------------------------------------------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2009 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Ple... |
<commit_before>#include <memory>
#include <utility>
#include <functional>
struct Vector
{
float x, y, z;
};
int main()
{
{
std::unique_ptr<Vector, std::function<void(Vector*)>> v(new Vector{ 1, 1, 1 },
[](Vector* p) { printf("custom deleter called\n"); });
}
return 0;
}
<commit_ms... |
<commit_before>#include "autopilot_tester.h"
#include <iostream>
#include <future>
using namespace mavsdk;
using namespace mavsdk::geometry;
std::string connection_url {"udp://"};
void AutopilotTester::connect(const std::string uri)
{
ConnectionResult ret = _mavsdk.add_any_connection(uri);
REQUIRE(ret == Con... |
<commit_before>// Copyright (c) 2011 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 "media/audio/linux/pulse_output.h"
#include "base/message_loop.h"
#include "media/audio/audio_parameters.h"
#include "media/a... |
<commit_before>/*****************************************************************************\
* Copyright 2005, 2006 Niels Lohmann, Christian Gierds, Dennis Reinert *
* *
* This file is part of BPEL2oWFN. ... |
<commit_before>/*
* Copyright 2011-2015 Branimir Karadzic. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include "shaderc.h"
#if SHADERC_CONFIG_DIRECT3D9
#include <sal.h>
#define __D3DX9MATH_INL__ // not used and MinGW complains about type-punning
BX_PRAGMA_DIAGNOSTIC_PUSH();... |
<commit_before>/*=========================================================================
Library: CTK
Copyright (c) Kitware 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
... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*
* Copyright 2008-2009 NVIDIA 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 require... |
<commit_before>/******************************************************************************
This source file is part of the tomviz project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
... |
<commit_before>/*
* Copyright 2016 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng ([email protected])
*
* This file is part of FlashMatrix.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... |
<commit_before>// Simulation of different particles sources penetrating thin silicon detectors.
// University of Bonn, Silab 2014, David-Leon Pohl
// based on the GEANT4 framework
#include "DetectorConstruction.hh"
#include "PixelROWorld.hh"
#include "ActionInitialization.hh"
#include "G4ParallelWorldPhysics.hh"
#ifd... |
<commit_before>/*************************************************************************/
/* Copyright (c) 2012, 2013 Linas Vepstas <[email protected]> */
/* All rights reserved */
/* */
/... |
<commit_before>#pragma once
#include <cstdint>
#include <array>
#include "utils.hpp"
#include "vm/interrupts.hpp"
namespace yagbe
{
class key_handler
{
uint8_t &P1;
public:
enum class key
{
A = 0,
B = 1,
Select = 2,
Start = 3,
Right = 4,
Left = 5,
Up = 6,
Down = 7,
};
key_handler... |
<commit_before>/* This program simulates a VRPN server to help support debugging and
testing without access to a tracking system.
This file is based heavily on a VRPN server tutorial written by
Sebastian Kuntz for VR Geeks (http://www.vrgeeks.org) in August
2011.
*/
#define OBJECT_NAME "Tracker0"
#inc... |
<commit_before>/*************************************************************************
*
* $RCSfile: canvasfont.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: thb $ $Date: 2004-03-18 10:38:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>#include <map>
#include <vector>
#include <string>
#include <time.h>
#include "NFComm/NFPluginModule/NFIPluginManager.h"
#include "NFComm/NFCore/NFQueue.h"
#include "NFComm/RapidXML/rapidxml.hpp"
#include "NFComm/RapidXML/rapidxml_iterators.hpp"
#include "NFComm/RapidXML/rapidxml_print.hpp"
#include "NFC... |
<commit_before>/*
Copyright (C) 2008-2016 The Communi Project
You may use this file under the terms of BSD license as follows:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code mus... |
<commit_before>/*****************************************************************************
* Help.cpp : Help and About dialogs
****************************************************************************
* Copyright (C) 2007 the VideoLAN team
* $Id$
*
* Authors: Jean-Baptiste Kempf <jb (at) videolan.org>
*
*... |
<commit_before>/*****************************************************************************
* open.cpp : Advanced open dialog
*****************************************************************************
* Copyright (C) 2006-2007 the VideoLAN team
* $Id$
*
* Authors: Jean-Baptiste Kempf <[email protected]>
*
* ... |
<commit_before>// Copyright 2021 Google LLC
//
// 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 o... |
<commit_before>// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// ... |
<commit_before>#include "engine.h"
Log logger;
Engine::Engine()
{
rooms_mgr = new RoomsManager();
events_mgr = new EventsManager();
gui_mgr = new GuiManager();
setState(INITIALIZING);
inventory = new GuiScrolledBar("inventory", "", "", GuiRect(0.08, 0, 0.84, 0.107),
... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2013-2015 SRS(simple-rtmp-server)
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 right... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.