text stringlengths 7 961k |
|---|
#include <ANN/ANN.h>
#include <iostream>
#include "Sample.h"
#include "SampleSet.h"
#include "Trajectory.h"
#include "TrajectorySet.h"
int main(const int& argc,const char** argv)
{
Sample<double,double> s1(3),s2(3);
double x1[3] = { 2.0, 3.0, 1.0};
double x2[3] = { 1.0, 2.0, 3.0};
s1.setValues(x1);
s1.setTime... |
#include "base/types.hh"
extern "C" {
#define pred_ordering //ifdef order doesn't matter
#define pred_entries 256
//#define pred_mask_bits 26
//#define pred_mask_bits_ms 4
// #define pred_high_order // pred_low_order //number of pc masked bits
//replacement policy of the predictor - if notdef policy is FIFO/
#... |
#include "PointCloudManager.h"
PointCloudManager* PointCloudManager::m_instance = nullptr;
//static
PointCloudManager* PointCloudManager::getInstance()
{
if (m_instance == nullptr) {
m_instance = new PointCloudManager();
}
return m_instance;
}
PointCloudManager::~PointCloudManager()
{
}
/*
Public construct... |
#ifndef SIMNETS_TF_MEX_LAYER_COMMON_HPP
#define SIMNETS_TF_MEX_LAYER_COMMON_HPP
#include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/common_shape_fns.h"
#include "utils/im2col.hpp"
/// Handles the calculation of shared/unshared regions from image dimensions.
/// also holds all the rele... |
#include "ShaderProgram.h"
#include <glad/glad.h>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
ShaderProgram::ShaderProgram() {
ID = glCreateProgram();
}
ShaderProgram::~ShaderProgram() {
glDeleteProgram(ID);
}
void ShaderProgram::use() {
glUseProgram(ID);
}
void ShaderProgram::attach(Shader sha... |
/*
* Copyright (c) 2016 Shanghai Jiao Tong University.
* 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.... |
#include <winsock2.h>
#include <fstream>
#include "NPS_DLL_Example.h"
#include<stdio.h>
#include<winsock2.h>
#include<string>
#include <cpprest/http_client.h>
#include <cpprest/filestream.h>
#include <cpprest/http_listener.h> // HTTP server
#include <cpprest/json.h> // JSON library
#... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018 www.open3d.org
//
// Permissio... |
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
//===- MveEmitter.cpp - Generate arm_mve.h for use with clang -*- C++ -*-=====//
//
// Part of the LLVM Project, 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
//
//===---------------------------... |
//
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under 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)
//
// Official repository: https://github.com/CPPAlliance/url
//
#ifndef BOOST_URL_B... |
#ifndef PROGRAM_HPP_
#define PROGRAM_HPP_
#include "bgw.hpp"
#include <iostream>
#include <vector>
#include "constant.h"
#include "GF.hpp"
using namespace std;
vector<Int> adder(vector<Int> a,vector<Int> b,MPC *bgw){
vector<Int>res;
assert(a.size()==b.size());
Int c;
bgw->set(c,GF(0),0);
for(i... |
/**
* @author Ian Stangoe
*
* LICENSE:
*
* This source file is part of OgreOggSound, an OpenAL wrapper library for
* use with the Ogre Rendering Engine.
*
* Copyright (c) 2017 Ian Stangoe
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation f... |
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/... |
/*
* Copyright 2009 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 contributing ... |
#ifndef TILESET_HPP
#define TILESET_HPP
#include <vector>
#include <string>
#include "Sprite.hpp"
class TileSet
{
private:
int tile_w;
int tile_h;
int rows;
int cols;
Sprite* tileset;
std::vector< Sprite* >* tiles;
SDL_Rect* dstrect;
bool using_single_file;
public:
TileSet (const std::string& filena... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... |
#include "Item.h"
const int HEALTH_POTION_FOREGROUND = Settings::Config()["Items"]["HealthPotion"]["Foreground"];;
const int HEALTH_POTION_BACKGROUND = Settings::Config()["Items"]["HealthPotion"]["Background"];
Item::Item()
{
}
HealthPotion::HealthPotion()
{
}
HealthPotion::HealthPotion(int x, int y)
{
this->x = x... |
#include <boost/preprocessor/seq/size.hpp> |
/*
* Copyright (c) 2018, 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, including without limitation
* the rights to use, copy, modify, merge, ... |
/// @file
/// @brief implementation of the calibration solution accessor returning values from the Calibration Data Service
/// @details This class supports all calibration products (i.e. gains, bandpasses and leakages)
/// it accesses the Calibration Data Service directly for the information.
///
/// @copyright (c) 20... |
#pragma once
#include "BrokerAsset.hpp"
#include "JNIHandler.hpp"
#include "ZorroDto.hpp"
BrokerAsset::BrokerAsset(JNIHandler& jniHandler)
: jniHandler(jniHandler)
{
env = jniHandler.getJNIEnvironment();
assetId = jniHandler.registerMethod("brokerAsset", "(Ljava/lang/String;)Lcom/jforex/dzjforex/asset/Brok... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/app_sync_data.h"
#include "sync/api/string_ordinal.h"
#include "sync/protocol/app_specifics.pb.h"
#include "sync/... |
// Copyright (c) YugaByte, 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 in writ... |
// Copyright (c) 2011-2017 The Cryptonote developers
// Copyright (c) 2014-2017 XDN developers
// Copyright (c) 2016-2017 BXC developers
// Copyright (c) 2017 Royalties developers
// Copyright (c) 2018 [ ] developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.o... |
#pragma once
#include "hierarchy_mesh_drawable/hierarchy_mesh_drawable.hpp" |
// Copyright 2020-2021 Arm Limited
//
// 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 t... |
// Copyright 2017 The Fuchsia 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 <assert.h>
#include <stdio.h>
#include <threads.h>
#include <lib/zx/channel.h>
#include <lib/zx/event.h>
#include <lib/zx/exception.h>
#include <... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//in header only mode, control library is not available
#ifndef AIRLIB_HEADER_ONLY
#include "vehicles/multirotor/api/MultirotorApiBase.hpp"
#include <functional>
#include <exception>
#include <vector>
#include <iostream>
#... |
/* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* See the NOTICE file distributed wit... |
//===--------------------------------------------------------------------------------*- C++ -*-===//
// _ _
// | | | |
// __ _| |_ ___| | __ _ _ __ __ _
// / _` | __/ __| |/ _` | '_ \ / _` |
// | (_| | || (_... |
/******************************************************************************
*
* Project: Virtual GDAL Datasets
* Purpose: Implementation of VRTRasterBand
* Author: Frank Warmerdam <warmerdam@pobox.com>
*
******************************************************************************
* Copyright (c) 2001, ... |
//******************************************************************
//
// Copyright 2015 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, 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
//
//===---------------------------... |
#include "rar.hpp"
ComprDataIO::ComprDataIO()
{
#ifndef RAR_NOCRYPT
Crypt=new CryptData;
Decrypt=new CryptData;
#endif
Init();
}
void ComprDataIO::Init()
{
UnpackFromMemory=false;
UnpackToMemory=false;
UnpPackedSize=0;
ShowProgress=true;
TestMode=false;
SkipUnpCRC=false;
NoFileHeader=false;
Pa... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, 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... |
#include "Screen.h"
#include <iostream>
// Logic to initialize our static map and array. Character
// data is generated by GetCharacter() return values.
const COLORREF Screen::colors[] = {
RGB(248, 213, 107), // Some items orange tint
RGB(255, 152, 31), // Withdrawing bank items
RGB(255, 255, 255), // White
RGB(0,... |
/*
* Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Singleton.h>
#include <AK/StringBuilder.h>
#include <AK/StringView.h>
#include <Kernel/FileSystem/DevFS.h>
#include <Kernel/FileSystem/VirtualFileSystem.h>
namespace Kernel {
NonnullRefPtr<DevFS> De... |
// 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 "cc/trees/ukm_manager.h"
#include <algorithm>
#include <utility>
#include "cc/metrics/compositor_frame_reporter.h"
#include "cc/metrics/through... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef msr_airlib_AirSimRosFlightCommLink_hpp
#define msr_airlib_AirSimRosFlightCommLink_hpp
#include <exception>
#include "firmware/commlink.hpp"
#include "common/Common.hpp"
#include "vehicles/multirotor/MultiRotorParam... |
//********************************************************************
//*
//* Warning: This file was generated by MDE4CPP Generator
//*
//********************************************************************
#ifndef UML_INTERACTIONCONSTRAINT_EXECUTION_HPP
#define UML_INTERACTIONCONSTRAINT_EXECUTION_HPP
#include ... |
#include "Game.h"
#include "Joystick.h"
#include "Player.h"
#include "res.h"
#include "Enemy.h"
Game::Game()
{
}
Game::~Game()
{
}
void Game::init()
{
//scene layer would have size of display
setSize(getStage()->getSize());
//create background
spSprite sky = new Sprite;
sky->setResAnim(res::ui... |
/*
obstaclespawner.hpp
A helper class that inserts the next "random" object on
a given interval. The order is seeded and uses a uniform
distribution.
*/
#pragma once
#include "../player/playerinventory.hpp"
#include "base/baseobstacle.hpp"
#include <memory>
#include <random>
#include <vector>
class ObstacleSpawn... |
#include "EdgeMethodCostFunc.h"
#include <optional>
#include <pybind11/numpy.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <isce3/core/Linspace.h>
#include <isce3/core/Poly1d.h>
// Aliases
namespace py = pybind11;
namespace ant = isce3::antenna;
using poly1d_t = isce3::core::Poly1d;
using lins... |
/*=============================================================================
# Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/
# FileName: 416.cc
# Description: UVa Online Judge - 416
=============================================================================*/
#include <iostre... |
//
// MIT License
//
// Copyright (c) 2020 Pathfinder for Autonomous Navigation (PAN)
//
// 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 t... |
#include <list.hpp>
#include <iostream>
using namespace std;
void show_ptrs(List<int> * ll) {
Node<int> * tmp = ll->begin();
while (tmp != NULL) {
cout << "Address: " << tmp << endl;
tmp = tmp->next;
}
}
int main() {
int nums[4] = { 1, 2, 3, 4 };
List<int> x(nums, 4);
cout << "Made list" << endl;
... |
/*******************************************************************************
The MIT License (MIT)
Copyright (c) 2015 Alexander Borsuk <me@alex.bio> from Minsk, Belarus
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software")... |
// Copyright (C) 2012-2017 Internet Systems Consortium, Inc. ("ISC")
//
// 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 <config.h>
#include <dhcp/dhcp6.h>
... |
#include "HOI4World/Military/HoI4Army.h"
#include "HOI4World/MilitaryMappings/MilitaryMappings.h"
#include "HOI4World/States/HoI4State.h"
#include "HOI4World/States/HoI4States.h"
#include "Mappers/Provinces/ProvinceMapper.h"
#include "V2World/Military/Army.h"
#include "V2World/Military/ArmyFactory.h"
#include "gtest/gt... |
#include <cstdio>
#include <cstring>
int dp[] = {1, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37};
int a[20]; //系数
__int64 b[20]; //素数乘积
int fun(int n) {
int i;
b[0] = dp[0];
for (i = 1; i < 13; i++)
b[i] = b[i - 1] * dp[i];
int t;
for (i = 0; i < 13; i++) {
if (b[i] <= n && b[i + 1] > n) {
t = i;
b... |
// { dg-do compile { target c++11 } }
//
// 2014-10-09 Ville Voutilainen <ville.voutilainen@gmail.com>
//
// Copyright (C) 2014-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the ... |
/*
* teleop_pr2_keyboard
* Copyright (c) 2008, Willow Garage, 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 copyrigh... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX ... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
/////////////////////////////////////////////////////////... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
/***********************************************************************************
This file is part of Project for Meloton
For the latest info, see https://github.com/Yhgenomics/MelotonClient.git
Copyright 2016 Yhgenomics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file ex... |
#include <chrono>
#include <iomanip>
#include <Poco/File.h>
#include <Poco/Net/HTTPBasicCredentials.h>
#include <Poco/Net/HTTPServerRequest.h>
#include <Poco/Net/HTTPServerResponse.h>
#include <Poco/Net/NetException.h>
#include <ext/scope_guard.h>
#include <Core/ExternalTable.h>
#include <Common/StringUtils/StringUt... |
/*
* Copyright (c) [2019-2021] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
... |
// Copyright 2010 A.N.M. Imroz Choudhury
//
// aeon.cpp - A pintool (http://pintool.org) for capturing memory
// reference traces.
// Pin headers.
#include "pin.H"
// MTV headers.
#include <Core/Dataflow/TraceWriter.h>
#include <Core/Util/BoostForeach.h>
#include <Tools/ReferenceTrace/mtrtools.h>
#include <Tools/Refe... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
/////////////////////////////////////////////////////////////////////////////////
//
// SourceFile: RunRedirect.cpp
//
// Marlin Component: Internet server/client
//
// Copyright (c) 2014-2022 ir. W.E. Huisman
// All rights reserved
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// ... |
// Copyright 2017 The Ray 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 i... |
// Copyright (c) 2013 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 "chromeos/network/cert_loader.h"
#include <algorithm>
#include "base/chromeos/chromeos_version.h"
#include "base/observer_list.h"
#include ... |
#include "PlatformPrecomp.h"
#include "XMLMenuEntity.h"
XMLMenuEntity::XMLMenuEntity()
: m_type( EXMT_NONE ), m_typeStr( "" )
{
}
XMLMenuEntity::XMLMenuEntity( const XMLMenuEntity &entity )
{
operator = ( entity );
}
XMLMenuEntity& XMLMenuEntity::operator = ( const XMLMenuEntity &entity )
{
if( this == &entity )
... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... |
#ifndef OPENGLWINDOW_HPP_
#define OPENGLWINDOW_HPP_
#include <vector>
#include <imgui.h>
#include <filesystem>
#include "abcg.hpp"
#include "camera.hpp"
#include "ground.hpp"
#include "wall.hpp"
struct Vertex {
glm::vec3 position{};
glm::vec3 normal{};
glm::vec2 texCoord{};
bool operator==(const Vertex& oth... |
// 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 "chrome/browser/chromeos/policy/active_directory_policy_manager.h"
#include <memory>
#include <string>
#include <utility>
#include "base/bind.h... |
/** @file Harmony.hpp
*
* Harmony implements Notes, Scales, Modes, Chords
* the intent is to keep this library as clean
* as possible to allow implementation on hardware
* platforms such as ARM MBED OS.
* TODO: Chords, Inversions, Progressions
*
* @author Jan-Willem Smaal <usenet@gispen.org>
* @date 13/12/2020... |
#include <algorithm>
#include <stdexcept>
#include <iostream>
class division_by_zero: public std::exception {};
class wrong_operation: public std::exception {};
template <typename T>
class Calculator
{
private:
std::string results;
int number = 0;
T get_next();
T get_value()
{
T value ... |
// Copyright 2016 The SwiftShader 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 obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... |
#ifndef __GAME_ACT_PHYSICAL_RECTANGLE_ROTATED_BLOCK_HPP__
#define __GAME_ACT_PHYSICAL_RECTANGLE_ROTATED_BLOCK_HPP__
#include "RectangleStaticBlock.hpp"
namespace GameAct
{
namespace Physical
{
class RectangleRotatedBlock
: public RectangleStaticBlock
{
public:
void setPosition( cocos2d::Vec2 position ) override;... |
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#include <iostream>
#include <vector>
#include <algorithm>
#include "faodelConfig.h"
#ifdef Faodel_ENABLE_MPI_SU... |
#include<iostream>
#include<iomanip>
using namespace std;
class Time
{
private:
int seconds;
int hh,mm,ss;
public:
void getTime(void);
void convertintoSeconds(void);
void displayTime(void);
};
void Time::getTime(void)
{
cout<<"Enter time:"<<endl;
cout<<"Hours : ";
cin>>hh;
cout<<"Minutes : ";
cin>>... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitt... |
#include "map_data.hpp"
#include <cstdio>
#include <cstdlib>
#include <iostream>
mdata::MapData::MapData(void) {
mDataAvaliable = false;
// In future will check if there is up to date MapData and load it if that is the case. For now just generates data from scratch.
/*if(MapData has already been built a... |
// Copyright 2019 The Fuchsia 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 <fuchsia/hardware/platform/bus/c/banjo.h>
#include <lib/ddk/binding.h>
#include <lib/ddk/debug.h>
#include <lib/ddk/device.h>
#include <lib/ddk/pl... |
// what: simple unit test framework
// who: developed by Kevlin Henney
// when: November 2000
// where: tested with BCC 5.5, MSVC 6.0, and g++ 2.91
#ifndef TEST_INCLUDED
#define TEST_INCLUDED
#include <boost/config.hpp>
#include <exception>
#include <iostream>
#ifdef BOOST_NO_STRINGSTREAM
#include <strstream> // ... |
/*
Author: Jerry Yang C.H. (tico88612)
Date: 2020/1/15
*/
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <iomanip>
#include <utility>
using namespace std;
typedef long long ll;
typedef pair<l... |
/*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2020, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following condition... |
/*
* si5351.cpp - Si5351 library for Arduino
*
* Copyright (C) 2015 - 2019 Jason Milldrum <milldrum@gmail.com>
* Dana H. Myers <k6jq@comcast.net>
*
* Some tuning algorithms derived from clk-si5351.c in the Linux kernel.
* Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
* Rabeeh... |
/*
* This file is part of the headcode.space crypt.
*
* The 'LICENSE.txt' file in the project root holds the software license.
* Copyright (C) 2020-2021 headcode.space e.U.
* Oliver Maurhart <info@headcode.space>, https://www.headcode.space
*/
#include <headcode/crypt/factory.hpp>
#include <tomcrypt.h>
#includ... |
/*
* @file rpc.cc
* @brief Simple Rpc-related methods.
*/
#include "rpc.h"
#include <algorithm>
#include <iostream>
#include <stdexcept>
namespace erpc {
template <class TTr>
Rpc<TTr>::Rpc(Nexus *nexus, void *context, uint8_t rpc_id,
sm_handler_t sm_handler, std::string dev_name, uint8_t phy_port)
... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rpc.proto
#include "rpc.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/prot... |
#ifndef INC__U_TYPE_STRING_HPP__
#define INC__U_TYPE_STRING_HPP__
#include "u_type_array.hpp"
namespace utl
{
/*!
* \brief The class wraps a const char within enum internally.
*/
template< wchar_t c >
struct u_ch
{
enum { m_ch = c };
};
/*!
* \brief The class creates a regular string.
*
* A regular string... |
/* Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... |
/***************************************************************************
* Copyright (c) 2016, Johan Mabille, Sylvain Corlay and Wolf Vollprecht *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* ... |
/*
Copyright (c) 2005-2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
#include <tchar.h>
#include "RCReader.h"
#include "RCVersion.h"
#include <locale.h>
#include <xl/Common/Containers/xlArray.h>
#include <xl/Common/Containers/xlMap.h>
#include <xl/Common/String/xlString.h>
#include <xl/Common/Meta/xlScopeExit.h>
#define RC_VERSION_SUCCEESS 0
#define RC_VERSION_FAILURE -1
struct Vers... |
#ifndef VG_VIZ_HPP_INCLUDED
#define VG_VIZ_HPP_INCLUDED
#include <vector>
#include <cairo.h>
#include <cairo-svg.h>
#include <iostream>
#include <chrono>
#include <ctime>
#include <sstream>
#include "xg.hpp"
#include "packer.hpp"
#include "alignment.hpp"
#include "path.hpp"
#include "position.hpp"
#include "json2pb.h"... |
// Copyright 2020 Apex.AI, 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... |
/*************************************************************************/
/* item_list_editor_plugin.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
// Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... |
//---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_ParticleEnteringCellEventDispatcher.cpp
//! \author Alex Robinson
//! \brief Particle entering cell event dispatcher declaration.
//!
//---------------------------------------------------------------------------/... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/endpoint.proto
#include "google/api/endpoint.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_forma... |
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
*************************************... |
/*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile: vtkErrorCode.cxx,v $
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Thi... |
//
// server.cpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under 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)
//
#include <ctime>
#include <iostream>
#include <... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/memtable.h"
#include "db/dbformat.h"
#include "leveldb/comparator.h"
#include "leveldb/env... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.