text
stringlengths
5
1.04M
/* Copyright (C) 2008, Morgan Quigley and Willow Garage, Inc. * * 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 conditio...
// Copyright 2020 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 or agreed to in ...
#include <aws/logs/model/DescribeLogGroupsRequest.h> #include <aws/logs/model/CreateLogGroupRequest.h> #include <aws/logs/model/PutRetentionPolicyRequest.h> #include <aws/logs/model/DescribeLogStreamsRequest.h> #include <aws/logs/model/CreateLogStreamRequest.h> #include <aws/logs/model/PutLogEventsRequest.h> #include <...
// Copyright © 2014 German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #ifndef NIX_TESTPROPERTYHDF5_HPP #define NIX_T...
/************************************************************************ * * * Copyright (C) 2007 Christina Warrender and Drew Levin * * * * This file is part of ...
#include <vector> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/calib3d/calib3d.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <aslam/cameras/GridCalibrationTargetCheckerboard.hpp> #include <sm/eigen/serialization.hpp> namespace aslam { namespace cameras { /// \brief ...
/* * Copyright (c) 2020-2022, Liav A. <liavalb@hotmail.co.il> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/AllOf.h> #include <AK/Array.h> #include <Kernel/Debug.h> #include <Kernel/Storage/Partition/GUIDPartitionTable.h> namespace Kernel { #define GPT_SIGNATURE2 0x54524150 #define GPT_SIGNATURE 0x20...
// Copyright 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 "chrome/browser/ui/search/instant_search_prerenderer.h" #include <stdint.h> #include <memory> #include <tuple> #include "base/compiler_specifi...
// Copyright (c) 2014-2018, The Monero Project // Copyright (c) 2018, The sevabit Project // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must r...
#include <string> #include <fstream> #include "TkrNoiseRep.h" int main(int argc, char** argv) { std::string svacRootFile, reportDir, prefix; std::string optionFileName; if (argc==4) { svacRootFile = argv[1]; reportDir = argv[2]; prefix = argv[3]; } else { if (argc==1) { o...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <memory> #include <vector> #include <gtest/gtest.h> #include "mcrouter/lib/network/gen/MemcacheMessages.h" #include "mcr...
/*========================================================================= Program: Visualization Toolkit Module: TestSmartPointer.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This...
#include "hoCuNDArray_utils.h" #include "radial_utilities.h" #include "hoNDArray_fileio.h" #include "cuNDArray.h" #include "imageOperator.h" #include "identityOperator.h" #include "hoPartialDerivativeOperator.h" #include "hoCuConebeamProjectionOperator.h" #include "cuConvolutionOperator.h" #include "hoCuNDArra...
//https://vjudge.net/contest/419722#problem/D #include <bits/stdc++.h> using namespace std; #define F first #define S second typedef long long ll; typedef long double ld; ll mod = 1e9 + 7; vector<ll> dp(1500); void init () { vector<ll> p; p.push_back (2); function<bool (ll)> f = [] (ll x) {for (ll i = 2; ...
/*Class for code options*/ #include "option_class.hpp" #include <boost/program_options.hpp> namespace po = boost::program_options; void Option::version(double version_number) { // Function that prints current code version. std::cout<<"Version: "<<std::fixed<<std::setprecision(1) <<version_number<<std::endl; ...
// $Id$ #include "ace/OS_main.h" #include "ace/OS_Memory.h" #include "ace/SPIPE_Addr.h" #include "ace/SPIPE_Connector.h" #include "ace/Log_Msg.h" #include "ace/OS_NS_stdio.h" #include "ace/OS_NS_stdlib.h" #include "ace/OS_NS_unistd.h" #include "ace/Time_Value.h" #if defined (ACE_HAS_STREAM_PIPES) #include "shared....
#ifndef FCQUEUE_H #define FCQUEUE_H #include "app_utils.hh" // ulong_t #include "utils.hh" #include <stdio.h> #include <errno.h> #include <algorithm> #define UNUSED_SLOT_THRESHOLD 10 #define LOCKED 1 #define UNLOCKED 0 #if 0 struct QNode { QNode* volatile next; ulong_t val; QNode() : val(0)...
No-one has translated the mdwrkapi example into C++ yet. Be the first to create mdwrkapi in C++ and get one free Internet! If you're the author of the C++ binding, this is a great way to get people to use 0MQ in C++. To submit a new translation email it to zeromq-dev@lists.zeromq.org. Please: * Stick to identical ...
// 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 "content/browser/indexed_db/indexed_db_dispatcher_host.h" #include "base/barrier_closure.h" #include "base/callback.h" #include "base/files/scop...
/* * Copyright 2012 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
/** \file stringutils.cpp \maintainer Morgan McGuire, http://graphics.cs.williams.edu \created 2000-09-09 \edited 2011-08-20 */ #include "G3D/platform.h" #include "G3D/stringutils.h" #include "G3D/BinaryInput.h" #include <algorithm> #ifdef G3D_WINDOWS extern "C" { // Define functions for ffmpeg since w...
// Copyright 2017 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...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The TorkilCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mi...
// // Copyright (c) 2014-present, Facebook, Inc. // Copyright (c) 2015, Jakub Klama <jakub@ixsystems.com> // All rights reserved. // // This source code is licensed under the University of Illinois/NCSA Open // Source License found in the LICENSE file in the root directory of this // source tree. An additional grant of...
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
#include "renderer/material.h" #include "engine/crc32.h" #include "engine/fs/file_system.h" #include "engine/json_serializer.h" #include "engine/log.h" #include "engine/path_utils.h" #include "engine/profiler.h" #include "engine/resource_manager.h" #include "engine/resource_manager_base.h" #include "renderer/material_m...
#ifndef JULES_VECTOR_FUNCTIONAL_H #define JULES_VECTOR_FUNCTIONAL_H #include <vlite/binary_expr_vector.hpp> #include <vlite/unary_expr_vector.hpp> #include <functional> namespace vlite { template <typename Vector, typename Op> static auto apply(const common_vector_base<Vector>& operand, Op op) { return unary_expr...
// ============================================================== // RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC // Version: 2018.3 // Copyright (C) 1986-2018 Xilinx, Inc. All Rights Reserved. // // =========================================================== #include "grad_vertical_...
/** * Marlin 3D Printer Firmware * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General...
#include "physical_device.h" using namespace VulkanUtils; void PhysicalDevice::PickPhysicalDevice(VulkanApp& app) { uint32_t deviceCount; vkEnumeratePhysicalDevices(app.instance, &deviceCount, nullptr); if (deviceCount == 0) { throw std::runtime_error("There is no gpu that support vulkan !"); ...
#include <iostream> using namespace std; // Verifica se o sistema eh possivel e determinado bool spd(double a1, double b1, double a2, double b2) { if ((a1 * b2) - (a2 * b1) != 0) { return true; } else { return false; } } int main() { double x1, y1, x2, y2, coordenadaConhecida, coorden...
// -*- C++ -*- //===----------------------------------------------------------------------===// // // Copyright (C) 2020 Intel Corporation // // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // // This file incorporates work covered by the following copyright and permission // notice: // // Part of the LLVM P...
#ifdef ONLINE_JUDGE #include <bits/stdc++.h> #else #include <algorithm> #include <bitset> #include <list> #include <cassert> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <set> #include <stack> #include <string> #include <utility> #include <vector> ...
//$Id: ErrorModel.hpp 1398 2015-01-07 20:39:37Z tdnguyen $ //------------------------------------------------------------------------------ // ErrorModel //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyrigh...
#include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int maxn = 25; typedef unsigned long long ll; char str[maxn]; ll dp[maxn][maxn][maxn]; ll solve () { int n = strlen(str), c = 0; for (int i = 0; i < n; i++) if (str[i] == '-') c++; memset(dp, 0, sizeof(dp)); dp[0][0][0] = 1; ...
#include <cstdio> #include <vector> void dfs(long node, const std::vector<std::vector<long> > &g, std::vector<bool> &visited, const std::vector<int> &colors, long col){ if(visited[node]){return;} visited[node] = true; for(long p = 0; p < g[node].size(); p++){ long u = g[node][p]; if(visite...
//a cpp file for the global functions implementation //If two students are equal the return value of such a function will be 0. //If the first student is bigger than the second one, the return value will be 1, otherwise - 1. #define _CRT_SECURE_NO_WARNINGS #include "compara_studenti.h" #include "student.h" #include <...
// // Copyright (C) 2004-2008 Maciej Sobczak, Stephen Hutton // 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) // #define SOCI_POSTGRESQL_SOURCE #include "soci/postgresql/soci-postgresql.h" #include "soci/blob.h" ...
// Copyright 2014 the V8 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. #include "src/base/adapters.h" #include "src/compiler/instruction-selector-impl.h" #include "src/compiler/node-matchers.h" #include "src/compiler/node-p...
#pragma once #include "src/Screen.hpp" #include <SDL_events.h> #include <memory> namespace osc { // META: this is a valid screen with `CookiecutterScreen` as a replaceable // string that users can "Find+Replace" to make their own screen impl class CookiecutterScreen final : public Screen { p...
#ifndef STICPP_TAB_STOPS_HPP #define STICPP_TAB_STOPS_HPP namespace stiX { inline const size_t tabSize = 4; inline size_t next_tab_stop(size_t position) { const auto currentTab = (position / tabSize); const auto nextTab = currentTab + 1; const auto nextStop = nextTab * tabSize; ...
#include "Path.h" #include "Logging.h" #include "utils/Constants.h" #include "utils/AdjacentCellIterator.h" using namespace std; namespace map_solver { void Path::checkInBounds(index_t idx) const { if (idx > m_cells.size()) throw OutOfBoundsException("index is larger than the current cell size"); if ...
//****************************************************************************** // // File: ShimDllInterface.hxx // // Activation parameters to be passed from the version-independent hosting shim // exe to the version-specific hosting DLL. // // History: // // 2005-05-19: [....] - Created // 2007/09/20...
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2020 Ryo Suzuki // Copyright (c) 2016-2020 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include "CRenderer2D_GL4.hpp" # include <Siv...
// // Created by npchitman on 6/1/21. // #include <Aphrodite/Input/Input.h> #include <GLFW/glfw3.h> #include "Aphrodite/Core/Application.h" #include "pch.h" namespace Aph { bool Input::IsKeyPressed(const KeyCode keycode) { auto window = static_cast<GLFWwindow *>(Application::Get().GetWindow().GetNativeWi...
// Copyright 2019 Open Source Robotics Foundation, 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 appli...
/* * 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 ...
/** * @author : archit * @GitHub : archit-1997 * @Email : architsingh456@gmail.com * @file : middleOfTheLinkedList.cpp * @created : Saturday Aug 07, 2021 07:07:01 IST */ #include <bits/stdc++.h> using namespace std; /** * Definition for singly-linked list. * struct ListNode { * ...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: SITLGps.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "SITLGps.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port.h> #include <google/protobuf/stubs/once.h> #include <go...
/// @file /// @version 4.0 /// /// @section LICENSE /// /// This program is free software; you can redistribute it and/or modify it under /// the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause #ifndef __ANDROID__ #ifndef _UWP #define RESOURCE_PATH "../../demos/media/" #else #define RESOU...
/* * Copyright (c) 2021, 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 required by applic...
/* * Tyler Hunt * Advanved C++ * OCCC Fall 2017 * Due: 10/7/17 * Details: Tower of Hanoi */ #include <iostream> #include <iomanip> #include <cstdlib> #include <string> using namespace std; int[] getInputs(int argc, char * argv[]); int main(int argc, char * argv[]){ cout << "\n~~~~~~~~~~~~ Tower of H...
// Copyright (c) 2005-2009 Jaroslav Gresula // // Distributed under the MIT license (See accompanying file // LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt) // #include "precompiled.h" #include <core/jstd/message_sink_console.h> #include <cstdio> namespace jag { namespace jstd { /////////////////////////////...
/*========================================================================= Program: Visualization Toolkit Module: vtkHyperTreeGridAxisCut.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This s...
#include "T3BTuner.h" #include "Gpio.h" #include "SystemAdapt.h" #include <string.h> static const uint16_t TunerSerialBaudrate = 57600U; static const uint8_t HeaderSizeIndex = 5U; static const uint8_t ResponseAck = 0x00; static const uint8_t ResponseAckNack = 0x02; static const uint8_t UnusedPin = 255; T3BTuner::T3BT...
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int t; cin >> t; while(t--) { int n, k; cin >> n >> k; vector<int> p(k); for(int i = 0; i < p.size(); ++i) { p[i] = i + 1; } reverse(p.begin() + (k * 2 - ...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkTypes.h" #include "include/core/SkCanvas.h" #include "include/core/SkPoint.h" #include "include/core/SkSurface.h" #include "include/gpu/GrBackendSurf...
/** * \file PolygonArea.hpp * \brief Header for GeographicLib::PolygonAreaT class * * Copyright (c) Charles Karney (2010-2016) <charles@karney.com> and licensed * under the MIT/X11 License. For more information, see * https://geographiclib.sourceforge.io/ ********************************************************...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are perm...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2016 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 "chainparams.h" #include "consensus/merkle.h" #include "pubkey.h" #include "t...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2018 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 <rpc/blockchain.h> #include <amount.h> #include <base58.h> #include <chain.h...
#pragma once #ifndef HYDROSIG_CONNECTION_WRAPPER_HPP_INCLUDED #define HYDROSIG_CONNECTION_WRAPPER_HPP_INCLUDED /* * MIT License * * Copyright (c) 2017 Peter Gyulai * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
#pragma once #include <string> #include <vector> #include "json/json.h" inline bool json_from_str(int& i, const Json::Value& root) { if (root.isNull() || root.isObject() || root.isArray()) return false; if (root.isInt()) { i = root.asInt(); return true; } else return false; } inline bool json_from_str(...
// Copyright (c) 2021-present Sparky Studios. 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 requir...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
#include <cppunit/TestSuite.h> #include <cppunit/extensions/TestFixtureFactory.h> #include <cppunit/extensions/TestNamer.h> #include <cppunit/extensions/TestSuiteBuilderContext.h> CPPUNIT_NS_BEGIN TestSuiteBuilderContextBase::TestSuiteBuilderContextBase( TestSuite &suite, ...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * 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. Redistributions of source code must retain the above copyright noti...
/*++ Copyright (c) 2017 Microsoft Corporation Module Name: <name> Abstract: <abstract> Author: Lev Nachmanson (levnach) Revision History: --*/ #include "util/lp/lp_dual_simplex_def.h" template lp::mpq lp::lp_dual_simplex<lp::mpq, lp::mpq>::get_current_cost() const; template void lp::lp_dual_simplex...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.IntPtr #include "Sys...
#include SAMPCPP_PCH #include <SAMPCpp/Core/BasicInterfaces/PlacementTracker.hpp> namespace samp_cpp { //////////////////////////////////////////////////////////////////////////////////////////////////////////// I3DNodePlacementTracker::I3DNodePlacementTracker(ActorPlacement const & initialPlacement_) : m_lastPlacem...
// Copyright (c) 2017-2019 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 <consensus/tx_verify.h> #include <consensus/consensus.h> #include <primitives/transaction.h> #include <script/inter...
#include <hxcpp.h> #ifndef INCLUDED_lime_graphics_opengl_ext_APPLE_sync #include <lime/graphics/opengl/ext/APPLE_sync.h> #endif HX_DEFINE_STACK_FRAME(_hx_pos_7969c112b28ce208_4_new,"lime.graphics.opengl.ext.APPLE_sync","new",0xc89c95d4,"lime.graphics.opengl.ext.APPLE_sync.new","lime/graphics/opengl/ext/APPLE_sync.hx"...
// 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 "chrome/browser/chromeos/customization_document.h" #include "base/at_exit.h" #include "base/message_loop/message_loop.h" #include "base/pref...
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #pragma once #include <functional> #include <type_traits> #include "caf/catch_all.hpp" ...
// Source : https://leetcode.com/problems/happy-number/ // Author : lizhenghn@gmail.com // Date : 2015-05-11 /********************************************************************************** Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Startin...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Securit...
// atcoder/abc150/A/main.cpp // author: @___Johniel // github: https://github.com/johniel/ #include <bits/stdc++.h> #define each(i, c) for (auto& i : c) #define unless(cond) if (!(cond)) using namespace std; typedef long long int lli; typedef unsigned long long ull; typedef complex<double> point; template<typename...
// txt2html - written by Steve Plimpton, May 2004 // table formatting by Anna Reese, Jul 2004 // Sandia National Labs, www.cs.sandia.gov/~sjplimp // // txt2html converts a text file with simple formatting & markup into HTML // formatting & markup specification is given in README // // Syntax: txt2html options file ...
#include <glm/gtc/matrix_transform.hpp> #include <OBJ_Loader.h> #include <unordered_map> #include <algorithm> #include <cstdint> #include "Model.h" #include "Log.h" #include "Utility.h" namespace fly { inline static glm::vec3 to_vec3(const objl::Vector3& v) { return {v.X, v.Y, v.Z}; } Model::Model(const std::s...
//----------------------------------*-C++-*----------------------------------// /*! * \file parser/test/tstExpression.cc * \author Kent Budge * \date Wed Jul 26 08:15:18 2006 * \brief Test the Expression class and expression parsing. * \note Copyright (C) 2016-2019 Triad National Security, LLC. * A...
/* * Copyright (C) 2010 Google 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: * * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
#include "Vertex.h" #include <df3d/lib/Utils.h> #include <df3d/engine/EngineController.h> namespace df3d { static uint16_t GetAttributeSize(VertexFormat::VertexAttribute attrib) { switch (attrib) { case VertexFormat::POSITION: return 3 * sizeof(float); case VertexFormat::TX: return 2 ...
// ------------------------------------------------------------ // 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" #include <...
//---------------------------------------------------------------------------- /// @file sort_basic.hpp /// @brief Spin Sort algorithm /// /// @author Copyright (c) 2016 Francisco José Tapia (fjtapia@gmail.com )\n /// Distributed under the Boost Software License, Version 1.0.\n /// ( See accompanying fi...
#ifndef __RESPONSE__ #define __RESPONSE__ #include "../utils/include.hpp" #include "../utils/utilities.hpp" #include <string> const std::string SERVER_NAME = "AP HTTP Server"; class Response { public: Response(int code = 200); std::string print(int &); void log(bool showBody = false); void setHeader(std::stri...
/// @ref gtx_hash /// /// @see core (dependence) /// /// @defgroup gtx_hash GLM_GTX_hash /// @ingroup gtx /// /// @brief Add std::hash support for glm types /// /// <glm/gtx/hash.inl> need to be included to use the features of this extension. namespace glm { namespace detail { GLM_INLINE void hash_combine(size_t &see...
/** @File Mouse2D class definition */ #ifndef MOUSE2D_HH_ # define MOUSE2D_HH_ # include <set> # include "vector-2d.hh" # include "game-observer-2d.hh" namespace opl { /// Mouse state representation from 2D programming class Mouse2D: public GameObserver2D { public: static Mouse2D* ins...
/// libdas: DENG asset handling management library /// licence: Apache, see LICENCE file /// file: GLTFParser.cpp - GLTF format parsing class implementation /// author: Karl-Mihkel Ott #define GLTF_PARSER_CPP #include <GLTFParser.h> namespace Libdas { GLTFParser::GLTFParser(const std::string &_file_name) : ...
// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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...
#pragma once #include <vector> #include "rocksdb/write_batch.h" namespace py_rocks { class RecordItemsHandler: public rocksdb::WriteBatch::Handler { public: enum Optype {PutRecord, MergeRecord, DeleteRecord}; class BatchItem { public: BatchItem( co...
#include "sdk/ins_sdk.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <string> #include <algorithm> #include <vector> #include <iostream> using namespace galaxy::ins::sdk; void my_watch_cb(const WatchParam& param, SDKError error) { InsSDK* sdk = static_cast<InsSDK*>(par...
/************************************************************************* * Copyright (c) 2015-2020, NVIDIA CORPORATION. All rights reserved. * * See LICENSE.txt for license information ************************************************************************/ #include "enqueue.h" #include "collectives.h" #include...
#ifndef BOOST_MPL_MAP_AUX_ERASE_IMPL_HPP_INCLUDED #define BOOST_MPL_MAP_AUX_ERASE_IMPL_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2003-2004 // Copyright David Abrahams 2003-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost....
#include "neste_private.h" #include <stdexcept> NESTED_CPPMM_API unsigned int nest__NestBE_do_something( nest_NestBE_t * this_) { try { (to_cpp(this_)) -> do_something(); return 0; } catch (std::exception& e) { TLG_EXCEPTION_STRING = e.what(); return -1; } }
#include "IEFile.h" #include <cassert> IEFile::IEFile() : relativePtrLocation(0), fileOpened(false), fileSize(0), eofReached(true) {} IEFile::IEFile(IEFile&& mv) : handle(mv.handle) , relativePtrLocation(mv.relativePtrLocation) , fileOpened(mv.fileOpened) , fileSize(mv.fileSize) , eofReached(mv.eo...
#include <boost/typeof/decltype.hpp>
#include<iostream> #include<algorithm> #include<cmath> using namespace std; int a[32][32],n,m,pr[32]; int countPoint(int i, int p) { int l,r,mid; sort (a[i],a[i]+n); if(p<a[i][0]||p>a[i][n-1])return -500; l=0;r=n-1; while(l<=r) { mid=(l+r)/2; if(p==a[i][mid]) return p; if(p>a[i...
// *********************************************************************** // // Grappolo: A C++ library for graph clustering // Mahantesh Halappanavar (hala@pnnl.gov) // Pacific Northwest National Laboratory // // ******************************************************************...
/**************************************************************************** ** ** Copyright (C) 2019 Xiaohai <xiaohaidotpro@outlook.com>. ** Contact: http://xiaohai.pro ** ** This file is part of data-structure-and-algorithm ** ** ****************************************************************************/ #includ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...