text stringlengths 7 961k |
|---|
// Track.cpp: Implementierung der Klasse Track.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Track.h"
#include "DriveInfo.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
///////////////////////////////////////... |
rgb_single(rgb, D3, D4, D2).off(); |
#include "pf/basic/io.tcc"
#include "pf/sys/assert.h"
#include "pf/net/connection/manager/basic.h"
#include "pf/net/connection/pool.h"
namespace pf_net {
namespace connection {
Pool::Pool() :
ready_{false},
position_{0},
size_{0},
max_size_{NET_CONNECTION_POOL_SIZE_DEFAULT} {
connections_.clear();
}
Pool... |
/*************************************************************************/
/* os_windows.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "GameState.h"
#include <cassert>
using namespace Eigen;
//TODO add asserts bruv
GameState::GameState(std::shared_ptr<Game> game, int action, std::shared_ptr<GameState> parent){
this->parent = parent;
this->children = std::vector<std::shared_ptr<GameState>>(game->getActionSize());
this->action = action;
... |
// normalization.cpp: test suite runner for conversion tests between classic cfloats and blocktriples
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <universal/utility/directives.hpp>
/... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2022, Norbert Schulz
* 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 n... |
//
// ThreadPOSIX.cpp
// SolarSystem
//
// Created by Gabriele Di Bari on 04/08/13.
//
//
#include <stdafx.h>
#include "Thread.h"
using namespace SolarSystem;
Thread::Thread(actionOnDelete cad)
:thisThFun(NULL)
,thisThFunArgs(NULL)
,cad(cad)
,thr(NULL)
,th_error(SUCCESSFUL){}
Thread::Thread(threadFunction fn,
... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkGenericCompositePolyDataMapper2.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
// Copyright 2012 Chris Jang (fastkor@gmail.com) under The Artistic License 2.0
#ifndef _CHAI_AUTO_PARAMS_MATMUL_HPP_
#define _CHAI_AUTO_PARAMS_MATMUL_HPP_
#include <vector>
#include "CodeInterfaces.hpp"
#include "CodeValues.hpp"
namespace chai_internal {
namespace AutoParamsMatmul {
/////////////////////////////... |
/****************************************************************************
*
* Copyright (c) 2012-2016 PX4 Development 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. Red... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
// vrad.c
#include "vrad.h"
#include "physdll.h"
#include "lightmap.h"
#include "tier1/strtools.h"
#include "vmpi.h"
#i... |
// 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 Rim developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licen... |
/*
* Copyright 2019 GridGain Systems, Inc. and Contributors.
*
* Licensed under the GridGain Community Edition License (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.gridgain.com/products/software/community-edition... |
// Test target codegen - host bc file has to be created first.
// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -fopenmp-cuda-mode -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc %s -o %t-ppc-host.bc
// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -fopenmp-cu... |
// Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_ASSETLOADERCONTEXT_E4996CA2_HPP
#define POMDOG_ASSETLOADERCONTEXT_E4996CA2_HPP
#include "Pomdog/Basic/Export.hpp"
#include "Pomdog/Graphics/detail/ForwardDeclarations.hpp"
#include "Pomdog/Conten... |
#pragma once
#include "Drawable.hpp"
#include "GfxContext.hpp"
#include "inputController.hpp"
#include "powerup.hpp"
#include "rng.hpp"
#include "spriteSheet.hpp"
template <typename DrawPolicy>
class _TreasureChest : public Drawable<_TreasureChest<DrawPolicy>, DrawPolicy>,
public Object {
publi... |
// 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 "Examples.h"
#include <system/string.h>
#include <system/shared_ptr.h>
#include <system/object_ext.h>
#include <system/object.h>
#include <system/console.h>
#include <system/array.h>
#include <net/network_credential.h>
#include <Clients/Exchange/WebService/EWSClient/IEWSClient.h>
#include <Clients/Exchange/Web... |
/**
* Copyright 2021 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... |
#pragma once
#include <vector>
#include <stdexcept>
namespace itertools
{
template <typename IntType>
std::vector<IntType> accumulate(std::vector<IntType> V)
{
std::vector<IntType> result;
result.push_back(V[0]);
for (int i=1;i<V.size();++i)
{
result.push_back(result[i-1]+V[i]);
}
re... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// Copyright (c) 2014-2019, The Mask 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 retain the above copyright notice, this list of
... |
#include <msgrpc/core/msg/msg_handlers/msg_handler_mgr.h>
#include <msgrpc/core/adapter/config.h>
#include <msgrpc/core/msg/msg_handlers/req_msg_handler.h>
#include <msgrpc/core/msg/msg_handlers/rsp_msg_handler.h>
#include <msgrpc/core/msg/msg_handlers/rpc_timeout_handler.h>
#include <msgrpc/core/msg/msg_handlers/main... |
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1998 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See t... |
/*
88888888
888888888888
88888888888888
8888888888888888
888888888888888888
888888 8888 888888
... |
/**
* 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... |
/* Author : Qazi Fahim Farhan (@fahimfarhan) */
/* May the CodeForces be with you! */
#include <iostream>
// #include <sstream>
// #include <cstdio>
// #include <cmath>
// #include <cstring>
// #include <cctype>
// #include <string>
#include <vector>
// #include <list>
// #include <set>
// #include <map>
// #include <... |
//============================================================================
// Name : pcshow_lines.cpp
// Author : adapted from Pangolin by S. Lovegrove and PangoCloud by J. Liu
// Date : 03/2019
// License : MIT License (Pangolin) / GNU General Public License
// Description : display 3D point... |
/******************************************************************************
Copyright (c) 2012 Intel 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:
1. Redistributions of sour... |
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
// activity selection
// coin piles
// maximize toys
// page faults lru
// largest no possible
// minimize heights
// minimize sum of prod
// huffman decoding
// min spanning tree
// djikstra
// fractional knapsack can be solved with gree... |
// Copyright (c) 2015-2019 Paweł Cichocki
// License: https://opensource.org/licenses/MIT
#include "iprof.hpp"
namespace InternalProfiler
{
iprof_thread_local Tree tree;
iprof_thread_local std::vector<RawEntry> entries;
iprof_thread_local Stats stats;
#ifndef DISABLE_IPROF_MULTITHREAD
std::mutex allThreadStatLock;
S... |
#include "pch.h"
#include "OeCore/Test_component.h"
using namespace oe;
DEFINE_COMPONENT_TYPE(Test_component); |
/*
* 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 ... |
/// @ref ext_vector_uint1_sized
/// @file glm/ext/vector_uint1_sized.hpp
///
/// @defgroup ext_vector_uint1_sized GLM_EXT_vector_uint1_sized
/// @ingroup ext
///
/// Exposes sized unsigned integer vector types.
///
/// Include <glm/ext/vector_uint1_sized.hpp> to use the features of this extension.
///
/// @see ext_scal... |
/*
File: CACFDictionary.cpp
Abstract: CACFDictionary.h
Version: 1.0.4
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
Inc. ("Apple") in consideration of your agreement to the following
terms, and your use, installation, modification or redistribution of
this Apple software... |
//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "BsMonoManager.h"
#include "Error/BsException.h"
#include "Bs... |
// Used to cause an LLVM crash with Haswell/Broadwell.
// See https://github.com/pocl/pocl/issues/231
#include "pocl_opencl.h"
#define CL_HPP_ENABLE_EXCEPTIONS
#define CL_HPP_MINIMUM_OPENCL_VERSION 120
#define CL_HPP_TARGET_OPENCL_VERSION 120
#include <CL/cl2.hpp>
#include <iostream>
using namespace std;
const char... |
// 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 "base/bind.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
#include "ui/gl/gl_surface.h"
int main(in... |
#ifndef BOOST_THREAD_THREAD_COMMON_HPP
#define BOOST_THREAD_THREAD_COMMON_HPP
// 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)
// (C) Copyright 2007-10 Anthony Williams
#include <boost/thread/exceptions.hpp>
#if... |
// ====================================================================
// This file is part of FlexibleSUSY.
//
// FlexibleSUSY is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published
// by the Free Software Foundation, either version 3 of the Licens... |
#include <boost/algorithm/string.hpp>
#include <locale>
#include <iostream>
int main()
{
std::locale::global(std::locale("German"));
std::string s = "--Boris Schäling--";
std::cout << "." << boost::algorithm::trim_left_copy_if(s, boost::algorithm::is_any_of("-")) << "." << std::endl;
std::cout << "." <... |
/**
* \file GeodesicProj.cpp
* \brief Command line utility for geodesic projections
*
* Copyright (c) Charles Karney (2009-2012) <charles@karney.com> and licensed
* under the MIT/X11 License. For more information, see
* http://geographiclib.sourceforge.net/
*
* Compile and link with
* g++ -g -O3 -I../includ... |
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *parent) :
Q... |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2018 Francois Beaune, The appleseedhq Organization
//
... |
// 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 "net/http/http_server_properties_manager.h"
#include "base/bind.h"
#include "base/metrics/histogram_macros.h"
#include "base/prefs/pref_service.... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_delete_array_wchar_t_61a.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_delete_array.label.xml
Template File: sources-sinks-61a.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Manag... |
/**
* This file is part of the CernVM File System.
*
* The download module provides an interface for fetching files via HTTP
* and file. It is internally using libcurl and the asynchronous DNS resolver
* c-ares. The JobInfo struct describes a single file/url to download and
* keeps the state during the several ... |
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include "imgdecoder-stb.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
namespace SOUI
{
//////////////////////////////////////////////////////////////////////////
// SImgFrame_STB
... |
// Copyright 2021 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) 2009-2010 Ricardo Quesada
Copyright (c) 2009 Matt Oswald
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2011 Zynga Inc.
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is he... |
#include <omp.h>
#include <vector>
#include <iostream>
#include "../include/sweet/MemBlockAlloc.hpp"
int main(int argc, char *argv[])
{
std::cout << "MAIN" << std::endl;
MemBlockAlloc::setup();
int num_threads = omp_get_max_threads();
////////////////////////////////////////////////////////////
std::vector<do... |
// 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/extensions/external_provider_impl.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/files/file_path.h... |
/*
* Copyright (c) 2014-present, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... |
#include "http/HTTP.hpp"
#include <algorithm>
#include <cctype>
#include <stdexcept>
#include <sstream>
namespace http {
bool iequals(const std::string& a, const std::string& b) {
return std::equal(a.begin(), a.end(), b.begin(), b.end(),
[] (char a, char b) { // ignore case
return std::tolower(a) ==... |
#include "LEDMatrixGUI.h"
void LEDMatrix::setLabel(array<System::Windows::Forms::Label^, 1>^ labels)
{
guiLabels = labels;
}
void LEDMatrix::setLed(unsigned int col, unsigned int row, RGBColor color)
{
unsigned int index = row * COLS + col;
ledBuf[index] = color;
}
void LEDMatrix::setAll(RGBColor color)
{
int in... |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2017-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... |
/*
* Copyright (c) 2011, 2012, 2013 Jonas 'Sortie' Termansen.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS"... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include "p4orch/acl_util.h"
#include "converter.h"
#include "json.hpp"
#include "logger.h"
#include "sai_serialize.h"
#include "table.h"
#include "tokenize.h"
namespace p4orch {
std::string trim(const std::string& s) {
size_t end = s.find_last_not_of(WHITESPACE);
size_t start = s.find_first_not_of(WHITESPACE);
... |
/*============================================================================
KWSys - Kitware System Library
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software is distr... |
#include <gtest/gtest.h>
#include <thread_pool/fixed_function.hpp>
#include <string>
#include <type_traits>
#include <functional>
int test_free_func(int i)
{
return i;
}
template <typename T>
T test_free_func_template(T p)
{
return p;
}
void test_void(int &p, int v)
{
p = v;
}
struct A {
int b(con... |
#include "helpers.h"
int
main ()
{
// LogLevel logLevel = (LogLevel)(LOG_PREFIX_ALL | LOG_LEVEL_ALL);
// LogComponentEnable ("LteHelper", logLevel);
// LogComponentEnable ("EpcHelper", logLevel);
// LogComponentEnable ("EpcEnbApplication", logLevel);
// LogComponentEnable ("EpcSgwPgwApplication", logLevel... |
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <vector>
#include <transformations_visibility.hpp>
#include "ngraph/op/op.hpp"
#include "ngraph/strides.hpp"
#include "ngraph/partial_shape.hpp"
namespace ngraph {
namespace op {
class TRANSFORMATIONS_API Fram... |
// Copyright 2018 Grass Valley, A Belden Brand
// 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 ag... |
/****************************************************************************************
* @author: kzvd4729 created: 06/16/2021 19:46
* solution_verdict: Accepted language: cpp
* run... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
// Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved.
// Third party copyrights are property of their res... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestSphereHandleWidget.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 so... |
/*=============================================================================
Copyright (c) 2002 2004 2006Joel de Guzman
Copyright (c) 2004 Eric Niebler
http://spirit.sourceforge.net/
Use, modification and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying file... |
// 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 "base/command_line.h"
#include "base/debug/leak_annotations.h"
#include "base/message_loop/message_loop.h"
#include "base/threading/platform_... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#if defined(_WIN32) && !defined(_X360)
#include <winsock.h>
#elif POSIX
#include <sys/socket.h>
#include <netinet/in.h... |
//===--- SILOpt.cpp - SIL Optimization Driver -----------------------------===//
//
// 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... |
#include <netlib.hpp>
int main()
{
int lfd;
lfd = tcp_listen_on_port(5000);
auto sslSock = std::unique_ptr<SSocket>(new SSocket(lfd));
cout << "Starting srv version: " << sslSock->getVersion() << endl;
return 0;
} |
#include <cstdio>
#include <iostream>
#define int long long
const int MOD = 1e9 + 7;
template <typename T>
T read();
int quick_pow(int a, int b);
signed main() {
std::ios::sync_with_stdio(false);
int T = read<int>();
while (T--) {
int n = read<int>(), k = read<int>();
if (k > 1) {
... |
#include <iostream>
#include "Personaje.h"
#include "glut.h"
Personaje::Personaje(void):sprite("resources/textures/personaje.png",6,4)
{
sprite.setCenter(2.5, 1);
sprite.setSize(5, 5);
subiendo = false;
bajando = false;
moviendoDerecha = false;
moviendoIzquierda = false;
altura=1.0f;
this->setPos(Vector3D(0,... |
/*********************************************************************
* Software License Agreement (BSD-2-Clause)
*
* Copyright (c) 2021, Southwest Research Institute
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fol... |
// 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/search_engines/template_url_prepopulate_data.h"
#include "base/cxx17_backports.h"
#include "base/logging.h"
#include "build/build_co... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/shell_window_registry.h"
#include "chrome/browser/profiles/profile_dep... |
#include "ofMain.h"
#include "ofApp.h"
#include "ofxMightyUI.h"
#if defined(TARGET_OSX)
#import <AppKit/AppKit.h>
#elif defined(TARGET_WIN32)
#include "../resource.h"
#endif
#include "version.h"
#include "ofAppGLFWWindow.h"
#include "ofxNative.h"
#include <GL/glew.h>
//==============================================... |
#include <iostream>
#include "graph/Graph.h"
#include "GraphMaker.h"
#include "GraphImporter.h"
#include "Solver.h"
int main() {
/*GraphViewer gv; // Instantiate GraphViewer
gv.setCenter(sf::Vector2f(300, 300)); // Set coordinates of window center
GraphViewer::Node &node0 = gv.add... |
/*******************************************************************************
* C++ Common Library
* ---------------------------------------------------------------------------
* Copyright (C) 2022 JiangXueqiao <winsoft666@outlook.com>.
*
* This program is free software: you can redistribute it and/or mo... |
// -*- mode: C++; c-file-style: "stroustrup"; c-basic-offset: 4; indent-tabs-mode: nil; -*-
/* libutap - Uppaal Timed Automata Parser.
Copyright (C) 2002-2006 Uppsala University and Aalborg University.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesse... |
// Copyright (C) 2020 THL A29 Limited, a Tencent company.
// All rights reserved.
// Licensed under the BSD 3-Clause License (the "License"); you may
// not use this file except in compliance with the License. You may
// obtain a copy of the License at
// https://opensource.org/licenses/BSD-3-Clause
// Unless required ... |
#include "RenderEngine/DirectX9/ParticleEmitterInstance.h"
#include "RenderEngine/DirectX9/RenderObject.h"
#include "General/GameTime.h"
using namespace std;
namespace Alamo {
namespace DirectX9 {
struct ParticleEmitterInstance::ResourceBlock
{
size_t m_base;
ResourceBlock* m_next;
Buffer<Part... |
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:18 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Security.Cryptography.AsnEncodedData
#include "System... |
/*
* 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
... |
/**
* \copyright
* Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/LICENSE.txt
*/
#include <limits>
#include <gtest/gtest.h>
#include <E... |
//
//
// $Header: /u/drspeech/repos/pfile_utils/bin_search.cc,v 1.1.1.1 2002/11/08 19:47:06 bdecker Exp $
// Binary search function.
// Jeff Bilmes <bilmes@cs.berkeley.edu> June 1997
//
//
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <limits>
#include <math.h>
//
// bin... |
/*
* 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... |
//
// Created by we.kim on 2017-07-25.
//
#ifndef ESRENDERENGINE_INPUTHANDLER_H
#define ESRENDERENGINE_INPUTHANDLER_H
#include <android/input.h>
#include <jni.h>
#define interface class
interface InputHandler
{
public:
virtual bool onTouchEvent(int action, int* id, int* x, int* y, int count) = 0;
};
#endif //E... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The Wagerr developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http:/... |
// 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/chromeos/file_manager/desktop_notifications.h"
#include <gtest/gtest.h>
#include <string>
#include "chrome/browser/browser_proc... |
/*
AI Lib
Copyright (C) 2014 Eric Laukien
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,
including commercial applicati... |
// SPDX-License-Identifier: MIT
// Copyright (C) 2020 Malinovsky Rodion (rodionmalino@gmail.com)
#include <fservice/Engine.h>
#include <fservice/AsyncServer.h>
#include <fservice/IEngineEventHandler.h>
#include <fservice/RepeatableTimeout.h>
#include <protos/Greeter.grpc.pb.h>
#include <folly/io/async/EventBase.h>
... |
// Copyright 2013 The Flutter 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 "engine.h"
#include <fuchsia/accessibility/semantics/cpp/fidl.h>
#include <fuchsia/ui/scenic/cpp/fidl.h>
#include <lib/async/cpp/task.h>
#include... |
//
// Copyright (c) 2017-2019 CNRS INRIA
//
#ifndef __pinocchio_rnea_derivatives_hxx__
#define __pinocchio_rnea_derivatives_hxx__
#include "pinocchio/multibody/visitor.hpp"
#include "pinocchio/algorithm/check.hpp"
namespace pinocchio
{
template<typename Scalar, int Options, template<typename,int> class JointCol... |
#include <cassert>
#include <vector>
#include <unordered_set>
#include <algorithm>
using namespace std;
#include "primitiveRoot.h"
/////////// For Testing ///////////////////////////////////////////////////////
#include <time.h>
#include <cassert>
#include <string>
#include <iostream>
#include "../common/iostreamhe... |
#include <typeinfo>
#include <fstream>
#include <string>
#include <Poco/Exception.h>
#include <Poco/Logger.h>
#include <Poco/Path.h>
#include <Poco/Util/JSONConfiguration.h>
#include <Poco/Util/PropertyFileConfiguration.h>
#include <Poco/Util/XMLConfiguration.h>
#include "util/ConfigurationSaver.h"
#include "util/Cla... |
#include "proxy.h"
int create_socket(void)
{
int fd = socket(AF_INET, SOCK_DGRAM, 0);
if (fd == -1) {
err(EXIT_FAILURE, "socket failed");
}
return fd;
}
void close_socket(int fd)
{
if (close(fd) == -1) {
err(EXIT_FAILURE, "close failed");
}
}
void set_ip_port(struct sockaddr_i... |
// Copyright 2021 The MWC Developers
//
// 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.