text
stringlengths
65
6.05M
lang
stringclasses
8 values
type
stringclasses
2 values
id
stringlengths
64
64
/*! * \file OxCalculatorT2Truncation_test.cpp * \author Konrad Werys * \date 2019/11/01 */ #include "gtest/gtest.h" #include "OxTestData.h" #include "CmakeConfigForTomato.h" #ifdef USE_PRIVATE_NR2 #include "OxModelT2TwoParamScale.h" #include "OxFitterAmoebaVnl.h" #include "OxFitterLevenbergMarquardtVnl.h" #inclu...
C++
CL
ec91042479423302de5357b21d28203125c4e5eb34af28b6ede77126f143ddd6
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" /// <summary> /// Singleton instance containing all game information /// </summary> class DWELLERS_API GameEncapsulator { public: GameEncapsulator(); ~GameEncapsulator(); /// <summary> /// Create...
C++
CL
30f1e22c53a5bb321ab79ed9914395f875a0a4df5d23fd9d5ece7670bfe58217
//! \file //! \brief //! //! Primary Author: Nathan Myers //! Contributing Authors: Matt Edlefsen, Maduna #ifndef AUTONOMY_GUI_HPP #define AUTONOMY_GUI_HPP #include <SDL/SDL.h> #include <SDL/SDL_mixer.h> #include <SDL/SDL_image.h> #include <SDL/SDL_gfxPrimitives.h> #include <SDL/SDL_ttf.h> #include <autonomy/viewport....
C++
CL
e673f0d8fcabeca5e6b3b80decff6d86d8da851c52b04ebe1a151f50259d5036
#ifndef CMOVE_TO_TARGET_COMPONENT_H #define CMOVE_TO_TARGET_COMPONENT_H #include "CComponent.h" #include "CMoverComponent.h" #include "CPositionComponent.h" class CMoveToTargetComponent : public CComponent{ public: //Constructor CMoveToTargetComponent(float sightRadius); //Destructor ...
C++
CL
e32cd42833ea5094d43cf4e11b9993fc7423ed0afdc01a92b313391ffa5e2878
#ifndef REQUESTBUILDER_H #define REQUESTBUILDER_H #include <QObject> #include <QString> #include <QBuffer> #include <QDataStream> #include <QTcpSocket> #include <QQueue> #include <QMutex> #include <QMutexLocker> #include <QWaitCondition> #include <QMessageBox> #include <common.h> #include <clientsideproxy.h> class C...
C++
CL
d647bf9962c196974935a93b41bd626f84417e25fc0fd5a732f79387c9ac1f00
#include "PointOperation.h" Mat MyPO::quantization(const Mat &img, int bpx) //bit(s) per pixel { int range = pow(2, 8 - bpx); vector<Mat> channels; channels.clear(); split(img, channels); Mat res = Mat(img.size(), CV_8U); for (int c = 0, num_channel = channels.size(); c < num_channel;...
C++
CL
d2f4007f2b2c9206fb1a7d2a9e830e26e2ecbfd9ce939d1d68ec0e0679b15dec
/* * File: DirectBlockFile.cpp * Author: timboldt * * Created on February 17, 2013, 6:33 PM */ #include <errno.h> #include <exception> #include <fcntl.h> #include <sstream> #include <stdexcept> #include "DirectBlockFile.h" DirectBlockFile::DirectBlockFile() { } DirectBlockFile::~DirectBlockFile() { } void...
C++
CL
77e5c1cf1ba60d65629e92b50df94049940e7f1fae2e8953e8bddc74e12f9a6e
#include <iostream> #include <map> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Delaunay_triangulation_2.h> #include <CGAL/Triangulation_face_base_with_info_2.h> typedef CGAL::Exact_predicates_inexact_constructions_kernel K; typedef CGAL::Triangulation_vertex_base_2<K> Vb; typedef CG...
C++
CL
5204325c2d597dbf7fe6cde99fbcb79960fcdddbdc825ac21fccc50e2ca89d97
/* vim:set ts=3 sw=3 sts=3 et: */ /** * Copyright © 2008-2013 Last.fm Limited * * This file is part of libmoost. * * 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, ...
C++
CL
392e3b9d5f6b75e21fc2deb26ab8846fca110c955406b6969496000c2dd28dc8
// // Created by alex on 30/03/15. // #ifndef _VH2015_VSIMPLELIST_H_ #define _VH2015_VSIMPLELIST_H_ #include <stddef.h> #include <iostream> #include "../libs/vheaplib.h" #include "vNumber.h" template <class T> class vSimpleNode{ vRef<vSimpleNode<T>> next; vRef<T> data; public: vSimpleNode(); vSimple...
C++
CL
6383cfbd0e241aa719b6696544b2dbb591857fac8e5b71ed53c3f1fe523b31b3
/** * @file procbase_interface.h * @brief Declarations for IProcBase class * @author Nicu Tofan <nicu.tofan@gmail.com> * @copyright Copyright 2016 piles contributors. All rights reserved. * This file is released under the * [MIT License](http://opensource.org/licenses/mit-license.html) */ #ifndef GUARD_PROCSCHE...
C++
CL
7b2f79af20a2945c32a513ebeb814b26c27c105f497b620b5592014bf4e8b692
// Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #include "Font.h" #include "FontRendering.h" #include "../RenderCore/RenderUtils.h" #include "../Assets/Assets.h" #include "../Utility/MemoryU...
C++
CL
0965fd9cd09ed98979be3e519146d10a8245208f6119b3f810882a7211e27467
#pragma once #include "Screengrab.h" #include <Windows.h> #include "Log.h" #include <atlbase.h> #include "Cleanup.h" namespace { bool g_WIC2 = false; bool _IsWIC2() { return g_WIC2; } IWICImagingFactory *_GetWIC() { static INIT_ONCE s_initOnce = INIT_ONCE_STATIC_INIT; IWICImagingFactory *factory = nullpt...
C++
CL
88706043c52e308d8f1b4bc92adeae0e22dd0fc7bd011a16756e83300a9dd023
#include <iostream> #include <QPointF> // This file exists to define print overrides for catch error types // Qt does not natively support writing outputs to ostream. // This file should only be used for debug test strings, do not use // this in production code. inline std::ostream &operator<<(std::ostream &os, co...
C++
CL
6f851288ccddbd2d32eafc49b0245fc8555324d6b1bce24ec2c37950446b6ca0
/* * File: encoder_layer.h * Project: transformer * Author: koth (Koth Chen) * ----- * Last Modified: 2019-09-16 6:14:37 * Modified By: koth (nobody@verycool.com) * ----- * Copyright 2020 - 2019 */ #pragma once #include <cstddef> #include <vector> #include "torch/nn/cloneable.h" #include "torch/nn/module.h"...
C++
CL
84e94fa77af35719c50f61b267d0dcc7c3e0f36f65f9a927b8f4cc9da1c419f7
#pragma once #ifndef cpp_util_h_ #define cpp_util_h_ #ifndef __cplusplus #error "Do NOT include this file in C source!" #else #ifdef EXTERN_C } #endif #include <cstddef> #include <utility> #include <type_traits> #include <vector> #include <memory> #include <string> // use this to ensure a type is C-safe #define ASS...
C++
CL
08643e24b9d981b9189f479dca36060fb6ecca9604e61d0eae36ea080f1ddb40
#include <OneWire.h> #include <DallasTemperature.h> #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <InfluxDb.h> // -------- Settings -------- #define WIFI_SSID "" #define WIFI_PASS "" #define INFLUXDB_HOST "" #define INFLUXDB_PORT "8086" #define INFLUXDB_DB "" #define INFLUXDB_USER "" ...
C++
CL
bad0823b12ce6b82363649704ba78ac9f76b4d6bf1d26efeee54230db1bcf30a
#pragma once #include "../../Plugins/IPlugins.h" #include "IPluginsWindow.h" #include <trview.common/Windows/IShell.h> namespace trview { class PluginsWindow final : public IPluginsWindow { public: struct Names { static inline const std::string plugins_list = "Plugins"; ...
C++
CL
99fb14bd36948da43964b9e86ddc6ce744228479a1012c0fbfa10b9c83a2e3b9
/////////////////////////////////////////////////////////////////////////////// // Tokenizer.cpp // ============= // General purpose string tokenizer (C++ string version) // // The default delimiters are space(" "), tab(\t, \v), newline(\n), // carriage return(\r), and form feed(\f). // If you want to use different del...
C++
CL
93ba8c205296108944deb5c2fb3f48b7b3d6db005794ab379f7d6a4a0e0688ac
#include "messagesignalreceivedblock.h" #include "../../executionhandler.h" #include "../../statementblock.h" #include "../../programmodel.h" #include "../../intmessage.h" #include <QDebug> MessageSignalReceivedBlock::~MessageSignalReceivedBlock() { if(_message != NULL) delete _message; delete _sign...
C++
CL
724338f1ae5bd7e69513daffc07c6fe473a29407360fd5a0ef50b711b409a327
 #include "ProxyTester.h" // при отладки переопределяем функцию чтения/записи usb-порта int ProxyTester::UpdateTesterState(void) { #ifndef DEBUG RT.UpdateTesterState(); #else // прибор не подключен, никакие данные в порт не посылаем Sleep(3); // имитируем задержку реакции на команду return 0; // во...
