text
stringlengths
65
6.05M
lang
stringclasses
8 values
type
stringclasses
2 values
id
stringlengths
64
64
// code formatter id shift alt f - don't use it unless it can be modded to meet the standards used in my code // note the todo items in this file and make the changes indicated /* Note Note Note Note Note Note Note */ // Name: Merged-Box-Azimuth_Encoder // Created: 5-10-21 // Author: Paul Kirk // if...
C++
CL
fb0a0cabda99ad1ff16713cc7a7eb23c4f5888ac7f823cac8f06123704ae79d0
#include "sol.hpp" #include "../common.hpp" #include <algorithm> #include <bitset> #include <memory> #include <string.h> #include <stdio.h> static constexpr size_t MASK_LEN = 36; struct Write { char mask[MASK_LEN]; uint64_t dst; uint64_t val; }; struct MemoryWrite { uint64_t addr; uint64_t val; }; template <b...
C++
CL
bc96497e0a71174ffee8a7e75b5db601acadce4017d7b0f55206c14b49365b7f
//===- X86InplaceValueFusion.h --------------------------------------------===// // // The ONNC Project // // See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef TARGET_X86_X86_INPLACE_VALUE_FUSIBLE_H_H #define TARGET_X86_X...
C++
CL
b85f5d445113bfe036ef4bc0d06d3b6f3d7751bd62bbc4b311ee2de63c9da6aa
#pragma once #pragma comment (lib, "Ws2_32.lib") #pragma comment (lib, "Mswsock.lib") #pragma comment (lib, "AdvApi32.lib") #ifndef __WINDOWSSOCKET_HPP__ #define __WINDOWSSOCKET_HPP__ #include <iostream> #include <winsock2.h> #include <ws2tcpip.h> #include <Windows.h> #include <string> #include <cstdlib> #i...
C++
CL
be4571ba7b7cd095a1410b5ac16d4b8f3768570440c35131fec88f8dc2ef5162
// == BALESTRA ENGINE - Codecraft Productions // ===================================================== // Copyright @2014 - Created by Henrique.F // == REFERENCES // ===================================================== #ifndef _INC_BENVIRONMENT_SOUND #define _INC_BENVIRONMENT_SOUND #include "BalestraPrecompiledHea...
C++
CL
0e2dc0520bcb934f79c620607c94f1987464967ab9be1cc508d630862f0c50f2
#pragma once #ifndef DISABLE_LOCALSOLVER #include "ListModel.h" class ListBetaModel : public ListModel { class SerialSGSBetaFunction : public ListSchedulingNativeFunction { public: explicit SerialSGSBetaFunction(ProjectWithOvertime &_p) : ListSchedulingNativeFunction(_p) {} int varCount() override; SGSResult...
C++
CL
834c18c638058d204ee924370e5fcb848aeb569078ce7c2f9aa3983d110fa7d9
#include "ltr35.h" #include "lqmeas/lqtdefs.h" #include "lqmeas/devs/ltr/crates/LtrCrate.h" #include "lqmeas/ifaces/out/DacSignals/DacSignalSin.h" #include <math.h> #ifndef M_PI #define M_PI 3.1415926535897932384626433832795 #endif namespace LQMeas { LTR35::LTR35(QSharedPointer<LtrCrate> crate, unsigned slot...
C++
CL
ee5608e942a8f98e57f961301834bb9263431759d1dd9f4be963e8cd804b9629
#include <ios> #include <iostream> #include <iomanip> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <netinet/in.h> #include <arpa/inet.h> #include <ifaddrs.h> #include <linux/if_packet.h> void printMACAddress(unsigned char *buf) { std::ios state(nullptr); state.copyfmt(std::cout); // ...
C++
CL
9029efdb02ed0c0a4c7d669a97571a8176fde63be82824cd5c5d7eb6d40199c5
#pragma once // // Caps Lock mutators. // class CapsLockMutator: public KeyEventHandler { }; class CapsLockSwapper: public CapsLockMutator { public: virtual DISPOSITION KeyDown( KBDLLHOOKSTRUCT* pkb ); virtual DISPOSITION KeyUp( KBDLLHOOKSTRUCT* pkb ); }; class CapsLockReplacer: public CapsLo...
C++
CL
44feea08770d6d40d8e9cb9d6015c1f8afbd0b5136d291c978f8a7f56e4eb281
#pragma once #include <functional> #include "RuleToken.h" #include "Delegates.h" #include "Node.h" #define Autoname(builder) \ do \ { \ builder.SetName(__func__); \ } \ while(false) namespace Spark { class IRuleBuilder { public: template <class T, class... Rest> inline void Add(T t,...
C++
CL
c9ebad1c41d79b35d41240a754723d04e47c889e79f7080fa23edd9dc17fc7cb
#ifndef INCLUDED_AEGIS_AGTA_ASSETPOOL_H #define INCLUDED_AEGIS_AGTA_ASSETPOOL_H #include <vector> namespace agta { template<typename T> class AssetPool { public: AssetPool(); AssetPool(size_t batchSize); ~AssetPool(); size_t createAsset(); void destroyAsset(size_t id); T& assetForId(size...
C++
CL
47dd5130bcaf7c415648ebc59779e6eb5a0e78a53bb9077d12806f84966825b6
/* * Copyright (c) 1996, David Mazieres <dm@uun.org> * Copyright (c) 2008, Damien Miller <djm@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all ...
C++
CL
a66abfe6e403aafcb1f65af239ba1c0554db593110fc386ed4377a0f29e9f12f
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_UTILS_H_ #define CHROME_BROWSER_EXTENSIONS_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_UTILS_H_ #include "chrom...
C++
CL
6d1313b68879bdbaf826201e0825c1e67fbb4393bc0b14a4a7232ae934ff2a32
// // Copyright (C) University College London, 2007-2012, all rights reserved. // // This file is part of HemeLB and is CONFIDENTIAL. You may not work // with, install, use, duplicate, modify, redistribute or share this // file, or any part thereof, other than as allowed by any agreement // specifically made by you ...
C++
CL
e33d4ea5f97252c9bd097eae9547f78452d0bd0f724b4b4381395b8b3e99fa61
/************************************************************************//** * @file pin_transform.c * * @version 1.0.0 * * @author RedBearLab * * @date 2016/11/10 * * @brief Main body of the project. * * @copyright Copyright (c) 2012-2016 RedBearLab * * Permission is hereby granted, free of charge, to any person obta...
C++
CL
0b4144703c0339fbbcc31a07d44a170c5ae69a213d3edcb9e8e5552d31585673
/* * File name: bmp.c * Created on: 15. 3. 2014 * Author: Adam Siroky * Login: xsirok07 * Type: Source file * Description: Include functions for dictionary */ #include "gif2bmp.h" #include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <unistd.h> #include <sys/types.h> #include <string.h> #inc...
C++
CL
59a41123ac304881f863852de42b4a975dc459e5a4f6b550fad15a2f2188c67d
// wrapouter1_class0.cpp // This file is generated by Shroud nowrite-version. Do not edit. // Copyright (c) 2017-2020, Lawrence Livermore National Security, LLC and // other Shroud Project Developers. // See the top-level COPYRIGHT file for details. // // SPDX-License-Identifier: (BSD-3-Clause) // #include "wrapouter1_...
C++
CL
223f0abb0a3cfe53d98ceab5c0510c2d0aef2523dc2eb6b1c42477dd6ca84634
//////////////////////////////////////////////////////////////////////////////// /// @file CondVar.cpp /// /// @author Hubert lehaiping@126.com /// /// @brief Implementation of OS Independent Condition Variable /// /// Copyright (c) 2019 XXX /// All rights reserved //////////////////////////////////////////////////////...
C++
CL
214e4f97249d071a6ec21241c097d45dcc5489a3e3ce86eccb1c3e53502a3edb
#ifndef MEMORY_DRIVER_H #define MEMORY_DRIVER_H #include "cpu_driver.h" #include "tap.h" #include "pqos.h" #include <string> struct Setting { unsigned core; struct pqos_mon_data pgrp; enum pqos_mon_event events; }; class MemoryDriver { private: std::string path; Tap *tap; CpuDriver *cpu_d; ...
C++
CL
f1a29762c67506a896254afee7dcaab723e1ae4dce4b5b2363ccb4b308efd853
#include "serverNetwork.h" SSVR_NAMESPACE_BEGIN uint64_t ServerNetwork::s_send_pack_id_seed = 0; // interface -------------------------------------------------------------- ServerNetwork::ServerNetwork() { slog_d("new ServerNetwork=%0", (uint64_t)this); m_is_running = false; m_listen_sid = 0; m_timer_id = 0; ...
C++
CL
24d884bb02713a898e33bad222a56272984c96969f8d2675a023ca266c4e6855
// Solution.cxx: implementation of the cxxSolution class. // ////////////////////////////////////////////////////////////////////// #ifdef _DEBUG #pragma warning(disable : 4786) // disable truncation warning (Only used by debugger) #endif #include <set> #include <cassert> // assert #include <algorithm> // std::so...
C++
CL
c96a61e4d98224fcd5a5fd1c756a305740d787f473a5b91d80882fb98c2461c0
//------------------------------------------------------------------------------ // File: BonDriver.cpp // Implementation of BonDriver.dll // // This code is borrowed from BonDriver_Shiro //------------------------------------------------------------------------------ #ifdef _DEBUG #define _CRTDBG_MAP_ALLOC #include...
C++
CL
092d6a33a75f780857b9301f80859eca7273857b959b5b37c4be620310754d27
#pragma once #include <Siv3D.hpp> /// <summary> /// 敵の種類 (衝突した時のダメージ) /// </summary> enum class EnemyType : int { Bunchin = 10, Yotiyoti = 15, Danmaku = 20 }; /// <summary> /// 敵 /// </summary> class Enemy { protected: RectF m_region; PlayMode m_mode; Vec2 m_playerPos; public: Enemy(const Vec2& pos) { ...
C++
CL
446a8ab00295a66f0ef661a1a86540c389d1776c377c75cd4789c5c959a349f7
/*MQTT*/ #include <SPI.h> #include <Ethernet.h> #include <PubSubClient.h> #include <Time2.h> #include "Timer.h" #include <EEPROM.h> #include <Wire.h> //http://arduino.cc/en/Reference/Wire #include <DS3232RTC.h> #include "RS485_protocol.h" #include <SoftwareSerial.h> SoftwareSerial rs485 (2, 3); /...
C++
CL
1cca263e5aea90c28622da67d91a782b804dbe95a525b60b8a8a1e42a7d4c263
//--------------------------------------------------------------------------- #ifndef TransferMultiH #define TransferMultiH #define PreviousTransfer "History" #define CurrentTransfer "Current" //--------------------------------------------------------------------------- #include <Classes.hpp> #include <Controls.hpp> #...
C++
CL
ce046c9725f44b530e37cf788abb874464c7da07c1d4ebb293791cd7ac1b5b2f
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" #include <...
C++
CL
75337369e9266393d6f4d2a6b63ec04a32176d751310df3a31ece0a056aa4a2f
/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil c-basic-offset: 3 -*- */ // vim:cindent:ts=3:sw=3:et:tw=80:sta: /***************************vjVTK copyright begin ***************************** * * The vjVTK library is a derivitive work, based on two * seperate projects, VR Juggler and the Visualization Toolki...
C++
CL
03bba9af2d9ee564aaf2a459580fc042b5e3eb04da7d081f01154a5e5160981c
#pragma once #include <string> namespace Astra { class TimezoneHelper { public: TimezoneHelper() { struct tm time_info; time_t secs, local_secs, gmt_secs; time(&secs); //带时区时间 tzset(); localtime_r(&secs, &time_info); ...
C++
CL
a6b750862c16530b43f2dda9f02298d2c3ca358e01e267563d2d4c34d9bd58fa
//Arduino 1.0+ Only //Arduino 1.0+ Only #include "Wire.h" #define DS1307_ADDRESS 0x68 #define DISPLAY_ADDRESS1 0x71 //This is the default address of the OpenSegment with both solder jumpers open int second; int minute; int hour; int currentTime; boolean stopWatchRunning = false; int stopWatchSecond = 0; int stopWatc...
C++
CL
ac23ab1d40c6c2aa0949009d23d5e207190fbfe86af42d3b5ecf21a7c5fee0b0
#include <thread> #include <unordered_map> #include "kvmsg.hpp" #include <random> #include <format> #include <boost/algorithm/string.hpp> #include <fmt/core.h> #include <zmqpp/zmqpp.hpp> #include "bstar.hpp" class clonesrv6 { private: zmqpp::context_t ctx_; std::unordered_map<std::string, kvmsg> kvmap_; bstar bstar...
C++
CL
9cae482831172f1fc52765a690a1a6e184cb1fda5f667d39196e897bf1889379
#ifndef RGBD_CALIB_OPENCV_HELPER_HPP #define RGBD_CALIB_OPENCV_HELPER_HPP #include <opencv/cv.h> #include <opencv/highgui.h> #include <string> /*! Prepare a chessboard calibration pattern for OpenCV calibrateCamera. */ void calibrationPattern(std::vector< std::vector<cv::Point3f> >& output, i...
C++
CL
0fb521fc8657fb37c4071861ade309c74a87563ba6749b42f38c12d6d563a92f
// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _IGESAppli_Node_HeaderFile #define _IGESApp...
C++
CL
93adda0289930ccfc12cb2262111ac4678117321af7be075f44ec0fed6a31d9a
#include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <string.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <netdb.h> #include "connectors.h" #include "err.h" UdpSock UdpConnector::initServer(uint16_t port) { int sock = socket(PF_INET6, SOCK_DGRAM, IPPROT...
C++
CL
dc5342a4702f426d293569af9781e055ca52ac503706c80815c0ecffdefe9125
#include <renderable_object.hpp> #include <algorithm> #include <iostream> #include <logger/logger.hpp> #include <factory.hpp> namespace renderer { constexpr std::size_t RENDR_BUF_CONTENT_SIZE{ 100000 }; constexpr std::size_t RENDR_BUF_DEFAULT_HEAD_POS{ 90000 }; Renderable::Renderable() { view_configuration.conf...
C++
CL
f005af2cf1ab32934a39a0e33889b925bb9092e8c300ec0381cbf2dc92141d66
#ifndef VECT_HPP #define VECT_HPP #include <iostream> #include <assert.h> #include <algorithm> #include <initializer_list> using namespace std; #ifdef _WIN32 typedef unsigned int uint; #endif template<class T = double, uint N = 2> class vect { T values [N]; public: typedef T CType; // component type static c...
C++
CL
a9b2efe3fe59a531b012fe34c93e2e689f736cc639421f294a6728881c7ae054
#ifndef FRMPRICEIMPORT_H #define FRMPRICEIMPORT_H #include <QDialog> #include "historicalPrices.h" class QFile; class frmPriceImport_UI; class frmPriceImport : public QDialog { Q_OBJECT public: enum column { column_Symbol, column_Date, column_Type, column_Value }; frm...
C++
CL
a6006125cda64734e4ff3bc8e2d075b986d0a4363ac1e110e1356d41e579083e
#ifndef POINTDECOLLECTE_H #define POINTDECOLLECTE_H #include <vector> #include "produit.h" #include "gestionnaireproduits.h" class Producteur; /** @brief La classe PointDeCollecte. ** ** Elle contient un constructeur, le lieu, un @ref GestionnaireProduits, et un bool qui définit si il est ouvert ou fermé. ** **...
C++
CL
11050b4e9e39136fbdf1bc3ad389fed32d752d9736c14e44c7abe72c4df01855
#ifndef TIME_OPTIMIZER_CLASS_H_ #define TIME_OPTIMIZER_CLASS_H_ #include "ros/ros.h" // Locally defined #include "drone_planner/PVA.h" #include "drone_planner/helper.h" // TimeOptimizer libraries #include "traj_poly_mono.h" #include "time_optimizer_ecos.h" namespace time_optimizer { class TimeOptimizerClass { pub...
C++
CL
dcffbe66782612d6d5fd2b9ddc150b4f7b46879fdd461bf559d3ee2a50655a2f
#if defined(__cplusplus) && !defined(_BDAQ_NO_NAMESPACE) # ifndef BEGIN_NAMEAPCE_AUTOMATION_BDAQ # define BEGIN_NAMEAPCE_AUTOMATION_BDAQ namespace Automation { namespace BDaq { # define END_NAMEAPCE_AUTOMATION_BDAQ } /*BDaq*/ } /*Automation*/ # endif #else # ifndef BEGIN_NAMEAPCE_AUTOMATION_BDAQ # defin...
C++
CL
bbb8dc016ff3eca872909676e07a25af76326e3b85bff5e3590f83199feb2710
//question link http://www.spoj.com/problems/PALIN/ /* * If the input comprises of all 9's then the answer is 1 followed by n-1 0's * * and then 1 (here n is the number of digits in the given number * * For other cases the documentation with the code does the explanation * */ #include <bits/stdc++.h> ...
C++
CL
497654e6cdd9b812b6ec6c86e18676a8ca70116751b0ff80870081e857687117
/* * Warhammer Age of Sigmar battle simulator. * * Copyright (C) 2019 by Rick Weyrauch - rpweyrauch@gmail.com * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ #ifndef SKARBRAND_H #define SKARBRAND_H #include <Unit.h> #include <Weapon.h> namespace Khorne { class Ska...
C++
CL
4b970786e1f1ce72fe5e4e41a2f6a35804496507d22c0d149fe72e741c7a3e20
/////////////////////////////////////////////////////////////////////////////// // Application : MoleSVN // Package : UI // File : RenameWindow.h // Description : defines window which will display Rename parameters, like // URL repository, revision // Author : cedric.bresson@artcoder.com /...
C++
CL
dc4debda9f9f8bad6a7167de6a7abc9284ce58acc2071f4fd81c8aad25faa80e
#include "erhe_physics/bullet/bullet_uniform_scaling_shape.hpp" #include <BulletCollision/CollisionShapes/btUniformScalingShape.h> namespace erhe::physics { auto ICollision_shape::create_uniform_scaling_shape( ICollision_shape* shape, const float scale ) -> ICollision_shape* { return new Bullet_uni...
C++
CL
c1a81008d057420dba348ea8178767b4b5f86c0882fd1bc78aa106c436b346c2
#pragma once #include <unordered_map> #include <map> #include <string> #include <vector> #include <iostream> #include "glm/glm.hpp" #include "include.h" #include "input.h" //Included bellow //#include "inputdata.h" //Forward declaration namespace Tea { class InputManager { public: /* "InputManager" handles...
C++
CL
fa66994f2324e26fbe999dcb38b0745092148df1c56641be7bd420843c45d51e
/* * 2015_Canyon_Rescue_Robotics.ino * * Created on: Apr 10, 2015 * Author: Seth Itow */ #include "config.h" #include <SPI.h> #include <WiFi.h> #include <SoftwareSerial.h> #include <HardwareSerial.h> #include <Adafruit_GPS.h> #include <Servo.h> #include <PID_v1.h> #include <SD.h> #include <Adafruit_VC0706.h...
C++
CL
35cc1a9087c8726e318b5bbfbb14460a665b5bd568370480fd01874fee440dae
// // Created by cecix on 18/05/19. // #include <string> #include <Box2D/Collision/Shapes/b2PolygonShape.h> #include <Box2D/Dynamics/b2Fixture.h> #include <Box2D/Dynamics/b2World.h> #include <iostream> #include "Chell.h" #include "movements/MoveRight.h" #include "movements/Stop.h" #include "movements/MoveLeft.h" #incl...
C++
CL
8eb335c59cc7e55a30e759cf8b69fdf78ea8756c88fe9a8173de4879668f6505
/* Copyright (c) 2010, Matt Berger All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following di...
C++
CL
a5e040556f79851135b8f86b7acaa93cef5765cdc0706e960d68cf705e385bbe
/*Andres Gomez 2021*/ #include <Arduino.h> #include <stdint.h> #include "SCMD.h" //Librerias proporcionadas por el fabricante del componente de forma gratuita en la misma pagina de venta del mismo. #include "SCMD_config.h" #include "Wire.h" //Libreria incluida en Arduino para conexion I2C. #...
C++
CL
0ad09702205fc6f8507e00258937dbdb5ed845306ab7073b6dd660325a336ff0
#include <iostream> #include <unistd.h> #include <cstring> #include <csignal> #include <boost/program_options.hpp> #include <boost/filesystem/path.hpp> #include <boost/filesystem.hpp> #include "server.h" namespace po = boost::program_options; namespace fs = boost::filesystem; int main(int argc, char* argv[]) { ...
C++
CL
4dea9179e63ff2ea81b62a3c6e10f25766f4759e6ec77a29dc71079a0621ae66
// Copyright 2021 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 "driver_loader.h" #include <fidl/fuchsia.io/cpp/wire.h> #include <lib/fdio/directory.h> #include <lib/fidl/llcpp/connect_service.h> #include <sch...
C++
CL
4f3ba04e71e86bf0d002735ad73a2d18f8bf20b4f076510e1ebb3506691c2a97
/* * SuperDrive.h * * Created on: Jan 18, 2018 * Author: jonah */ #ifndef SRC_AUTON_SUPERDRIVE_H_ #define SRC_AUTON_SUPERDRIVE_H_ //Includes //Team302 includes #include <subsys/chassis/DragonChassis.h> #include <auton/IPrimitive.h> class SuperDrive : public IPrimitive { public: void Init(PrimitiveParams*...
C++
CL
c90274aaa915ff0ee00b4a4fd4b0d89ce101252ca8d3ece705438a0181862b2d
#ifndef ___Win32Network___ #define ___Win32Network___ #include "INetwork.h" #include "NetAddress.h" #ifdef WIN32 #include <winsock2.h> #endif namespace mray{ namespace network{ typedef ulong NetID; typedef long long TIME_Stamp; #define MAX_DGRAM_SIZE 1500 enum ESocketOption { ESO_NONBLOCK, ESO_SOCKOP...
C++
CL
a70b1479b9abca3fa174cfcd6eda68577d1c109a6b667e751e62d6f31b2558b1
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QSettings> #include <QCloseEvent> #include <QDirModel> #include <QDir> #include <QModelIndex> #include <QTime> #include "filemanagement.h" #include "clientmanagement.h" #include "settingdialog.h" #include "qrcodedialog.h" #include "deviceinfo....
C++
CL
1c05d1d5bde5279a40f38467ba05b1724c9bb612210718a91c6c7c767396e823
// CParams.cpp: 实现文件 // #include "pch.h" #include "cpphwfinal.h" #include "CParams.h" #include <opencv2/opencv.hpp> #include <opencv2/imgproc/types_c.h> #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> using namespace cv; using namespace std; // CParams IMPLEMENT_DYNCREATE(CParams, CFormV...
C++
CL
c4de9ad55142db1d49a391bbe9971f762065d418b9157203c83c17b6ddd5504d
// // Created by leleyu on 2019-04-08. // #ifndef GRAPH_INTERFACE_COMMONS_H #define GRAPH_INTERFACE_COMMONS_H // convert primitives between java object and c++ object // strings #define DEFINE_STRING(_jstring) \ const char* jstring##_cstr_ptr = env->GetStringUTFChars(_jstring, NULL); \ std::string _jstring##_cst...
C++
CL
9b1dbf7b0f0d09053431600e19b6b83dcfc0e7693d5f646b915fd9d6133631cf
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- // ScreenResource.ccfor Blackbox - an X11 Window manager // Copyright (c) 2001 - 2005 Sean 'Shaleh' Perry <shaleh@debian.org> // Copyright (c) 1997 - 2000, 2002 - 2005 // Bradley T Hughes <bhughes at trolltech.com> // // Permission is hereby grante...
C++
CL
45b06bdbb2c6451274462f154d2c1471af57be66c31645eb72724940b8968142
#pragma once #include <chrono> #include <ctime> #include <string> namespace timer { struct TimerClock { // Constants static time_t const NULL_TIME = 0; static time_t const MIN_TIME = -2209013206; static time_t const MAX_TIME = 253402271999; // Format a datetime to %Y-%m-%d %H:%M:%S %z stati...
C++
CL
e4485d1b96bc24cf996370794feaf01ae850fbf47ab3a7fe628cf5546246202b
#pragma once #include <SFML/Graphics.hpp> #include <map> enum class eNODE_STATE { NONE = -1, BLANK, WALL, START, END, COUNT }; enum class eNODE_PATH_TYPE { NONE = -1, GRASS, WATER, SAND, COUNT }; class Node { public: Node(sf::Vector2f pos, sf::Vector2f size); Node(sf::Vector2f pos, sf::Vector2f size, eN...
C++
CL
3bf84a59bdff6fd3339537027b3b70cecc8c56844a1073d290228e1ed26a68d3
# pragma once # include "Core/ModuleBase.h" # include "Motor.h" namespace Menge { class ModuleMotor : public ModuleBase { public: ModuleMotor(); ~ModuleMotor(); public: MotorPtr createMotor(); public: bool _initialize() override; void _finalize() override; public: void...
C++
CL
f634105269056bcb27a174eb9815b7f1b05507d767838d9d2aad43f3bbd5912b
/** * Hello, this is BjarneClient, a free and open implementation of Accumulo * and big table. This is meant to be the client that accesses Accumulo * and BjarneTable -- the C++ implemenation of Accumulo. Copyright (C) * 2013 -- Marc Delta Poppa @ accumulo.net * * This program is free software: you can redistribu...
C++
CL
7445e2fe0b4b496865a479f4257d8431f6f2386d1c47d1d086b803310956b742
// stdafx.cpp : 只包括标准包含文件的源文件 // chinesechess.pch 将作为预编译头 // stdafx.obj 将包含预编译类型信息 #include "stdafx.h" #include "Managers.h" Managers manager;
C++
CL
0c3acd49ae0e4164182db97cafd67cc3aca0f6ff8ec212ed4719dd552b10a696
#pragma once #include "Master.h" #define SIMPLE_SYSTEM_SLAVE_CONTROL Class_ID(0x7acd61ca, 0x5f954622) namespace SimpleSystem { /*************************** Class Descriptor Related **************************/ ClassDesc2* getSlaveDescriptor(); class SlaveControlClassDesc : public ClassDesc2 { public: int IsP...
C++
CL
82d62a577a2f7876f64b34f4254bcfa6dd6c175c23600211717ae6a75106e73c
/****************************************************************************** # Copyright (c) 2019 Qualcomm Technologies, Inc. # All Rights Reserved. # Confidential and Proprietary - Qualcomm Technologies, Inc. #******************************************************************************/ #pragma once #include <...
C++
CL
d6002d27287b29c7083e419a3f52f3105c7c67e719ffff6b54fe5185f23b660e
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <memory> #include <utility> #include "base/bind.h" #include "base/command_line.h" #include "base/macros.h" #include "base/memory/ref_counted.h" ...
C++
CL
5303dae533d50582cbd0188f4854210649ae1d2cf4d318f625e7b5b23ba7103b
#pragma once #include "FoliageGroup.h" DECLARE_DELEGATE_OneParam(FTileTaskResultDelegate, FTileTaskResult); class LANDSCAPE_1_API FCalculateTileTask : public FNonAbandonableTask { friend class FAutoDeleteAsyncTask<FCalculateTileTask>; public: FCalculateTileTask(FVector location, int tileIndex, TArray<FFoliageGrou...
C++
CL
5663e095c5fb617d9a19f1482f343b7846502a6b3521a400e5ee2ddde90be9a0
/* /* !@ MIT License Copyright (c) 2020 Skylicht Technology CO., LTD 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, mod...
C++
CL
a844c443d8e2b8bb8959e45de58b5dae61c9f13890cd72fa35c9ae1c9574a673
#define __DEBUG_MODULE_IN_USE__ CIC_DEVICEDESCRIPTIONS_CPP #include "stdhdrs.h" // @doc /********************************************************************** * * @module DeviceDescriptions.cpp | * * Tables for parsing HID on specific devices * * History * ---------------------------------------------------------- * M...
C++
CL
ea8c699d23a0c70198da4224078f85486abca68e6c976dd8a684ddafc257899a
#include <rppi_fused_functions.h> #include <rppdefs.h> #include <iostream> #include "rppi_validate.hpp" #ifdef HIP_COMPILE #include <hip/rpp_hip_common.hpp> #include "hip/hip_declarations.hpp" #include "hip/hip_declarations_inline.hpp" #elif defined(OCL_COMPILE) #include <cl/rpp_cl_common.hpp> #include "cl/cl_declara...
C++
CL
0f43b3090eda1cf52db395eb4e18bfa36ba4afcba25eedaf74cf3c871912dcfa
// -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- // $Id$ // // Copyright 2010-2014 Christoph Mayer // // 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 3 of the Li...
C++
CL
64bd4b36ec817be55ec73bf9b2ba23ea33aa879a14b30fbf4bc4ab8954139a4a
// Copyright (c) 2015-2016 Vittorio Romeo // License: Academic Free License ("AFL") v. 3.0 // AFL License page: http://opensource.org/licenses/AFL-3.0 // http://vittorioromeo.info | vittorio.romeo@outlook.com // Adapted from: // https://github.com/isocpp/CppCoreGuidelines/issues/353 #pragma once #include <vrm/core/c...
C++
CL
424e2091d9037fa48a88aeb76dd69ce3a3bb314634e5fdda99ec5bf2df9cef67
#ifndef HEMERA_COMMONOPERATIONS_H #define HEMERA_COMMONOPERATIONS_H #include <HemeraCore/Global> #include <HemeraCore/Operation> #include <QtDBus/QDBusPendingCall> class QJsonDocument; class QDBusObjectPath; class QProcess; namespace Hemera { class HEMERA_QT5_SDK_EXPORT SequentialOperation : public Hemera::Operati...
C++
CL
657747d0136ccb0909008128f789bebcd00275889fe66a7ff84893dda8d3a457
// Copyright (c) 2010-2011 Zipline Games, Inc. All Rights Reserved. // http://getmoai.com #ifndef MOAIVECTORTESSELATOR_H #define MOAIVECTORTESSELATOR_H #include <moai-sim/MOAIRegion.h> #include <moai-sim/MOAIVectorUtil.h> class MOAIIndexBuffer; class MOAIVectorShape; class MOAIVertexBuffer; class SafeTesselator; /...
C++
CL
f0389e550fefda1bcee8a31d860cab600854f235e6c3f716f9fcd6a0b4ee5cea
/* * Author: Harry * Email: khchanak@cse.ust.hk */ #include "yoo_alg.h" /* * The implementation of joinless colocation mining algorithm. */ fsi_set_t** joinless_mining(data_t* data_v, int numOfObj, int numOfFea) { unordered_map<FEA_TYPE, vector<obj_set_t*>*> SN; fsi_set_t** result; //storing overall res...
C++
CL
66ec5d108a41167007d578258f83a52bf05d0096089afe045afa6149aaba9b9e
#include "easehts/unittest.h" #include "easehts/pileup.h" #include "easehts/sam_bam_reader.h" #include "easehts/sam_bam_record.h" #include <gtest/gtest.h> using namespace ncic::easehts; typedef struct TraverseData { BAMIndexReader* reader; } TraverseData; int fun(void *data, bam1_t *b) { TraverseData& traverse_...
C++
CL
7d20bccb2b7e446801e7c972e02c862d83636a3f592e85ddb925256e72151c1f
#pragma once #ifndef _mapAddedPolyMesh_Header #define _mapAddedPolyMesh_Header /*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org ...
C++
CL
edc8fcb21620e73b87a05181f7457a860f4d6a5529bc55927326b99c1e8d2810
#ifndef GM_INSTANCE_HPP #define GM_INSTANCE_HPP #include <map> #include <set> #include <string> #include <vector> #include <iostream> #include <fstream> #include <boost/bimap.hpp> #include <boost/iostreams/filtering_streambuf.hpp> #include <boost/iostreams/device/file_descriptor.hpp> #include <boost/archive/xml_iarchiv...
C++
CL
aa03f314e01ed0250b326ce9ded2c8366f9aa641fcf01edd91aab680f561e557
//////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2011 Angelo Coppi (coppi dot angelo at virgilio dot it ) // // 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 // th...
C++
CL
e13ebbad0598ac62adba6e32f1b191af869b2b360205275c6bb895c5d636f2ea
#pragma once #include <algorithm> #include <execution> namespace vm { inline size_t NextID() { static size_t ID = 0; return ID++; } template<class T> inline size_t GetTypeID() { static size_t typeID = NextID(); return typeID; } template<class T, class U> constexpr void ValidateBaseClass() { static_assert(std::i...
C++
CL
9c7e7f06546e061143e75215f33f059c41ffa1f7fe80221198b0cf3c52b1861b
/* * AtuContract.h * * Created on: Feb 2, 2015 * Author: jasonlin */ #ifndef ATUCONTRACT_H_ #define ATUCONTRACT_H_ #include <tr1/unordered_map> #include <vector> #include <string> #include <boost/algorithm/string.hpp> using std::vector; using std::string; using std::tr1::unordered_map; namespace atu { t...
C++
CL
ca84985b32584683c152dc7f3989f8e4dcac81992f8f9cdf37692c55eaf31608
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- #ifndef __gnu_javax_crypto_cipher_DES__ #define __gnu_javax_crypto_cipher_DES__ #pragma interface #include <gnu/javax/crypto/cipher/BaseCipher.h> #include <gcj/array.h> extern "Java" { namespace gnu { namespace javax { namespace crypto...
C++
CL
382036f6ef9bd1553e34f404393ab67175c5f11c8bcc227423567af429086972
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/Controller.h" #include "BaseController.generated.h" /** * */ UCLASS() class BASE_MP_UE4_API ABaseController : public AController { GENERATED_BODY() };
C++
CL
f14f601ce1330d26f13dfd242e5a0bdb16c806b5ab810723fd1010ed21decc0b
// // Created by julian on 14.01.19. // #ifndef ROSBRIDGECLIENT_SERVICE_CALL_IMPL_H #define ROSBRIDGECLIENT_SERVICE_CALL_IMPL_H #include <rbc/service/service_call.h> #include <rbc/utils/deserializer.h> using namespace rbc::srv; template<typename T> ServiceCall<T>::ServiceCall(std::string name, const std::vector<T> ...
C++
CL
7b34ce964c21e57e6968b149d9713ded93f119597aea263ace319c79026f2ad6
// ============================================================== // RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC // Version: 2017.2 // Copyright (C) 1986-2017 Xilinx, Inc. All Rights Reserved. // // =========================================================== #include "sha256.h" #inc...
C++
CL
2d95f1cc3dd4a7e7dea0547375ee7fcddff3805e439d0b601d09e9109fcdc1a1
//+--------------------------------------------------------------------------- // // Microsoft Forms // Copyright (C) Microsoft Corporation, 1994-1996 // // File: tdraw.cxx // // Contents: CTable and related classes. // //---------------------------------------------------------------------------- ...
C++
CL
6fa67d2bd45e4990ed7f2311368bf369155aa272501a54c2b599af13a2023955
// // (C) Copyright 1998-2006 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all copies and // that both that copyright notice and the limited ...
C++
CL
e452ec4429de0b16685eb8a629d24304583316a691e289dec74f2ec9ca2309ae
#pragma once #include <memory> #include <vector> #include "../linearAlgebra.h" struct Joint { // initial pose transform relative to parent joint - this is the "from" transform Transform2f unposedTransform_local; // initial pose transform relative to origin Transform2f unposedTransform_global; // final pose tra...
C++
CL
a26053fe491fceab4861f2228648c49201e13ad26741a2a42074c7164fc39114
#ifndef DATEFORMATDELEGATE_H #define DATEFORMATDELEGATE_H /**************** * copy from tutorial, spreadsheetdelegate.h * *****************/ #include <QStyledItemDelegate> #include <QDate> #include <QDateTimeEdit> #include <QDebug> class DateFormatDelegate : public QStyledItemDelegate { Q_OBJECT public: ex...
C++
CL
6d251c92b483e666ce026dfe135476b3f722d206ca88bf3409039f691257d41b
#include "stdafx.h" #include "DoPAR.h" const float inv_sqrt_2pi = 0.398942280401433f; // operating files systems long FileLength(const string& FName) { ifstream InF(FName.c_str(), ios::in | ios::binary); if (!InF) return 0; InF.seekg(0, InF.end); long Length = InF.tellg() / sizeof(char); InF.seekg...
C++
CL
ff790cbc8cef6ef96be7657d0db5df34a2c03214467efd6526c8c03cd2beef68
/** \file glow2.cpp * \brief A series-parallel-series of switches should be closed for a light * bulb to glow. * * \details Same logic as glow.cpp but it introduces some standard algorithms * although it still is not as efficient as glow.cpp. Also have range- * based for loops which are superior in that the index...
C++
CL
d8716352383addc3383c818eabeaae5125438744ce94e77fcf7cdae2809c7594
#ifndef MINIMIZEFCNAXIALVECTOR_CALCULATE_PENALTY_TERM_H #define MINIMIZEFCNAXIALVECTOR_CALCULATE_PENALTY_TERM_H void MinimizeFCNAxialVector::calculate_penalty_term(double& penalty_term_ret, const std::vector<double> &param) const { // penalty terms section double penalty_term = 0.0; // loop over all the ...
C++
CL
d3bd5a7cc62601a78154eb60cb43dbd11dd5c0e0cf65075f51f84b5b400b8e3a
/** * Adobe Experience Manager OSGI config (AEM) API * Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API * * OpenAPI spec version: 1.0.0-pre.0 * Contact: opensource@shinesolutions.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openap...
C++
CL
5cdf8428caec12f20f7c340693e7e79ceb2760721d46f774f7a0ade8e3b5c3cd
/****************************************************************************** * This file is part of the TouchGFX 4.9.3 distribution. * Copyright (C) 2017 Draupner Graphics A/S <http://www.touchgfx.com>. ****************************************************************************** * This is licensed software. An...
C++
CL
1ced220f755ba92bb57441a54a6696eece298c0bf73ae25fca6343f2d93c7def
#include <sstream> #include <bitio/bitio.h> #include <hzip_core/utils/utils.h> #include "blob.h" HZ_MState::HZ_MState() { alg = hzcodec::algorithms::UNCOMPRESSED; } uint64_t HZ_MState::size() const { return data.size(); } bool HZ_MState::is_empty() const { return alg == hzcodec::algorithms::UNCOMPRESSED...
C++
CL
bacad29e40a441b43e83b669c309115d3af21d4d12412bf5cabbaacd68a6a340
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef QUERYOBJECT_H #define QUERYOBJECT_H #include "TodaySchema.h" namespace graphql::today::object { class Query : public service::Object { protected: explicit Query(); public: virtual service::Field...
C++
CL
244261504ea046cf3257fd25fd265ec445b1bc4dab49e483065a2440ee65deb6
/* * Copyright (c) 2018 IOTA Stiftung * https://github.com/iotaledger/entangled * * Refer to the LICENSE file for licensing information */ #ifndef CPPCLIENT_MESSAGES_H_ #define CPPCLIENT_MESSAGES_H_ #include <nonstd/optional.hpp> #include <string> #include <vector> namespace cppclient { struct GetTransactionsT...
C++
CL
e94cfb770f01bcac5b8d7682ff94253f6a9cd7bb28082e6c9fd08d14ba586359
#ifndef MAINUSERGUI_H #define MAINUSERGUI_H #include <QWidget> #include <QtSerialPort/qserialport.h> #include <QMessageBox> #include "tiva_remotelink.h" #include <qwt_plot_curve.h> #include <qwt_plot_grid.h> #include "remotelink_messages.h" namespace Ui { class MainUserGUI; } class MainUserGUI : public QWidget { ...
C++
CL
928676d12144a738d4e4c2797d98e60ad1d648e9c87c6382e7201bd640a72b8c
/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2005-2006 Refractions Research Inc. * Copyright (C) 2001-2002 Vivid Solutions Inc. * * This is free software; you can redistribute and/or modify it under * th...
C++
CL
41158dd716b7c34758ddc638d785d839677cf5e24ce0463886e26ed2b02d00cb
#include "boost/container_hash/hash.hpp" #include <algorithm> #include <benchmark/benchmark.h> #include <iostream> #include <iterator> #include <random> #include <stdexcept> #include <cstdlib> #define XXH_INLINE_ALL #include "xxhash.h" #include "farmhash.h" #include "farmhash.cc" #include "aquahash.h" #include "inter...
C++
CL
b456781a27577dfcccb2810bf791dac1c767e7c15914bc6d38fd170e9644f2b5
#ifndef TUW_AIRSKIN_NODELET_H #define TUW_AIRSKIN_NODELET_H #include <nodelet/nodelet.h> #include <ros/ros.h> #include <tuw_i2c/I2C_Master.h> #include <tuw_airskin/AirSkinPad.h> #include <tuw_airskin_msgs/AirskinInfo.h> #include <tuw_airskin_msgs/AirskinColors.h> #include <tuw_airskin_msgs/AirskinPressures.h> #include...
C++
CL
02f6e6e2b0c23679a1d9bb268ffacc4ad0e987b2bab3eb4382481abe992f0943
//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #include "Components/BsCRenderable.h" #include "Private/RTTI/BsCRender...
C++
CL
44d48bc60194501a3721851aa9f5b1efb5801fbada7614d81f295828a7f2f331