text
stringlengths
3.08k
12.5k
/* message_channel_test.cc -*- C++ -*- <NAME>, 24 September 2012 Copyright (c) 2012 Datacratic Inc. All rights reserved. Test for message channel () */ #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include <boost/make_shared...
// Copyright (c) 2012 <NAME> and MIPT students. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <map> #include <set> #include <utility> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "base/common.h" #include "base/rando...
#include <exception> #include <iostream> #include "index.h" #include "SStd.h" #include "SRGen.h" #include "configuration.h" #include "sim_foundation.h" #include "mess_queue.h" extern "C" { #include "SIM_power.h" #include "SIM_router_power.h" #include "SIM_power_router.h" int mainPopnet(); int popnetRunSim(long long in...
#include "PciExpressBus.h" #include "ConfigSpaceReader.h" #include "Device.h" #include "Log.h" #include <stdexcept> #include <system_error> #include <sys/syscalls.h> #include <mpack/mpack.h> #include <driver/DrivermanClient.h> using namespace pcie; /// Region of virtual memory space for mapping PCIe ECAM regions c...
#include <cstdio> #include <cstring> #include <algorithm> using namespace std; #define lson(x) ((x)<<1) #define rson(x) (((x)<<1)+1) typedef long long ll; const int maxn = 200005; const ll mod = 1e9+7; struct Node { int l, r; ll sum[2], ans[2]; }nd[maxn*4]; int N, M; char str[maxn]; void pushup(int u); Node query...
#include <lib/objects/math/Math.h> #include "BigOakTree.h" void BigOakTree::Initialize(Random &random, BlockTransaction &txn) { GenericTree::Initialize(random, txn); SetHeight(static_cast<int_fast32_t>(random.NextInt(12)) + 5); } void BigOakTree::SetMaxLeafDistance(int_fast32_t distance) { maxLeafDistance = di...
// A dining philosophers solution solved using the Resource Hierarchy solution. // Each philosopher is represented by a std::thread and attempts to access // both the of the chopsticks (shared resource) to their left and right. // // Compiler: Microsoft Visual C++ Compiler Nov 2012 CTP (v120_CTP_Nov2012) #include <s...
#include "stdafx.h" #include "TestWizard.h" #include "TestWizardSheet.h" LPCTSTR g_lpcstrPrefRegKey = _T("Software\\Microsoft\\WTL Samples\\Wizard97Test"); CTestWizard::CTestWizard() { } bool CTestWizard::ExecuteWizard() { // You could also pass in parameters here // (or something generic like a name/value map). ...
#include <gazebo/transport/transport.hh> #include <gazebo/msgs/msgs.hh> #include <gazebo/gazebo_client.hh> #include <ignition/math.hh> #include <ignition/math/Pose3.hh> #include <iostream> #include <cassert> #include <cstring> #include <mutex> #include <opencv2/opencv.hpp> #include <opencv2/aruco.hpp> #include <open...
// // CSliderWidget.cpp // MenuTest // // Created by <NAME> on 02/06/2017. // // #include "CSliderWidget.hpp" #include "TextUtilties.hpp" #include "SystemUtilities.hpp" CSliderWidget::CSliderWidget(float left, float top, float width, float height, std::string label, int min,...
/******************************************************************************* * Copyright (c) 2018-, UT-Battelle, LLC. * All rights reserved. This program and the accompanying materials * are made available under the terms of the BSD 3-Clause License * which accompanies this distribution. * * Contributors: ...
#include<fstream> #include<iostream> #include<sstream> #include<iomanip> #include<string.h> using namespace std; template <class T> T get_valor(string msg = ""){ T valor; while(true){ cout << msg << endl; cin >> valor; if(cin.fail()){ cin.clear(); cin.ignore(1000...
/* * * 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"); y...
#include "vmcsolver.h" #include "lib.h" #include <armadillo> #include <iostream> using namespace arma; using namespace std; VMCSolver::VMCSolver() : nDimensions(3), charge(2), nParticles(2), h(0.001), h2(1000000), idum(-1), alpha(0.5*charge), nCycles(1000000), timestep(0.05), ...
/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
/*- * Copyright (c) 2015 <NAME> * 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 conditions and ...
#include "../../head.h" class Solution { public: int connectTwoGroups(std::vector<std::vector<int>> const & cost) { // plagiarizing idea from https://youtu.be/hq0IVf1Falk if (cost.empty() || cost[0].empty()) { return 0; } int const rowSize = cost.size(); int co...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using pii = pair<int, int>; using pll = pair<ll, ll>; #define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i) #define all(x) (x).begin(),(x).end() #define m0(x) memset(x,0,sizeof(x)) int dx4[4] = {1,0,-1,0}, dy4[4] = {0,1...
#include "buffer.hpp" #include "render.hpp" #include <iostream> VertexBuffer::VertexBuffer() : d_positions(0), d_colors(0), d_normals(0), d_texcoords(0), d_indices(0), num_positions(0), num_colors(0), num_normals(0), num_texcoords(0), num_indices(0) { translation = glm::vec3(0, 0, 0); rotation = glm::mat3(1.0f); }...
#include <memory> #include <vector> #include <optional> #include "plansys2_problem_expert/ProblemExpertClient.hpp" #include "rclcpp/rclcpp.hpp" #include "turtlesim/msg/pose.hpp" #include "turtlesim_final_interfaces/msg/turtle_spawn.hpp" #include "turtlesim_final_interfaces/msg/turtle_array.hpp" using std::string; u...
#include "CryptRSA.h" #include <Windows.h> #include <cstdlib> #include <ctime> #include <memory> #include <stdexcept> CryptRSA::CryptRSA() { srand(time(0) * GetCurrentProcessId()); R_RandomInit(&this->random_struct); std::memset(&this->public_key, 0, sizeof(this->public_key)); std::memset(&this->private_key, 0, s...
#include "EngineSettings.h" #include <SFML\Window\VideoMode.hpp> #include <direct.h> #include <fstream> #include <sstream> #include "Globals.h" EngineSettings::EngineSettings(void) { loadDefaults(); loadFromFile(); usingCustomRes(); } EngineSettings::~EngineSettings(void) {} void EngineSettings::loadDefault...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2010 CTTC * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed ...
#include <mbed.h> #include <dynamixel.h> #include <mpu9250.h> //#include <ros.h> //#include "geometry_msgs/Twist.h" //#include "sensor_msgs/Imu.h" // sensor_msgs::Imu imu_msg; // class Dynamixel // { // Dynamixel(); // }; struct Position { float x; float y; float theta; }; //namespace Thre...
#include <bits/stdc++.h> #include <iostream> #include <unistd.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <vector> #include <unordered_map> using namespace std; struct Path { int length; vector<int> path; Path(int length, const vector<int> &path) : l...
/*hseqr.cpp */ #include<iostream> #include<complex> #include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/matrix_proxy.hpp> #include <boost/numeric/ublas/io.hpp> #include <boost/numeric/bindings/ublas/matrix.hpp> #include <boost/numeric/bindings/ublas/vector.hpp> //#include <boost/numeric/bindings/d...
/* SDL C++ Classes Copyright (C) 2017-2018 <NAME> 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, includ...
/// libdas: DENG asset handling management library /// licence: Apache, see LICENCE file /// file: wobj.c - wavefront obj parser source file /// author: <NAME> // stl includes #include <stdint.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <uuid.h> #include <assets.h> #include <wobj.h> sta...
/* Copyright 2015 University of Rochester 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 wr...
/* * This file is part of Kintinuous. * * Copyright (C) 2015 The National University of Ireland Maynooth and * Massachusetts Institute of Technology * * The use of the code within this file and all code within files that * make up the software that is Kintinuous is permitted for * non-commercial purposes onl...
// ================================================================ // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved // ================================================================ // ================================================================ // Computes the mean framewise feature for ...
#include <algorithm> #include <cstdlib> #include <iostream> #include <iomanip> #include <fstream> #include <string> #include "indri_bridge.hpp" #include "fat.hpp" #include "query_train_file.hpp" #include "trec_run_file.hpp" #include "document_features.hpp" #include "docmeta_url_feature.hpp" #include "doc_bm25_atire_fe...
#include <iostream> #include <fstream> #include <ros/ros.h> #include <serial/serial.h> #include <sensor_msgs/Imu.h> #include <std_msgs/String.h> #include <std_srvs/Empty.h> #include <string> #include <tf/transform_broadcaster.h> #include <tf/transform_datatypes.h> using namespace std; bool zero_orientation_set = false...
#include "clientsstats_api.h" #include "coroutine/waitgroup.h" using reindexer::net::ev::dynamic_loop; using reindexer::client::CoroReindexer; using reindexer::client::CoroQueryResults; using reindexer::coroutine::wait_group; using reindexer::coroutine::wait_group_guard; void ClientsStatsApi::SetUp() {} void Clients...
/* * Copyright 2021 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <jni.h> #include "include/core/SkM44.h" namespace { static jlong Matrix_Create(JNIEnv* env, jobject, jfloat m0, jfloat m4, jfloat m8, jfloat m12, ...
#include "Parser.hpp" #include <fstream> #include <sstream> #include <cassert> #include <tuple> #include "Utils/string_algorithms.hpp" using namespace brx; bool start_with_comment(std::istream& stream) noexcept; std::pair<Key, Value> read_next_key_value(std::istream& stream) noexcept; Key read_key(std::istream& str...
#include "MWnd.h" #include "MWndManager.h" #include "MWndUtils.h" #include <framework/MUtil.h> #include <framework/io/MLogger.h> #include <framework/MNativeTypes.h> #include "MWndNamespace.h" /** runtime type info */ MRtti MWnd::gvRtti = MRtti( "MWnd", MWnd::createInstance ); /** default constructor */ MW...
#include <debug.hpp> #include <errors.hpp> #include <stats.hpp> uint64_t Stats::lastId {}; Stats::Stats(std::string name, uint64_t minMass, uint64_t maxMass, uint64_t minPrice, uint64_t maxPrice) : name {name}, minMass {minMass}, maxMass {maxMass}, minPrice {minPrice}, maxPrice {maxPrice} { u...
#define GL_SILENCE_DEPRECATION #include <stdlib.h> #include <assert.h> #include <cstring> #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include <SDL2/SDL_thread.h> #include "fluid.h" #include "viewer.h" #include "genfunc.h" SDL_Window* screen = NULL; SDL_Thread* simthread = NULL; Fluid* fluid = NULL; Viewer* ...
# include <cmath> # include <cstdlib> # include <ctime> # include <iomanip> # include <iostream> # include "asa241.h" using namespace std; // The inverse function of the normal CDF, calculating the variable according // to the probability 'p' of normal CDF. double r8_normal_01_cdf_inverse ( double p ) { static ...
#include "PerspectiveCameraController.h" #include "scisim/Math/MathDefines.h" #include <cassert> PerspectiveCameraController::PerspectiveCameraController() : m_fovy( 60.0 ) , m_aspect( 1.0 ) , m_theta_cam( PI<GLdouble> / 3.0 ) , m_phi_cam( PI<GLdouble> / 4.0 ) , m_rho_cam( 3.0 ) , m_cam_lookat( Eigen::Matrix<GLdoubl...
/* -------------------------------------------------------------------------- * * Copyright (c) 2010-2016 <NAME>, <NAME> * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may ...
/* * 分析目录下cpp包含.h 包含频率 * analyseInc.txt 供 ReplaceGCH.sh 使用 * analyseInc2.txt 便于我们查看头文件包含频率 * * 使用方法: ./CheckInclude CheckDir FindDirA FindDirB ... * v2: 递归查找, 按照编译单元统计(cpp) */ #include <iostream> #include <fstream> #include <set> #include <vector> #include <cstdlib> #include <string.h> #include <map> #include...
//===- LegalizeNames.cpp - Name Legalization for ExportVerilog ------------===// // // 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 // //===---------------------------...
//%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor lice...
//#include <unistd.h> #include <iostream> #include <vector> #include <pthread.h> #include <stdint.h> #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <unistd.h> void error(const char *msg) { ...
#include "gmock/gmock.h" #include <thread> #include "../test_common.h" #include <misc/logger_base.hpp> using namespace ydsh; struct TestLogger : public ydsh::LoggerBase { TestLogger() : ydsh::LoggerBase("testlog") {} }; struct LoggerTest : public ExpectOutput { std::unordered_map<std::string, std::string> envs...
////////////////////////////////////////////////////////////////////// // ColorMap.cpp - A color map implementation with templatized pixel type // // Maps a scalar to a color; uses arbitrary sized color maps // // Copyright <NAME>, 1998. #include "Image/ColorMap.h" #include "Image/tPixel.h" #include "Math/MiscMath.h"...
// Copyright (c) 2015-2020, Lawrence Livermore National Security, LLC. // See top-level LICENSE file for details. // PcpMemoryBandwidth.cpp // Compute memory bandwidth metrics from CAS counters #include "caliper/CaliperService.h" #include "caliper/Caliper.h" #include "caliper/SnapshotRecord.h" #include "caliper/com...
#include<iostream> #include<pybind11/pybind11.h> #include<pybind11/numpy.h> #include<vibe.hpp> VIBE::VIBE() {}; VIBE::~VIBE() {}; pybind11::array_t<unsigned char> VIBE::Rgb2Gray(pybind11::array_t<unsigned char> &img_rgb) { if (img_rgb.ndim() != 3){ throw std::runtime_error("RGB image has 3 channels."); ...
#include <stdio.h> #include <cstdint> #include <iostream> #include <list> #include <gtest/gtest.h> #include <glog/logging.h> #include <cstdlib> #include <tudocomp/Tags.hpp> #include <tudocomp_driver/Registry.hpp> #include "test/util.hpp" #include "test/driver_util.hpp" using namespace tdc_algorithms; struct TestCas...
/** * MIT License * * Copyright (c) 2017 <NAME> * * 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, mo...
/* Copyright (c) 2014, 2020 Oracle and/or its affiliates. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain software (including but n...
/* * The MIT License * * Copyright (c) 2012-2018 The University of Utah * * 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 * right...
// Initialize Vulkan and composite stuff with a compute queue #pragma once #include <atomic> #include <stdint.h> #include <memory> // 1: Fade Plane (Fade outs between switching focus) // 2: Video Underlay (The actual video) // 3: Video Streaming UI (Game, App) // 4: External Overlay (Mangoapp, etc) // 5: Primary Ove...
#include <Arduino.h> #include <EEPROM.h> #include "Sleepy.h" //https://github.com/kinasmith/Sleepy #include <MCP342x.h> #include <Wire.h> #define LED 3 #define SERIAL_BAUD 9600 #define VREF A1 #define SENS_EN 4 //Thermistor Var's #define THERMISTORNOMINAL 10000 #define TEMPERATURENOMINAL 25 #define BCOEFFICIENT 3950...
// Copyright © 2015 <NAME> <<EMAIL>> // License: MIT, see the LICENSE file. #include "stdafx.h" #include "Raytracing/AABB.h" #include "Raytracing/Ray.h" #include "Math/Matrix4x4.h" using namespace Raycer; AABB::AABB() { min.x = min.y = min.z = std::numeric_limits<double>::max(); max.x = max.y = max.z = std::numer...
#pragma once #include "../misc/timer.hpp" namespace fast_inv { using u64 = uint64_t; using u32 = uint32_t; using i32 = int32_t; constexpr u32 MOD = 998244353; struct Pre { u32 a[64]; constexpr Pre() : a() { static_assert(MOD & 1); a[0] = 1; for (int i = 1; i < 64; i++) a[i] = u64(a[i - 1]) * ((MOD ...
/*=auto========================================================================= Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. ==================================================================...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2020-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance...
/* afv/RemoteVoiceSource.cpp * * This file is part of AFV-Native. * * Copyright (c) 2019 <NAME> * * 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 copyri...
#include <iostream> #include <queue> #include <climits> #define INF 40000 /* PHASE 1 FUNCTIONS */ int max(int a, int b){ if (a > b) { return a; } else { return b; } } int strdex(std::string *strs, std::string input, int n) { int index = INF; for(int i = 0; i < n; i++){ ...
#include "ccv.h" #include "assert.h" inline __attribute__((always_inline)) void create_diagonal_matrix(GrB_Matrix D) { GrB_Index n; ok(GrB_Matrix_ncols(&n, D)); std::unique_ptr<GrB_Index[]> I{new GrB_Index[n]}; std::unique_ptr<bool[]> X{new bool[n]}; int nthreads = GlobalNThreads; nthreads =...
#include <sstream> #include <fstream> #include "ThirdParty/GLEW/glew.h" #include "ft2build.h" #include FT_FREETYPE_H #include "Rendering/Texture2D.h" #include "Rendering/Font.h" #include "Rendering/Renderer.h" #include "Rendering/privateFont.h" #include "Utils/Logger.h" #include "Utils/Filesystem.h" using ...
/*************************************************************************/ /* editor_translation_parser.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include "header.h" #include "DisplayableObject.h" #include "BaseEngine.h" #include "DragableTokenContainer.h" #include "DragableToken.h" #include "ImageManager.h" #include "PlayingCardsDemo.h" #include "TokenTray.h" #include "CardOrTile.h" /* Initialise things for my specific game/program */ int PlayingCar...
#include <bits/types/FILE.h> #include <fstream> #include <iostream> #include <stdio.h> #include <vector> #include <string> #include <tgmath.h> #include "image_ppm.h" #include <filesystem> // #include <Eigen/Dense> using namespace std; // using namespace Eigen; // typedef Matrix<u_char, Dynamic, Dynamic> MatrixImg; //...
// <NAME> // Programming Assignment #2 // This program parses through an input file with data to sort, sorts them, // and returns the result of each sort in an output file and reports the time // taken to sort. // THIS IS THE PROVIDED CODE FOR PROGRAM #2, DSA 1, SPRING 2017 #include <iostream> #include <fstream>...
/* * Vega Strike * Copyright (C) 2001-2002 <NAME> * * http://vegastrike.sourceforge.net/ * * This program 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 2 * of the License, or (at your...
#include <iostream> #include <fstream> #include <cmath> #include "source/newtonian/common/hllc.hpp" #include "source/newtonian/common/ideal_gas.hpp" #include "source/newtonian/one_dimensional/hdsim.hpp" #include "source/newtonian/one_dimensional/pcm1d.hpp" #include "source/newtonian/one_dimensional/plm1d.hpp" #include ...
#include "geckoRuntime.h" #include "geckoStringUtils.h" #include <string.h> #include <math.h> #include <unistd.h> #include <stdlib.h> #include <unordered_set> #include <algorithm> using namespace std; #include <openacc.h> #ifdef CUDA_ENABLED #include <cuda_runtime.h> #endif #include "geckoUtils.h" #include "gecko...
#include <cmath> #include <cassert> #include <vector> #include <string> #include <algorithm> #include <iostream> #include "BunnyBox.h" #include "Ray.h" #include "Scene.h" #include "Shape.h" #include "Bvh.h" ////////////////////////////// // // Cornel box scene for test // ////////////////////////////// void BunnyBox:...
/* * Copyright (c) 2016 Triad National Security, LLC * All rights reserved. * * Copyright (c) 2003-2015 <NAME>, <NAME>, <NAME> * * This file is part of the Gladius project. See the LICENSE.txt file at the * top-level directory of this distribution. */ #include "tool-proto.h" #incl...
/* * This program 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 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
#include <QSqlError> #include <QSqlQuery> #include <QDebug> #include "pathrepository.h" PathRepository::PathRepository(QSqlDatabase *database) { m_database = database; } QList<PathEntity> PathRepository::find() { QList<PathEntity> list; QSqlQuery query; if (query.exec("SELECT" ...
// Standard Library and IO: #include <cstdio> #include <cstdlib> #include <iostream> // C Head File #include <stdio.h> #include <stdlib.h> // Data Structure: #include <vector> #include <string> #include <set> #include <cstring> #include <queue> // POSIX #include <mutex> #include <condition_variable> #include <memory...
#include "sched.h" #include "singleton.h" #include "libos.h" #include "panic.h" #include "user_thread.h" #include <spin_lock.h> Scheduler *scheduler; void scheduler_init() { scheduler = new Scheduler; } int get_cpu() { bool interruptFlag = disableInterrupt(); uint64_t cpuID = getSharedTLS()->threadID; ...
/* MIT License Copyright (c) 2021 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, me...
//DISCLAMER - This is a modified version of code from one of my other assignments. #include "Object.h" Object::Object(std::string objFileName) { //initialise the material material = "Untextured"; //Initialise the vertex buffer object InitialiseVAO(objFileName); } Object::Object(std::string objFileName, std::str...
// Copyright 2021 <NAME>, 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 applicable law or agreed to in...
#include <iostream> #include <set> #include <chrono> #include <sstream> #include <getopt.h> #include "taskcollection.hpp" #include "utils/stat.hpp" #include "utils/timer.hpp" #include "utils/dbg.hpp" #include "utils/output/jsonoutput.hpp" #include "utils/output/gnuplotoutput.hpp" #include "utils/timemeasurement.hpp" ...
/* * Copyright (c) 2017-2020 CelePixel Technology Co. Ltd. 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 r...
#include "CScriptObject.h" #include "CScriptLayer.h" #include "CGameTemplate.h" #include "Core/Resource/Animation/CAnimSet.h" CScriptObject::CScriptObject(uint32 InstanceID, CGameArea *pArea, CScriptLayer *pLayer, CScriptTemplate *pTemplate) : mpTemplate(pTemplate) , mpArea(pArea) , mpLayer(pLayer) , m...
/*********************************************************************/ /* */ /* Nagoya Institute of Technology, Aichi, Japan, */ /* Nara Institute of Science and Technology, Nara, Japan */ /* ...
// Copyright (c) Microsoft Corporation. // Copyright (c) 1999 <NAME>, <NAME>. // Copyright (c) 2000, 2001 <NAME>, <NAME>, <NAME>. // Licensed under the MIT license. #include "Rep_info_exactly_once.h" #include "Replica.h" #include "Reply.h" #include "Req_queue.h" #include "Statistics.h" #include <stdlib.h> #include <...
// file_splitter.cpp : This file contains the 'main' function. Program execution begins and ends there. #include <iostream> #include <fstream> #include <string> #include <boost/filesystem.hpp> int assignHeaderAndDataNum(const std::string& events_file_directory, int& num_header_lines, int& num_data_rows) { std::ifs...
#include "altruct/structure/math/vector2d.h" #include "structure_test_util.h" #include "gtest/gtest.h" using namespace std; using namespace altruct::math; using namespace altruct::test_util; typedef vector2d<int> pnti; typedef vector2d<double, int> pntd; TEST(vector2d_test, constructor) { pnti p...
//**************************************************************************** // "Those Funny Funguloids!" // http://funguloids.sourceforge.net // Copyright (c) 2006-2007, <NAME> // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any dam...
#include <smoke_basin.hpp> #include <range/v3/numeric/accumulate.hpp> #include <range/v3/range/conversion.hpp> #include <range/v3/range/primitives.hpp> #include <range/v3/view/cartesian_product.hpp> #include <range/v3/view/filter.hpp> #include <range/v3/view/iota.hpp> #include <range/v3/view/split.hpp> #include <range...
/* Copyright 2015-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 deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
#include <graphics.h> #include <process.h> #include <stdlib.h> #include <conio.h> #include <math.h> #include <stdio.h> #include <dos.h> #define x 250 #define y 100 #define z 100 int arr[24]; void draw(int pts3[24]); void cube(int pts1[16]); int main(void) { int gd = DETECT, gm, s, ch; void tran(); void rot(...
#include "MuxFeeder.h" #include <QWaitCondition> MuxFeeder::MuxFeeder(EncodingRingBuffer *audioQueue, EncodingRingBuffer *videoQueue) { this->audioQueue = audioQueue; this->videoQueue = videoQueue; containerEncoder = 0; currentAudioPacket = 0; currentVideoFrame = 0; expectedAudioIndex = 0; ...
//SDL Screen Saver beta 1 #include <exception> #include <string> #include <iostream> #include <SDL.h> #include <SDL_image.h> int WINDOW_WIDTH = 0; int WINDOW_HEIGHT = 0; const int FLAKES_COUNT = 128; const int FLAKE_RADIUS = 48; const int DRAW_INTERVAL = 12; const int FALL_SPEED = 3; typedef struct Sn...
#include "operations.hpp" #include "utils.hpp" expr::Operator* op::mk_short; expr::Operator* op::mk_long; expr::Operator* op::mk_signed; expr::Operator* op::mk_unsigned; expr::Operator *op::mk_cfntype; expr::Operator* op::mk_proxy; expr::Operator* op::mk_ptrtype; expr::Operator* op::mk_enumtype; using namespace expr...
#include "RegGen.h" #include <stdio.h> #include <stdlib.h> #include "Voxel.h" using namespace deway; RegGen::RegGen(Voxel ** _travVoxels, uint _numTravVoxels, float _maxEdgeDist) { m_travVoxelsRef = _travVoxels; m_numTravVoxels = _numTravVoxels; m_maxEdgeDist = _maxEdgeDist; create(); merge...
/** * Maximum Power Point Tracker Project * * File: main.cpp * Author: <NAME> * Organization: UT Solar Vehicles Team * Created on: September 10th, 2020 * Last Modified: 9/26/20 * * Program Discription: This program is meant to run on the STM32 L432KC Nucleo * uC that controls the MPPT board. It manages the ...
#include <occa.hpp> #include <occa/internal/utils/testing.hpp> #include <occa/internal/utils/env.hpp> #include <occa/internal/utils/string.hpp> using namespace occa; void testStrip(); void testEscape(); void testSplit(); void testContains(); void testCaseMethods(); void testString(); void testMatchEnds(); void testH...
#include "demand_matrix_input.h" #include <gflags/gflags.h> #include <stddef.h> #include <algorithm> #include <cstdint> #include <limits> #include <map> #include <random> #include <string> #include "ncode/common.h" #include "ncode/file.h" #include "ncode/logging.h" #include "ncode/net/net_common.h" #include "ncode/ne...
#include "controller.h" #include "tagitem.h" #include <mpd/client.h> #include <QDebug> #include <QtNetwork/QLocalSocket> #include <QtNetwork/QTcpSocket> Controller::Controller(QObject *parent) : QObject(parent) , m_connection(nullptr) , m_notifier(nullptr) { qRegisterMetaType<Controller::ConnectionStat...
#include "ofxBehaviourTreeVM.h" namespace { template <size_t opcode_val, typename u_type, typename s_type> struct vm_opcode { using op_type = s_type; static constexpr op_type opcode = opcode_val; using successor = vm_opcode<opcode_val + 1, u_type, s_type>; }; template <size_t o...