text
stringlengths
5
1.04M
#include <iostream> using namespace std; class Rectangle { int width, height; public: void set_values(int,int); int area() {return width*height;} }; void Rectangle::set_values(int x, int y){ width = x; height = y; } int main () { Rectangle rect,rectb; rect.set_values(3,4); rectb....
//write include statements #include "dna.h" #include<iostream> //write using statements using std::cout; using std::cin; /* Write code that prompts user to enter 1 for Get GC Content, or 2 for Get DNA Complement. The program will prompt user for a DNA string and call either get gc content or get dna complement fun...
// 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 "third_party/blink/renderer/core/css/cssom/cross_thread_style_value.h" #include <memory> #include <utility> #include "base/synchronization/wait...
/* * Copyright (c) 2003-2021 Rony Shapiro <ronys@pwsafe.org>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ /** * \file Windows-...
#pragma once #include <eosio/asset.hpp> #include <eosio/eosio.hpp> #include <string> namespace eosiosystem { class system_contract; } namespace eosio { using std::string; CONTRACT Token : public contract { using contract::contract; public: struct transfer_args { name from; ...
#include "openmp_impl/v_wrapper.hpp" using namespace schro_omp; bool test_v_wrapper() { int n = 3; std::vector<arma::mat> u(n, arma::ones(2,2)); std::vector<arma::mat> v(n, 2*arma::ones(2,2)); v_wrapper<double> U; U.values.push_back(std::move(u)); U.values.push_back(std::move(v)); v_wrap...
/*************************************************************************** * * $Id: StSigmaMinus1385.hh,v 1.1 2010/01/28 21:54:20 jwebb Exp $ * * Author: Thomas Ullrich, May 99 (based on Geant4 code, see below) *************************************************************************** * * The design of the S...
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED // TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // Copyright (C) 2008 Microsoft Corporation. All rights reserved. #includ...
#include "targetselectornode.h" #include <QMetaEnum> static const int _ = qRegisterMetaType<QSharedPointer<Command::TargetSelectorNode> >(); const QMap<Command::TargetSelectorNode::Variable, char> Command::TargetSelectorNode::variableMap = { { Variable::A, 'a' }, { Variable::E, 'e' }, { Variable::P, 'p...
#ifndef MODEL_HPP #define MODEL_HPP #include <vescLib/datatypes.h> class ModelListener; class Model { public: Model(); void bind(ModelListener *listener) { modelListener = listener; } void tick(); float GetCurrentBatteryLevel() const { return currentBatteryLevel; } ...
//////////////////////////////////////////////////////////////////////////// // File: SiftMatch.cpp // Author: Changchang Wu // Description : implementation of SiftMatchGPU // // // Copyright (c) 2007 University of North Carolina at Chapel Hill // All Rights Reserved // // Permission to use, copy, modify and distribu...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "base58.h" #include "core.h" #include "init.h" #include "keystore.h" #include ...
/* Copyright 2016 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 law or agreed to in ...
#include <iostream> using namespace std; /* Program Description: Two numbers is given and you need to Check if they Have Opposite Signs. Input: Both Numbers Output: 'Yes' if they Have Opposite Signs 'No' otherwise Solution Description: In this question I will use signed integers in order to get the sign along with the...
//===--- SILFunctionType.cpp - Giving SIL types to AST functions ----------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// Copyright 2016 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 <endian.h> #include <zircon/compiler.h> #include <array> #include <cstdint> #include "gtest/gtest.h" #include "src/connectivity/bluetooth/core/b...
#include "shader/ShaderCore.h" namespace ze { ZE_DEFINE_MODULE(ze::module::DefaultModule, shadercore); }
#include "extensions/filters/network/dubbo_proxy/dubbo_protocol_impl.h" #include "envoy/registry/registry.h" #include "common/common/assert.h" #include "extensions/filters/network/dubbo_proxy/message_impl.h" #include "extensions/filters/network/dubbo_proxy/serializer_impl.h" namespace Envoy { namespace Extensions {...
// // TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd. // All rights reserved. See LICENSE.txt for license. // #include <MaterialXFormat/XmlIo.h> #include <MaterialXFormat/PugiXML/pugixml.hpp> #include <MaterialXFormat/Util.h> #include <MaterialXCore/Types.h> #include <cstring> #include <fstre...
#pragma once #include "pr/pr_problem.hxx" #include "intrinsics.hxx" using namespace gunrock::util; namespace gunrock { namespace pr { struct pr_functor_t { static __device__ __forceinline__ bool cond_filter(int idx, pr_problem_t::data_slice_t *data, int iteration) { float old_value = data->d_...
#include <farversion.hpp> #define PLUGIN_BUILD 9 #define PLUGIN_DESC L"Hello World Plugin for Far Manager" #define PLUGIN_NAME L"HelloWorld" #define PLUGIN_FILENAME L"HelloWorld.dll" #define PLUGIN_AUTHOR FARCOMPANYNAME #define PLUGIN_VERSION MAKEFARVERSION(FARMANAGERVERSION_MAJOR,FARMANAGERVERSION_MINOR,FARMANAGERVER...
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obtai...
/* * 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 ...
/* * ofxSimpleGuiComboBox.cpp * AlgorhythmicSorting * * Created by Administrator on 7/2/10. * Copyright 2010 __MyCompanyName__. All rights reserved. * */ #include "ofxSimpleGuiComboBox.h" #include "ofxSimpleGuiPage.h" #define kMaxChoiceStringLen 150 #define kMaxNameStringLen 100 ofxSimpleGuiComboBox::ofxS...
/* The MIT License (MIT) Copyright (c) 2017 Lancaster University. Copyright (c) 2018 Paul ADAM, Europe. 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 limi...
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * 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. * *...
///////////////////////////////////////////////////////////////////////////// // Name: src/common/sckipc.cpp // Purpose: Interprocess communication implementation (wxSocket version) // Author: Julian Smart // Modified by: Guilhem Lavaux (big rewrite) May 1997, 1998 // Guillermo Rodrigu...
// RUN: clang-cc -fsyntax-only -verify %s int *use_new(int N) { return new int [N]; } int std = 17;
/* WARNING: This is auto-generated file. Do not modify, since changes will * be lost! Modify the generating script instead. */ const char* getPipelineCacheHeaderVersionName (VkPipelineCacheHeaderVersion value); const char* getResultName (VkResult value); const char* getStructureTypeName (VkStructureType va...
/*Copyright 2014 George Karagoulis 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, softwar...
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <string> #include <algorithm> #include <vector> #include <queue> using namespace std; void BFS(int s, int e, vector<vector<int>> &adjmatrix) { int n = adjmatrix.size(); vector<bool> visited(n); vector<int> d(n), p(n); queue<int> queue; queue.push(s); ...
#include "IRremoteInt.h" // MagiQuest added by E. Stuart Hicks // Based off the Magiquest fork of Arduino-IRremote by mpflaga // https://github.com/mpflaga/Arduino-IRremote/ //============================================================================== // // // M A G I Q U E S T // // //==...
// system includes #include <fstream> #include <iostream> #include <memory> #include <sstream> #include <tuple> extern "C" { #include <appimage/appimage.h> #include <glib.h> // #include <libgen.h> #include <sys/stat.h> #include <stdio.h> #include <unistd.h> } // library includes #include <QDebu...
//$Id$ //------------------------------------------------------------------------------ // BooleanWrapper //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyright (c) 2002 - 2017 United States Government as r...
#include <fstream> #include <iostream> #include <sstream> #include <string> #include <vector> #include "binTree.hpp" struct visibilityType { int id; bool camera; bool seen; bool operator==(int x) { return id == x; } bool operator!=(int x) { return id != x; } }; int camera_...
/* Copyright 2017 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 <shift/parser/proto/proto.hpp> #include <shift/core/boost_disable_warnings.hpp> #include <boost/test/unit_test.hpp> #include <shift/core/boost_restore_warnings.hpp> #include <iostream> #include <sstream> #include "test.hpp" using namespace shift; using namespace shift::parser; using namespace shift::parser::p...
#ifndef SAMPLE_RENDERER_HPP #define SAMPLE_RENDERER_HPP #include <GL3/Renderer.hpp> class SampleRenderer : public GL3::Renderer { public: //! Default constructor SampleRenderer(); //! Default desctrutor ~SampleRenderer(); protected: bool OnInitialize(const cxxopts::ParseResult& configure) override; void OnClean...
//===-- Log.cpp -----------------------------------------------------------===// // // 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 // //===---------------------------...
/* ---------------------------------------------------------------------- CSlib - Client/server library for code coupling http://cslib.sandia.gov, Sandia National Laboratories Steve Plimpton, sjplimp@sandia.gov Copyright 2018 National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under the ...
/* gpe_sfml_converter.cpp This file is part of: GAME PENCIL ENGINE https://www.pawbyte.com/gamepencilengine Copyright (c) 2014-2021 Nathan Hurde, Chase Lee. Copyright (c) 2014-2021 PawByte LLC. Copyright (c) 2014-2021 Game Pencil Engine contributors ( Contributors Page ) Permission is hereby granted, free o...
#ifndef DATE_TIME_DATE_NAMES_PUT_HPP___ #define DATE_TIME_DATE_NAMES_PUT_HPP___ /* Copyright (c) 2002-2005 CrystalClear Software, Inc. * Use, modification and distribution is subject to the * Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) * Au...
//===-- ThreadPlanStepInRange.cpp -------------------------------*- 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 // //===---------------------------...
// 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 ...
/*! @file @brief 置換ダイアログ @author Norio Nakatani @date 2001/06/23 N.Nakatani 単語単位で検索する機能を実装 */ /* Copyright (C) 1998-2001, Norio Nakatani Copyright (C) 2001, genta, Stonee, hor, YAZAKI Copyright (C) 2002, MIK, hor, novice, genta, aroka, YAZAKI Copyright (C) 2006, かろと, ryoji Copyright (C) 2007, ryoji Copyright...
// String Tester // Demonstrates string objects #include <iostream> #include <string> using namespace std; int main() { string word1 = "Game"; string word2("Over"); string word3(3, '!'); string phrase = word1 + " " + word2 + word3; cout << "The phrase is: " << phrase << "\n\n"; ...
#include "capi/capi.hpp" #include "capi/include/ruby.h" using namespace rubinius; using namespace rubinius::capi; extern "C" { VALUE rb_hash_new() { return rb_funcall(rb_cHash, rb_intern("new"), 0); } VALUE rb_hash_aref(VALUE self, VALUE key) { return rb_funcall(self, rb_intern("[]"), 1, key); } ...
// Copyright (c) 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 <bench/bench.h> #include <validation.h> #include <bech32.h> #include <utilstrencodings.h> #include <vector> #include <s...
// Copyright 2009 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 ...
#ifndef INCLUDED_ZENO_GUI_COMBO_BOX_HPP #define INCLUDED_ZENO_GUI_COMBO_BOX_HPP #include <zeno/GUI/GuiBase.hpp> namespace zeno { class DropdownMenu : public GuiBase { public: //////////////////////////////////////////////////////////// // // Virtual function which returns whether or not the // elemen...
#include "Language.h" #include "sort.h" #include "Speller.h" #include "Sections.h" // word/phrase must be in at least this many docs to be included in our dict #define MIN_DOCS 3 // ROUTINES NEEDED FOR GBSORT // The dict is stored as a tuple of ( original word, phonetic, (lang, score)..) int cmpPhonet (const void *v1...
#include "gula/net/Socket.h" #include "gula/base/Logging.h" #include "gula/net/InetAddress.h" #include "gula/net/SocketsOps.h" #include <netinet/in.h> #include <netinet/tcp.h> #include <stdio.h> // snprintf using namespace gula; using namespace gula::net; Socket::~Socket() { sockets::close(sockfd_); } bool Socke...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
// Copyright Oliver Kowalke 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) #ifndef BOOST_FIBERS_CONTEXT_H #define BOOST_FIBERS_CONTEXT_H #include <atomic> #include <chrono> #include...
/*! ****************************************************************************** * * \file * * \brief Header file for loop kernel internals: LoopData structure and * related helper functions. * ****************************************************************************** */ //~~~~~~~~~~~~~~~~~~~...
// stdafx.cpp : source file that includes just the standard includes // t2Test.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information //#include "pch.h" #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 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 de...
/** * WAP to compute the factors of a given integer * * Written by: Sudipto Ghosh for University of Delhi * Date: 16 - 08 - 2019 */ #include <iostream> using namespace std; int main() { int num, factor; // prompt user and accept num cout << "Enter an integer: "; cin >> num; cout << "Fa...
/*******************************************************************\ Module: Pointer Logic Author: Daniel Kroening, kroening@kroening.com \*******************************************************************/ #include <cassert> #include <util/arith_tools.h> #include <util/std_expr.h> #include <util/prefix.h> #incl...
#ifndef _BLASR_TITLE_TABLE_HPP_ #define _BLASR_TITLE_TABLE_HPP_ #include <cstring> #include <fstream> #include <iostream> #include <sstream> #include <string> #include <vector> #include <pbdata/utils.hpp> class TitleTable { public: char **table; int tableLength; TitleTable(); ~TitleTable(); void...
/* * Copyright (c) 2011-2014, University of Delaware * 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...
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "catch2.hpp" #include <iostream> #include "LinkedList.h" TEST_CASE("Create List, push&pop") { LinkedList testList = LinkedList(); testList.push_back(5); testList.push_back(6); testList.pop_back()...
#pragma once #include "common.hpp" #include "float3.hpp" namespace hlml { struct float3x3 { float3 c0, c1, c2; HLML_INLINEF float3x3() : c0() , c1() , c2() {} HLML_INLINEF explicit float3x3( const f32* p ) : c0( p ) , c1( p + 3 ) , c2( p + 6 ) {} HLML...
/** * @file load_save_test.cpp * @author Ryan Curtin * * Tests for data::Load() and data::Save(). * * mlpack is free software; you may redistribute it and/or modify it under the * terms of the 3-clause BSD license. You should have received a copy of the * 3-clause BSD license along with mlpack. If not, see *...
/************************************************************************** * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied w...
/* Copyright (c) 2013, Project OSRM contributors 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 conditions and the f...
// Copyright 2022 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...
/* ---------------------- BeDC License ---------------------- Copyright 2002, The BeDC team. 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 copy...
/* SoLoud audio engine Copyright (c) 2013-2015 Jari Komppa This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, inclu...
#pragma once #include <chrono> #include <vector> #include "../collider/collider.hpp" #include "../rigidbody/rigidbody.hpp" #include "../field/field.hpp" #include "../material/material.hpp" typedef std::chrono::high_resolution_clock Clock; typedef std::chrono::duration<double, std::ratio<1, 1>> Duration; struct Colli...
#include "WorkerManager.h" using namespace MyBot; WorkerManager::WorkerManager() { currentRepairWorker = nullptr; } WorkerManager & WorkerManager::Instance() { static WorkerManager instance; return instance; } void WorkerManager::update() { // 1초에 1번만 실행한다 if (BWAPI::Broodwar->getFrameCount() % 24 != 0) re...
/* * Copyright (c) 2003-2019 Rony Shapiro <ronys@pwsafe.org>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ /** * \file Linux-sp...
// // __ __ __ // / / / /__ __ ____/ /_____ ____ // / /_/ // / / // __ // ___// __ \ // / __ // /_/ // /_/ // / / /_/ / // /_/ /_/ \__, / \__,_//_/ \____/ // /____/ // // ...
// // request_parser.hpp // ~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2021 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) // #ifndef HTTP_SERVER3_REQUEST_PA...
/*************************************************************************/ /* NodePath.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/* Copyright (c) 2003-2016, Arvid Norberg, Daniel Wallin 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 ...
//===- SparseTensorPipelines.cpp - Pipelines for sparse tensor code -------===// // // 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 // //===---------------------------...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) | +---------...
/******************************************************************************* * * MIT License * * Copyright (c) 2017 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 S...
// Copyright 2016 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/app_icon_loader.h" AppIconLoader::AppIconLoader() {} AppIconLoader::AppIconLoader(Profile* profile, ...
// 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.Enum #...
// 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 "content/renderer/gpu//compositor_forwarding_message_filter.h" #include "base/bind.h" #include "base/location.h" #include "content/common/view_m...
// Copyright 2016 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. // See the README.md in this directory for documentation. #include <assert.h> #include <cpuid.h> #include <fuchsia/hardware/cpu/insntrace/llcpp/fidl.h> #i...
/** * @copybrief * MIT License * Copyright (c) 2020 NeilKleistGao * 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,...
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * Copyright (C) 2000 Dirk Mueller (mueller@kde.org) * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. * * This library is free software; you can redistribute it and/or * mo...
// Copyright (c) 2011-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 "util.h" #include "clientversion.h" #include "primitives/transaction.h" #include "random.h" #include "sync.h" #incl...
#include "readFileList.h" FileList::FileList(std::string checkSumFile) { m_fp = fopen(checkSumFile.c_str(), "r"); if(!m_fp) { std::cout << "Failed to open checksum file!" << std::endl; m_bValid = false; } else m_bValid = true; } bool FileList::bIsValid() { return m_bValid; } std...
#include "image.h" #include <TDebug> #include <cstring> #include <opencv2/highgui/highgui.hpp> using namespace cv; #ifdef STANDALONE_USE # undef tError # undef tWarn # undef tDebug # define tError qCritical # define tWarn qWarning # define tDebug qDebug #endif Image::Image(const QString &path, bool color) : _mat...
// // Copyright 2020 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
#include "IAnimation.h" #include "AnimationGroup.h" /////////////////////////////////////////////////////////// // CONSTRUCTORS and DESTRUCTOR /////////////////////////////////////////////////////////// IAnimation::IAnimation() : state_(State::STOPPED), parent_(nullptr), delay_(0.0f), currentDelay_(0.0f) {}...
// 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 "base/command_line.h" #include "base/synchronization/waitable_event.h" #include "base/threading/platform_thread.h" #include "content/browser/devi...
#pragma once #include "routine.hpp" #include "model/graph/undirected_graph.hpp" #include "model/boundary.hpp" #include "model/types.hpp" #include "io/reader/header_reader.hpp" #include "io/reader/osm_reader.hpp" #include "io/writer/map_writer.hpp" #include "io/writer/mapdata_writer.hpp" #include "mapmaker/assembler...
/* * Copyright (c) 2016, The OpenThread 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: * 1. Redistributions of source code must retain the above copyright * notice, this ...
/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * CppWriter.cpp * * Created on: Jan 29, 2018 * Author: William F Godoy godoywf@ornl.gov */ #include <adios2.h> #include <mpi.h> #include <iostream> int main(int argc, char *argv[])...
#include "../dialog/Dialog.h" #include "Tribe.h" namespace lust { Tribe::Tribe(const Dialog *firstDialog, const Dialog *repeatingDialog) : m_firstDialog(firstDialog), m_repeatingDialog(repeatingDialog), m_wasViewed(false) { } Tribe::~Tribe() { delete m_firstDialog; delete m_repeatin...
#include <gtest/gtest.h> #include <gmock/gmock.h> #include <asapo/database/db_error.h> #include "asapo/unittests/MockIO.h" #include "asapo/unittests/MockDatabase.h" #include "asapo/unittests/MockLogger.h" #include "../../src/receiver_error.h" #include "../../src/request.h" #include "../../src/request_handler/request_...
// $Id: test_i.cpp 79850 2007-10-25 09:51:28Z johnnyw $ #include "test_i.h" test_i::test_i (CORBA::ORB_ptr orb) : orb_ (CORBA::ORB::_duplicate (orb)) { } CORBA::Long test_i::test_method () { ACE_DEBUG ((LM_DEBUG, "client called us.\n")); return 0; } void test_i::shutdown (void) { this->orb_->shutdown (0); ...
// Copyright (c) 2019 PaddlePaddle 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...
/* * Copyright (c) 2013, Hernan Saez * 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 con...