text
stringlengths
7
961k
/*************************************************************************** * * Project: OpenCPN * Purpose: NMEA0183 Support Classes * Author: Samuel R. Blackburn, David S. Register * *************************************************************************** * Copyright (C) 2010 by Samuel R. Blackburn, D...
// Jiaqi Luo, cs202, hw3, heap.cpp, 8/1/2014 // this file contains the declaration of functions of the heap class #include "heap.h" #include <cmath> #include <cstring> #include <iostream> using namespace std; // constructor // set root to NULL, deepth and num_of_nodes to 0 heap::heap() : root(NULL), num_of_nodes(0) {...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
/* file: kmeans_init_csr_parallelplus_batch_fpt_dispatcher_v1.cpp */ /******************************************************************************* * Copyright 2014-2021 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lice...
/* * Copyright (c) 2011, 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...
/* file: distributed_step1_local_input.cpp */ /******************************************************************************* * Copyright 2014-2021 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...
#include "GUIWindowMgr.h" #include "GUITitledFrame.h" #include "../Engine/EngineDef.h" #include "../Scene/SceneMgr.h" #include <algorithm> namespace tzw { TZW_SINGLETON_IMPL(GUIWindowMgr) void GUIWindowMgr::focus(GUIWindow *window) { auto result = std::find(frameList.begin(),frameList.end(),window); window->set...
// ImGui SDL2 binding with OpenGL3 // (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) // (GL3W is a helper library to access OpenGL functions since there is no standard header to access modern OpenGL functions easily. Alternatives are GLEW, G...
/* ----------------------------------------------------------------------------- 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 ...
#include "main_lib.h" Main_lib::Main_lib() { }
// 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 "base/containers/hash_tables.h" #include <stdint.h> #include <string> #include "base/basictypes.h" #include "testing/gtest/include/gtest/gtest....
#include <bits/stdc++.h> template<typename T> T gcd(T a, T b) { if(!b) return a; return gcd(b, a % b); } template<typename T> T lcm(T a, T b) { return a * b / gcd(a, b); } template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; } template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/codeartifact/model/GetPackageVersionReadmeRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/http/URI.h> #include <aws/core/utils/memory/stl/AWSStringStream.h>...
/* tests/conv.cpp -- tests special functions Enoki is a C++ template library that enables transparent vectorization of numerical kernels using SIMD instruction sets available on current processor architectures. Copyright (c) 2020 Wenzel Jakob <wenzel.jakob@epfl.ch> All rights reserved. Use of...
// Copyright (c) 2006-2013, Andrey N. Sabelnikov, www.sabelnikov.net // 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 // noti...
#include "../common/sphereproto.h" #include "../common/CLog.h" #include "../game/CServer.h" #include "../game/CServerConfig.h" #include "../game/CWorld.h" #include "../game/chars/CChar.h" #include "../game/clients/CClient.h" #include "packet.h" #include "CNetworkThread.h" #include "CNetState.h" #ifdef _LIBEV exter...
#ifndef VMATH_CORE_MATRIX_HPP #define VMATH_CORE_MATRIX_HPP #include <array> #include <cstddef> #include <ostream> #include <vmath/core/vector.hpp> #undef minor namespace vmath { namespace core { /*! * \brief Checks that the given matrix dimensions make a square matrix * \tparam M Number of rows in the matrix * ...
/* Simulate altimeter using vehicle kinematics Copyright(C) 2019 Simon D.Levy MIT License */ #pragma once #include "../MainModule/Dynamics.hpp" #include <HF_state.hpp> #include <HF_sensor.hpp> #include <HF_filters.hpp> class SimAltimeter : public hf::Sensor { protected: // We do all dynamc...
//============================================================================== // Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
#include "SearchCtrl.h" #include "../SearchTaskManager.h" namespace xmreg { using namespace drogon; using namespace std; namespace nl = nlohmann; /** * Basic check of the submmited message */ std::optional<nl::json> msg_to_json(string_view message) { nl::json jmessage; try { jmessage = n...
#ifndef CREAM_EVENT_HPP #define CREAM_EVENT_HPP #include <functional> #include <string> namespace cream { enum class EventType { NoneEvent = 0, MouseDownEvent, MouseUpEvent, MouseMoveEvent, KeyPressEvent, KeyRepeatEvent, KeyReleaseEvent, WindowMoveEvent, WindowResizeEvent, Win...
//////////////////////////////////////////////////////////////////////////////// // // cagey-engine - Toy 3D Engine // Copyright (c) 2014 Kyle Girard <theycallmecoach@gmail.com> // // The MIT License (MIT) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associa...
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 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 "irc.h" #include "db.h" #include "net.h" #include "init.h" #include "strl...
#include "routing/routing_session.hpp" #include "routing/routing_helpers.hpp" #include "routing/speed_camera.hpp" #include "platform/location.hpp" #include "platform/measurement_utils.hpp" #include "platform/platform.hpp" #include "coding/internal/file_data.hpp" #include "geometry/angles.hpp" #include "geometry/mer...
/** * Copyright (c) Glow Contributors. See CONTRIBUTORS file. * * 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 b...