text
stringlengths
7
961k
/**************************************************************************** Copyright (c) 2017-2020 Kevin Wu (Wu Feng) github: http://github.com/kevinwu1024 Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License a...
/* 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 "device.h" #include "keys.h" #include "leakdetector.h" #include <QDateTime> #include <QJsonObject> #incl...
/* * File: symboltable.cpp * Author: Kolger Hajati * Date: May 7, 2019 * Purpose: The file that stores the variables. */ #include <string> #include <vector> using namespace std; #include "symboltable.h" void SymbolTable::insert(string variable, double value) { const Symbol& symbol = Symbol(variable, value); ...
#include "common.h" void placeholder_0(){}
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "rpcsendv2.h" #include "rpcnetwork.h" #include "rpcserviceaddress.h" #include <vespa/messagebus/emptyreply.h> #include <vespa/vespalib/util/stringfmt.h> #include <vespa/vespalib/data/slime/sl...
#include "Messages.h" #include "MemoryStream.h" #include "KBEngine.h" namespace KBEngine { TMap<MessageID, Message*> Messages::loginappMessages; TMap<MessageID, Message*> Messages::baseappMessages; TMap<MessageID, Message*> Messages::clientMessages; TMap<FString, Message*> Messages::messages; void Message_Client_onR...
/** * Copyright 2020 Huawei Technologies Co., Ltd * * 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...
#ifndef BOOST_SMART_PTR_DETAIL_LOCAL_COUNTED_BASE_HPP_INCLUDED #define BOOST_SMART_PTR_DETAIL_LOCAL_COUNTED_BASE_HPP_INCLUDED // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif // detail/local_counted_base.hpp // // Copyright 2017 Peter Dimov // // Dis...
#include "StdAfx.h" #include "ObjectTable.h" #include "IDisposable.h" #include "PhysXException.h" using namespace System::Threading; using namespace System::Linq; ObjectTable::ObjectTable() { _objectTable = gcnew Dictionary<intptr_t, Object^>(); _ownership = gcnew Dictionary<IDisposable^, IDisposable^>(); _ownerTy...
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Christian Schulte <schulte@gecode.org> * * Copyright: * Christian Schulte, 2004 * * Last modified: * $Date: 2009-03-02 20:08:11 +1100 (Mon, 02 Mar 2009) $ by $Author: schulte $ * $Revision: 8320 $ * * T...
// Copyright 2018 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 2009-2017 Alibaba Cloud 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...
/* [auto_generated] boost/numeric/odeint/stepper/generation.hpp [begin_description] Forward header for the factory functions. Includes all files from the generation directory. [end_description] Copyright 2011 Karsten Ahnert Copyright 2011 Mario Mulansky Distributed under the Boost Software License, Version 1...
//================================================================================================== /* EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT */ //================================================================================================== #in...
#include "packetparticipantsdata.h" namespace pcars { PacketParticipantsData::PacketParticipantsData() { add(&packet_base_); add(&participants_changed_timestamp_); add(&name_); add(&nationality_); add(&index_); } PacketBase PacketParticipantsData::packet_base() const { return packet_base_; } unsigned int Pa...
/* * Copyright (c) 2013-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * 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...
#include "stdafx.h" /* * Copyright (c) 2007-2012 SlimDX Group * * 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, m...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <AZTestShared/Math/MathTestHelpers.h> #include <AzCore/Interface/Interface.h> #include <...
// 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 <stddef.h> #include "base/auto_reset.h" #include "base/command_line.h" #include "base/strings/utf_string_conversions.h" #include "base/test/...
#include "Module.h" #include "ModuleWindow.h" #include "ModuleRender.h" #include "ModuleTextures.h" #include "ModuleInput.h" #include "ModuleAudio.h" #include "ModuleUI.h" #include "ModulePhysics.h" #include "ModuleSceneIntro.h" #include "ModuleFonts.h" #include "Application.h" Application::Application() { renderer ...
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // TGUI - Texus' Graphical User Interface // Copyright (C) 2012-2018 Bruno Van de Velde (vdv_b@tgui.eu) // // This software is provided 'as-is', without any express or implied warranty. /...
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include <memory> #include <utility> #include "vm/heap/heap.h" #include "platform/assert.h" #include ...
//===-- Exceptions.cpp - Helpers for processing C++ exceptions ------------===// // // 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 // //===---------------------------...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2004-2013. 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/contain...
#include "DrawSceneSimChar.h" #include "sim/SimBox.h" #include "render/DrawUtil.h" #include "render/DrawGround.h" #include "render/DrawCharacter.h" #include "render/DrawSimCharacter.h" #include "render/DrawObj.h" #include "render/DrawWorld.h" #include "render/DrawPerturb.h" const tVector gCamFocus0 = tVector(0, 0.75...
#include "Connection.hpp" #include <iostream> #include <math.h> #include <QtWidgets/QtWidgets> #include <QtGlobal> #include "Node.hpp" #include "FlowScene.hpp" #include "FlowView.hpp" #include "NodeGeometry.hpp" #include "NodeGraphicsObject.hpp" #include "NodeDataModel.hpp" #include "ConnectionState.hpp" #include ...
// 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 "base/compiler_specific.h" #include "base/utf_string_conversions.h" #include "chrome/browser/autofill/password_autofill_manager.h" #include "...
/* Copyright (c) 2006-2013, Alexis Royer, http://alexis.royer.free.fr/CLI 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 copy...
// 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). // // Copyright (c) 2011 The LevelDB Authors. All rights r...
#include "camera.h" #include "game/playercontrol.h" #include "game/definitions/cameradefinitions.h" #include "gothic.h" #include "world/world.h" #include "game/serialize.h" #include "world/npc.h" #include "world/interactive.h" using namespace Tempest; static float angleMod(float a){ a = std::fmod(a,360.f); if(a...
#include<ros/ros.h> #include<cartesian_move/relative_move.h> int main(int argc,char** argv) { ros::init(argc,argv,"relative_move"); ros::NodeHandle nh; RelativeMove relative(nh); relative.init(); ros::spin(); }
#include <cpp11.hpp> void buggy_fill(cpp11::writable::doubles& x, double value) { R_xlen_t size = x.size(); for (R_xlen_t i = 1; i <= size; ++i) { x[i] = value; } } [[cpp11::register]] cpp11::writable::doubles buggy_init(cpp11::integers size) { R_xlen_t c_size = static_cast<R_xlen_t>(size[0]); cpp11::w...
#include "Scene/SyrinxScene.h" #include <Common/SyrinxAssert.h> #include <Logging/SyrinxLogManager.h> namespace Syrinx { Scene::Scene(const std::string& name) : RenderResource(name) , mRoot(nullptr) { SYRINX_ENSURE(!mRoot); } SceneNode* Scene::createRoot(const std::string& name) { SYRINX_EXPECT(!mRo...
// -*- C++ -*- // // Package: L1CaloTrigger // Class: Phase1L1TJetSumsProducer // /**\class Phase1L1TJetSumsProducer Phase1L1TJetSumsProducer.cc L1Trigger/L1CaloTrigger/plugin/Phase1L1TJetSumsProducer.cc Description: Computes HT and MHT from phase-1-like jets *** INPUT PARAMETERS *** * sin/cosPhi: Value of sin/cos ...
// Copyright (c) 2009-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 <validation.h> #include <arith_uint256.h> #include <chain.h> #include <...
/****************************************************************************** Copyright (c) 2021, Farbod Farshidian. 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 mu...
/* * Copyright 2020-2021 Hewlett Packard Enterprise Development LP * Copyright 2004-2019 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is licensed under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with...
//$Id$ //------------------------------------------------------------------------------ // MathParser //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyright (c) 2002 - 2020 United States Government as repr...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcprotocol.h" #include "clientversion.h" #include "tinyformat.h" #include "util...
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBANN Research Team (B. Van Essen, et al.) listed in // the CONTRIBUTORS file. <lbann-dev@l...
/* =============================================================================== FILE: lasreaditemcompressed_v2.hpp CONTENTS: Implementation of LASitemReadCompressed for *all* items (version 2). PROGRAMMERS: martin.isenburg@rapidlasso.com - http://rapidlasso.com COPYRIGHT: (c) 2007-2...
// Copyright 2016 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/source-position-table.h" #include "src/objects-inl.h" #include "src/objects.h" namespace v8 { namespace internal { // We'll use a simpl...
// SPDX-License-Identifier: Apache-2.0 // Copyright Contributors to the OpenTimelineIO project #include "opentimelineio/effect.h" #include "opentimelineio/missingReference.h" namespace opentimelineio { namespace OPENTIMELINEIO_VERSION { Effect::Effect( std::string const& name, std::string const& effect_n...
#pragma once #include <iostream> #include <unordered_map> #include "Components.hpp" #include "GLoop.hpp" static constexpr char WIN_SYS_NAME[] = "WIN_SYS"; namespace Bomber { class WinSys { public: WinSys(gloop::GLoop &gloop) { gloop::SystemHook win = gloop::SystemHook{WIN_SYS_NAME, 0, 0, false, [this](GEc...
#include <sigmaengine/account_by_key/account_by_key_plugin.hpp> #include <sigmaengine/account_by_key/account_by_key_objects.hpp> #include <sigmaengine/chain/account_object.hpp> #include <sigmaengine/chain/database.hpp> #include <sigmaengine/chain/index.hpp> #include <sigmaengine/chain/operation_notification.hpp> #inc...
/******************************************************************************* * * MIT License * * Copyright 2021-2022 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 *...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
#ifdef PEGASUS_OS_HPUX #ifndef __UNIX_STORAGEREDUNDANCYSET_PRIVATE_H #define __UNIX_STORAGEREDUNDANCYSET_PRIVATE_H #endif #endif
/* * Copyright (c) 2017-2020 Arm Limited. * * SPDX-License-Identifier: MIT * * 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 * ri...
extern "C" { #define new tripouille #include "libft.h" #undef new } #include "sigsegv.hpp" #include "check.hpp" #include "leaks.hpp" #include <string.h> int iTest = 1; int main(void) { signal(SIGSEGV, sigsegv); title("ft_memcmp\t: ") char s[] = {-128, 0, 127, 0}; char sCpy[] = {-128, 0, 127, 0}; char s2[] = {0,...
/* Copyright 2019 The TensorFlow 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 by applicable law or a...
/** * \file PatternLexer.cxx * * \brief Regular expression-based lexer implementation * * \copyright * \parblock * * Copyright 2016 James S. Waller * * 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 ...
/**************************************************************************** ** Meta object code from reading C++ file 'mapplot.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.8.0) ** ** WARNING! All changes made in this file will be lost! *************************************************************...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__new_wchar_t_memcpy_08.cpp Label Definition File: CWE126_Buffer_Overread__new.label.xml Template File: sources-sink-08.tmpl.cpp */ /* * @description * CWE: 126 Buffer Over-read * BadSource: Use a small buffer * GoodSource: Use a large buffer * S...
/* Sitemon Copyright 2010 Peter Pearson. 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...
/* * * Filename: file_1.cc * * Author: Haibo Hao * Email : haohaibo@ncic.ac.cn * Description: --- * Create: 2017-04-09 18:37:53 * Last Modified: 2017-04-09 18:37:53 **/ int counter; // definition // defines and initializes a const that is accessible to other files extern const int buffSize ...
#include "gurkenlaeufer/GTestRunner.h" #include "gurkenlaeufer/Parser.h" #include "gurkenlaeufer/ParserStateFactory.h" #include "gurkenlaeufer/ScenarioCollection.h" #include "gtest/gtest.h" #include <memory> // gurkenlaeufer GTestRunner requires to implement this function std::list<gurkenlaeufer::Scenario> gurkenlaeuf...
/* Copyright 2019 The TensorFlow 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 by applicable law or a...
#include "./Sphere.hpp" #include "./misc.hpp" #include <algorithm> #include <cmath> namespace yks { Optional<float> intersect_with_sphere(const vec3& origin, float radius, const Ray& r) { const vec3 o = r.origin - origin; const vec3 v = r.direction; float t1, t2; const int solutions = solve_quadratic(dot(v,...
/* * 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...
#include <iostream> #include <vector> using namespace std; #define MAX 100005 int czasWejscia[MAX]; int czasWyjscia[MAX]; int color[MAX]; int tab[MAX]; int aktualnyCzas = 0; int a=0; std::vector < std::vector<int> > graph(MAX); int DFS(int punkt) { color[punkt]=1; std::vector<int> sasiedzi; sasiedzi...
// Copyright (C) 2002-2012 Nikolaus Gebhardt // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #include "IrrCompileConfig.h" static const char* const copyright = "Irrlicht Engine (c) 2002-2012 Nikolaus Gebhardt"; #ifdef _IRR_WINDOWS_ #includ...
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restrictio...
/* * Copyright (c) 2004-2005 Massachusetts Institute of Technology. * All Rights Reserved. * * MIT grants permission to use, copy, modify, and distribute this software and * its documentation for NON-COMMERCIAL purposes and without fee, provided that * this copyright notice appears in all copies. * * MIT provid...
#ifndef __cplusplus #error This file mustn't be compiled as C #endif extern "C" { #include "hello_c.h" } #define _HAS_EXCEPTIONS 0 #include <iostream> int main(int, char**) { hello_c(); std::cout << "Hello from C++!" << std::endl; return 0; }
// rgb_base.cpp // rgb_base class (base for doing rgb-strips and leds) #include <toolbox.h> #include "rgb_base.h" typedef struct { const char* key; CRGB color; } String_Color; static const String_Color color_map[] = { { "black", CRGB::Black }, { "red", CRGB::Red }, { "pink", CRGB::DeepPink }, ...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "platform.h" #include <interoplib.h> #include <interoplibimports.h> #ifdef FEATURE_COMWRAPPERS #include "comwrappers.hpp" #endif // FEATURE_COMWRAPPERS using OBJECTHANDLE ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The ACB coin bt developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "utilstrencodings.h" #include "tinyformat.h" #include <cstdlib> #includ...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright David Abrahams, Vicente Botet 2009. // (C) Copyright Ion Gaztanaga 2009-2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICE...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "pch.h" #include "RedBox.h" #include <boost/algorithm/string.hpp> #include <functional/functor.h> #include <regex> #include "DevServerHelper.h" #include "RedBoxErrorInfo.h" #include "Unicode.h" #include <winrt/Windows.Foundation.Collec...
/* * BSD LICENSE * Copyright (c) 2021 Samsung Electronics 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 th...
#ifndef KOKKOSBLAS1_IMPL_MV_RECIP_DECL_SPECIALISATION_HPP_ #define KOKKOSBLAS1_IMPL_MV_RECIP_DECL_SPECIALISATION_HPP_ /* //@HEADER // ************************************************************************ // // KokkosKernels 0.9: Linear Algebra and Graph Kernels // Copyright 2017 Sandia ...
// Copyright 2021 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/services/file_util/xz_file_extractor.h" #include <stddef.h> #include <stdint.h> #include <stdlib.h> #include <algorithm> #include <arra...
// // pictureRecognition.cpp // MNN // // Created by MNN on 2018/05/14. // Copyright © 2018, Alibaba Group Holding Limited // #include <stdio.h> #include <MNN/ImageProcess.hpp> #include <MNN/Interpreter.hpp> #define MNN_OPEN_TIME_TRACE #include <algorithm> #include <fstream> #include <functional> #include <memory>...
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers // Copyright (c) 2017-2019, The CROAT.community developers // // This file is part of Bytecoin. // // Bytecoin is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as publishe...
#include "../list.h" #include "test_util.h" #include <cstdlib> #include <exception> #include <iostream> #include <iterator> #include <list> #include <utility> void test_emplace_back(mystl::list<std::pair<int, int>> &l, std::list<std::pair<int, int>> &t) { l.emplace_back(14, 24); t.empla...
#include "frame.h" #include "platform.h" void Frame::Draw(SDL_Texture *spriteSheet, float x, float y){ SDL_Rect dest; // dest.x = x - offset.x; // Align the pivot point of the frame dest.y = y - offset.y; // with the destination location dest.w = clip.w; dest.h = clip.h; renderTexture(spriteS...
#include "stdafx.h" #include "risThreadsProcess.h" //****************************************************************************** //****************************************************************************** //****************************************************************************** // Initialize. void ma...
// Copyright (c) 2014 Hartmut Kaiser // Copyright (c) 2014 Patricia Grubel // // SPDX-License-Identifier: BSL-1.0 // 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) // This is the third in a series of examples de...
#include "bits/stdc++.h" using namespace std; # define s(n) scanf("%d",&n) # define sc(n) scanf("%c",&n) # define sl(n) scanf("%lld",&n) # define sf(n) scanf("%lf",&n) # define ss(n) scanf("%s",n) #define RE...
/* __ _____ _____ _____ __| | __| | | | JSON for Modern C++ (test suite) | | |__ | | | | | | version 3.10.0 |_____|_____|_____|_|___| https://github.com/nlohmann/json Licensed under the MIT License <http://opensource.org/licenses/MIT>. SPDX-License-Identifier: MIT Copyright (c) 2013-2019 Niels L...
#ifndef OPENGL_SQUARE_HPP #define OPENGL_SQUARE_HPP #include <GL/glew.h> #include <c3ga/Mvec.hpp> #include <shader/ShaderTexture.hpp> #include <shader/Texture.hpp> #include <app/object/ObjectC3GA.hpp> namespace app::object { class Square : public ObjectC3GA { private: static constexpr GLuint V...
// 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 "components/password_manager/core/browser/password_feature_manager_impl.h" #include "components/password_manager/core/browser/password_manager_f...
#pragma once #include <tbb/concurrent_vector.h> #include <boost/circular_buffer.hpp> #include <boost/container/pmr/polymorphic_allocator.hpp> #include <boost/operators.hpp> #include <cstdint> #include <iostream> #include <limits> #include <optional> #include <string> #include <tuple> #include <vector> #include "stro...
//calculate sum of digits of a number #include <iostream> using namespace std; int main() { int n,sum=0,m; cout<<"Enter a number: "; cin>>n; while(n>0) { m=n%10; sum=sum+m; n=n/10; } cout<<"Sum is= "<<sum<<endl; return 0; }
/* * Copyright 2016 Nu-book Inc. * Copyright 2016 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
/* * Copyright (c) 2018, Ford Motor Company * 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 condit...
/****************************************************************************** ** Copyright (C) 2000 by CEA ******************************************************************************* ** ** UNIT ** ** Version: 1.0 ** ** Author: Jean-Luc Starck ** ** Date: 5/03/2000 ** ** File: Ri...
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2020 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "activemasternode.h" #include "chainparams.h" #include "db.h" #include "i...
// Copyright 2014 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 "components/history/core/browser/history_types.h" #include <limits> #include "base/check.h" #include "base/notreached.h" #include "components/h...
// Copyright 2013 the V8 project authors. 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 ...
/** * Name: information_user.cpp * User: L.Laddie * Function: 添加/编辑用户信息 */ #include <QDebug> #include <QMessageBox> #include <QCryptographicHash> #include "information_user.h" #include "ui_information_user.h" #include "include.h" Information_user::Information_user(Envir_widget* envir_widget, QWidget *parent) : ...
#include "AudioSink.h" static bool SetIfZeroElseReturnEqual (long long & o1, long long o2) { if (o1 == 0) { o1 = o2; return true; } return o1 == o2; } HRESULT AudioSink::SetFormat(WAVEFORMATEX* pwfx) { if (!SetIfZeroElseReturnEqual(audioInfo.numChannels, pwfx->nChannels) || !Se...
/** * Copyright (c) 2019-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "logdevice/common/configuration/nodes/ShardStateTracker.h" #include <folly/po...
#ifndef MBGL_UTIL_WORK_TASK #define MBGL_UTIL_WORK_TASK #include <mbgl/util/noncopyable.hpp> #include <functional> #include <mutex> namespace mbgl { class WorkTask : private util::noncopyable { public: WorkTask(std::function<void()> task, std::function<void()> after); void runTask(); void runAfter(); ...
/*-----------------------------------------------------------*/ /* Block Sorting, Lossless Data Compression Library. */ /* Platform specific functions and constants */ /*-----------------------------------------------------------*/ /*-- This file is a part of bsc and/or libbsc, a program and a...
#pragma once // Test functions follow the naming convention // test_<project>_<module>_<description>(); the module name is expected to // match the test file name (<module>-test.cpp). The test compilation script // (scripts/make-tests) finds all of these functions and assembles them into a // unit-test.cpp file; the M...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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 condit...
#ifndef PYTHONIC_OPERATOR_DELITEM__HPP #define PYTHONIC_OPERATOR_DELITEM__HPP #include "pythonic/include/operator_/__delitem__.hpp" #include "pythonic/operator_/delitem.hpp" namespace pythonic { namespace operator_ { FPROXY_IMPL(pythonic::operator_, __delitem__, delitem); } } #endif
#ifndef MESH_H #define MESH_H #include <Animator.hpp> #include <Config.hpp> #include <Joint.hpp> #include <Math.hpp> #include <OpenGL.hpp> #include <memory> #include <vector> class Material; class Shader; class Mesh { public: struct Primitive { GLuint VAO; GLenum Mode; GLs...