text
stringlengths
7
961k
//===--- ClangCommentHTMLTagsEmitter.cpp - Generate HTML tag list for Clang -=// // // The LLVM37 Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-----------------------------------------------------...
#ifdef USE_CUDA #include <cuda.h> #include <cuda_runtime_api.h> #endif #include <openpose/gpu/cuda.hpp> #include <openpose/hand/renderHand.hpp> #include <openpose/hand/handGpuRenderer.hpp> namespace op { HandGpuRenderer::HandGpuRenderer(const float renderThreshold, const float alphaKeypoint, ...
// Copyright (c) 2019, QuantStack and Mamba Contributors // // Distributed under the terms of the BSD 3-Clause License. // // The full license is in the file LICENSE, distributed with this software. #include "mamba/core/activation.hpp" #include "mamba/core/environment.hpp" #include "mamba/core/shell_init.hpp" namespa...
using namespace RSLib; rsLogger::rsLogger() { rsFile appFile = RSLib::getCurrentApplicationFile(); logFile.setFileToUse(appFile.withExtension("log")); logFile.openForWrite(); } rsLogger::~rsLogger() { logFile.closeIfOpen(); } void rsLogger::appendLogString(const rsString& stringToAppend, bool appendAdditiona...
/* Copyright (c) 2010-present Advanced Micro Devices, Inc. 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, me...
/********************************************************************** * Copyright (c) 2008-2015, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Fre...
#include "UdpProxy.h" using namespace UdpProxy; void UDPProxy::onComplete(SOCKET socket, DWORD dwTransferred, OVERLAPPED *pOverlapped, int error) { OV_DATA *pov = (OV_DATA *) pOverlapped; switch (pov->type) { case OVT_UDP_SEND: onUdpSendComplete(socket, dwTransferred, pov, error); break; ...
#include "mainwidget.h" #include <AzQtComponents/Components/EditorProxyStyle.h> #include <AzQtComponents/Components/StyledDockWidget.h> #include <AzQtComponents/Components/ToolButtonComboBox.h> #include <AzQtComponents/Components/ToolButtonLineEdit.h> #include <AzQtComponents/Components/WindowDecorationWrapper.h> #incl...
// Internal includes #include "resource/shader_source.h" // Bento includes #include <bento_base/stream.h> namespace bento { const uint32_t SHADER_SOURCE_VERSION = 1; void pack_type(bento::Vector<char>& buffer, const donut::TShaderSource& shader_source) { bento::pack_bytes(buffer, SHADER_SOURCE_VERSION); bento...
#include "MRtti.h" /** constructor */ MRtti::MRtti( const char* className, LPCREATEOBJECT ptObjCreator ) : ivClassName( className ), ivPtObjectCreator( ptObjCreator ) { } /** destructor */ MRtti::~MRtti() { } /** returns the classname for the specified class */ String MRtti::getClassName() const { return ivClassN...
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // #include "util/file_util.h" #include <sys/resource.h> ...
/* * Copyright 2020 Sebastian Kaspari * * 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...
int maxDepthHelper(TreeNode* root, int maxi) { if(!root) return 0; int left = maxDepthHelper(root->left, maxi); int right = maxDepthHelper(root->right, maxi); return max(left, right) + 1; } int Solution::maxDepth(TreeNode* A) { return maxDepthHelper(A, 0); }
#include <time.h> #include <boost/lexical_cast.hpp> #include "date_and_time.hh" namespace Kaskade { // std::vector<const char[4]> months = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}; // //std::vector<const char[3]> numericalMonths = { "01", "02" }; // // // std::string num...
#include <cpplib/stdinc.hpp> #include <cpplib/data-structure/tree/segment-tree.hpp> struct Node : STNodeSB<int> { using super_type = STNodeSB<int>; int sum = 0, mpsum = 0, mssum = 0; Node() : super_type(0) {} Node(int val) : super_type(max(val, 0LL)), sum(val), mpsum(max(val, 0LL)), mssum(max...
// Copyright 2022 The gVisor 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 agree...
/* * Copyright (C) 2006 George Staikos <staikos@kde.org> * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies) * * 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. Redist...
//此源码被清华学神尹成大魔王专业翻译分析并修改 //尹成QQ77025077 //尹成微信18510341407 //尹成所在QQ群721929980 //尹成邮箱 yinc13@mails.tsinghua.edu.cn //尹成毕业于清华大学,微软区块链领域全球最有价值专家 //https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 #pragma once #include <eosio/chain/block_header.hpp> #include <eosio/chain/incremental_merkle.hpp> #include <future> names...
// Glew include #include <GL/glew.h> #include "toonz/imagepainter.h" #include "toonz/glrasterpainter.h" #include "trastercm.h" #include "tropcm.h" #include "tpalette.h" #include "tgl.h" #include "tvectorimage.h" #include "tenv.h" #include "trop.h" #include "tvectorrenderdata.h" #include "tvectorgl.h" #include "traster...
//+--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1999. // // File: YYBase.hxx // // Contents: Custom base class for YYPARSER // // History: 30-Nov-1999 KyleP Created // //-------------------------------...
/*Copyright (c) 2019 The Paradox Game Converters Project 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, p...
// ==++== // // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // named license.txt, which can be found in the root of this distribution. // By using this software in any fashion, you are agreeing to ...
#include "stdafx.h" #include "CGDiscardEquip.h" BOOL CGDiscardEquip::Read(SocketInputStream& iStream ) { __ENTER_FUNCTION iStream.Read((CHAR*)&m_EquipPoint,sizeof(BYTE)); return TRUE; __LEAVE_FUNCTION return FALSE; } BOOL CGDiscardEquip::Write(SocketOutputStream& oStream ) const { __ENTER_FUNCTION ...
// The CScriptWeakRef class was originally implemented by vroad in March 2013 #include "weakref.h" #include <new> #include <assert.h> #include <string.h> // strstr() BEGIN_AS_NAMESPACE static void ScriptWeakRefConstruct(asIObjectType *type, void *mem) { new(mem) CScriptWeakRef(type); } static void ScriptWeakRefCon...
#include <iostream> #include <gtest/gtest.h> #include "exd/range.hpp" TEST(exd, range) { for (auto i : exd::range::range(0, 10, 2)) std::cout << i << " "; std::cout << std::endl; for (auto i : exd::range::range(0, 10, 3).to_vector()) std::cout << i << " "; std::cout << std::endl; }
#pragma once #include "../Length_Type.hpp" #include "../kAlgorithms.hpp" #include "../Vectors/Vector.hpp" namespace kmaths { template<typename T, Length_t Rows, Length_t Columns> struct Matrix; template<typename Type, Length_t R, Length_t C> USE_RESULT constexpr std::enable_if_t<R == C, Matrix<Type, R, C>> Iden...
/*========================================================================= Program: Visualization Toolkit Module: vtkOpenGLImageAlgorithmHelper.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
/*===================== begin_copyright_notice ================================== Copyright (c) 2017 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, includi...
/// /// Copyright Matus Chochlik. /// Distributed under the GNU GENERAL PUBLIC LICENSE version 3. /// See http://www.gnu.org/licenses/gpl-3.0.txt /// #ifndef EAGINE_MESSAGE_BUS_TILING_MODEL #define EAGINE_MESSAGE_BUS_TILING_MODEL #include <eagine/main_ctx_object.hpp> #include <eagine/message_bus/service.hpp> #include...
//***************************************************************************** // Copyright 2017-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://w...
// UNSUPPORTED: cuda // REQUIRES: gpu,linux // RUN: %clangxx -fsycl %s -o %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out #include "include/asmhelper.h" #include <CL/sycl.hpp> #include <cmath> #include <iostream> #include <vector> using DataType = cl::sycl::cl_int; template <typename T = DataType> struct KernelFunctor : ...
#include <sstream> #include <string> #include <glm\gtc\matrix_transform.hpp> #include "Statistics.h" Statistics::Statistics() : textPixelHeight(20), currentFrameCounter(0), totalElapsedTime(0.0f), lastSector(-1, -1) { runTime.posRotMatrix = glm::scale(glm::translate(glm::mat4(), glm::vec3(-0.821f, -0.221f, -1....
// Copyright (c) 2016 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/browser/api/atom_api_debugger.h" #include <string> #include "atom/common/native_mate_converters/callback.h" #include "atom/common/native_mate_converters/value_converte...
#include "ledlayout.hpp" #include <map> #include <set> #include <string> static const std::map<std::string, std::set<phosphor::led::Layout::LedAction>> singleLedOn = { {"/xyz/openbmc_project/ledmanager/groups/SingleLed", { {"One", phosphor::led::Layout::On, 0, 0, phosph...
/** * @file dimension.cc * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017-2019 TileDB, Inc. * * 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 re...
#include "refine_mesh.h" #include <geode/geometry/polygon.h> #include <geode/random/permute.h> // It should be safe to remove calls to check_interrupts once this is tested some more #include <geode/utility/interrupts.h> namespace other { // Brute force version of split_long_edges that always splits longest edge in th...
// Copyright (c) 2011-2017 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 <qt/openuridialog.h> #include <qt/forms/ui_openuridialog.h> #include <qt/guiutil.h> #include <qt/walletmodel.h> #i...
// // TypedefTest.hpp // c_plus_study // // Created by zte on 2019/12/25. // Copyright © 2019年 zte. All rights reserved. // #ifndef TypedefTest_hpp #define TypedefTest_hpp #include <stdio.h> #endif /* TypedefTest_hpp */ void testTypedef();
#include <iostream> /*9) Să se înlocuiască toate elementele nule dintr-un vector cu elemente numere naturale cu partea întreagă a mediei aritmetice a elementelor nenule din vector.*/ using namespace std; int main() { int i, n, v[100], s=0, ma, counter=0; cout<<"Scrie nr de elem: "; cin>>n; cout<<"Scrie...
/*************************************************************************** * * Copyright (c) 2013 Baidu, 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 * ...
#include <string> #include <vector> namespace yasi { class tuple { public: void set_value(std::string new_value); std::string const& get_value() const; private: std::string value; }; }
/** Copyright 2018 Clerc Didier Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
// 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 "chrome/browser/history/top_sites_impl.h" #include <algorithm> #include <set> #include "base/bind.h" #include "base/bind_helpers.h" #includ...
/** * @file hashccObjHashMapDec.cpp * @author Christian (graetz23@gmail.com) * * HASHCC is distributed under the MIT License (MIT); this file is part of. * * Copyright (c) 2008-2018 Christian (graez23@gmail.com) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softwar...
/******************************************************************************* Copyright(c) 2015-2020 Parker Hannifin Corp. All rights reserved. MIT Licensed. See the included LICENSE.txt for a copy of the full MIT License. *******************************************************************************/ #include "st...
/******************************************************************************************************************************* This file is a part of the EvoDesign physical Energy Function (EvoEF) Copyright (c) 2019 Xiaoqiang Huang (tommyhuangthu@foxmail.com, xiaoqiah@umich.edu) Permission is hereby granted, free o...
/** * 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...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2017-2020 The PIVX developers // Copyright (C) 2019-2020 The ucacoin developers // Distributed under the MIT/X11 software license, see the accompanying // file CO...
/******************************************************************************** * This file is part of CinoLib * * Copyright(C) 2016: Marco Livesu * * ...
// ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_DinoSettings_Herbivore_Large_Stego_parameters.hpp" namespace sdk { //--------------------------------------------------------------------------- //Functions //-----------------------------------------------...
#include "WebSocketWatchDog.h" #include <list> #include <chrono> #include <thread> #include "WebSocketConnection.h" namespace HuobiSwap { class AutoLock { public: AutoLock(std::mutex& mutex) : mutex_(mutex) { mutex_.lock(); } ~AutoLock() { mutex_.unlock(); ...
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers // Copyright (c) 2018, The MONCoin Developers // // Please see the included LICENSE file for more information. #include "ConfigurationManager.h" #include <iostream> #include <fstream> #include <CryptoTypes.h> #include <config/CliHeader.h>...
//===----------------------------------------------------------------------===// // DuckDB // // parser/expression/parameter_expression.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "parser/parsed_expression.hpp" namespace duc...
// Copyright 2019 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/printing/history/print_job_info_proto_conversions.h" #include "base/time/time_override.h" #include "chrome/browser/chro...
// 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 <cmath> #include <limits> #include <numeric> #include "base/basictypes.h" #include "base/guid.h" #include "base/memory/scoped_ptr.h" #includ...
#pragma once #include "GenericQueue.hpp" #include <queue> #include <unordered_map> class RedisQueue : public GenericQueue { std::string aliasname; public: void push(const std::string &queue, const std::string &data) override; void pushToLater(const std::string &queue, const std::string &data, ...
#include <I2CDeviceBootable.h> I2CDeviceBootable::I2CDeviceBootable(I2CBus* bus, uint8_t address) : I2CDevice(bus, address) { } void I2CDeviceBootable::checkRegisterMagic() { uint8_t magic; i2cRead( I2C_DEVICE_BOOTABLE_REGISTER_BOOT_MAGIC, &magic, 1 ); if(magic != I2C_DEVICE_BOOTABLE_BOOT_MAGIC) { strings...
#include <cstdio> #include <cstdlib> #include <cstring> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #ifdef _WIN32 #include <io.h> #else #include <unistd.h> #endif #include "image.h" #ifndef SEEK_SET #define SEEK_SET 0 #endif #ifdef _WIN32 #define OPEN_FLAGS O_BINARY | O_RDONLY #else #defi...
/*************************************************************************** # Copyright (c) 2015, 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 sourc...
#include "leetcode.hpp" /* 560. 和为K的子数组 给定一个整数数组和一个整数 k,你需要找到该数组中和为 k 的连续的子数组的个数。 示例 1 : 输入:nums = [1,1,1], k = 2 输出: 2 , [1,1] 与 [1,1] 为两种不同的情况。 说明 : 数组的长度为 [1, 20,000]。 数组中元素的范围是 [-1000, 1000] ,且整数 k 的范围是 [-1e7, 1e7]。 */ // 抄的答案 int subarraySum(vector<int>& nums, int k) { size_t len = nums.size(); int c...
// Copyright (c) 2012-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "key.h" #include "base58.h" #include "script/script.h" #include "uint256.h" #include "util.h" #include "utilstrenco...
/* * 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 <errno.h> #include <termios.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/select.h> #include <fcntl.h> #include <poll.h> #include <iostream> using namespace std; int set_interface_attribs (int fd, int speed, int parity) { struct...
#include<bits/stdc++.h> using namespace std; long long int n,m,i,p[300009],b[300009],low,high,mid,ans=999999; int flag=0; int main() { cin>>n>>m; for(i=0;i<n;i++){ cin>>b[i]; if( b[i]<b[i-1] && i!=0) flag=1; } if(flag==0){ cout<<0; return 0; } low=0; high=m-1; while(low<=high){ flag=0; mid=(l...
#pragma once #include "Constants.hpp" #include <stdlib.h> #include <string> #include <memory> #include <vector> #include "External/json/json.hpp" #define NWNX_INTERNAL_EXPAND(s) #s #define NWNX_INTERNAL_STRINGIFY(s) NWNX_INTERNAL_EXPAND(s) #define NWNX_EXPECT_VERSION(version, revision) \ static_assert(NW...
// (C) Copyright Gennadiy Rozental 2003-2015. // 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) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ // // Version ...
#include "c3.h" #include "windows.h" #include "cheatkey.h" typedef struct { int val[ CHEATKEY_LENGTH ]; } cheatkey_t, *LP_cheatkey_t; cheatkey_t cheatkey_thisKey = { 0x968861B9, 0x37999141, 0x9CB98A8D, 0x50115FB6, 0x1A221DE7, 0x8B0AFEBF, 0xD302DFF6, 0xD92CF444, 0x8A8CBB7E, 0x70532E03, 0x87643D56, 0x4D117B0C, 0x...
// // Copyright (c) 2016-2020 Kris Jusiak (kris at jusiak dot net) // // 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) // #ifndef BOOST_SML_AUX_UTILITY_HPP #define BOOST_SML_AUX_UTILITY_HPP #include "boost/sml/aux_/...
// C:\diabpsx\SOURCE\PFILE.CPP #include "types.h" // address: 0x8005879C // line start: 380 // line end: 385 unsigned char game_2_ui_class__FPC12PlayerStruct(struct PlayerStruct *p) { } // address: 0x800587C8 // line start: 391 // line end: 404 void game_2_ui_player__FPC12PlayerStructP11_uiheroinfoUc(struct Pla...
/* This code is a modified version of an algorithm forming part of the software program Finite Element Method Magnetics (FEMM), authored by David Meeker. The original software code is subject to the Aladdin Free Public Licence version 8, November 18, 1999. For more information on FEMM see www.femm....
// Copyright 2019-2022 Cambridge Quantum Computing // // 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...
/* * TanhActivationLayer.hpp * * Created on: 23 Jul 2018 * Author: Viktor Csomor */ #ifndef C_ATTL3_LAYER_ACTIVATION_TANHACTIVATIONLAYER_H_ #define C_ATTL3_LAYER_ACTIVATION_TANHACTIVATIONLAYER_H_ #include <cassert> #include "layer/ActivationLayer.hpp" namespace cattle { /** * A class template represent...
#include "Perturb.hpp" #include <iostream> namespace terrain { /** * \brief Apply the perturbation operation to the matrix. From "Texturing and Modeling: A Procedural Approach (Third Edition)" */ cv::Mat Perturb::apply(const cv::Mat& img, float mag, Offset offset1, Offset offset2) { cv::Mat new_img(img.rows, img...
#pragma once #include <nall/hash/hash.hpp> namespace nall::Hash { struct SHA512 : Hash { using Hash::input; SHA512(array_view<uint8_t> buffer = {}) { reset(); input(buffer); } auto reset() -> void override { for(auto& n : queue) n = 0; for(auto& n : w) n = 0; for(auto n : range(8)) h[n...
// // HUDManager.cpp // IkasGame // // Created by Mikel Eizagirre on 2014-12-24. // // #include "HUDManager.h" #include "AppManager.h" // Singleton HUDManager * HUDManager::_instance = NULL; HUDManager* HUDManager::getInstance() { if(!_instance) _instance = new HUDManager(); return _instance; } HUDManage...
#include <functional> #include <iostream> #include <strstream> #include <string> #include <unordered_map> #pragma GCC diagnostic ignored "-Wattributes" #include "antlr4-runtime.h" // antlr4-cpp-runtime #include "tree/ParseTreeWalker.h" // antlr4-cpp-runtime #include "tree/ParseTreeProperty.h" // antlr4-cpp-runtime #...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //=============================================================================// #include "cbase.h" #include "dod_playerclass_info_parse.h" #include "dod_shareddefs.h" #include "weapon_dodbase.h" #include <KeyValues.h> //...
#ifndef PATH_CONFIG_HPP #define PATH_CONFIG_HPP #include "path.hpp" namespace mngx { class PathConfig : public Path { private: static const std::string HOME; static const std::string FOLDER; static const std::string FILENAME; static const std::string EXTENSION; public: static const std::string getDefaultP...
/* -*- mode: c++; fill-column: 72; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ifndef _Hasher_H_ #define _Hasher_H_ #include "HashStrategy.hpp" #include <string> #include <vector> namespace irods { class Hasher { public: Hasher( void ); virtual ~Hasher( void ); unsigned int ad...
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_binary_oprimitive.ipp: // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at /...
#include "fileUtils.h" namespace utils { utils::expected<const std::string, const std::string> readFile(const std::filesystem::path& path) noexcept { try { std::ifstream file{ path.string() }; if(!file.good()) { return utils::make_unexpected("Couldn't open the config...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the library KASKADE 7 */ /* see http://www.zib.de/projects/kaskade7-finite-element-toolbox */ ...
#include <boost/bind.hpp> #include <iostream> #include <string> std::string f(std::string const & x) { return "f(" + x + ")"; } std::string g(std::string const & x) { return "g(" + x + ")"; } std::string h(std::string const & x, std::string const & y) { return "h(" + x + ", " + y + ")"; } std::string k(...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "precomp.h" #include "_output.h" #include "dbcs.h" #include "handle.h" #include "misc.h" #include "../buffer/out/CharRow.hpp" #include "../interactivity/inc/ServiceLocator.hpp" #include "../types/inc/Viewport.hpp" #include "../type...
/********************************************************************* Copyright 2013 Karl Jones 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 ...
#ifndef VAULTSERVER_H #define VAULTSERVER_H #include "vaultmp.hpp" #define MODFILES_PATH "mods" #define DATA_PATH "data" #define PWNFILES_PATH "AMXFILE=files" #define PWNFILES_KEY "AMXFILE" #define PWNFILES_VAL "files" #define DB_FALLOUT3 "fallout3.sqlite3" #ifndef MAX_PATH #define MAX_PATH PATH_MAX #endif #ifnd...
/************************************************************************ * \file pubsvcmesh/src/RemoteServiceComponent.cpp * \ingroup AREG Asynchronous Event-Driven Communication Framework examples * \author Artak Avetyan * \brief Collection of AREG SDK examples. * This file con...
#include "CalibMuon/RPCCalibration/interface/RPCFakeCalibration.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/MakerMac...
/* * 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 ...
// 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 may...
#include <cppfile.h> #include <string> extern "C" { #ifndef INCLUDED_CPPFILE #include <cppfile.h> #endif #include <cppfile.h> #include <deep.h> #include <string> } // ---------------------------------------------------------------------------- // Copyright (C) 2014 Bloomberg Finance L.P. // // Licensed under the Apa...
// Copyright 2020 Embotech AG, Zurich, Switzerland // // 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) 2002-2017 The ANGLE 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. // // The ValidateVaryingLocations function checks if there exists location conflicts on shader // varyings. // #include "ValidateVarying...
/* * Copyright (c) 2014, Peter Thorson. 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 cond...
/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/REDhash.hpp> #include <RED4ext/Types/generated/quest/IEntityManager_NodeType.hpp> namespace RED4ext { namespace quest { struct EntityManagerEnablePlayerTPPRepresentation_NodeType...
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include "doctest.h" #include "../src/EventHandler.hpp" #include <SFML/Graphics.hpp> class EventChecker { private: int value; int targetValue; public: EventChecker(int target); ~EventChecker(); void resetValue() { this->value = 0; } ...
#include "parametric_kf.h" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; /* * No implementation because parametric_kf is an abstract interface class * * */
// This is a generated file, modify: generate/templates/templates/class_content.cc #include <nan.h> #include <string.h> extern "C" { #include <git2.h> } #include "../include/nodegit.h" #include "../include/lock_master.h" #include "../include/functions/copy.h" #include "../include/attr.h" #include "nodegit_wrapper...
/* * Copyright (C) 2004-2021 Intel Corporation. * SPDX-License-Identifier: MIT */ #include <stdio.h> #include "pin.H" FILE* trace; // This function is called before every instruction is executed // and prints the IP VOID printip(VOID* ip) { fprintf(trace, "%p\n", ip); } // Pin calls this function every time a ne...