C++
CL
0df63fc478d53af7d752e989ac1249f8acd0180782631d59cf0db898f2c2e8e6
#include <stdlib.h> #include "linalg.h" #include "fractals.h" namespace Aloschil { using namespace std; //---------------------------------------------------------------------------- // This is a public API. Refer to fractals.h for details. //-----------------------------------------------------------------...
C++
CL
722b5f9113adb726fc2b4ba26371baa1066f6fa1e3a165d6029ddcd9d3f47fb7
/* * Name: SalesMgr.h * * Description: The SalesMgr object is responsible for collecting and reporting * sales information for the Ecommerce simulation. * */ #ifndef SALESMGR_H #define SALESMGR_H #include <iostream> #include <string> #include <sstream> #include "ProductT.h" #include "Queue.h" #in...
C++
CL
1f376c1fd9d771a1d540983cd88da3dd91ffd73e95ec1f2dcb1b45e83097f111
#include "DockerClient.h" #include "DockerExceptions.h" #include "HTTPCommon.h" #include <fmt/format.h> #include <chrono> #include <future> #include <thread> namespace Sphinx { namespace Docker { namespace v2 { using json = nlohmann::json; namespace fs = boost::filesystem; template <typename T> ResultJSON Docker...
C++
CL
c8b71b0483cc2fe742c49d9d3fd43eb44ca53331cd55c9273d0306f428bfd642
#include <iostream> #include "ProjectUility.hpp" #include "DimensionUtility.hpp" #include "Geometry.hpp" //#include "Domain.hpp" //#include "Solver.hpp" #include "GeometryDataProcessor.hpp" #include "Dof.hpp" #include "GeometryLoader.hpp" #include "DofUnit.hpp" //void DemoDataArray(); //void DemoDataTable(); int m...
C++
CL
61944238848803b38c625aaa729cc694fce4e5727aa03b66962f1da704922b25
#include <Arduino.h> #define DEBUG_MSG //#define USED_BUZZER // Interpreteur #define START_STOP "s" #define PAUSE_NOPAUSE "p" #define FLASH_ONOFF "f" #define CONFIG_MODE "c={" // c={VAR1=var1value|VAR2=var2value...} #define BAUD_RATE (57600) #define BAUD_RATE_VAR "BAUD_RATE...
C++
CL
1ad35b4f8e4603536350b56d74bce4ff3a751b2cdc8ac32b90f319ec331e8547
// OculusFPS.cpp : Defines the entry point for the application. // #include "framework.h" #include "OculusFPS.h" #include <shellapi.h> #include <stdlib.h> #include <string> #include <time.h> #include "OculusPerfInfo.h" #define MAX_LOADSTRING 100 const int TITLE_HEIGHT = 12; const int DATA_HEIGHT = 72; const int CEL...
C++
CL
caa8167a7f61abf58cd16fa194c1e223f0a6a5c51eeaaff6167cbb3d8426c9fe
#include "xbus_wrapper.h" /* shared lib build up */ #ifdef __cplusplus extern "C" { /* char str to long int */ long int dpi_hexstr_2_longint(char* st) { std::stringstream ss; unsigned long x; ss << std::hex << st; ss >> x; return x; } /* longint 2 str */ char* dpi_longint_2_hexstr(long ...
C++
CL
576b799c3dd970dbb8dd077189a19259ccc4bde2fd2e34e972b3e5dc77be8ec8
#pragma once /* Contains classes that deal with geometry */ #include <initializer_list> #include <algorithm> // std::min(), std::max() #include <cstdlib> // abs(), rand() #include "vector2.hpp" // 'Vector2d' type used in 'dRect' template<typename T> constexpr int sign(T val) { // standard 'sign()' function (x<0 =...
C++
CL
af5d3cca489f8388cd0c26a11b0850d5fc1df706b3d717544534f181c477dfe7
// // Created by y on 1/3/21. // #ifndef UDACITYCAPSTONE_AES256_AES256_H #define UDACITYCAPSTONE_AES256_AES256_H #include <vector> #include<cstdint> #include "lookup_tables.h" #include "cli.h" #include <memory> #define KEY_SIZE 32 #define BLOCK_SIZE 16 #define NUMBER_OF_ROUNDS 14 #define STATE_SIZE [4][4] #define STAT...
C++
CL
92cd495c0c271d82e791b995ba3ae7b9d734c360587ef877a642ce17f2aa9035
#include "engine.h" #include <glm/gtc/matrix_transform.hpp> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <iostream> #include <random> #include <thread> #include <strstream> #include <iomanip> ButtonEvent makeButtonEventFromGLFWkeypress(int key, int action, int mods) { return { {keyboard...
C++
CL
7ed746594195089aa335280b84532a6d9439f34bf16d6f721aa9e7d1f8517b8a
#ifndef OIL_OILLOOP_H #define OIL_OILLOOP_H #include <OIL/IOilStatement.h> #include <OIL/IOilLoop.h> #include <string> #include <Tokenization/SourceRef.h> class OilStatementBody; class OilLoop : public virtual IOilStatement, public virtual IOilLoop { public: OilLoop ( const SourceRef & Ref, OilStatementBody * S...
C++
CL
f45d7f2f18529e137d89da296e79daf2105183133658e2d349f765040e4b4c7c
//----------------------------------------------------------------------------- // File: HStackedLayout.h //----------------------------------------------------------------------------- // Project: Kactus 2 // Author: Joni-Matti Määttä // Date: 22.4.2011 // // Description: // Horizontal stacked layout. //-----...
C++
CL
70fe5cbec8984ddce9026eac6c6d9f5e6ae7c3cc1e7787f9340341482a77bb42
#include "CEntity.h" #include "CPlayer.h" #include "CCycler_Fix.h" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" abstract_class CE_Temp_NPC : public CE_Cycler_Fix { public: CE_DECLARE_CLASS(CE_Temp_NPC, CE_Cycler_Fix); virtual void Spawn() { Precache(); BaseClass::S...
C++
CL
7b3fbd77d4ad9eeb3ef84d474df6dd542b170eb324b22faada015de847f5df66
#include "auv_guidance/test_node.hpp" int main(int argc, char **argv) { ros::init(argc, argv, "pose_edkf"); auv_guidance::TestNode testNode; ros::spin(); } namespace auv_guidance { TestNode::TestNode() : nh("~") { // Ceres stuff min jerk time solver ///////////////////// ceres::Problem problemMi...
C++
CL
0b8c524d9379305aafc3864762c83d7b5a2fbfc2ab3a0b8f70dc94e1b344dc5e
#ifdef _MSC_VER #include <windows.h> #include <tchar.h> #ifdef UNICODE #define _tcscpy wcscpy #define _tcslen wcslen #define _tcscat wcscat #else #define _tcscpy strcpy #define _tcslen strlen #define _tcscat strcat #endif // 获取系统实际支持的指令集: // 使用FMA/AVX参数依次运行r...
C++
CL
b15044404ed34cfd902c60b4e646fa492e7d475b8dd8e1c0884773c2508f7d29
#define GLM_SWIZZLE #include "glew-2.0.0\include\GL\glew.h" #include "glfw-3.2.1.bin.WIN64\include\GLFW\glfw3.h" #include "glm\glm\gtx\transform.hpp" #include "glm\glm\gtc\matrix_transform.hpp" #include "glm\glm\gtc\quaternion.hpp" #include "glm\glm\gtx\quaternion.hpp" #include <iostream> #include "glm\glm\glm.hpp" #i...
C++
CL
9515c1f79d3ee1b7d9f7b8002404b96a6fe7357a927f3a36122095cbd261d166
// CreateRemoteThreadInsertDlg.cpp : 实现文件 // #include "stdafx.h" #include "CreateRemoteThreadInsert.h" #include "CreateRemoteThreadInsertDlg.h" #include "afxdialogex.h" #include "ThreadInsert.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CCreateRemoteThreadInsertDlg 对话框 CCreateRemoteThreadInsertDlg::CCreateR...
C++
CL
bdf94c6871947d31501bbe8b83d2d0fbdea0f6b200b93605d63114c1744d6dc1
// ______ _____ _ ________ // / ____/___ / ___/(_)___ ___ / _/ __ | // / / / __ \\__ \/ / __ `__ \ / // / / / // / /___/ /_/ /__/ / / / / / / // // /_/ / // \____/\____/____/_/_/ /_/ /_/___/\____/ // Kratos CoSimulationApplication // // License: BSD License, see license.txt // // ...
C++
CL
d9de7e950caef7e8d6663dda77865302b2583e68dce4045f2ef24ca5bb54294e
/* * FeedStatLogAdapter.h * * Created on: Nov 1, 2011 * Author: qun.liu */ #ifndef FEEDSTATLOGADAPTER_H_ #define FEEDSTATLOGADAPTER_H_ #include "Singleton.h" #include "AdapterI.h" #include "FeedStatLog.h" namespace xce { namespace feed { using namespace MyUtil; class FeedStatLogAdapter: public MyUtil::A...
C++
CL
87ec441ea959a6f14db85d6ede76b0924e2ccbb368ffdb41f08f16a6b8b2f2b5
#include "stdafx.h" #include <comutil.h> #include "UploadSelect.h" #include "SelectFolderDialog.h" //20080612 해시값 추출 클래스 추가, jyh #include "MD5_Client.h" void UploadSelect::ShowDlgFile() { DWORD dFlag = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | /*OFN_ALLOWMULTISELECT | */OFN_FILEMUSTEXIST | OFN_NONETWORKBUTTON; CFile...
C++
CL
4ac9060478ad143046db74db5e0269d2476362afdd8fef55dad76e0f5527f28f
#ifndef PWM_MOTOR_CONTROL_NODE_H #define PWM_MOTOR_CONTROL_NODE_H #include <ros/ros.h> #include <std_msgs/Int8.h> #include <motor_control.h> class PwmMotorControlNode { public: PwmMotorControlNode() = delete; PwmMotorControlNode(ros::NodeHandle* node_handle, std::unique_ptr<PwmMotorC...
C++
CL
79ae9f7f5fe71c40bceead4ce77ae59b9275bbedd905fc903f9c22b792371e2e
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 7 \\/ M anipulation | \*-------...
C++
CL
2a4a68bcb1f8c5bda84ff1dc465729d223aa058c949152b2ee41d09d4befd62e
/* * Gpio.h * * Created on: 28-okt.-2016 * Author: lieven2 */ #ifndef GPIO_H_ #define GPIO_H_ #include <stdint.h> #define PA(x) (0x10000+(x)) #define PB(x) (0x20000+(x)) #define PC(x) (0x30000+(x)) #define PORT(x) ((x & 0x30000)>>16) #define PIN(x) (x & 0xFFFF) class Gpio { public: typedef void (*Inter...
C++
CL
64b9b30d9b5146963a0fa62ece3c389892223b621ce4bdd8f64a508c143d2ab0
#ifndef GARBAGE_COLLECTION_H #define GARBAGE_COLLECTION_H 10000 #include <sys/types.h> #include "ssd.hh" #include "ftl.hh" #include "common.hh" STATE find_victim_block( ssd_info *ssd,local * location); STATE greedy_algorithm(ssd_info * ssd, local * location); STATE fifo_algorithm(ssd_info * ssd, local * locati...
C++
CL
7e7a00aa6e1e5bb5c2f8ec62dd9dd24421acb2b2aec00017f87ad4858b982ac7
/* * Copyright 1999-2004 The Apache Software Foundation. * * 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 app...
C++
CL
28f9f878364c4dd68bd6af6a589eafc43432cc882dc02edc12ac4d9529b67808
// This file is part of the Acts project. // // Copyright (C) 2017 CERN for the benefit of the Acts project // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #pragm...
C++
CL
22a7049407c760a7c2c246f7c647db8d54107db10189a285bf1dec67e7b3f35d
// CtlBd_Function.cpp: implementation of the CCtlBd_Function class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "handler.h" #include "CtlBd_Function.h" #include "Cmmsdk.h" #include "CmmsdkDef.h" #include "CtlBd_Variable.h" #include "ComizoaPublic.h" #include "...
C++
CL
eef0542cbbca460a9faf677960a97bfd182430e251a66815a294d7e313fd0c62
#include <fstream> #include <iostream> #include <vector> #include <algorithm> using namespace std; #include <jtflib/mesh/mesh.h> #include "../common/vtk.h" #include "../common/util.h" #include "../common/IO.h" #include <jtflib/mesh/mesh.h> #include "../hexmesh/io.h" using namespace zjucad::matrix; //using namespace j...
C++
CL
be754eda0a8771345f2e5b589b8e154f0df6c5c6e6ef2c6f0486253fe2ab917d
/*****************************************************/ // Copyright © 2007-2012 Navico // Confidential and proprietary. All rights reserved. /*****************************************************/ #ifndef GLINDEXBUFFER_H #define GLINDEXBUFFER_H #pragma warning(push, 1) #include <QtGlobal> #pragma warning(pop) #...
C++
CL
ce0b623aa1943a0760a464c3f11f3baa59984f93b51ee12fbee5d6c613e1c07f
#include "tes3/tes3recordfactory.h" #include "tes3/record/tes3recordgeneric.h" #include "tes3/record/tes3recordignore.h" #include "tes3/subrecord/tes3subrecordhedr.h" #include "tes3/subrecord/tes3subrecordsinglestring.h" #include "tes3/subrecord/tes3subrecordsinglefloat.h" #include "tes3/subrecord/tes3subrecordsingleul...
C++
CL
89d650953c58f7d0e2e5c9811cacc2a5e92f9b7e83eff4f16d14349564d74723
#ifndef LIBRARY_H #define LIBRARY_H #include <QDialog> #include "equipment.h" /** * Класс описывающий библиотеку * Возможность добавления/удаления оборудования в/из библиотеки */ namespace Ui { class Library; } class Library : public QDialog { Q_OBJECT public: /* * Добавление в виджеты WidgetsLibra...
C++
CL
af13392e522c840051f50768aace708011cc0932e4c4a74aeccb9fa4199f0357
#ifndef _chi_graph_h #define _chi_graph_h #include "../ChiMesh/chi_mesh.h" #include <boost/graph/adjacency_list.hpp> #include <boost/graph/topological_sort.hpp> #include <boost/geometry.hpp> #include <boost/geometry/index/indexable.hpp> /**Cell pointer struct.*/ struct GraphCellInfo { chi_mesh::Cell* cell_ptr; ...
C++
CL
ebf94ea5ada69f5e43fc47d958e6cc61b79c8d0d3415fb126d71bde45dd91061
// // program41.cpp // chapter02 // // Created by chenyijun on 17/2/4. // Copyright (c) 2017年 chenyijun. All rights reserved. // #include <iostream> #include <string> using namespace std; class Sales_data{ //友元函数 friend std::istream& operator >> (std::istream&, Sales_data&); //友元函数 friend st...
C++
CL
9fb55e494d5a5d66db10fb3de32168e8b1c2f6dcbad09c31bfd4864f6cec0dfc
#pragma once #ifndef APP_SRC_EXECUTE_HPP_ #define APP_SRC_EXECUTE_HPP_ #include "message.hpp" #include "write.hpp" #include "read.hpp" #include "spdlog/spdlog.h" #include "fmt/core.h" #include <boost/asio/serial_port.hpp> #include <boost/system/error_code.hpp> #include <boost/asio/streambuf.hpp> #include <string> ...
C++
CL
9aef376551a8e00f20504feed8e6c246d8df96cd9cc472dee6aa488d59c4dd14
//======================================================================================== // // $File: //depot/devtech/16.0.x/plugin/source/private/toolkit/interfaces/IDiagnosticLogger.h $ // // Owner: gxiao // // $Author: pmbuilder $ // // $DateTime: 2020/11/06 13:08:29 $ // // $Revision: #2 $ // //...
C++
CL
813db424d524c0203529d197184ca895ce17d08a4105a6996654a92f50ee9954
#include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> #include <stdlib.h> #include <math.h> #include "ringue.h" #include "lutador.h" #include "iniciacao.h" #include "menu.h" #include "util.h" #define INC_KEY 1 #define INC_KEYIDLE 0.2 //Key status int keyStatus[256]; Menu menu; Iniciacao iniciacao; Util util;...
C++
CL
cadd9d5054c46b502868e865545b4404cbb32c1d484b052f986ee6a7280816bd
#pragma once #include<GL/glew.h> #include <glfw3.h> #include <GL/glm/glm.hpp> #include <GL/glm/gtc/matrix_transform.hpp> #include <iostream> #include <assert.h> #include <vendor/imgui/ImguiLib.h> #include "../../Dependencies/Action/Action.h" #define endl '\n' #define pi 3.14159265359 #define null 0 typedef unsigned int...
C++
CL
a0b1ee7030401cbe6d78d34dfbf16b16a29021d7ded3729edf2d3a659ff7a6eb
#include "nan.h" #include "v8-helpers.hh" #include "EGLWindowObject.hh" namespace node_angle { static const auto constAttribute = static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete); #define EXPORT_GL_CONSTANT(target, name) \ do { \ Nan::HandleScope ...
C++
CL
8b7b3eeed269af07d516cf0bedf5a2e940c90a98c29f5c0b8f55ad643533601b
// Copyright 2017-2023 Closed Sum Games, LLC. All Rights Reserved. #pragma once #include "Kismet/KismetSystemLibrary.h" class UWorld; class AActor; namespace NCsDebug { namespace NDraw { struct CSCORE_API FLibrary { static const float DEBUG_IMPACTPOINT_SIZE; /** * Draw a debug line */ static vo...
C++
CL
630fc50351a6a9cca54014721804a30e18bd7020b0704b6c8d7dbb0219ed592c
#pragma once #include "InitialDFA.h" #include "RegularDFA.h" #include "GroupState.h" class GroupDFA { public: GroupDFA(); ~GroupDFA(); void createFromInitialDFA(const InitialDFA& initialDfa, RegularDFA &intvertedRegularDfa); bool returnNextState( const std::set<std::size_t> &action, st...
C++
CL
12ae91c1444e86c3c53191f30452ef1c65e266690df5acf84e16bfdcd1390323
/****************************************************************************** * jlp_wxgdev_popup_create.cpp * JLP_wxGDev_Popup class * Purpose: Popup menu for displaying a curve with wxwidgets * * Author: JLP * Version: 12/03/2020 **************************************************************************...
C++
CL
33a15197e1921cf8da6e407b703432c1f0e85e173ab5eeea47e392282a7285d8
// Nonius - C++ benchmarking tool // // Written in 2014 by Martinho Fernandes <martinho.fernandes@gmail.com> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. This software is // distributed without a...
C++
CL
e8da9654629821ada549983860bf1dfebdc7e7a1052063cace2f06f32714f666
// (c) MJavad // Fix for rtl languages (for now supports Persian and Arabic with LTR base) #include <base/system.h> #include "rtl_support.h" void CRTLFix::FixString(char *pDst, const char *pSrc, int DstSize, bool FullRTL, int *pCursor, int *pFixedLen) { int Cursor = -1; int Size = 0; int Char; char Buf[4]; CChar ...
C++
CL
3665eb5fc6e8d13088dbe9d4ed43e550ef90dae1c91164ab4e44f949b37fc64a
// Copyright(c) 2017 POLYGONTEK // // 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 i...
C++
CL
1035ca829e9fc3bb6f6f5108dd3ee9727b6920c0bd0b879198124c3b84f555e2
#ifndef __GPIO_H__ #define __GPIO_H__ #include <chrono> #include <thread> #include <string> #include <fstream> class GPIO { public: enum Direction { Input = 0, Output = 1 }; enum Value { Low = 0, High = 1 }; GPIO(std::string const& _key, Direction _d); ...
C++
CL
3e94fdc5cf7179daa83f091a7a8bfa581058e9ce73974fefbacc8d74b9e6e084
#include <vbl/io/vbl_io_smart_ptr.h> #include <vsol/vsol_digital_curve_2d_sptr.h> #include <vsol/vsol_digital_curve_2d.h> #include "vsl/vsl_vector_io.hxx" VSL_VECTOR_IO_INSTANTIATE(vsol_digital_curve_2d_sptr);
C++
CL
e600b460dbf3fdf3d8d71f9bf743e8cb5919488dc92413bf2aa87d1c75b42e1a
//============================================================================== // // @@ // // Copyright 2017 Qualcomm Technologies, Inc. All rights reserved. // Confidential & Proprietary - Qualcomm Technologies, Inc. ("QTI") // // The party receiving this software directly from QTI (the "Recipient") // may use ...
C++
CL
cfe36c8dbaca2689ec103af7a6eb5b1d7c2850153460bc11c829eedfe2842ca0
#include "SparseBayesRRG.hpp" #include "common.h" #include "eigenbayesrkernel.h" #include "raggedbayesrkernel.h" #include "sparsemarker.h" SparseBayesRRG::SparseBayesRRG(const Data *data, const Options *opt) : BayesRBase(data, opt) { } SparseBayesRRG::~SparseBayesRRG() { } std::unique_ptr<Kernel> SparseBayesRR...
C++
CL
61321dac0339f868da138171f882f3bf606fe359d90e89c67f32757945cdf98c
// CPSC 587 Assignment 1 // Albert Chu 10059388 // Adapted and using code originally written by Andrew Owens #include <sstream> #include<iostream> #include<cmath> #include<GL/glew.h> // include BEFORE glut #include<GL/freeglut.h> #include <glm/gtx/string_cast.hpp> #include<glm/glm.hpp> #include <glm/gtc/matrix_trans...
C++
CL
9cefd75fb4d006176363602621c7e4597269fc93007a23f588e766df66eef253
#include "roboteam_tactics/tactics/rtt_bob/old/WeirdTactic.h" #include "roboteam_tactics/treegen/LeafRegister.h" namespace rtt { RTT_REGISTER_TACTIC_F(rtt_bob/old, WeirdTactic); WeirdTactic::WeirdTactic(std::string name, bt::Blackboard::Ptr blackboard) : Tactic(name, blackboard) {} void WeirdTactic...
C++
CL
c3f79613d351d76966749660e5361d5455484e4af30a3f622b1bb60bfa14236f
# pragma once # include "String.hpp" # include <DxLib.h> /// <summary>デバッグ情報</summary> class Debug { public: Debug(); public: /// <summary>画面にデバッグ表示する</summary> template <typename ...Args> static void FormatPrint(const String& format, Args&& ...args) { printfDx(format.ToWide().c_str(), std::forward<Args>(a...
C++
CL
0e9c6751325bed6262d4faca393febc28bd2e20ff7a1d65c18e058128412727a
class UnionFind { public: void union_(int u, int v) { if (!id.count(u)) id[u] = u; if (!id.count(v)) id[v] = v; const int i = find(u); const int j = find(v); if (i != j) id[i] = j; } unordered_map<int, vector<int>> getGroupIdToValues() { unordered_map<int, vector<int>> ...
C++
CL
4d40fcffcbca51b30dcda6d9a0d53210f89fbbd52acdd62d4ee9bfcecbcde1e0
#include <Arduino.h> // We voegen de Neopixel library toe waarmee we de ledring kunnen aansturen #include <Adafruit_NeoPixel.h> // We voegen de Wifi en de NTPclient libraries toe waarmee we met wifi kunnen verbinden en de tijd kunnen ophalen #include <ESP8266WiFi.h> #include <NTPClient.h> #include <WiFiUdp.h> // We s...
C++
CL
5db9e36cca9469f9196af56e2df35c93cd39726d1abcc170f9f0c250795bf869
//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #pragma once #include "BsCorePrerequisites.h" #include "Resources/BsR...
C++
CL
a82d0c522d0420cb7fda714c51851f2655960c99971c008fa8337a2a9cc40004
// Copyright (c) 2020 Hartmut Kaiser // // SPDX-License-Identifier: BSL-1.0 // 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) template <typename T> struct test { template <typename T_> test(T_&&) { ...
C++
CL
07a86550ed4ee79bea43d4f005694460f1613ca74111a7983187b4e1026b0a23
/************************************************************************* > File Name: knn_sign_classifier.cpp > Author: Guo Hengkai > Description: KNN sign classifier class implemenation using eigenface or fisherface features > Created Time: Sat 23 May 2015 10:51:47 PM CST ***************************...
C++
CL
ba95647b6058049928357d17f65eb43fe47f18afd846e027a877df4f2bcb40f8
#ifndef RGBABUFFER_H #define RGBABUFFER_H #include "RGBAValue.h" // A rectangular buffer containing RGBAValues (float) for rendering the simulation as a texture class RGBABuffer { public: // the raw data RGBAValue<float> *block; // dimensions of the buffer unsigned int width, height; // con...
C++
CL
31e54934beccfaafd3dff5babf574ce689b939ad91c12c38003a755aaeaf09e9
#if defined( PLAT_PC ) || defined( PLAT_WINDOWS_PHONE ) || defined( PLAT_WINDOWS_8 ) || defined( PLAT_ANDROID ) ////////////////////////////////////////////////////// // INCLUDES ////////////////////////////////////////////////////// #include "common/engine/audio/format/ogginterface.hpp" #include "common/engine/datab...
C++
CL
392033c6136a48227032914464b2b5e2123d881ad534337d37250f1934dd02e0
/**************************************************************************/ /* Responsibility: */ /* - encapsulates the speech-signal-processing algorithms like */ /* - silence detection */ /* - speaker chage detection */ /* - ... ...
C++
CL
0be61e7591d0bc91b7aacc1c14439c1dd6c380b9421fe3a8dacf586eea66ae50
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #ifndef LIBCARLA_INCLUDED_DISABLE_UE4_MACROS_HEADER # define LIBCARLA_INCLUDED_DISABLE_UE4_MAC...
C++
CL
2b0e517ed20ad61ffabf10f44dbf0ddb57f9c24fc45c755d6c6122d7368d3961
#pragma once #include <memory> // for unique_ptr #include <mutex> // for scoped_lock #include <vector> // for vector #include "AudioTransform.h" // for AudioTransform #include "StreamInfo.h" // for StreamInfo #include "TransformConfig.h" // for TransformConfig namespace bell { class Gain : public bell::...
C++
CL
309352d3f37da1a900231649437d3392371e96312e0a5f5ed0b001591ab74f42
#ifndef SHOWERRECOALGMODULAR_CXX #define SHOWERRECOALGMODULAR_CXX #include "ShowerRecoAlgModular.h" #include "LArUtil/Geometry.h" #include <iomanip> namespace showerreco { // initialize the various algorithms void ShowerRecoAlgModular::Initialize() { for (auto & module : _modules) { module->initialize(); _...
C++
CL
bd08d43234560d825db7be3d9526b87972a7ee0348932373cd1107ec7c39df3c
/* * Copyright (c) 2010, Georgia Tech Research Corporation * * Humanoid Robotics Lab Georgia Institute of Technology * Director: Mike Stilman http://www.golems.org * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted pr...
C++
CL
d03069673087ef3746d1480d2a28a582ce83ba863b9ca7ee0b7f92ccf159d0d9
/* Copyright (c) Stanford University, The Regents of the University of * California, and others. * * All Rights Reserved. * * See Copyright-SimVascular.txt for additional details. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated doc...
C++
CL
197d91e33dce46e2556a43cd5f572722f320d333a996252338c876d74f95cc99
// // compile with: // g++ threadex2.cpp -lpthread -o thread2 // run with: // .\thread2 // #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <time.h> #include <unistd.h> void *functionC(void *); // initialize mutex pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER; int ...
C++
CL
45c928a344f92e98146e9c6e05b8c225a8a94e23352ed1dde149695d821a66d0
/************************************************************************************************/ /** * @file KsHardwareBufferManagerDX11.cpp * @brief バッファマネージャ * @author Tsukasa Kato * @date ----/--/-- * @since ----/--/-- * @version 1.0.0 */ /*************************************************************...
C++
CL
fc266c6c53e38dcada487ddbcdff39d1990b690298191bba8e759a19ba754f8f
#pragma once #include <iostream> using namespace std; /* free list NODE */ class Node { public: Node* next; size_t addr; Node(size_t addr); void operator delete(void* ptr); void* operator new(size_t size); }; /* free list */ class LinkedList { public: /* Contractor Distractor. */...
C++
CL
1dfe6cd7bdae3fc8824ad5c58b822de4627a27d1ca85435cfbcc5065df1efc0a
/* The MIT License (MIT) Copyright (c) 2016 Vasil Kalchev 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,...
C++
CL
f8d2ce6ecb97818d5665d96c3567f817038c0174df3d11d633c54de811ff708e
#pragma once // Name: Torchlight3, Version: 4.26.1 /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Classes //-----------------------------------------------------...
C++
CL
ba8a37f5f30b7cb28b5f4b892b733b3c385d879f1b2d72e607bf1c6cf615cb69
// Copyright (c) 2015, 2016 Volodymyr Syvochka #include "JsonParser.h" #include "Core/Json/Rjson.h" #include "Core/Memory/TempAllocator.h" #include "Core/Strings/StringUtils.h" #include "Core/FileSystem/File.h" namespace Rio { JsonParser::JsonParser(const char* s) : jsonDocument(s) { RIO_ASSERT_NOT_NULL(s); }...
C++
CL
0ddd957c2d50df5695c3e7c35b643e9c9f45f4b9d474868193d11141eea1fc01
// Authors: // James Walker jwwalker at mtu dot edu // Scott A. Kuhl kuhl at mtu dot edu #include <math.h> #include <string.h> #include <stdlib.h> #include <arpa/inet.h> #include <netinet/in.h> #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <time.h> #include <math.h> ...
C++
CL
187bbcd3149d54c556e27b7ab7f48d01b9da56d292bd62804624d25daf1cf0f3
#pragma once #include "Enemy.h" #include "../SGD Wrappers/SGD_Geometry.h" #include "../SGD Wrappers/SGD_Listener.h" #include "../SGD Wrappers/SGD_Event.h" #include "TimeStamp.h" #include <vector> class Player; class GluttonyGreed : public Enemy, SGD::Listener { private: AIState m_myState = AI_PATROL; flo...
C++
CL
597a4920ea8caf84dcaca09cf193da52d140f8d727be751145985b56b355dd99
#include <fstream> // ROOT #include "TMath.h" // Gaudi #include "GaudiKernel/PhysicalConstants.h" #include "GaudiUtils/HistoLabels.h" // Tb/TbKernel #include "TbKernel/TbConstants.h" #include "TbKernel/TbModule.h" // Local #include "TbEffPur.h" using namespace Gaudi::Utils::Histos; DECLARE_ALGORITHM_FACTORY(TbEff...
C++
CL
e6d4e91924022e997fa2c27a413d2f95beccf132afb75a6d8cd4e0042e2dfb9b
#ifndef _LOBBY_H_ #define _LOBBY_H_ #include <map> #include <memory> #include "sys/mman.h" #include "../../common/simple_server.h" #include "data_fifo.h" #include "lobby_logic.h" namespace ysd_simple_server { ///////////////////////////////////////////////////////// // Lobby server get data from gateway // serv...
C++
CL
1c98d7cbf0b6684cb9ff230faa9e5016056993d8892759857da9df6911266051
//-------------------------------------------------------------------------------------- // File: Blobs.cpp // // A pixel shader effect to mimic metaball physics in image space. // // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------...
C++
CL
6dd1df9cc43a630b3f15a532fc41e85ab502d1595901f27b1bdb12f8e9538940
/** * \file * \version $Id: NpcTrade.h $ * \author * \date * \brief Npc买卖对话框 * * */ #ifndef _NpcTrade_h_ #define _NpcTrade_h_ #include "zType.h" #include "zRWLock.h" #include "zDatabase.h" /** * \brief NPC买卖 * */ class NpcTrade { public: enum { NPC_BUY_OBJECT ...
C++
CL
7aa06aaf83ba1a4342ac44dcf32de11aaf1fe2ec06e929e2fd97a60a17d1780f
/****************************************************************************** @File XESeqAnimController.h @Version 1.0 @Created 2017,12, 22 @HISTORY: ******************************************************************************/ #ifndef XE_SEQ_ANIM_CONTROLLER_H #define XE_SEQ_ANIM_CONTROLLER_...
C++
CL
e744c068e0cc3958c84bb327cb31184af9fc48b5784504c13e0850ae44e167bd
/*********************** File Name : Texture.h Description : define the Texture class which contain functions to create a texture and store it within an instance of this class Author : Sakyawira Nanda Ruslim Mail : Sakyawira@gmail.com ********************/ #pragma once #include <glew.h> #i...
C++
CL
151023bddf56e2432b5481c46528184f49a3152e30797601f271c6d7c65d4f42
// Somewhat general implementation of Monte Carlo Tree Search. Only for games that the rewards are all provided at the termination of the game (could easily be adapted though). // Note: final rewards should have |r| <= 1. Need to provide a number of functions to define the game logic. // What needs to be provided: // ...
C++
CL
6d192d92715e892aa7ff73687f502a125c6e3428bfafb8c2c21d6479cbc0aad4