text stringlengths 3.08k 22k |
|---|
/*
* Copyright (C) 2011-2019 <NAME>
* http://www.1f0.de
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
... |
#include "tiles/images.h"
#include "av/sdl2/error.h"
#include "av/sdl2/sdl2.h"
#include "av/sdl2/window.h"
#include "tiles/log.h"
#include "tiles/resources.h"
#include "util/assert.h"
#include "util/compiler.h"
#include "util/hashvector.h"
#include "util/int.h"
#include "util/measure.h"
#include "util/string-view.h"
#... |
#include "CommonHeaders.h"
#include "DefGloVar.h"
using namespace std;
void disruptOneLink(GRAPH &_g, ObjectManager &_man, const int _lid);
void restoreOneLink(GRAPH &_g, ObjectManager &_man, const int _lid);
//void disruptOneLink(GRAPH &_g, ObjectManager &_man,const int _lid)
//{
// _g.disruptLink(_lid); _man.disrupt... |
#include "Simulator/Engine.h"
#include "LLHDToLLVM/LLHDToLLVM.h"
#include "Simulator/State.h"
#include "mlir/ExecutionEngine/ExecutionEngine.h"
#include "mlir/IR/Module.h"
#include "mlir/Pass/PassManager.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
using names... |
/*
* File : main.cpp
* main frame process
* COPYRIGHT (C) 2020, zc
*
* Change Logs:
* Date Author Notes
* 2020-5-4 zc the first version
* 2020-5-20 zc Code standardization
*/
/**
* @addtogroup IMX6ULL
*/
/*@{*/
#include "include/UartThread.h"
#include "inc... |
#include "CoolProp.h"
#include <vector>
#include "CPExceptions.h"
#include "FluidClass.h"
#include "Benzene.h"
BenzeneClass::BenzeneClass()
{
double n[] = {0.0, 0.03513062, 2.229707, -3.100459, -0.5763224, 0.2504179, -0.7049091, -0.1393433, 0.8319673, -0.3310741, -0.02793578, 0.7087408, -0.3723906, -0.06267414, -0.86... |
/*
* $Id: MT_ExpMap.cpp 35154 2011-02-25 11:43:19Z jesterking $
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <string>
#include <iostream> // std::cout
#include <fstream> // std::ofstream
#include <k4a/k4a.hpp>
#include <k4arecord/playback.hpp>
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <openc... |
/**
* CubeGS
* An online Ground Segment for Cubesats and Small Sats
* (c) 2017 Incomplete Worlds
*
*/
#include <iostream>
#include <vector>
#include <thread>
#include <fstream>
#include <map>
#include <array>
using namespace std;
#include <boost/asio.hpp>
#include <log4cpp/Category.hh>
#include <log4cpp/Pro... |
#include "tetrisscreen.h"
TetrisScreen::TetrisScreen(void (*rcb)(int8_t menu, uint8_t option), void (*hscb)(uint32_t highscore), uint32_t hs, uint8_t option) {
printf("Tetris screen loading...");
this->screenId = 2;
this->type = Type::GAME;
this->highScore = hs;
this->returnCallBack = rcb;
this... |
/*
OneLoneCoder.com - Augmenting Reality #1 - Optical Flow
"My arms are tired now." - @Javidx9
License
~~~~~~~
One Lone Coder Console Game Engine Copyright (C) 2018 Javidx9
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; See lice... |
#include "unicorn/mbcs.hpp"
#include "unicorn/unit-test.hpp"
#include "unicorn/utf.hpp"
#include <cerrno>
#include <iostream>
#include <string>
#ifdef _WIN32
#include <windows.h>
#endif
using namespace RS;
using namespace RS::Unicorn;
using namespace std::literals;
namespace {
using UnicornDetail::lookup_en... |
/*
* CometOS --- a component-based, extensible, tiny operating system
* for wireless networks
*
* Copyright (c) 2015, Institute of Telematics, Hamburg University of Technology
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pr... |
#include "resource.h"
#include <windows.h>
#include <tchar.h>
#include <commctrl.h>
#include <cassert>
#include "udialogx.h"
#include "udlgapp.h"
#include "uedit.h"
#include "ubutton.h"
#include "umsg.h"
const UINT ID_EDIT_CMD = 1113;
const UINT ID_EDIT_TEST = 1114;
const UINT ID_EDIT_RESULT = 1115;
const UINT ID_BU... |
// Copyright (c) 2017, Xiaomi, Inc. All rights reserved.
// This source code is licensed under the Apache License Version 2.0, which
// can be found in the LICENSE file in the root directory of this source tree.
#include "shell/commands.h"
#include "shell/argh.h"
#include "shell/command_output.h"
#include <math.h>
#... |
#include <variant>
#include <vector>
#include <optional>
#include <sstream>
#include <stdexcept>
#include <iostream>
#include <limits>
#include <assert.h>
#include <advent.hpp>
class ROBitStream {
public:
ROBitStream(const std::string &hex)
: index(0), bit(0), len(0), data()
{
uint16_t cur_val ... |
/*
* SVN.cpp : Implementation of CSVNWorkingCopy
*
* ====================================================================
* Copyright (c) 2000-2004 CollabNet. All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The ... |
// ####################################
// # #
// # Ping of Death - Bot #
// # by #
// # <NAME> aka Count Floyd #
// # #
// ####################################
//
// Started from the HPB-Bot Alpha So... |
/*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publis... |
#include <opencv2/opencv.hpp>
#include <iostream>
#include <deque>
#include <unordered_map>
using namespace cv;
using namespace std;
struct var {
enum { NUM,RCT,STR,IO };
_InputOutputArray io;
String s;
Rect r;
float n;
var() : n(0) {}
var(const _InputOutputArray &a) : io(a), n(0) {}
var(const... |
#include <mbgl/geometry/sprite_atlas.hpp>
#include <mbgl/platform/gl.hpp>
#include <mbgl/platform/platform.hpp>
#include <mbgl/util/math.hpp>
#include <mbgl/util/std.hpp>
#include <mbgl/util/constants.hpp>
#include <mbgl/map/sprite.hpp>
#include <cassert>
#include <cmath>
#include <algorithm>
using namespace mbgl;
... |
#include <iostream>
#include "graphics/graphics.hpp"
#include "input/input.hpp"
#include <GL/glew.h>
#include <GL/glu.h>
#include <SFML/OpenGL.hpp>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <map>
#include "Camera.hpp"
#include "ModelUtilities/ModelLoader.hpp"
#include "ModelUtilities/ModelToBul... |
/*
* File: ImageLoader.cpp
* Author: jcoelho
*
* Created on September 11, 2016, 2:34 PM
*/
#include "ImageLoader.h"
#include <cassert>
#include <cstdlib>
#include <cmath>
#define ROUND(_) (int)floor( (_) + 0.5 )
typedef unsigned char BYTE;
typedef unsigned short int USHORT;
typedef unsigned short int WORD;
... |
/* VS API functions in a VS DLL. This version has prototypes for all of the functions
available in a VS solver for CarSim or TruckSim.
Log:
May 20, 09. <NAME>. updated to include vs_run and new functions for CarSim 8.0.
Jun 06, 08. <NAME>. created, based on previous version that used a structure.
*/
// loa... |
//Yamaha YM7101
struct VDP : Thread {
Node::Object node;
Node::Video::Screen screen;
Node::Setting::Boolean overscan;
struct Debugger {
//debugger.cpp
auto load(Node::Object) -> void;
struct Memory {
Node::Debugger::Memory vram;
Node::Debugger::Memory vsram;
Node::Debugger::Memor... |
/*++
Copyright (c) 1993-2002 Microsoft Corporation
Module Name:
eventlog.cpp
Abstract:
This file contains all functions that access the application event log.
Author:
<NAME> (wesw) 1-May-1993
Environment:
User Mode
--*/
#include "pch.cpp"
_TCHAR * AddString( _TCHAR... |
//
// Created by 宋庭聿 on 2021/11/12.
//
#include "rtc_publisher.h"
void RtcPublisher::setUp()
{
Configuration* config = &rtc_config;
string stunServer = "stun:stun.l.google.com:19302";
cout << "Stun server is " << stunServer << endl;
rtc_config.iceServers.emplace_back(stunServer);
rtc_config.disabl... |
/*
This file is part of cpp-ethereum.
cpp-ethereum 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 License, or
(at your option) any later version.
cpp-ethereum is distributed in the... |
#include "config.h"
#ifdef __linux__
#include "contain/contain.h"
#endif
#include "aws.h"
#include "cgroup.h"
#include "cpufreq.h"
#include "disk.h"
#include "gpumetrics.h"
#include "logger.h"
#include "ntp.h"
#include "nvml.h"
#include "perfmetrics.h"
#include "proc.h"
#include "tagger.h"
#include "backward.hpp"
#incl... |
// QueryDlg.cpp : Implementation of CQueryDlg
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
#include "stdafx.h"
#include "QueryDlg.h"
// Commonly used metadata names
WCHAR* g_pszAttrNames[] =
{
L"Abstract",
L"AcquisitionTime",
L"AlbumArtistSortOrder",
L"AlbumID",
... |
/*
* Copyright (C) 2012 Open Source Robotics 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 appl... |
/*
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include <iterator>
#include "particle_filter.h"
using namespace std;
void Par... |
#include <uWS/uWS.h>
#include <ostream>
#include <iostream>
#include <string>
#include "json.hpp"
#include "PID.h"
#include "TwiddleOpt.h"
#include <cmath>
#include <iomanip>
#include <vector>
#include <numeric>
// for convenience
using nlohmann::json;
using namespace std;
using std::ostream;
using std::pair;
constex... |
//
// plogin.cpp
// Project Spitfire
//
// Copyright (c) 2014 Daizee (<EMAIL> at gmail dot com)
//
// This file is part of Spitfire.
//
// 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 wit... |
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2000-2010 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2016 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of... |
#include "math.h"
#include "ros/ros.h"
#include "geometry_msgs/Vector3.h"
#include "geometry_msgs/Quaternion.h"
#include "tf/transform_datatypes.h"
#include "sensor_msgs/Imu.h"
#include "iostream"
#include <string>
#include <std_msgs/Float32MultiArray.h>
#include <ekf.h>
#include <car_model_6D.h>
#includ... |
#include "Api.h"
#include "ApiFunction.h"
#include "stringsearch/SuffixSort.hpp"
#include "stringsearch/Search.hpp"
#include <iostream>
#include <chrono>
#include <iomanip>
#include <locale>
#include <codecvt>
#include <algorithm>
#include <sstream>
#include "MappingIterator.h"
#include "ApiDefinitions.h"
using names... |
#include "CvTracker.h"
#define BUFFERW 160
#define BUFFERH 120
ofx::clayblocks::CvTracker::Blob::Blob(){
label = 0;
position.x = -1.0f;
position.y = -1.0f;
velocity.x = 0.0f;
velocity.y = 0.0f;
boundaries = ofRectangle( 0, 0, 0, 0 );
}
void ofx::clayblocks::CvTracker::onSimulate( bool & valu... |
//
// Created by nima on 02/11/17.
//
#include "AugmentedCamera.h"
#include "IntrinsicCalibrationCharuco.h"
#include <pwd.h>
#include <custom_conversions/Conversions.h>
//#include <sys/stat.h>
//inline bool FileExists (const std::string& name) {
// struct stat buffer;
// return (stat (name.c_str(), &buffer) ==... |
/*
* Copyright (C) 2013-2014, Computing Systems Laboratory (CSLab), NTUA.
* Copyright (C) 2013-2014, <NAME>
* All rights reserved.
*
* This file is distributed under the BSD License. See LICENSE.txt for details.
*/
/**
* \file Bench.cpp
* \brief Benchmarking interface
*
* \author Computing Systems Laboratory... |
#pragma once
#include "common.hpp"
#include "vertex_buffer.hpp"
#include "programs.hpp"
#include "view_data.hpp"
#include <functional>
struct model_material {
float smooth; // for phong, range is (0, inf)
};
struct module_models {
enum model_type {
model_unknown = 0,
model_tri,
model_sphere,
mod... |
/***************************************************************************
Cannonball Main Entry Point.
Copyright <NAME>.
See license.txt for more details.
***************************************************************************/
// Error reporting
#include <iostream>
// SDL Library
#include <SD... |
#include "../Headers/ImageMaskSimplify.hpp"
void fm::MaskSimplify(Mask__& mask,
const int& maxCompNum,
const int& minCompThickness,
const int& maxHolesNum,
const int& minHolesThickness)
{
MaskComponentsReduce(mask, maxCompNum, ... |
#include <iostream>
#include <string>
#include <fstream>
#include <ios>
#include <array>
#include <vector>
#include <cstring>
#include "../../app/include/util.h"
#include "../../app/include/jgw_compile_exec.h"
#include "../../app/include/structure.h"
#include "../../app/include/ccm.h"
std::string source_code_complets... |
/**
** A Template for developing new terminal application
**/
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <errno.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
/** These two files are... |
#include <cstdio>
#include <cstdlib>
#include <cstring> // strdup
#include "log.h"
#include "tools.h"
#include "frameheaders.h"
#include "moduleconfiguration.h"
#define DEFAULT_SUPERVIZION_PORT 5432
#define DEFAULT_SUPERVIZION_IP "::1"
#define GET_INT____FROM_PARAM(a) try { \
... |
#include "planetView.hpp"
//----------CONSTRUCTORS----------
planetView::planetView(sf::RenderWindow* win, spaceship* spc, gameplay* actGame, galaxy* glx, planetObj* pln) :
playground(win), restartViewer(false), changeViewer(false), Galaxy(glx), Gameplay(actGame), Planet(pln), Player(spc), bunkers(std::lis... |
// BEGIN CUT HERE
// END CUT HERE
#line 5 "TaroCards.cpp"
#include <cstdlib>
#include <cctype>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include <time.h>
#include <string.h>
/* Period parameters */
#define N 624
#define M 397
#define MATRIX_A 0x9908b0df /* constant vector a */
#define UPPER_MASK 0x80000000 /* most significant w-r bits */
#define LOWER_MASK 0x7fffffff /* l... |
/*
* The MIT License (MIT)
* Copyright (c) 2018, <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,
*... |
#include <iostream>
using namespace std;
// (Friend step 1) Forward Declaration
class FeetInches;
// (Friend step 2) Forward Declaration of Friend Function
ostream &operator << (ostream &, const FeetInches &);
istream &operator >> (istream &, FeetInches &);
class FeetInches {
int feet; // To hold a number of fee... |
// Copyright 2021 AI Redefined Inc. <<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/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
//
// main.cpp
// csvsqldb
//
// Copyright (C) 2015 <NAME>
//
// 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 License, or
// (at your option) any later version.... |
#include "ground.hpp"
#include <random>
#include <cmath>
#include <cppitertools/itertools.hpp>
#include <glm/gtx/fast_trigonometry.hpp>
#include <glm/gtx/hash.hpp>
#include <unordered_map>
float WATER_HEIGHT = 0.1f;
float meshHeight = 1;
int xMapChunks = 10;
int yMapChunks = 10;
int chunkWidth = 12;
int chunkHeight =... |
/*
* Copyright (c) 2018 Spotify AB.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License,... |
#include "TopQuarkAnalysis/TopJetCombination/interface/TtFullLepHypothesis.h"
#include "AnalysisDataFormats/TopObjects/interface/TtFullLepEvtPartons.h"
#include "DataFormats/Candidate/interface/LeafCandidate.h"
#include "DataFormats/Math/interface/deltaR.h"
class TtFullLepHypGenMatch : public TtFullLepHypothesis {
pu... |
/****************************************************************************
Sets VGA-compatible video modes without using the BIOS
<NAME> <<EMAIL>> http://my.execpc.com/~geezer
Release date: ?
This code is public domain (no copyright).
You can do whatever you want with it.
To do:
- more registers dumps, for various ... |
/**
* @file client.cpp
* @author <NAME>
*
* @brief CORBA C++11 client ami test
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
#include "ace/Get_Opt.h"
#include "ace/Task.h"
#include "ami_testAmiC.h"
#include <thread>
#include "testlib/taox11_testlog.h"
const ACE_TCHAR *ior = ACE_TEXT("file://ser... |
#include <ctime>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <list>
#include <map>
using namespace std;
#define OUTPUT_DEBUG1(TARGET0) \
cerr << #TARGET0 << " == " ... |
/**
* @file JobDispatcher.hpp
* @brief The Implementation for some abstract JobDispatcher
* @authors <NAME>
* @date Created on June 21, 2021
*/
#include "JobDispatcher.hpp"
#include "ObjectPool.hpp"
#include "JobData.hpp"
#include "JobTask.hpp"
#include "MessageQueue.hpp"
#include "Semaphore.hpp"
//#include <vector>... |
//
// kern_api.cpp
// Lilu
//
// Copyright © 2016-2017 vit9696. All rights reserved.
//
#include <Headers/kern_config.hpp>
#include <Headers/kern_api.hpp>
#include <IOKit/IOLib.h>
#include <IOKit/IORegistryEntry.h>
LiluAPI lilu;
void LiluAPI::init() {
access = IOSimpleLockAlloc();
}
void LiluAPI::deinit() {
i... |
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <TlHelp32.h>
#include <comdef.h>
#include <cstdio>
#include <string>
/// <summary>
/// Displays a message, followed by the descriptor for a win32 error code
/// </summary>
/// <param name="msg">: message to display, precedes error description</param>
/// <param... |
/*************************************************************************/
/* utils.cpp */
/*************************************************************************/
#include "utils.h"
#include "core/string/string_builder.h"
#include "scene/resources/surface_t... |
/*
The MIT License (MIT)
Copyright (c) 2016 British Broadcasting Corporation.
This software is provided by Lancaster University by arrangement with the BBC.
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... |
#include "NormalLightingRenderer.h"
#include <QDebug>
#include <QPainter>
#include <cmath>
#include <QMatrix4x4>
NormalLightingRenderer::NormalLightingRenderer()
: Renderer()
, m_lightDirection(0.0f, 0.0f, 1.0f)
{
}
NormalLightingRenderer::~NormalLightingRenderer()
{
}
void NormalLightingRenderer::drawTriang... |
/*
* deck.cpp
*
* FreeCell game deck class implementation
*
* For FreeCell Solver
*
* Copyright (C) <NAME>, 2011
*/
#include <puzzle/reorderer.h>
#include "deck.h"
#include "cardset.h"
bool Deck::isAutoComplete() const {
for (unsigned i = 0; i < ColumnCount; i++) {
if (!stacks[i].isOrdered())
... |
#include "vector.h"
#include "texture.h"
#include "mesh.h"
#include "utilities.h"
#include <iostream>
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <GLUT/glut.h>
#else
#include <GL/gl.h>
#include <GL/glut.h>
#include <GL/glext.h>
#define GL_GLEXT_PROTOTYPES
#endif
using namespace std;
// Some global variables:
int... |
#include "../../include/encoders/video_encoder.h"
#include <iostream>
#include <cstdlib>
#include <cstdint>
static void add_stream(output_stream *ostream, AVFormatContext *format_ctx,
AVCodec **codec, enum AVCodecID codec_id) {
AVCodecContext *codec_ctx;
*codec = avcodec_find_encoder(c... |
#include <gfx/gfx.hpp>
#include <iostream>
#include <regex>
#include <unordered_set>
auto gradient_image(const gfx::himage& image, int window_size = 5)
{
const float sigma = 1.f;
const glm::dvec4 lum = glm::dvec4{1, 1, 1, 1};
gfx::himage df_img(image.pixel_format(), image.extents());
const auto p... |
#ifdef __unix__
# include <poll.h>
#endif
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include "console.h"
#include "context.h"
pid_t Console::GetPid() const {
return pid_;
}
void Console::ResetPid() {
pid_ = -1;
}
void Console::HandleSurfaceChange(XImage *surface) {
surface_ = surface;
}
void ... |
/*
* Copyright 2006-2010, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Author:
* <NAME> <<EMAIL>>
*/
#include "defines.h"
#include "PasteOMatic.h"
#include "PasteOMaticView.h"
#include "PasteOMaticPaster.h"
#include "PasterPastebinCa.h"
#include <Application.h>
#i... |
// coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2009, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... |
#include "trisetinformation.h"
TrisetInformation::TrisetInformation() { clear(); }
void
TrisetInformation::clear()
{
filename.clear();
position = Vec(0,0,0);
scale = Vec(1,1,1);
color = Vec(1,1,1);
cropcolor = Vec(0,0,0);
opacity = 1;
ambient = 0;
diffuse = 1;
specular = 1;
pointMode = true;
poi... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofBackground(250);
gcode.setup(100);
gcode_red.setup(100);
gcode_red.demo_col = ofColor::red;
show_pnts = false;
show_max_dist = false;
show_field = true;
show_grid = true;
... |
#include "GameDataManager.h"
#include "Server.h"
#include "time.h"
GameDataManager::GameDataManager(GameData * gdata) {
gameData = gdata;
hAccessMutex = CreateMutex(NULL, FALSE, NULL);
if (hAccessMutex == NULL)
{
throw 1;
}
hGameEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
if (hGameEvent == NU... |
/**
* @file main.cpp
* @author <NAME>
*
* @brief Testing the ddsx11 logging formatters.
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
#include "idl/dds_dcpsC.h"
#include <iostream>
#include "tests/testlib/ddsx11_testlog.h"
class MyEntity
: public IDL::traits<DDS::Entity>::base_type
{
public:
... |
#include "palFluid.h"
#include "palFactory.h"
#include "palCollision.h"
#include <memory.h>
FACTORY_CLASS_IMPLEMENTATION(palDampendShallowFluid);
#define READBUFFER(x,i,j) x[(i)+(j)*m_DimX]
#define SETBUFFER(x,i,j,v) x[(i)+(j)*m_DimX]=v
//todo: try multi-level fluid
//todo: translate
palDampendShallowFluid::palDamp... |
#include "ros/ros.h"
#include <iostream>
#include "mavlink_message/set_att_offboard.h"
#include "mavlink_message/PositionCommand.h"
#include "mavlink_message/att_onboard.h"
#include "geometry_msgs/QuaternionStamped.h"
#include "nav_msgs/Odometry.h"
#include "Eigen/Geometry"
#include "rotation.h"
#include <iostream>
#in... |
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2013 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundat... |
#include "stdafx.h"
// General
#include "WorldServer.h"
namespace
{
enum ChatMsg : uint8
{
CHAT_MSG_ADDON = 0xFF, // -1
CHAT_MSG_SYSTEM = 0x00,
CHAT_MSG_SAY = 0x01,
CHAT_MSG_PARTY = 0x02,
CHAT_MSG_RAID = 0x03,
CHAT_MSG_GUILD = 0x04,
CHAT_MSG_OFFICER = 0x05,
CHAT_MSG_YELL = 0x06,
CHAT_MSG_WHISPER = 0x07,
CHA... |
/***************************************
CountGeneModel_main.cpp
2013 - <NAME>
Juenger Laboratory
Section of Integrative Biology
The University of Texas at Austin
<EMAIL>
Unlicensed, <http://unlicense.org/>
***************************************/
#include "CountGeneModel.h"
using namespace std;
// De... |
#include "sp_segmenter/utility/utility.h"
pcl::visualization::PCLVisualizer::Ptr viewer;//(new pcl::visualization::PCLVisualizer ());
pcl::PointCloud<PointT>::Ptr CropCloud(const pcl::PointCloud<PointT>::Ptr scene, float elev = 0.03, float z_max = 1.3, float z_min = 0.1, float x_span = 0.5, float y_span = 0.5)
{ ... |
/* Winamp plugin for ".mpc Musepack", based on miniSDK by Nullsoft */
/* by <NAME>, contact: <EMAIL> */
/* --------- ".mpc Musepack" is a registered trademark ---------- */
#include <DataIO.h>
/************************ DEFINES ************************/
//#define WINAMP
//#define WM_WA_MPEG_EOF (WM_USER + ... |
#include "mex.h"
#include "ed247_interface.h"
#include "tools.h"
#define N_FIELDNAMES 10
#define MAX_STRING_SIZE 20
void fillStructure(mxArray *S, int index, signal_characteristics_t signal);
/* The gateway function */
void mexFunction( int nlhs, mxArray *plhs[],
int nrhs, const mxArray *prhs[])
{
char* filen... |
// @COPYRIGHT@
// Licensed under MIT license.
// See LICENSE.TXT file in the project root for more information.
// ==============================================================
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <iostream>
#include <unistd.h>
#include <assert.h>
#include <string>
#inc... |
///**
// * particle_filter.cpp
// *
// * Created on: Dec 12, 2016
// * Author: <NAME>
// */
//
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using std::... |
#include <assert.h>
#include <math.h>
#include <iostream>
#include <QPainter>
#include <QImageReader>
#include <QDebug>
#include "texpyramid.h"
using namespace nx;
using namespace std;
bool TexLevel::init(int t, TexAtlas *c, QString filename) {
tex = t;
level = 0;
collection = c;
int side = collection->side;
QIm... |
#include "Game.hpp"
#include "util.hpp"
#include <iostream>
#include <chrono>
#include <thread>
Game::Game ():
window(sf::VideoMode(WIDTH, HEIGHT), GAME_NAME),
terrain() {
pause = false;
gotEvents = false;
cntEnemy01 = 0;
score = 0;
load(font, FONT_PATH);
load(textureSpaceship, SPACESHIP_PATH);
load... |
#include "../shellCPP.hpp"
namespace wows_shell {
enum sampleIndices { launchA, distance };
namespace fitPenetration {
enum index { distance, penetration };
}
inline int signum(double x) { return ((0.0) < x) - (x < (0.0)); }
template <auto Numerical>
void fitDrag(shell &toFit, std::vector<double> &sampleData,
... |
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <stdexcept>
#include <list>
#include <set>
#include <fstream>
#include <boost/program_options.hpp>
#include <boost/iostreams/device/file.hpp>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/fi... |
/*****************************************************************************
* Number Plate Recognition using SVM and Neural Networks
******************************************************************************
* by <NAME>, 5th Dec 2012
* http://blog.damiles.com
******************************************... |
//Created 13/06/2019
#include "DSwitch.h"
#include <iostream>
#include <assert.h>
#include <math.h>
#include <chrono>
#include "utility.h"
using namespace std;
/* This class represents the DSwitch of the MAERI architecture. Basically, the class contains to connections, which */
DSwitch::DSwitch(id_t id, std::stri... |
//
//
// MIT License
//
// Copyright (c) 2017 Stellacore Corporation.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to ... |
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <regex>
#include <set>
#include <map>
#include <tuple>
typedef std::pair<int, int> II;
typedef std::tuple<int, int, int> III;
typedef std::tuple<int, int, int, int> IIII;
const int IMMUNE = 1, INFECTION = -1;
const std::regex group... |
#include <uhd/utils/thread.hpp>
#include <uhd/utils/safe_main.hpp>
#include <uhd/usrp/multi_usrp.hpp>
#include <uhd/exception.hpp>
#include <uhd/types/tune_request.hpp>
#include <boost/program_options/option.hpp>
#include <boost/program_options.hpp>
#include <boost/format.hpp>
#include <boost/thread.hpp>
#include <boos... |
#include "baldr/admin.h"
namespace {
// For transforming ISO 3166-1 country codes from alpha2 to alpha3
std::unordered_map<std::string, std::string> iso2_to_iso3 =
{{"AD", "AND"}, {"AE", "ARE"}, {"AF", "AFG"}, {"AG", "ATG"}, {"AI", "AIA"}, {"AL", "ALB"},
{"AM", "ARM"}, {"AO", "AGO"}, {"AQ", "ATA"}, {"AR", "A... |
#include "PrismPrecompiledHeader.h"
#include "Entity.h"
#include "Components.h"
#include "SceneSerializer.h"
#include "yaml-cpp/yaml.h"
#include <fstream>
namespace YAML
{
template<>
struct convert<glm::vec3>
{
static Node encode(const glm::vec3& rhs) //Encodes our Vec3 into 3 seperate float values.
{
Node n... |
/*
* Copyright (c) 2009,2010 Jice
* 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 conditi... |
#include "rdma_two_sided_server_op.h"
RdmaTwoSidedServerOp::RdmaTwoSidedServerOp()
{
}
RdmaTwoSidedServerOp::~RdmaTwoSidedServerOp()
{
}
void RdmaTwoSidedServerOp::server_send_message(struct rdma_cm_id *id)
{
struct conn_context *ctx = (struct conn_context *)id->context;
struct ibv_send_wr wr, *bad_wr = NULL... |
// <NAME> "Damdoshi"
// Hanged Bunny Studio 2014-2018
//
// Lapin library
#include <stdio.h>
#include "lapin_private.h"
#define LINEMEM_SIZE 512
struct cstring
{
const char *str;
size_t len;
};
static int get_unicode_len(const char *str)
{
if (!(*str & 0x80)) // Unicode character
return (1);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.