text
stringlengths
3.08k
12.5k
#include "stdafx.h" #include "Profiler.h" Profiler* Profiler::thisProfiler = nullptr; static const int LINE_MAX_LENGTH = 256; static const int NAME_MAX_LENGTH = 30; ProfilerBlock::ProfilerBlock(ProfilerBlock* parent_, const char* name_) : name(name_), parent(parent_), time(0), maxTime(0), count(0...
#include "rcomp.h" #define RLE #define VERBOSE #undef VERBOSE struct RGBQUAD { TUint8 blue, green, red, reserved; }; // This struct assumes x86 (little endian) struct BMPHEADER { // struct BMPFILEHDR { TUint8 bfType1; // type of file (must be BM) TUint8 bfType2; // type of file (must be BM) TUint...
/**************************************************************************/ /** Color Sensor @file ColorSensor.cpp @author <NAME> (CharmySoft) <<EMAIL>> @section Circuit - Color Sensor + SDA pin to analog pin 4 + SCL pin to analog pin 5 */ /************************************...
#include <stdio.h> #include <stdlib.h> #include "Ddbm_MemBlk.h" /*MemBlk总数,每一个设备对应一个*/ #define MEMBLK_TOTAL_SUM 10 typedef int MUTEX_TYPE; #define MUTEX_CREATE(mutex) #define MUTEX_TAKE(mutex) #define MUTEX_RELEASE(mutex) typedef struct { unsigned int BlkSum; /*动态内存单元数量*/ unsigned int ...
/* <NAME> 292974 */ #include "msg_managment.h" int sockfd; void init() { sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); if (sockfd < 0) { fprintf(stderr, "socket error: %s\n", strerror(errno)); exit(EXIT_FAILURE); } } u_int16_t compute_icmp_checksum (const void *buff, int length) { u_int32_t sum; c...
/* Pterodon Recovery - Languages manager Copyright (C) <2020> ATGDroid <<EMAIL>> This file is part of Pterodon Recovery Project Pterodon Recovery 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 Softwa...
#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <termios.h> #include <unistd.h> #include <poll.h> #include "sim_vhpi_c.h" #include "Vlitedram_core.h" #include "verilated_vcd_c.h" static Vlitedram_core *v; vluint64_t main_time = 0; #if VM_TRACE VerilatedVcd...
/* PROBLEM STATEMENT ------> In a village fair kids play a very interesting game called Rock, Paper and Scissor. Each kid chooses a role for himself where he can play the role of a rock, a paper or a scissor. You have R number of rocks, S number of Scissors and T number of papers. Rock kills Scissor, Scissor kills Pa...
#include <GL/glew.h> #include <GLFW/glfw3.h> #include <cmath> #include <iostream> #include <libigl/readOBJ.h> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> #include "model_obj.h" #include "z_buffer_alg.h" #include <chrono> using namespace std; using namespace Eigen; using na...
/* * main.cpp * * Created on: 29/10/2015 * Author: pperezm */ #include <iostream> #include <cstring> #include "unit.h" #include "bst.h" using namespace std; class BSTTest : public UnitTest { public: void runTest() { UnitTest::total_test = 13; /* TEST 1 */ std::cout << "Test 1..."; BST<int> bst...
/* 206. Reverse Linked List Reverse a singly linked list. Example: Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both? */ /* Iterative Solution 1: 设prev, prev = new ListNode(0), prev永远指向0,,...
#include "def_cbct.h" #include <iostream> #include <string> void CUDA_CHECK_ERROR(const char* str) { cudaDeviceSynchronize(); cudaError_t err = cudaGetLastError(); if (cudaSuccess != err) { #ifdef USEMATLAB char buffer[2048]; sprintf(buffer, "[%s ERROR]: %s\n", str, cudaGetErrorString(err)); mexErrMsgTxt(bu...
// Copyright (c) <NAME>. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <IC705MultiMeter.h> #include "image.h" #include "functions.h" #include "command.h" #include "tasks.h" // Setup void setup() { uint8_t loop = 0; // Debug S...
/* Copyright (c) 2015 <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, merge, publish, ...
// $Id: EventChannelFactory_i.cpp 97317 2013-09-04 12:47:36Z mesnier_p $ #include "orbsvcs/Log_Macros.h" #include "EventChannelFactory_i.h" #include "ace/Process.h" #include "ace/Read_Buffer.h" #include "ace/SOCK_Acceptor.h" #include "ace/SOCK_Stream.h" #include "orbsvcs/FtRtEvent/Utils/UUID.h" #include "ace/OS_NS_sys...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <AzureIoTHub.h> #include <AzureIoTUtility.h> #include <AzureIoTProtocol_MQTT.h> // Includes and variables for serializing messages #include <ArduinoJson.h> #d...
#include "myShader.h" #include "myCube.h" MyCube::MyCube() { MyLOGD("MyCube::MyCube"); initsDone = false; // create MyGLCamera object and set default position for the object myGLCamera = new MyGLCamera(); float pos[]={0.,0.,0.,1,1,0.}; std::copy(&pos[0], &pos[5], std::back_inserter(modelDefau...
/* * This source file is part of libRocket, the HTML/CSS Interface Middleware * * For the latest information, see http://www.librocket.com * * Copyright (c) 2014 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "So...
#define _CRT_SECURE_NO_WARNINGS #include "DiscordRpc.h" #include <cstdlib> #include <cstring> #include <chrono> #include "discord_rpc.h" static constexpr int GDI_TEAM_NUM = 0; static constexpr int NOD_TEAM_NUM = 1; int64_t now_seconds() { return std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_c...
// // fusion.cpp // Fusion // // Created by Karan on 4/9/18. // Copyright � 2018 Karan. All rights reserved. // #include <iostream> #include "fusion.hpp" Fusion::Fusion(double max_acceleration, double max_turn_rate, double max_yaw_accel, double varGPS, double varSpeed, double varYaw, double varAcc, double xOff...
/* * Software License Agreement (BSD License) * * Copyright (c) 2020, Clearpath Robotics * 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 mus...
/// MIT License /// /// Copyright (c) 2019 <NAME> <<EMAIL>> /// /// 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, ...
// Filename: GeneralSolver.cpp // Created on 07 Apr 2012 by <NAME> // // Copyright (c) 2002-2013, <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: // // * Redistributions of source co...
/* * Copyright (C) 2016-2021 Grok Image Compression Inc. * * This source code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This source code is distributed in th...
#include <vector> // #include "Vec.h" #include <chuffed/core/propagator.h> #include <chuffed/globals/mddglobals.h> #include <chuffed/mdd/mdd_prop.h> #include <chuffed/mdd/MDD.h> #include <chuffed/mdd/opts.h> #include <chuffed/mdd/weighted_dfa.h> #include <chuffed/mdd/wmdd_prop.h> // #include <chuffed/mdd/case.h> type...
#include "IPAddress.h" char *if_names[MAXADDRS]; char *ip_names[MAXADDRS]; char *hw_addrs[MAXADDRS]; unsigned long ip_addrs[MAXADDRS]; #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) void InitAddresses(){}; void FreeAddresses(){}; void GetIPAddresses(){}; void GetHWAddresses(){}; #else #include <stdio.h> #...
///////////////////////////////////////////////////////////////////////////////// // // SourceFile: TestEvents.cpp // // Marlin Server: Internet server/client // // Copyright (c) 2015-2018 ir. <NAME> // All rights reserved // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this so...
#include "exprcalc.h" #include <stack> #include <iostream> #include <assert.h> ELETYPE ExprCalc::calc(const std::list<ExprItem> &items) { std::list<ExprItem> listSufixItems; infix2sufix(items, listSufixItems); for (auto it = listSufixItems.cbegin(); it != listSufixItems.cend(); ++it) { std::cout...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2017 Intel Corporation. All Rights Reserved. #include <thread> #include <iostream> #include "version.h" #include "or_utils.hpp" #include "or_console_display.hpp" #include "or_gui_display.hpp" using namespace std; using namespace rs::core; usi...
#include <iostream> #include <vector> #include "matrix.hpp" #include "nn.hpp" struct HyperParameters { float lr; std::size_t epochs; std::size_t batch_size; }; HyperParameters readConfig(int argc, char** argv) { if (argc < 4) { return HyperParameters{.lr = 0.00001, .epochs = 10, .batch_size = 32}; } e...
/** * @file All911Vertices.cpp * * @ingroup Simulator/Vertices/NG911 * * @brief A container of all 911 vertex data */ #include "All911Vertices.h" #include "All911Edges.h" #include "ParameterManager.h" #include "Layout911.h" All911Vertices::All911Vertices() { callNum_ = nullptr; dispNum_ = nullptr; ...
#include "App.h" #include "Render.h" #include "Textures.h" #include "Font.h" #include "Audio.h" #include "Skull.h" #include "Player.h" Skull::Skull(iPoint pos, pugi::xml_node anim, eastl::string map) : Enemy(EntityType::SKULL) { bounds = { pos.x, pos.y, 74, 74 }; texture = app->tex->Load("Textures/Enemies/floating_...
#include<conio.h> #include<string> #include<stdio.h> #include<windows.h> #include<iostream> using namespace std; //***************************BaseClass**********************// class tax { public: char g,f,name[50],address[50],occ[50],gen[50]; string nam; int id,age; void get() { cout<<"Enter Your Occu...
/** @file theorabranchfactory.cpp @brief This file is part of Kalinka mediaserver. @author <NAME> <<EMAIL>> Copyright (c) 2007-2012 Kalinka Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to de...
#include "afk/event/EventManager.hpp" #include "afk/Engine.hpp" #include "afk/NumericTypes.hpp" #include "afk/debug/Assert.hpp" #include "afk/event/Event.hpp" #include "afk/io/Log.hpp" #include "afk/io/Time.hpp" // Must be included after GLAD. #include <algorithm> #include <GLFW/glfw3.h> using afk::event::Event; us...
// Little program to turn input strings into base40 values // Copyright 2021 <NAME> // // compile with g++ -O2 base40.cc -o base40 // // Example output: #define BASE40_a 1 // "a" #define BASE40__a 79 // "/a" #define BASE40_cow 37403 // "cow" #define BASE40__cow 1496159 // "/cow" #define BASE40_zero 989026 // "zero" #d...
#include <chrono> #include <functional> #include <memory> #include <string> #include <math.h> #include "rclcpp/rclcpp.hpp" #include "sensor_msgs/msg/joint_state.hpp" #include "geometry_msgs/msg/pose_stamped.hpp" #include "geometry_msgs/msg/quaternion.hpp" #include "tf2/LinearMath/Quaternion.h" #include "tf2_ros/transfo...
// MIT License // // Copyright(c) 2021 <NAME> <<EMAIL>> // // 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, modi...
/* * main.cpp * * Created on: 19.03.2015 г. * Author: trifon */ #include <iostream> using namespace std; #include "stack.h" #include "rstack.h" #include "lstack.cpp" #include "lenstack.cpp" #include "point2d.cpp" typedef LinkedStack<int> TestStack; bool matchParentheses(char open, char close) { return op...
// ----------------------------------------------------------------------------------------- // VCEEnc by rigaya // ----------------------------------------------------------------------------------------- // The MIT License // // Copyright (c) 2014-2017 rigaya // // Permission is hereby granted, free of charge, t...
/* * (c) Copyright 2020 Xilinx, 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 ap...
/** * <NAME>, <NAME> and <NAME>: A New Mirror-based * Extrinsic Camera Calibration Using an Orthogonality Constraint, CVPR2012 * * For further information, please visit our web page. * http://vision.kuee.kyoto-u.ac.jp/~nob/proj/mirror * * * * Copyright (c) 2012, <NAME>, <NAME> and <NAME> * All rights reserv...
/*++ Copyright (c) 2011 Microsoft Corporation Module Name: simplify_cmd.cpp Abstract: SMT2 front-end 'simplify' command. Author: Leonardo (leonardo) 2011-04-20 Notes: --*/ #include"cmd_context.h" #include"th_rewriter.h" #include"shared_occs.h" #include"ast_smt_pp.h" #include"for_each_expr.h" #include...
#include <iostream> #include <sstream> #include "Groak.h" #include "GCharacter.h" class App : public GApplication { public: App() { On_Startup(); } ~App() { On_Close(); } void On_Startup(); void On_Close(); }; int main() { App Application; return Application.Run(); } class Window : public G...
/* the vast starry sky, bright for those who chase the light. */ #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pii; #define mk make_pair const int inf=(int)1e9; const ll INF=(ll)5e18; const int MOD=1e9+7; int _abs(int x){return x<0 ? -x : x;} int add(int x,int y){x+=y; return ...
// Copyright 2019 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 "controller_stream_provider.h" #include <fcntl.h> #include <fuchsia/hardware/camera/cpp/fidl.h> #include <lib/fdio/fdio.h> #include <lib/fzl/vmo-...
#include "ringbuffer.h" #include <cstring> #include <cassert> #include "osdebugout.h" #include "platcompat.h" #if 0 #define DPRINTF OSDebugOut #else #define DPRINTF(...) do{}while(0) #endif RingBuffer::RingBuffer() : m_begin(0) , m_end(0) , m_capacity(0) , m_data(nullptr) , m_overrun(false) { } RingBuffer::Ring...
/* ArdOSC 2.1 - OSC Library for Arduino. -------- License ----------------------------------------------------------- ArdOSC The MIT License Copyright (c) 2009 - 2011 recotana( http://recotana.com ) All right reserved */ #include <stdlib.h> #include <string.h> #include <stdarg.h> #include "OSCC...
/* * Copyright (C) 2013 by <NAME> (<EMAIL>) * * Released under the MIT license, see LICENSE.txt */ #include <deque> #include <cassert> #include <cmath> #include "halChain.h" using namespace std; using namespace hal; static void convertBlocks(TopSegmentIteratorConstPtr firstIt, Chain& o...
/** * @file * * Unit test of the name validation checks */ /****************************************************************************** * * * Copyright (c) 2009-2011, AllSeen Alliance. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or...
/* Copyright (c) 2016, Google Inc. * * Permission to use, copy, modify, and/or 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" AND THE AUTHOR DISCLAIMS...
/** * @file llmorphview.cpp * @brief Container for Morph functionality * * $LicenseInfo:firstyear=2001&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
// // Created by Victor on 4/9/20. // #include <iostream> #include <random> #include <algorithm> #include <generators/generators.hpp> #include <hypergraph/order.hpp> #include <hypergraph/approx.hpp> #include <generators/generators.hpp> // //int main(int argc, const char **argv) { // size_t edge_mult = 30; // double...
/******************************************************************************* * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to d...
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*- /* GPS_MTK.cpp - Ublox GPS library for Arduino Code by <NAME> and <NAME>. DIYDrones.com This code works with boards based on ATMega168/328 and ATMega1280 (Serial port 1) This library is free software; you can red...
#include "enemies.hpp" #include <glm/gtx/fast_trigonometry.hpp> #include <glm/gtx/rotate_vector.hpp> #include <cppitertools/itertools.hpp> #include "abcg.hpp" #include <iostream> using namespace std; void Enemies::initializeGL(GLuint program) { terminateGL(); m_program = program; m_colorLoc = glGetUniformLoca...
/* Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file This file is part of libzmq, the ZeroMQ core engine in C++. libzmq is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Found...
#include <iostream> #include <memory> #include <string> #include <sstream> #include <cmath> #include "../Time.h" #include "../Vector3.h" #include "Particle.h" Particle::Particle(): m_mass(1.0), m_charge(0.0), m_spin(0.0), m_pos{0.0, 0.0, 0.0}, m_speed{0.0, 0.0, 0.0}, m_forces {0.0, 0.0, 0.0}, m_idParticle(m_nbPar...
#include <iostream> #include <chrono> #include <sstream> #include <string> #include <ctime> #include <thread> #include "uci.h" // FEN string of the initial position const string start_FEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"; /* Had to do quite a bit to enable this program to run with thread...
#include "EKF_localization.h" #include <iostream> #include "config.h" #include "robot.h" using namespace std; using namespace Eigen; EKF_localization::EKF_localization() { init_ekf(); } void EKF_localization::init_ekf() { m_cov.setZero(); } void EKF_localization::set_state(double x, double y, double yaw) ...
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
/* Copyright 2014 <NAME> 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,...
// // Created by itzaname on 5/2/18. // #include <cstring> #include <vector> #include <sstream> #include "Handler.h" Handler::Handler(Conn *conn, requestfn handler) { this->conn = conn; this->handler = handler; this->excessBuffer = new char[HANDLER_BUFFER_SIZE]; this->excessBufferSize = NULL; } Hand...
#include "Hypo/Hypo.h" #include "Hypo/Config.h" #include "imgui.h" #include "Hypo/System/Util/Log.h" #include "Hypo/Window/Window.h" #include <iostream> #include "Hypo/3D/Renderer/Renderer.h" #include "serial/serial.h" #include <glm/ext/scalar_constants.inl> struct SensorInputData { unsigned char id; unsigned shor...
#include <Platform.hpp> #include <cstring> #include <assert.h> #include "PersistentLTKStorage.hpp" #define EEPROM_ADDR 0 #define LEN_ID 7 #define LEN_LTK 16 #define LEN_CACHE 3 #define LEN_CRC 4 static const uint8_t kMagic[2] = {0xDA, 0xB5}; static const uint8_t kVersion = 2; static constexpr size_t len_LTKEntry = 1...
#include <stdio.h> #include "pico/stdlib.h" #include "hardware/timer.h" // used for repeating timer #include "hardware/gpio.h" // used to access gpio #include "pico/util/queue.h" // enable queues #include <queue> #include <string> // enable strings #include "codes.h" // header file containing complementary funct...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/> * * Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/> * * Copyright (C) 2011 - 2012...
#include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkAssemblyNode.h> #include <vtkAssemblyPath.h> #include <vtkBorderRepresentation.h> #include <vtkBorderWidget.h> #include <vtkCommand.h> #include <vtkCoordinate.h> #include <vtkImageMapper3D.h> #include <vtkImageActor.h> #include <vtkInteractorStyleImage.h> ...
#include <stdio.h> #include <string> #include <vector> #include <limits> #include <Halide.h> using namespace Halide; std::vector<std::string> messages; extern "C" void halide_print(void *user_context, const char *message) { //printf("%s", message); messages.push_back(message); } #ifdef _MSC_VER #define snpr...
#include "atkui/framework.h" #include "atk/toolkit.h" #include "atkmath/quaternion.h" #include "atkmath/vector3.h" using namespace atk; using namespace atkmath; using atkmath::Quaternion; using atkmath::Vector3; using glm::vec3; class Unique : public atkui::Framework { public: Unique() : atkui::Framework(atkui::Per...
// 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 <errno.h> #include <fcntl.h> #include <pthread.h> #include <sys/stat.h> #include <map> #include <string> #include "gtest/gtest.h" #include...
/* Copyright 2005-2015 Intel Corporation. All Rights Reserved. This file is part of Threading Building Blocks. Threading Building Blocks 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 Foundat...
/* * Copyright 2011 Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 */ #include <QDebug> #include <QStringList> #include <QFileSystemWatcher> #include "...
/* * S2E Selective Symbolic Execution Platform * * Copyright (c) 2014, Dependable Systems Laboratory, EPFL * 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...
// Intended to be used for calculations on the ETH and Fischer information project // Computes susceptibility at a given temperature from canonical state, // the idea is to compare that with the one obtained from f0(E,w) i.e. offdiagonals ETH #include <iostream> #include <numeric> #include <algorithm> #include <sys/ti...
#include "arvore.h" #include <iostream> #include <stdlib.h> #include "NO.h" #define tn 3 void Arvore::splitChild(unsigned long int nNo, int nFilho){ No pai, filhoEsq, filhoDir; Registro<No> regPai, regEsq, regDir; lerRegistro(nNo, regPai); pai = regPai.info(); lerRegistro(pai.regFolhas[nFilho-1], regEsq); filh...
#include <iostream> #include <map> #include <utility> #include <vector> template <typename X> class reveal_type; class Person { public: Person(const std::string &name, const int age) : name_{name}, age_{age} {} void sayHi() const { std::cout << "Hi! I'm " << name_ << ", and I'm " << age_ << " years old." << std...
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
// // The MIT License (MIT) // // Copyright (c) 2014-2016 Brno University of Technology, PRISTINE project // // 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 ...
/* * resizing_lattice.cpp * * Demonstrates the usage of resizing of the state type during integration. * Examplary system is a strongly nonlinear, disordered Hamiltonian lattice * where the spreading of energy is invastigated * * Copyright 2009-2012 <NAME> and <NAME>. * Distributed under the Boost Software Lice...
/*----------------------------------------------------------------------- <NAME> 2020 http://trederia.blogspot.com crogine application - Zlib license. 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 so...
//nonactive_conn.cpp //关闭非活动连接 #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <iostream> #include <unistd.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <sys/epoll.h> #include <assert.h> #include <signal.h> #include <cassert> #include "tw_t...
#include "Test_MultiViewport.h" #include <glm/glm.hpp> Test_MultiViewport::Test_MultiViewport() { shader = new ShaderNS::Shader(); } Test_MultiViewport::~Test_MultiViewport() { } void Test_MultiViewport::Start() { program = glCreateProgram(); GLuint vs = shader->Load("C:/Media/Shaders/Test_MultiViewport/Test_M...
//========= Copyright Valve Corporation, All rights reserved. ============// // tf_bot_engineer_build_sentrygun.cpp // Engineer building his Sentry gun // <NAME>, May 2010 #include "cbase.h" #include "nav_mesh.h" #include "tf_player.h" #include "tf_obj.h" #include "tf_obj_sentrygun.h" #include "tf_obj_dispenser.h" #in...
/* * Copyright 2010-2020 <EMAIL>(http://datasys.cs.iit.edu/index.html) * Director: <NAME>(<EMAIL>) * * 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/l...
#include "RegexParser.h" RegexParser::RegexParser() {} RegexParser::~RegexParser() { emit workFinished(); } void RegexParser::run() { } void RegexParser::validateRegexp(RegexpValidateData data) { data.val = BaseCondition::hideBracketsFromParams(data.val); data.isValid = parse(data.val, data.result); emit regex...
#include "itkPluginUtilities.h" #include "itkTimeProbesCollectorBase.h" #include "BodyCentricCubicMeshCLP.h" #include "itkBinaryMaskTo3DAdaptiveMeshFilter.h" #include "itkTetrahedralMeshWriter.h" #include <algorithm> // Use an anonymous namespace to keep class types and function names // from colliding when module i...
/*This file is part of the FEBio Studio source code and is licensed under the MIT license listed below. See Copyright-FEBio-Studio.txt for details. Copyright (c) 2021 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any pers...
#if defined(Q_WS_WIN) #include <shellapi.h> #endif #include <QDesktopServices> #include <QUrl> #include <QVariant> extern "C" { #include <searpc-client.h> #include <ccnet.h> #include <searpc.h> #include <seafile/seafile.h> #include <seafile/seafile-object.h> } #include "utils/utils.h" #include "seafile-applet.h" #...
#include <iostream> #include <sstream> #include <array> #include <list> #include <set> #include <stdio.h> #include <assert.h> using namespace std; // Orientation indexes are from 0 to 23: // 1. index / 8 denotes the axis to point along (reducing to 8 // remaining orientations index') // 2. index' >= 4 indicates to...
/* * Legal Notice * * This document and associated source code (the "Work") is a part of a * benchmark specification maintained by the TPC. * * The TPC reserves all right, title, and interest to the Work as provided * under U.S. and international laws, including without limitation all patent * and trademark rig...
/* * Copyright (c) 2007, Laminar Research. * * 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, ...
///*|----------------------------------------------------------------------------- // *| This source code is provided under the Apache 2.0 license -- // *| and is provided AS IS with no warranty or guarantee of fit for purpose. -- // *| See the project's LICENSE.md for details. ...
/* The MIT License (MIT) Copyright (c) [2018] [BTC.COM] 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...
// Copyright (c) 2014 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "sso/sso_instance.h" #include <sstream> #include <string> #include "common/picojson.h" #include "sso/sso_async_op.h" #include "sso/sso_auth_se...
// This file is distributed under the BSD 3-Clause License. See LICENSE for details. #include "analyzefp.hpp" #include <limits> #include "ann_place.hpp" #include "floorplan.hpp" #include "mmap_map.hpp" void Pass_fplan_analyzefp::setup() { auto a = Eprp_method("pass.fplan.analyzefp", "retur...
/***************************************************************************************** * * * OpenSpace * * ...
/* *ExternalVoltage.cpp *This file is part of the EnviroDIY modular sensors library for Arduino * * Written By: <NAME> <<EMAIL>> * Adapted from ApogeeSQ212.h by <NAME> (<EMAIL>) * * This file is for the grove voltage divider (but will work with any voltage * divider with an output in the range of 0 ~ 3.3v) * ...
// // Created by Srf on 2018/12/18. // #include "conn_producer.h" int OpenListenFD(const char *port) { int listenFD = -1, optValue = 1; struct addrinfo hints = {0, 0, 0, 0, 0, nullptr, nullptr, nullptr}; struct addrinfo *pList; hints.ai_socktype = SOCK_STREAM; hints.ai_flags = AI_PASSIVE | AI_ADD...
#include "Game.h" Game::Game(){ initscr(); //inicializar pantalla nodelay(stdscr,false); //Espera tecla para moverse keypad(stdscr,true); //Habilita el teclado timeout(166);//Tiempo de espera de getch antes de regresar error noecho(); //No sale lo que escribes curs_set(0); //Cursor no visibl...