repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
sjbarigye/CPP_Primer
chap19/Page840_Screen.h
// Screen header from exercise 7.29. Fulfilment move operation. #ifndef PAGE840_SCREEN_H #define PAGE840_SCREEN_H #include <iostream> #include <sstream> #include <string> class Screen{ friend std::ostream& operator<<(std::ostream&, const Screen&); public: typedef std::string::size_type pos; // Action is a p...
sjbarigye/CPP_Primer
chap16/Exer16_07_size.h
<filename>chap16/Exer16_07_size.h #ifndef EXER16_07_SIZE_H #define EXER16_07_SIZE_H template <typename T, unsigned N> inline constexpr unsigned size(const T(&arr)[N]) { return N; } #endif
sjbarigye/CPP_Primer
chap13/Exer13_18.h
#include <iostream> #include <string> class Employee { public: Employee() : id(++count) {} Employee(const std::string& s) : name(s), id(++count){} Employee(const Employee& e) : name(e.name), id(++count) {} Employee& operator=(const Employee&); ~Employee() { --count; } private: std::string name; ...
sjbarigye/CPP_Primer
chap17/Exer17_03_TextQuery.h
<reponame>sjbarigye/CPP_Primer // TextQuery class header from exercise 12.30 #ifndef TEXT_QUERY_H #define TEXT_QUERY_H #include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include <map> #include <set> #include <memory> #include <tuple> std::string make_plural(size_t, const std:...
sjbarigye/CPP_Primer
chap16/Exer16_18.h
<reponame>sjbarigye/CPP_Primer template <typename T, typename U, typename V> void f1(T, U, V); // every template parameter must be preceded by keyword typename or class template <typename T> T f2(int &T); // can not reuse the name that are declared as a template parameter name inline template <typename T> T foo(T, unsi...
sjbarigye/CPP_Primer
chap13/Exer13_26_StrBlob.h
<filename>chap13/Exer13_26_StrBlob.h<gh_stars>10-100 #ifndef EXER13_26_H #define EXER13_26_H #include <string> #include <vector> #include <initializer_list> #include <memory> #include <stdexcept> class StrBlobPtr; class ConstStrBlobPtr; class StrBlob { friend class StrBlobPtr; friend class ConstStrBlobPtr; public: ...
sjbarigye/CPP_Primer
chap16/Exer16_02_compare.h
<filename>chap16/Exer16_02_compare.h<gh_stars>10-100 #ifndef EXER16_02_COMPARE_H #define EXER16_02_COMPARE_H template <typename T> int compare(const T &v1, const T &v2) { if(v1 < v2) return -1; if(v2 < v1) return 1; return 0; } #endif
sjbarigye/CPP_Primer
chap16/Exer16_41.h
<gh_stars>10-100 #ifndef EXER16_41_SUM_H #define EXER16_41_SUM_H // using trailing return type, the return type is guaranteed to hold the result of sum template <typename T1, typename T2> auto sum(T1 lhs, T2 rhs) -> decltype(lhs + rhs) { return lhs + rhs; } #endif
sjbarigye/CPP_Primer
chap16/Exer16_63_64_count.h
#ifndef EXER16_63_COUNT_H #define EXER16_63_COUNT_H #include <cstring> #include <iostream> #include <vector> // use two template arguments for compatible but different types template <typename T1, typename T2> typename std::vector<T1>::size_type count(const std::vector<T1> &v, const T2 &t) { typename std::vector<T1...
sjbarigye/CPP_Primer
chap14/Exer14_27_StrBlob.h
#ifndef STRBLOB_H #define STRBLOB_H #include <cstddef> #include <string> #include <vector> #include <initializer_list> #include <memory> #include <stdexcept> using std::size_t; using std::string; using std::vector; using std::initializer_list; using std::shared_ptr; using std::make_shared; using std::weak_ptr; using st...
sjbarigye/CPP_Primer
chap16/Exer16_61_shared_ptr.h
<filename>chap16/Exer16_61_shared_ptr.h #ifndef EXER16_61_SP_H #define EXER16_61_SP_H #include <cstddef> #include <iostream> #include <utility> #include <functional> #include <utility> #include <stdexcept> #include "Exer16_28_unique_ptr.h" template <typename T> class shared_ptr; template <typename T> void swap(shared_p...
sjbarigye/CPP_Primer
tools/InsertAnswer.h
#ifndef TOOL_INSERT_ANSWER_H #define TOOL_INSERT_ANSWER_H #ifndef UNICODE #define UNICODE #endif #ifndef _UNICODE #define _UNICODE #endif #include <windows.h> #include <cstddef> #include <string> #include <vector> #include <map> #pragma comment(lib, "User32.lib") #ifndef UNICODE typedef std::string String; #else ...
sjbarigye/CPP_Primer
chap13/Exer13_22_HasPtr.h
#ifndef HASPTR_H #define HASPTR_H #include <iostream> #include <string> class HasPtr{ public: HasPtr(const std::string &s = std::string()) : ps(new std::string(s)), i(0) { i = ps->size(); } // here, we can use private members directly! Because this is a member // function of class HasPtr. They can access an...
sjbarigye/CPP_Primer
chap19/Exer19_26.h
<filename>chap19/Exer19_26.h #ifndef EXER19_26_LINKAGE_H #define EXER19_26_LINKAGE_H int compute(int*, int); #endif
sjbarigye/CPP_Primer
chap16/Exer16_28_shared_ptr.h
#ifndef EXER16_28_SP_H #define EXER16_28_SP_H #include <cstddef> #include <iostream> #include <utility> #include <functional> #include <stdexcept> #include "Exer16_28_unique_ptr.h" template <typename T> class shared_ptr; template <typename T> void swap(shared_ptr<T>&, shared_ptr<T>&); template <typename T> class shared...
sjbarigye/CPP_Primer
chap14/String.h
<reponame>sjbarigye/CPP_Primer // Inheritance: exercise 13.55. // Note: see Exer19_18.cpp for the explanation of the problem issued in note. #ifndef STRING_SIMPLE_H #define STRING_SIMPLE_H #include <iostream> #include <cstddef> #include <cstring> #include <utility> #include <memory> #include <algorithm> using std::ostr...
sjbarigye/CPP_Primer
chap16/Exer16_28_unique_ptr.h
#ifndef EXER16_28_UP_H #define EXER16_28_UP_H #include <cstddef> #include <utility> #include <functional> #include <stdexcept> class DefaultDeleter { public: // as with any function template, the type of T is deduced by the compiler template <typename T> void operator()(T *p) const { delete p; } }; // d...
sjbarigye/CPP_Primer
chap16/Exer16_20_print_iter.h
<gh_stars>10-100 #ifndef EXER16_20_PRINT_ITER_H #define EXER16_20_PRINT_ITER_H #include <iostream> template <typename C> void print(const C &c) { for(auto iter = c.begin(); iter != c.end(); ++iter) std::cout << *iter << " "; } #endif
sjbarigye/CPP_Primer
chap12/Exer12_27_TextQuery.h
// Warning: this header has inherent error. See notes in Exer12_27.cpp. #include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include <map> #include <set> #include <algorithm> #include <memory> class QueryResult; std::ostream& print(std::ostream&, const QueryResult&); class Text...
sjbarigye/CPP_Primer
chap16/Exer16_06_begin_end.h
<filename>chap16/Exer16_06_begin_end.h #ifndef EXER16_06_H #define EXER16_06_H template <typename T, unsigned N> inline T* begin(T (&arr)[N]) // the parameter cannot be const, or we cannot make T* bound to arr { return arr; } template <typename T, unsigned N> inline T* end(T (&arr)[N]) // the parameter cannot be co...
sjbarigye/CPP_Primer
chap15/Exer15_11_Bulk_quote.h
#ifndef BULK_QUOTE_H #define BULK_QUOTE_H #include <cstddef> #include <string> #include "Exer15_11_Quote.h" class Bulk_quote : public Quote { // Bulk_quote inherits from Quote public: Bulk_quote() = default; Bulk_quote(const std::string&, double, std::size_t, double); // overrides the base version in order ...
sjbarigye/CPP_Primer
chap19/Exer19_06_07_08_Query.h
// Query class family from exercise 15.41 and 15.42. // abstract class acts as a base for concrete query types; all members are private #ifndef QUERY_BASE_H #define QUERY_BASE_H #include <cstddef> #include <string> #include <utility> #include "Exer19_06_07_08_TextQuery.h" class Query_base { friend void cast_test();...
TernenceHsu/harfbuzz-icu-freetype
icu/common/locmap.c
/* ********************************************************************** * Copyright (C) 1996-2013, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * * Provides functionality for mapping between * LCID and...
TernenceHsu/harfbuzz-icu-freetype
icu/common/ucase_props_data.h
/* * Copyright (C) 1999-2013, International Business Machines * Corporation and others. All Rights Reserved. * * file name: ucase_props_data.h * * machine-generated by: icu/tools/unicode/c/genprops/casepropsbuilder.cpp */ #ifndef INCLUDED_FROM_UCASE_CPP # error This file must be #included from ucase.cpp only...
TernenceHsu/harfbuzz-icu-freetype
config.h
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #ifdef HAVE_STUB_GETENV // Stub out getenv as not all platforms support it #define getenv(name) 0 #endif // HAVE_STUB_GETENV
TernenceHsu/harfbuzz-icu-freetype
icu/common/uchar_props_data.h
/* * Copyright (C) 1999-2013, International Business Machines * Corporation and others. All Rights Reserved. * * file name: uchar_props_data.h * * machine-generated by: icu/tools/unicode/c/genprops/corepropsbuilder.cpp */ #ifndef INCLUDED_FROM_UCHAR_C # error This file must be #included from uchar.c only. #e...
JimmyCushnie/runtime
src/mono/mono/mini/interp/transform.h
<filename>src/mono/mono/mini/interp/transform.h<gh_stars>1-10 #ifndef __MONO_MINI_INTERP_TRANSFORM_H__ #define __MONO_MINI_INTERP_TRANSFORM_H__ #include <mono/mini/mini-runtime.h> #include <mono/metadata/seq-points-data.h> #include "interp-internals.h" #define INTERP_INST_FLAG_SEQ_POINT_NONEMPTY_STACK 1 #define INTERP...
JimmyCushnie/runtime
src/coreclr/debug/createdump/crashinfo.h
<gh_stars>1-10 // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #ifdef __APPLE__ #include "../dbgutil/machoreader.h" #else #include "../dbgutil/elfreader.h" // typedef for our parsing of the auxv variables in /proc/pid/auxv. #if T...
JimmyCushnie/runtime
src/coreclr/vm/comcallablewrapper.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================ ** ** Header: Com Callable wrapper classes ** ===========================================================*/ #ifndef...
JimmyCushnie/runtime
src/mono/mono/mini/mini-ppc.c
/** * \file * PowerPC backend for the Mono code generator * * Authors: * <NAME> (<EMAIL>) * <NAME> (<EMAIL>) * <NAME> <<EMAIL>> * * (C) 2003 Ximian, Inc. * (C) 2007-2008 <NAME> */ #include "mini.h" #include <string.h> #include <mono/metadata/abi-details.h> #include <mono/metadata/appdomain.h> #include...
JimmyCushnie/runtime
src/coreclr/vm/encee.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // EnCee.h // // // Defines the core VM data structures and methods for support EditAndContinue // // =============================================================================...
JimmyCushnie/runtime
src/coreclr/jit/emitxarch.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #if defined(TARGET_XARCH) /************************************************************************/ /* Public inline informational methods */ /****...
JimmyCushnie/runtime
src/coreclr/vm/diagnosticserveradapter.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #ifndef __DIAGNOSTIC_SERVER_ADAPTER_H__ #define __DIAGNOSTIC_SERVER_ADAPTER_H__ #if defined(FEATURE_PERFTRACING) && !(CROSSGEN_COMPILE) #include "ds-server.h" class DiagnosticServ...
JimmyCushnie/runtime
src/mono/mono/mini/interp/mintops.h
/** * \file */ #ifndef __INTERPRETER_MINTOPS_H #define __INTERPRETER_MINTOPS_H #include <glib.h> typedef enum { MintOpNoArgs, MintOpShortInt, MintOpUShortInt, MintOpInt, MintOpLongInt, MintOpFloat, MintOpDouble, MintOpBranch, MintOpShortBranch, MintOpSwitch, MintOpMethodToken, MintOpFieldToken, MintOp...
JimmyCushnie/runtime
src/coreclr/inc/clrconfig.h
<filename>src/coreclr/inc/clrconfig.h // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // -------------------------------------------------------------------------------------------------- // CLRConfig.h // // // Unified method ...
JimmyCushnie/runtime
src/coreclr/vm/stublink.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // STUBLINK.H // // // A StubLinker object provides a way to link several location-independent // code sources into one executable stub, resolving references, // and choosing the sh...
JimmyCushnie/runtime
src/tests/profiler/native/transitions/transitions.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma once #include "../profiler.h" class Transitions : public Profiler { public: Transitions(); virtual ~Transitions() = default; static GUID GetClsid(); virtua...
JimmyCushnie/runtime
src/libraries/Native/Unix/System.Security.Cryptography.Native.Android/pal_cipher.c
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "pal_cipher.h" #include "pal_utilities.h" enum { CIPHER_NONE = 0, CIPHER_HAS_VARIABLE_TAG = 1, CIPHER_REQUIRES_IV = 2, }; typedef uint32_t CipherFlags; typedef...
JimmyCushnie/runtime
src/mono/mono/component/debugger-stub.c
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // #include <config.h> #include "mono/mini/mini-runtime.h" #include "debugger-agent.h" #include <mono/component/debugger.h> static bool debugger_avaliable (void); static void stu...
JimmyCushnie/runtime
src/libraries/Native/Unix/System.Security.Cryptography.Native.Android/pal_cipher.h
<gh_stars>1-10 // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma once #include "pal_jni.h" #define TAG_MAX_LENGTH 16 #define CIPHER_ENCRYPT_MODE 1 #define CIPHER_DECRYPT_MODE 2 typedef struct CipherInfo CipherInfo; type...
JimmyCushnie/runtime
src/libraries/Native/Unix/System.Native/pal_signal.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma once #include "pal_compiler.h" #include "pal_types.h" /** * Initializes the signal handling, called by InitializeTerminalAndSignalHandling. * * Returns 1 on success; oth...
JimmyCushnie/runtime
src/mono/mono/mini/aot-compiler.c
<gh_stars>1-10 /** * \file * mono Ahead of Time compiler * * Author: * <NAME> (<EMAIL>) * <NAME> (<EMAIL>) * <NAME> (<EMAIL>) * * (C) 2002 Ximian, Inc. * Copyright 2003-2011 Novell, Inc * Copyright 2011 Xamarin Inc (http://www.xamarin.com) * Licensed under the MIT license. See LICENSE file in the pro...
JimmyCushnie/runtime
src/coreclr/zap/zaplog.h
<filename>src/coreclr/zap/zaplog.h // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /* * Hook IfFailThrow calls to do some logging when exceptions are thrown. * */ #ifndef __ZAPLOG_H__ #define __ZAPLOG_H__ #undef IfFailThrow ...
AllanBastos/SO
Roteiro 2 em C/prodconssync.c
/* * Producer/Consumer demo using POSIX threads without synchronization * Linux version * MJB Apr'05 */ #include <pthread.h> #include <stdlib.h> #include <stdio.h> /* buffer using a shared integer variable */ typedef struct { int writeable; /*true/false*/ int sharedData; int finish; /*true/false*/ } buffer; ...
AllanBastos/SO
Roteiro 3/main.c
<filename>Roteiro 3/main.c #include <stdio.h> #include <pthread.h> #include <unistd.h> #include <stdlib.h> #define N 5 #define LEFT (i+N-1)%N #define RIGHT (i+1)%N #define THINKING 0 #define HUNGRY 1 #define EATING 2 #define CICLO_J 2 #define down pthread_mutex_lock #define up pthread_mute...
AllanBastos/SO
Roteiro 2 em C/joinEx.c
<filename>Roteiro 2 em C/joinEx.c<gh_stars>1-10 #include <pthread.h> #include <stdio.h> #include <stdlib.h> #define NTHRDS 3 void * theWork(void * n) { //main function of the "worker thread" int i; double r = 0.0; for (i=0; i<1000000; i++) //do lots of work r += (double)random(); printf("Result: %e\n", r); ...
AllanBastos/SO
Roteiro 1/process_exercise/threaddemo.c
/* threaddemo.c */ /* Thread demonstration program. Note that this program uses a shared variable in an unsafe manner (eg mutual exclusion is not attempted!) */ #include <stdio.h> #include <stdlib.h> #include <pthread.h> int x = 50; /* a global (shared) variable */ const clock_t MAXDELAY = 2000000; void delay(c...
AllanBastos/SO
Roteiro 2 em C/simpleMutexEx.c
/* * Simple mutex demo using POSIX threads and mutexes (Linux version) * MJB Sep 07 */ #include <pthread.h> #include <stdlib.h> #include <stdio.h> #define NTHRDS 5 int sharedData = 0; pthread_mutex_t mutex; void delay(int secs) { //utility function time_t beg = time(NULL), end = beg + secs; do ; while (time...
AllanBastos/SO
Roteiro 2 em C/prodconsUnsync.c
/* * Producer/Consumer demo using POSIX threads without synchronization * Linux version * MJB Apr'05 */ #include <pthread.h> #include <stdlib.h> #include <stdio.h> /* buffer using a shared integer variable */ typedef struct { int writeable; /*true/false*/ int sharedData; } buffer; buffer theBuffer; /* global ...
arielszabo/YOLO3-4-Py
bridge.h
#if USE_CV == 1 #include <opencv2/opencv.hpp> #endif #if USE_GPU == 1 // Set GPU tag so darknet.h is imported with GPU features #define GPU #include <cuda_runtime.h> #endif #ifdef __cplusplus extern "C" { #endif // Include darknet as a C Library #include <darknet.h> #include <image.h> #ifdef __cplusp...
dylan-thinnes/solsys-functional
solsys-core/src/Primes/glue/msieve/glue.c
<gh_stars>1-10 #include <stdio.h> #include <stdint.h> #include <msieve.h> #include <malloc.h> #include <string.h> void get_random_seeds(uint32 *seed1, uint32 *seed2) { uint32 tmp_seed1, tmp_seed2; /* In a multithreaded program, every msieve object should have two unique, non-correlated seeds chosen for it ...
OpenLab-SI/ThinkSpeak-Arduino
ThingSpeak.h
<reponame>OpenLab-SI/ThinkSpeak-Arduino<gh_stars>1-10 #ifndef ThingSpeak_h #define ThingSpeak_h #include "Arduino.h" #include "SPI.h" #include "Ethernet.h" class ThingSpeak { public: ThingSpeak(); ThingSpeak(String address); void setChannel(String key); void setTalkBack(int id, String key); voi...
zx96/3dshex
source/timing.c
<filename>source/timing.c #include "timing.h" /* * GetSystemTick function by xerpi */ u64 getSystemTick() { register unsigned long lo64 asm ("r0"); register unsigned long hi64 asm ("r1"); asm volatile ( "SVC 0x28" : "=r"(lo64), "=r"(hi64) ); return ((uint64_t)hi64<<32) | (uint64_t)lo64; }
zx96/3dshex
source/main.c
#define PI 3.14159265 #include <3ds.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> //memset #include "costable.h" #include "draw.h" #include "minlib.h" #include "timing.h" typedef u8 angle_t; int main(int argc, char **argv) { int i; //Generic iterator //Initi...
zx96/3dshex
include/draw.h
#ifndef DRAW_H #define DRAW_H #include <3ds.h> #include <stdbool.h> u16 getScreenWidth(u8* fb); bool isInBounds(u8* fb, s16 x, s16 y); void drawPixel(u8* fb, s16 x, s16 y, u8 r, u8 g, u8 b, u8 a); void drawLine(u8* fb, s16 x1, s16 y1, s16 x2, s16 y2, u8 r, u8 g, u8 b); void drawHLine(u8* fb, s16 row, s16 x1...
zx96/3dshex
include/costable.h
#ifndef TRIGTABLE_H #define TRIGTABLE_H double cosTable[256]; double sinTable[256]; #endif
zx96/3dshex
source/minlib.c
#include "minlib.h" void swap(s16 *n1, s16 *n2) { *n1 ^= *n2; *n2 ^= *n1; *n1 ^= *n2; } s16 absVal(s16 n) { if (n < 0) return -n; return n; }
zx96/3dshex
source/draw.c
<filename>source/draw.c #include <math.h> #include <stdbool.h> #include "draw.h" #include "minlib.h" u16 getScreenWidth(u8* fb) { if (fb == gfxGetFramebuffer(GFX_BOTTOM, 0, NULL, NULL)) { return 320; } else { return 400; } } bool isInBounds(u8* fb, s16 x, s16 y) { if (x < 0) return false; if (...
zx96/3dshex
include/minlib.h
<gh_stars>1-10 #ifndef MINLIB_H #define MINLIB_H #include <3ds.h> void swap(s16 *n1, s16 *n2); s16 absVal(s16 n); #endif
zx96/3dshex
include/timing.h
#ifndef TIMING_H #define TIMING_H #include <3ds.h> u64 getSystemTick(); #endif
rnnsilveira/CarthageExampleModule
CarthageExampleModule/CarthageExampleModule.h
<reponame>rnnsilveira/CarthageExampleModule<filename>CarthageExampleModule/CarthageExampleModule.h // // CarthageExampleModule.h // CarthageExampleModule // // Created by <NAME> on 06/12/19. // Copyright © 2019 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for Cartha...
DanielSaromo/PyDuino_Bridge
src/pyduino_bridge.h
/* pyduino_bridge.h - Library for transparent bidirectional communication between Python and Arduino. Arduino header file. /////////////////////////////////////////////////////////////////////////////////////////////////////////////// Author: <NAME>. Adapted from Robin2 code. /////////////////////////////////...
gleu/mods_since_analyze
mods_since_analyze.c
<reponame>gleu/mods_since_analyze<filename>mods_since_analyze.c<gh_stars>0 /*------------------------------------------------------------------------- * * mods_since_analyze.c * Expose the estimation of number of changed tuples since last analyze. * * * Copyright (c) 2013-2021, <NAME> (Dalibo), * <EMAIL> * ...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/pch.h
 #pragma once #include <wrl.h> #include <wrl/client.h> #include <dxgi1_4.h> #include <d3d11_3.h> #include <d2d1_3.h> #include <d2d1effects_2.h> #include <dwrite_3.h> #include <wincodec.h> #include <DirectXColors.h> #include <DirectXMath.h> #include <memory> #include <agile.h> // ghv : if want t...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/vhglib/VhgSystem.h
 #pragma once #include "..\Common\DeviceResources.h" #include "..\Content\HvySchlafliButtons.h" #include "..\Content\HvySkipNumButtons.h" #include "..\Content\HvyCheckBoxQuasiRegular.h" #include "DefTypes.h" #include "JPoincareDisk.h" namespace HvyDXBase { class VhgSystem { ...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/Content/HvySkipNumButtons.h
<reponame>GarrettVance/HyperbolicJoyce  #pragma once #include "..\Common\DeviceResources.h" #include "..\Common\StepTimer.h" #include "HvyWidgets.h" namespace HvyDXBase { class HvySkipNumButtons : public HvyWidgets { public: HvySkipNumButtons::HvySkipNumButtons( ...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/Content/HvyWidgets.h
 #pragma once #include "..\Common\DeviceResources.h" #include "..\Common\StepTimer.h" namespace HvyDXBase { class HvyWidgets { public: HvyWidgets::HvyWidgets( const std::shared_ptr<DX::DeviceResources>& p_deviceResources, const float& ...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/Content/Hvy3DScene.h
<reponame>GarrettVance/HyperbolicJoyce<gh_stars>0  #pragma once #include "..\Common\DeviceResources.h" #include "..\Common\StepTimer.h" #include "HvySchlafliButtons.h" #include "HvySkipNumButtons.h" #include "HvyCheckBoxQuasiRegular.h" #include "..\vhglib\VhgSystem.h" namespace HvyDXBase {...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/vhglib/JLine.h
 #pragma once #include "..\Common\DeviceResources.h" #include "DefTypes.h" namespace DJJ // <NAME>'s Java classes and methods; { class JLine // Class to realize hyperbolic geodesics, be they circular or be they straight. { public: JLine(); // default ctor doesn't do ...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/vhglib/JPoincareDisk.h
 #pragma once #include "..\Common\DeviceResources.h" #include "..\Content\HvySchlafliButtons.h" #include "..\Content\HvySkipNumButtons.h" #include "..\Content\HvyCheckBoxQuasiRegular.h" #include "DefTypes.h" #include "JPolygon.h" namespace DJJ // <NAME>'s Java classes and methods; { ...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/Content/Hvy2DHUD.h
<reponame>GarrettVance/HyperbolicJoyce  #pragma once #include <string> #include "..\Common\DeviceResources.h" #include "..\Common\StepTimer.h" namespace HvyDXBase { class Hvy2DHUD { public: Hvy2DHUD(const std::shared_ptr<DX::DeviceResources>& deviceResources); ...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/vhglib/EdgeODesic.h
<filename>HyperbolicJoyce/vhglib/EdgeODesic.h  #pragma once #include "..\Common\DeviceResources.h" #include "DefTypes.h" #include "JLine.h" namespace DJJ // <NAME>'s Java classes and methods; { class EdgeODesic { public: EdgeODesic(); EdgeODesic(EdgeOD...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/vhglib/JPolygon.h
 #pragma once #include "..\Common\DeviceResources.h" #include "DefTypes.h" #include "EdgeODesic.h" namespace DJJ // <NAME>'s Java classes and methods; { DJJ::HvyPlex ReflectPointInPoint(DJJ::HvyPlex preimage, DJJ::HvyPlex mirror); double HyperbolicDistanceFromEuclidea...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/HyperbolicJoyceMain.h
<filename>HyperbolicJoyce/HyperbolicJoyceMain.h #pragma once #include "Common\StepTimer.h" #include "Common\DeviceResources.h" #include "Content\Hvy3DScene.h" #include "Content\Hvy2DHUD.h" #include "Content\HvySchlafliButtons.h" #include "Content\HvySkipNumButtons.h" #include "Content\HvyCheckBoxQuasiRe...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/vhglib/BitmapUtil.h
<reponame>GarrettVance/HyperbolicJoyce<filename>HyperbolicJoyce/vhglib/BitmapUtil.h<gh_stars>0  #pragma once #include "..\Common\DeviceResources.h" #include "DefTypes.h" namespace HvyDXBase { // // generic method to create D2D1Bitmap from an Image File: //...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/Content/HvyCheckBoxQuasiRegular.h
 #pragma once #include "..\Common\DeviceResources.h" #include "..\Common\StepTimer.h" #include "HvyWidgets.h" namespace HvyDXBase { class HvyCheckBoxQuasiRegular : public HvyWidgets { public: HvyCheckBoxQuasiRegular::HvyCheckBoxQuasiRegular( const std::share...
GarrettVance/HyperbolicJoyce
HyperbolicJoyce/vhglib/DefTypes.h
<reponame>GarrettVance/HyperbolicJoyce  #pragma once #include <complex> #define GHV_OPTION_USE_DJJ_CHOPPER namespace DJJ // <NAME>'s Java classes and methods; { using HvyPlex = std::complex<double>; } // Closes namespace DJJ; namespace HvyDXBase { using HvyPlex ...
MobMonRob/ScrewRobotStudien
ros/src/dhbw_screw_localization/include/dhbw_screw_localization/PclScrew.h
#ifndef PCLSCREW_H_ #define PCLSCREW_H_ #include <pcl/common/common.h> #include <pcl/common/centroid.h> #include <pcl/common/transforms.h> class PclScrew { public: PclScrew(pcl::PointCloud<pcl::PointXYZ> pCloud, pcl::PointXYZ pointMin, pcl::PointXYZ pointMax, Eigen::Qu...
MobMonRob/ScrewRobotStudien
ros/src/dhbw_screw_localization/include/dhbw_screw_localization/PclEye.h
#ifndef PCLEYE_H_ #define PCLEYE_H_ #include <pcl_ros/point_cloud.h> #include "PclEyeParameters.h" #include "PclScrew.h" #include "PclScrewRecognitionTools.h" class PclEye { public: static PclEye* openUp(); PclEye* useTheseParameters(PclEyeParameters parameters); std::shared_ptr<PclScrew> toFindScrew...
MobMonRob/ScrewRobotStudien
ros/src/dhbw_screw_localization/include/dhbw_screw_localization/PclEyeParameters.h
<filename>ros/src/dhbw_screw_localization/include/dhbw_screw_localization/PclEyeParameters.h #ifndef PCLEYEPARAMETERS_H_ #define PCLEYEPARAMETERS_H_ #include <string> #include <vector> struct PclEuclideanClusterExtractionParameters { float tolerance; int minSize; int maxSize; }; enum PclPassThroughFieldN...
MobMonRob/ScrewRobotStudien
ros/src/dhbw_screw_localization/include/dhbw_screw_localization/PclScrewRecognitionTools.h
#ifndef PCLSCREWRECOGNITIONTOOLS_H_H #define PCLSCREWRECOGNITIONTOOLS_H_H #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl/filters/extract_indices.h> #include <pcl/segmentation/extract_clusters.h> #include <pcl/filters/passthrough.h> #include <pcl/sample_consensus/method_types.h> #include <pcl/s...
SharmagRit/device_xiaomi_whyred
gps/android/2.0/GnssMeasurement.h
<reponame>SharmagRit/device_xiaomi_whyred /* * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. * Not a Contribution */ /* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
SharmagRit/device_xiaomi_whyred
gps/android/2.0/location_api/GnssAPIClient.h
/* Copyright (c) 2017-2019, The Linux Foundation. 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 ...
SharmagRit/device_xiaomi_whyred
gps/location/ILocationAPI.h
<gh_stars>100-1000 /* Copyright (c) 2018-2020 The Linux Foundation. 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 * ...
SharmagRit/device_xiaomi_whyred
gps/pla/oe/loc_pla.h
<reponame>SharmagRit/device_xiaomi_whyred /* Copyright (c) 2014, 2020 The Linux Foundation. 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 ...
SharmagRit/device_xiaomi_whyred
gps/android/2.0/location_api/BatchingAPIClient.h
<reponame>SharmagRit/device_xiaomi_whyred /* Copyright (c) 2017-2019, The Linux Foundation. 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 ...
SharmagRit/device_xiaomi_whyred
gps/utils/LocTimer.h
/* Copyright (c) 2015, 2020 The Linux Foundation. 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 ...
SharmagRit/device_xiaomi_whyred
gps/utils/loc_log.h
<reponame>SharmagRit/device_xiaomi_whyred /* Copyright (c) 2011-2012, 2015, 2020 The Linux Foundation. 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 m...
SharmagRit/device_xiaomi_whyred
gps/android/2.0/MeasurementCorrections.h
<reponame>SharmagRit/device_xiaomi_whyred /* * Copyright (c) 2019-2020, The Linux Foundation. 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 reta...
SharmagRit/device_xiaomi_whyred
gps/android/2.1/location_api/GeofenceAPIClient.h
<reponame>SharmagRit/device_xiaomi_whyred /* Copyright (c) 2017-2020, The Linux Foundation. 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 ...
SharmagRit/device_xiaomi_whyred
gps/core/SystemStatusOsObserver.h
<gh_stars>100-1000 /* Copyright (c) 2015-2017, 2020 The Linux Foundation. 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 copyrigh...
SharmagRit/device_xiaomi_whyred
gps/location/location_interface.h
<gh_stars>100-1000 /* Copyright (c) 2017-2020 The Linux Foundation. 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 * ...
SharmagRit/device_xiaomi_whyred
gps/pla/android/loc_pla.h
<filename>gps/pla/android/loc_pla.h /* Copyright (c) 2014, 2020 The Linux Foundation. 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 ab...
SharmagRit/device_xiaomi_whyred
gps/utils/LocHeap.h
<filename>gps/utils/LocHeap.h /* Copyright (c) 2015, 2020 The Linux Foundation. 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 co...
zyndor/windows-dependencies
include/dali/preprocessor-definitions.h
/* * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * 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...
zyndor/windows-dependencies
include/dali/extern-definitions.h
/* * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * 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...
zyndor/windows-dependencies
include/dali-windows-dependencies.h
<reponame>zyndor/windows-dependencies #ifndef DALI_WINDOWS_DEPENDENCIES_H #define DALI_WINDOWS_DEPENDENCIES_H #include <dali/preprocessor-definitions.h> #include <dali/extern-definitions.h> #endif // DALI_WINDOWS_DEPENDENCIES_H
andimoto/stm32f1xx-cmake-cpp
stm32lib/tools/itm_write.c
#include "itm_write.h" #include "stm32f1xx.h" int printf(const char* format, ...) { char str[128]; char *s = str; // pointer for the buffer int ch_count = 0; va_list args; // holds args va_start(args, format); // format - last defined param name vsprintf(str, format, args); // formatting ...
klauty/uController
MEGA_RAMPS_MENU/Menu.h
const char *menu_setup[] = {"Criar Agendamento","Configurar relogio","Listar Agendamentos","<- Voltar" }; // id=1
bit4bit/mod_global_vars
mod_global_vars.c
<filename>mod_global_vars.c #include <switch.h> SWITCH_MODULE_LOAD_FUNCTION(mod_global_vars_load); SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_global_vars_shutdown); SWITCH_MODULE_DEFINITION(mod_global_vars, mod_global_vars_load, mod_global_vars_shutdown, NULL); static switch_status_t load_variables_from_config(void) { ch...