repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
GitDino/ObserverPattern
ObserverPatternDemo/ObserverPatternDemo/Model/DOCustomer.h
<gh_stars>0 // // DOCustomer.h // ObserverPatternDemo // // Created by 魏欣宇 on 2018/4/11. // Copyright © 2018年 Dino. All rights reserved. // #import <Foundation/Foundation.h> #import "SubscriptionServiceCenterProtocol.h" @interface DOCustomer : NSObject<SubscriptionServiceCenterProtocol> @end
Xithrius/learning-c
functions/main.c
<gh_stars>0 #include <stdio.h> #include <stdlib.h> typedef struct { int x; int y; } point; point *construct_point(int x, int y) { point *p = (point *)malloc(sizeof(point)); p->x = x; p->y = y; return p; } void move_point(point *p, int x, int y) { p->x += x; p->y += y; } void locate...
Xithrius/learning-c
linked-list/main.c
<reponame>Xithrius/learning-c #include <stdio.h> #include <stdlib.h> typedef struct node { int val; struct node *next; } node_t; void push_node(node_t *head, int val) { node_t *current = head; while (current->next != NULL) { current = current->next; } current->next = (node_t *)ma...
Xithrius/learning-c
strings/main.c
#include <stdio.h> #include <string.h> int main() { char *str = "testing"; printf("%s\n", str); printf("The first character: %c\n", str[0]); printf("All the characters in order:\n"); for (int i = 0; i < strlen(str); i++) { printf("%d: %c\n", i, str[i]); } return 0; }
Xithrius/learning-c
structs/main.c
#include <stdio.h> int main() { typedef struct { char *brand; int model; } vehicle; vehicle car; car.brand = "Ford"; car.model = 2007; printf("This '%s' is from %d.\n", car.brand, car.model); return 0; }
lululau/RaiseMan4RM
ib.xcodeproj/Stubs.h
<gh_stars>0 // Generated by IB v0.7.2 gem. Do not edit it manually // Run `rake ib:open` to refresh #import <AppKit/AppKit.h> #import <Foundation/Foundation.h> #import <CoreGraphics/CoreGraphics.h> #import <CoreServices/CoreServices.h> @interface AppDelegate: NSObject <NSApplicationDelegate> -(IBAction) applicationDi...
orthopteroid/DosDragon
platform.h
/* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #ifndef _platform_h_ #define _platform_h_ #ifndef __COLORS #define __COLORS enum COLORS { BLACK, /* dark colors */ BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY, ...
orthopteroid/DosDragon
tool.c
<reponame>orthopteroid/DosDragon /* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ /* This file implements the DOS mode keyboard/mouse geometry editing tool. */ #include "trans.h" #include "render.h" #include "platform.h" #include "decomp.h" #include "animate.h" #in...
orthopteroid/DosDragon
mouse.h
/* +++Date last modified: 05-Jul-1997 */ /* module: mouse.h * programmer: <NAME> * started: 26oct86 * updated: 26oct86 * * Some handy mouse interface functions. */ #ifndef MOUSE__H #define MOUSE__H #define MSMOUSE 0x33 extern int mouse_present;...
orthopteroid/DosDragon
mouse.c
<gh_stars>0 /* +++Date last modified: 05-Jul-1997 */ /* ** A series of routines to provide access to MicroSoft (and compatible) ** mice. Consult your mouse documentation for detailed information regarding ** each mouse driver function. ** ** by <NAME> w/ modifications by <NAME> & <NAME> */ #include <dos.h>...
orthopteroid/DosDragon
decomp.h
<reponame>orthopteroid/DosDragon /* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #ifndef _decomp_h_ #define _decomp_h_ void d_55grid( int ov[], int mv, int* pnv, char iv[] ); void d_127( int ov[], int mv, int* pnv, char iv[] ); void d_rawEncode( int* v, int nv, in...
orthopteroid/DosDragon
text.h
<filename>text.h /* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #ifndef _text_h_ #define _text_h_ void text_render(); void text_animate(); void text_set( char* szText ); void text_setspeed( int isps ); int text_busy(); extern char* t_szLetterData[]; exter...
orthopteroid/DosDragon
pointer.h
/* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #ifndef _pointer_h_ #define _pointer_h_ void pointer_init(); void pointer_input(); void pointer_render(); extern int pointer_x; extern int pointer_y; extern int pointer_b; #endif /* _pointer_h_ */
orthopteroid/DosDragon
pointer.c
/* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #include "trans.h" #include "render.h" #include "animate.h" #include "mesh.h" #include "platform.h" /************************************/ int sPointer[] = {10,10,-10,10,-10,-10,10,-10}; int mPointer[ numof(sPoint...
orthopteroid/DosDragon
animate.h
/* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #ifndef _animate_h_ #define _animate_h_ #include <math.h> #include "platform.h" /* in-range signaller */ #define RANGE_SIG0(l, v, u) ( (l < v && v < u) ? 1 : 0 ) #define RANGE_SIG(a, v, b) ( a < b ? RANGE_SIG0(a,...
orthopteroid/DosDragon
decomp.c
/* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #include <ctype.h> #include <assert.h> /* gads - strtok isn't working right! */ char* mytok(char* a, char* b) { static char* d = 0; char* c = a ? a : d + 1; if( c != 0 ) { while(*c != 0 && strchr(b, *c) !...
orthopteroid/DosDragon
dragon.c
/* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ /* This file implements the animated dragon. Geometry is 'baked in' using #include directives. */ #include "trans.h" #include "render.h" #include "platform.h" #include "decomp.h" #include "animate.h" #include "text.h...
orthopteroid/DosDragon
trans.c
<filename>trans.c /* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #include <stdio.h> #include "trans.h" /****************************/ #define NODIAG #define SWAP(a,b) t_fTemp=a;a=b;b=t_fTemp; #define VINIT(rv,a,b,c) rv[0]=a;rv[1]=b;rv[2]=c; #define V...
orthopteroid/DosDragon
text.c
/* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #include "trans.h" #include "render.h" #include "decomp.h" #include "platform.h" #include <string.h> /************************************/ char* t_szLetterData[] = { "akwokoe", "auxtnknjda", "txvpfbdj", "uad...
orthopteroid/DosDragon
animate.c
/* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #include <stdio.h> #include "animate.h"
orthopteroid/DosDragon
platform.c
<gh_stars>0 /* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #include <stdio.h> #include <graphics.h> #include <time.h> #include "mouse.h" #include "platform.h" void p_init() { int iDriver = VGA; int iMode = VGAHI; int iCode; initgraph( &iDriver, &i...
orthopteroid/DosDragon
render.h
<reponame>orthopteroid/DosDragon /* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #ifndef _render_h_ #define _render_h_ #define numof( vect ) (sizeof(vect)/sizeof(vect[0])) typedef void (*IIFunc)(int,int); typedef void (*IFunc)(int); typedef void (*VFunc)(void); ...
orthopteroid/DosDragon
render.c
/* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #include <stdio.h> #include "render.h" #define INIT (r_clearFunc) /****************************/ int r_bStartEdge; VFunc r_clearFunc = 0; IFunc r_colorF...
orthopteroid/DosDragon
trans.h
<reponame>orthopteroid/DosDragon<filename>trans.h /* Crusty old DOS VGA dragon from 2001 by <EMAIL> built with TC++. public domain license. */ #ifndef _trans_h_ #define _trans_h_ #include <math.h> #define d2r(d) (3.14159*(d)/180.0) #define g2r(g) (3.14159*(g)/50.0) typedef float vector[3]; typedef floa...
Kentzo/IKConnectionDelegate
IKConnectionDelegate.h
// // IKConnectionDelegate.h // IKConnectionDelegate // // Created by <NAME> on 11.08.10. // Copyright 2010. All rights reserved. #import <Foundation/Foundation.h> #import <dispatch/dispatch.h> typedef enum { IKNoneGroupAction = 0, IKCancelGroupAction = 0x1, IKUndefinedAction = 0xFFFFFFFF } IKConnect...
mzdun/dashcam-gps
extras/mgps-70mai/fuzzer/data/xxd.h
constexpr unsigned char box_mp4[] = { 0x00, 0x00, 0x00, 0x18, 0x66, 0x74, 0x79, 0x70, 0x6d, 0x70, 0x34, 0x32, 0x01, 0x2a, 0x00, 0x7e, 0x6d, 0x70, 0x34, 0x32, 0x69, 0x73, 0x6f, 0x6d, 0x00, 0x00, 0x00, 0x08, 0x66, 0x72, 0x65, 0x65, 0x00, 0x00, 0x01, 0x95, 0x6d, 0x64, 0x61, 0x74, 0x00, 0x00, 0x00, 0x78, 0x65, 0x88...
philltran/WioTerminal-LoRaWAN-Gateway-Tester
gps.h
<reponame>philltran/WioTerminal-LoRaWAN-Gateway-Tester #include <Arduino.h> #ifndef __GPS_H__ #define __GPS_H__ extern String N_date, N_time,N_lat,N_lng,N_satellites,N_meters; extern String P_date, P_time,P_lat,P_lng,P_satellites,P_meters; void GpsSerialInit(); void GetGpsInfoPolling(); void UpdateGpsInfo(); int Upd...
ianthomas23/contourpy
src/line_type.h
<reponame>ianthomas23/contourpy<filename>src/line_type.h #ifndef CONTOURPY_LINE_TYPE_H #define CONTOURPY_LINE_TYPE_H #include <iosfwd> // C++11 scoped enum, must be fully qualified to use. enum class LineType { Separate = 101, SeparateCodes = 102, ChunkCombinedCodes = 103, ChunkCombinedOffsets = 104, ...
ianthomas23/contourpy
src/fill_type.h
#ifndef CONTOURPY_FILL_TYPE_H #define CONTOURPY_FILL_TYPE_H #include <iosfwd> // C++11 scoped enum, must be fully qualified to use. enum class FillType { OuterCodes = 201, OuterOffsets = 202, ChunkCombinedCodes = 203, ChunkCombinedOffsets = 204, ChunkCombinedCodesOffsets = 205, ChunkCombinedOf...
ianthomas23/contourpy
src/base_impl.h
<filename>src/base_impl.h #ifndef CONTOURPY_BASE_IMPL_H #define CONTOURPY_BASE_IMPL_H #include "base.h" #include "converter.h" #include <iostream> // Point indices from current quad index. #define POINT_NE (quad) #define POINT_NW (quad-1) #define POINT_SE (quad-_nx) #define POINT_SW (quad-_nx-1) // CacheItem masks...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/HYPRE_krylov.h
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/HYPRE_sstruct_ls.h
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/seq_mv.h
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/distributed_matrix.h
<reponame>mzl13/LiDendrite<filename>Src/LinearSolvers/hypre/include/distributed_matrix.h /*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of H...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/LLNL_FEI_Matrix.h
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/fei_bool.h
<filename>Src/LinearSolvers/hypre/include/fei_bool.h /*--------------------------------------------------------------------*/ /* Copyright 2005 Sandia Corporation. */ /* Under the terms of Contract DE-AC04-94AL85000, there is a */ /* non-exclusive license for use of this work...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/fei_mpi.h
#ifndef _fei_mpi_h_ #define _fei_mpi_h_ /*--------------------------------------------------------------------*/ /* Copyright 2005 Sandia Corporation. */ /* Under the terms of Contract DE-AC04-94AL85000, there is a */ /* non-exclusive license for use of this work by or on be...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/_hypre_utilities.h
/*** DO NOT EDIT THIS FILE DIRECTLY (use 'headers' to generate) ***/ #ifndef hypre_UTILITIES_HEADER #define hypre_UTILITIES_HEADER #include "HYPRE_utilities.h" #ifdef HYPRE_USING_OPENMP #include <omp.h> #endif #ifdef __cplusplus extern "C" { #endif /*BHEADER*******************************************************...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/HYPREf.h
! -*- fortran -*- !BHEADER********************************************************************** ! Copyright (c) 2008, Lawrence Livermore National Security, LLC. ! Produced at the Lawrence Livermore National Laboratory. ! This file is part of HYPRE. See file COPYRIGHT for details. ! ! HYPRE is free software; you can ...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/fortran_matrix.h
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/HYPRE_DistributedMatrixPilutSolver_protos.h
<filename>Src/LinearSolvers/hypre/include/HYPRE_DistributedMatrixPilutSolver_protos.h /*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPR...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/hypre_hopscotch_hash.h
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/fei_defs.h
#ifndef _fei_defs_h_ #define _fei_defs_h_ /* In this file we set some #defines to use as parameters to some fei functions, and also some error-code returns. We also provide the typedef for 'GlobalID' which appears in many FEI function prototypes. Note that the default case is for GlobalID to simply be a...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/cfei.h
<reponame>mzl13/LiDendrite #ifndef _cfei_h_ #define _cfei_h_ /*--------------------------------------------------------------------*/ /* Copyright 2005 Sandia Corporation. */ /* Under the terms of Contract DE-AC04-94AL85000, there is a */ /* non-exclusive license for use of ...
mzl13/LiDendrite
Src/LinearSolvers/hypre/include/HYPRE_utilities.h
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
MikeEckels/ParkingMonitor
src/Color.h
<filename>src/Color.h #ifndef COLOR_H #define COLOR_H struct Color { unsigned char Red = 0; unsigned char Green = 0; unsigned char Blue = 0; unsigned char White = 0; String Name = " "; Color() {} Color(unsigned char R, unsigned char G, unsigned char B, unsigned char W) : Red{ R }, Green{ G }, Blue{ B }, White{...
MikeEckels/ParkingMonitor
src/Leds.h
#ifndef LEDS_H #define LEDS_H #include "DebugUtils.h" #include "Arduino.h" #include "Color.h" class Leds { private: const unsigned char _redPin = 9; const unsigned char _greenPin = 6; const unsigned char _bluePin = 10; const unsigned char _whitePin = 11; Color _color; public: struct Colors { Color Black = ...
MikeEckels/ParkingMonitor
src/Monitor.h
#ifndef MONITOR_H #define MONITOR_H #include "Arduino.h" #include <SharpIR.h> #ifndef __AVR_ATtiny85__ #include "Leds.h" #endif class Monitor { private: #ifdef __AVR_ATtiny85__ const unsigned char _irPin = A1; #else const unsigned char _irPin = A0; #endif const unsigned int _irModel = 20150; ...
MikeEckels/ParkingMonitor
src/DebugUtils.h
#ifndef DEBUG_UTILS_H #define DEBUG_UTILS_H #ifndef SER #define SER Serial #endif #ifdef DEBUG #define DEBUG_BEGIN(...) SER.begin(__VA_ARGS__) #define DEBUG_PRINT(...) SER.print(__VA_ARGS__) #define DEBUG_PRINTLN(...) SER.println(__VA_ARGS__) #define DEBUG_PRINT_ERR(...) DEBUG_PRINT("[!] "); DEBUG_PRINTLN(__VA_ARGS_...
1289-tyrant/katana
libgalois/include/katana/PropertyGraph.h
#ifndef KATANA_LIBGALOIS_KATANA_PROPERTYGRAPH_H_ #define KATANA_LIBGALOIS_KATANA_PROPERTYGRAPH_H_ #include <string> #include <utility> #include <vector> #include <arrow/api.h> #include <arrow/chunked_array.h> #include <arrow/type_traits.h> #include "katana/Details.h" #include "katana/ErrorCode.h" #include "katana/La...
1289-tyrant/katana
libsupport/include/katana/ArrowVisitor.h
#ifndef KATANA_LIBSUPPORT_KATANA_ARROWVISITOR_H_ #define KATANA_LIBSUPPORT_KATANA_ARROWVISITOR_H_ #include <arrow/api.h> #include <arrow/vendored/datetime/date.h> #include "katana/ErrorCode.h" #include "katana/Logging.h" #include "katana/Result.h" namespace katana { /////////////////////////////////////////////////...
1289-tyrant/katana
libgalois/include/katana/analytics/subgraph_extraction/subgraph_extraction.h
#ifndef KATANA_LIBGALOIS_KATANA_ANALYTICS_SUBGRAPHEXTRACTION_SUBGRAPHEXTRACTION_H_ #define KATANA_LIBGALOIS_KATANA_ANALYTICS_SUBGRAPHEXTRACTION_SUBGRAPHEXTRACTION_H_ #include "katana/PropertyGraph.h" #include "katana/analytics/Plan.h" // API namespace katana::analytics { /// A computational plan to for SubGraph Ext...
nemanjajelisijevic/cppDaemon
daemon/serviceobject.h
<reponame>nemanjajelisijevic/cppDaemon<gh_stars>0 #ifndef SERVICEOBJECT_H #define SERVICEOBJECT_H #include <thread> #include "syncqueue.h" namespace daemonize { class IFunctor; class Consumer; class ServiceObject { public: ServiceObject() = delete; explicit ServiceObject(Consume...
nemanjajelisijevic/cppDaemon
daemon/voidclosure.h
#ifndef VOIDCLOSURE_H #define VOIDCLOSURE_H #include "functorbase.h" #include <functional> namespace daemonize { class VoidClosureWrapper : public IFunctor { public: VoidClosureWrapper() = delete; explicit VoidClosureWrapper(std::function<void(void)>&& func); VoidClosureWrapper(...
nemanjajelisijevic/cppDaemon
daemon/consumerbase.h
#ifndef CONSUMERBASE_H #define CONSUMERBASE_H #include "functorbase.h" #include <string> namespace daemonize { class Consumer { public: Consumer(); Consumer(const Consumer& other) = delete; Consumer(Consumer&& other) = delete; Consumer& operator=(const Consumer& other) = ...
nemanjajelisijevic/cppDaemon
daemon/functorimpl.h
<reponame>nemanjajelisijevic/cppDaemon<gh_stars>0 #ifndef FUNCTORIMPL_H #define FUNCTORIMPL_H #include "functorbase.h" #include "returningclosure.h" #include "voidclosure.h" #include "consumerbase.h" #include "serviceobject.h" #include <functional> namespace daemonize { namespace template_arg_helper { ...
nemanjajelisijevic/cppDaemon
daemon/cppldratest.h
#ifndef CPPLDRATEST_H #define CPPLDRATEST_H namespace daemonize { class cppldratest { public: cppldratest(); void testCode(); void testIndentation(); private: unsigned int cnt; bool testBool; bool testBoolTwo; bool testBoolThree; bool t...
nemanjajelisijevic/cppDaemon
daemon/daemon.h
#ifndef DAEMON_H #define DAEMON_H #include <memory> #include "consumerbase.h" #include "serviceobject.h" #include "functorimpl.h" #include <functional> namespace daemonize { template<class ProtoType> class DaemonBase { public: virtual ~DaemonBase(); DaemonBase<ProtoType>& setDefault...
nemanjajelisijevic/cppDaemon
daemon/movesemanticstest.h
<reponame>nemanjajelisijevic/cppDaemon<gh_stars>0 #ifndef MOVESEMANTICSTEST_H #define MOVESEMANTICSTEST_H #include <vector> #include <functional> #include <thread> #include "log.h" namespace daemonize { template<typename T> class MoveSemanticsTest { public: MoveSemanticsTest(); MoveSe...
nemanjajelisijevic/cppDaemon
daemon/queuedconsumer.h
#ifndef QUEUEDCONSUMER_H #define QUEUEDCONSUMER_H #include <memory> #include "serviceobject.h" #include "consumerbase.h" namespace daemonize { class QueuedConsumer : public Consumer { public: QueuedConsumer(); QueuedConsumer(const QueuedConsumer& other); QueuedConsumer(QueuedCon...
nemanjajelisijevic/cppDaemon
daemon/returningclosure.h
<filename>daemon/returningclosure.h<gh_stars>0 #ifndef RETURNINGCLOSURE_H #define RETURNINGCLOSURE_H #include "functorbase.h" #include <functional> namespace daemonize { template<typename R> class ReturningClosureWrapper : public IFunctor { public: ReturningClosureWrapper() = delete; ...
nemanjajelisijevic/cppDaemon
daemon/syncqueue.h
<filename>daemon/syncqueue.h<gh_stars>0 #ifndef SYNCQUEUE_H #define SYNCQUEUE_H #include <queue> #include <mutex> #include <condition_variable> #include <atomic> namespace daemonize { template<typename T> class SyncQueue { public: SyncQueue(); ~SyncQueue(); SyncQueue(const Sy...
nemanjajelisijevic/cppDaemon
daemon/functorbase.h
#ifndef FUNCTOR_BASE_H #define FUNCTOR_BASE_H namespace daemonize { class IFunctor { public: IFunctor(); virtual ~IFunctor(); virtual void execute() = 0; private: IFunctor(const IFunctor& other) = delete; IFunctor(IFunctor&& other) = delete; IFunctor...
amunmt/Marian
src/layers/guided_alignment.h
<reponame>amunmt/Marian #pragma once #include "layers/loss.h" #include "common/logging.h" namespace marian { static inline const std::tuple<std::vector<IndexType>, std::vector<float>> guidedAlignmentToSparse(Ptr<data::CorpusBatch> batch) { int trgWords = (int)batch->back()->batchWidth(); int dimBatch = (int)b...
amunmt/Marian
src/tensors/cpu/integer_common.h
#pragma once #include "tensors/tensor_allocator.h" #include "tensors/tensor_operators.h" #include "tensors/cpu/aligned.h" #include "common/io_item.h" #if COMPILE_CPU #include "3rd_party/intgemm/intgemm/intgemm.h" #else namespace intgemm { struct Int8; struct Int16; namespace SSSE3 { struct Kernels8; } n...
amunmt/Marian
src/layers/lsh_impl.h
<reponame>amunmt/Marian #pragma once #include <vector> #ifdef _MSC_VER #define __builtin_popcountl __popcnt64 #define __builtin_popcount __popcnt #endif namespace marian { namespace lsh { struct Parameters { int k; uint8_t* queryRows; int numQueryRows; uint8_t* codeRows; int numCodeRows; i...
morrow1nd/ToyXWindow
Include/ToyXWindow/details/WinDX11XWindowImpl.h
#pragma once #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyXWindow/details/WinBaseXWindowImpl.h" #include "ToyXWindow/details/WinDX11CommonType.h" #include "ToyXWindow/details/WinDX11Window.h" namespace ToyXWindow { class WinDX11XWindowImpl : public WinBaseXWindowImpl { public: WinDX11XWindowImp...
morrow1nd/ToyXWindow
Include/ToyXWindow/BaseWindow.h
#pragma once #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyXWindow/IWindow.h" namespace ToyXWindow { class BaseWindow : public IWindow { public: BaseWindow() : m_ShouldClose(false), m_Windowed(true) {} private: bool m_Windowed; // wind...
morrow1nd/ToyXWindow
Include/ToyXWindow/IAdapter.h
<filename>Include/ToyXWindow/IAdapter.h #pragma once #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyUtility/String/String.h" #include "ToyXWindow/CommonType.h" namespace ToyXWindow { class IAdapter { public: virtual ~IAdapter() = default; }; } // end of namespace ToyXWindow
morrow1nd/ToyXWindow
Include/ToyXWindow/details/WinWindow.h
#pragma once #include <Windows.h> #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyXWindow/BaseWindow.h" namespace ToyXWindow { class WinWindow : public BaseWindow { public: static ToyUtility::String HWNDGetPropName; public: WinWindow() : m_HWNDCreated(false) {} protect...
morrow1nd/ToyXWindow
Include/ToyXWindow/details/WinWGLXWindowImpl.h
<reponame>morrow1nd/ToyXWindow<filename>Include/ToyXWindow/details/WinWGLXWindowImpl.h #pragma once #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyXWindow/details/WinBaseXWindowImpl.h" #include "ToyXWindow/details/WinWGLCommonType.h" #include "ToyXWindow/details/WinWGLWindow.h" namespace ToyXWindow { ...
morrow1nd/ToyXWindow
Include/ToyXWindow/details/WinWGLCommonType.h
#pragma once #include <Windows.h> #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyXWindow/details/OpenGLCommonType.h" namespace ToyXWindow { #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 #define WGL_SUPPORT_OPENGL_ARB 0x2010 #define WGL_DRAW_TO_WINDOW_ARB 0x2001 #define WGL_PIXEL_TYPE_ARB 0x2013 #define...
morrow1nd/ToyXWindow
Include/ToyXWindow/CommonType.h
<filename>Include/ToyXWindow/CommonType.h #pragma once #include <functional> #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyUtility/String/String.h" #include "ToyUtility/Math/Rect2I.h" #include "ToyUtility/Math/Rational.h" #include "ToyXWindowConfig.h" namespace ToyXWindow { // // //struct SampleD...
morrow1nd/ToyXWindow
Include/ToyXWindow/details/WinWGLWindow.h
<reponame>morrow1nd/ToyXWindow #pragma once #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyXWindow/details/WinWindow.h" #include "ToyXWindow/details/WinWGLCommonType.h" namespace ToyXWindow { class WinWGLWindow : public WinWindow { public: WinWGLWindow(const WinWGLContext& context) : ...
morrow1nd/ToyXWindow
Include/ToyXWindow/details/WinDX11Window.h
<reponame>morrow1nd/ToyXWindow<gh_stars>0 #pragma once #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyXWindow/details/WinWindow.h" #include "ToyXWindow/details/WinDX11CommonType.h" namespace ToyXWindow { class WinDX11Window : public WinWindow { public: WinDX11Window(const WinDX11Context& context)...
morrow1nd/ToyXWindow
Include/ToyXWindow/IWindow.h
#pragma once #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyUtility/String/String.h" #include "ToyUtility/Memory/SmartPtr.h" #include "ToyXWindow/CommonType.h" namespace ToyXWindow { class IWindow; using HWindow = IWindow*; #define ShouldCloseFuncArguList #define ShouldCloseFuncParaList #define W...
morrow1nd/ToyXWindow
Include/ToyXWindow/details/OpenGLCommonType.h
<reponame>morrow1nd/ToyXWindow #pragma once #include "ToyUtility/Prerequisites/PreDefine.h" namespace ToyXWindow { #define GL_VERSION 0x1f02 #define GL_NONE 0 #define GL_COLOR_BUFFER_BIT 0x00004000 #define GL_EXTENSIONS 0x1f03 #define GL_NUM_EXTENSIONS 0x821d #define GL_CONTEXT_FLAGS 0x821e #define GL_CONTEXT_FLAG...
morrow1nd/ToyXWindow
Include/ToyXWindow/details/WinBaseXWindowImpl.h
<gh_stars>0 #pragma once #include <Windows.h> #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyXWindow/details/XWindowImpl.h" #include "ToyXWindow/details/WinWindow.h" namespace ToyXWindow { class WinBaseXWindowImpl : public XWindowImpl { public: // Create key code translation tables static vo...
morrow1nd/ToyXWindow
Include/ToyXWindow/details/XWindowImpl.h
<reponame>morrow1nd/ToyXWindow #pragma once #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyUtility/Memory/SmartPtr.h" #include "ToyXWindow/CommonType.h" #include "ToyXWindow/IAdapter.h" #include "ToyXWindow/IWindow.h" #ifdef CreateWindow # undef CreateWindow #endif namespace ToyXWindow { class XWind...
morrow1nd/ToyXWindow
Include/ToyXWindow/XWindowAPI.h
#pragma once #include "ToyUtility/Prerequisites/PreDefine.h" #include "ToyUtility/DesignPattern/ISingleton.h" #include "ToyUtility/Memory/SmartPtr.h" #include "ToyXWindow/CommonType.h" #include "ToyXWindow/IAdapter.h" #include "ToyXWindow/IWindow.h" #include "ToyXWindow/details/XWindowImpl.h" namespace ToyXWindow { ...
morrow1nd/ToyXWindow
Include/ToyXWindow/details/WinDX11CommonType.h
#pragma once #include <dxgi.h> #include <d3d11.h> #include <d3dcompiler.h> #include "ToyUtility/Prerequisites/PreDefine.h" #ifdef CreateWindow # undef CreateWindow #endif namespace ToyXWindow { struct WinDX11Context { WinDX11Context() : Factory(nullptr), Device(nullptr), Devi...
LoganBarnes/ltb-ddf
.idea/fileTemplates/internal/C Source File.c
#parse("C File Header.h") #if (${HEADER_FILENAME}) #[[#include]]# "${HEADER_FILENAME}" #end namespace ltb::ddf {} // namespace ddf
LoganBarnes/ltb-ddf
.idea/fileTemplates/internal/C Header File.h
#parse("C File Header.h") #pragma once namespace ltb::ddf {} // namespace ddf
coalpha/winsdk
src/winsdk.c
#define WIN32_LEAN_AND_MEAN #include <windows.h> #include <shellapi.h> wchar_t const usage[] = L"winsdk\n" L" --kit:{um, ucrt}\n" L" --type:{include, lib}\n" L" [--arch:{x86, x64, arm, arm64}] (required if --type:lib)\n" L" [--version:10.0.00000.0] (12 characters max)\n"; wchar_t const regKey[] = ...
iconation/common-lib-cpp
src/common/http/http.h
#pragma once #include <curl/curl.h> #include <string> namespace ICONation::Common::Http { class Client { // Allocators public: Client(void); ~Client(void); // HTTP Methods public: void get(const std::string &url, std::string &out); std::string post(const std::string &url, const std::string &p...
iconation/common-lib-cpp
src/common/jsonrpc/jsonrpc.h
#pragma once #include <nlohmann/json.hpp> #include "common/http/http.h" namespace ICONation::Common::JsonRPC { class Client { // Allocators public: Client(const std::string &endpoint); ~Client(void); // Commands public: nlohmann::json call(const std::string &method, const nlohmann::json &params);...
iconation/common-lib-cpp
src/common/http/exception.h
<gh_stars>0 #pragma once #include <exception> #include <string> #include <fmt/format.h> #include <curl/curl.h> namespace ICONation::Common::Http::Exception { struct CurlError : public std::runtime_error { CurlError(const std::string &url, CURLcode code) throw() : std::runtime_error(fmt::format("URL={} : Error={}"...
iconation/common-lib-cpp
src/common/exception/exception.h
#pragma once #include <exception> #include <fmt/format.h> #include <fmt/ostream.h> #include <openssl/err.h> namespace ICONation::Common::Exception { struct Unimplemented : public std::runtime_error { Unimplemented(const std::string &message) throw() : std::runtime_error(message) {} virtual char const ...
iconation/common-lib-cpp
src/common/crypto/base64.h
<filename>src/common/crypto/base64.h #pragma once #include <string> #include <vector> namespace ICONation::Common::Crypto { class Base64 { // Allocators public: Base64(void) = default; ~Base64(void) = default; public: std::string encode(const std::vector<unsigned char> &buffer); std::vector<unsig...
iconation/common-lib-cpp
src/common/application/application.h
<gh_stars>0 #pragma once #include <string> #include <memory> namespace ICONation::Common::Application { class Application { // Allocators public: Application(int argc, char **argv); virtual ~Application(void) = default; // Binary name public: std::string binary_name(void) { return...
iconation/common-lib-cpp
src/common/dbg/dbg.h
<filename>src/common/dbg/dbg.h #pragma once #include <spdlog/spdlog.h> #include <fmt/format.h> #include <fmt/ostream.h> namespace ICONation::Common::Dbg { template <typename String, typename... Args> inline void info(const String &format_str, const Args &... args) { spdlog::info(fmt::format(format_str, args...));...
loginsinex/smb2
smb2/h/GUI/Dialogs/Editor/cnewitemdlg.h
class CNewItemDlg: public CDialog { CDialog * m_pDlg[4]; CEntrancePtrDlg m_dlgEntrancePtr; CGroundSetDlg m_dlgGroundSet; CItemSizeDlg m_dlgItemSize; CEntrancePtrDlg m_dlgPointer; BOOL m_fEditMode; BYTE m_bRequestConnectedPtr; struct { CNesEditor *pvEditor; DWORD dwItem; } m_Item; ...
loginsinex/smb2
smb2/h/GUI/Wrapper/Controls/clistview.h
<filename>smb2/h/GUI/Wrapper/Controls/clistview.h class CListView: public CControl { HWND m_hHeader; public: INT AddItem(DWORD pszText, LPARAM lParam); INT AddItem(LPCTSTR pszText, LPARAM lParam); INT InsertItem(INT iAfterItem, LPCTSTR pszText, LPARAM lParam); void SetItem(INT iItem, INT iSubIte...
loginsinex/smb2
smb2/h/GUI/Wrapper/cdialog.h
#define SPINVAL(x) ( dSendMessage((x), UDM_GETPOS) ) #define SPINSET(x, a) ( dSendMessage((x), UDM_SETPOS, 0, MAKELONG((a), 0)) ) #define SPINRANGE(x, a, b) ( dSendMessage((x), UDM_SETRANGE, 0, MAKELONG((a), (b))) ) #define SPINERR(x) ( 0 != ( HIWORD(SPINVAL(x) ) ) ) class CPropSheet; typedef enum _tag...
loginsinex/smb2
smb2/h/GUI/Wrapper/Controls/ctrackbar.h
class CTrackBar: public CControl { public: VOID SetMinMax(UINT min, UINT max); VOID Pos(UINT uPos); UINT Pos(); };
loginsinex/smb2
smb2/h/NES/cnesitemslist.h
<reponame>loginsinex/smb2 template <class T> class CNesItemsList { struct { BOOL fRemoveSelf; std::vector<T*> vList; } ItemsList; VOID AllocItemsList(); VOID DestroyItemsList(); protected: CNesItemsList(BOOL fRemoveSelf = FALSE); virtual ~CNesItemsList(); BOOL Append...
loginsinex/smb2
smb2/h/NES/cnesenemydata.h
extern const LPTSTR g_pszEnemies[]; typedef struct _tagNES_LEVEL_ENEMY { union { BYTE pData[2]; struct { BYTE id; BYTE y:4; BYTE x:4; } Object; } Enemy; POINT pt; INT iPage; } NES_LEVEL_ENEMY, *PNES_LEVEL_ENEMY; class CNesEnemyData: public CNesItemsList<NES_LEVEL_ENEMY>...
loginsinex/smb2
smb2/h/GUI/Dialogs/clvloptionsdlg.h
class CLvlOptionsDlg: public CDialog { CFileLoader & m_File; void OnInit(LPARAM lParam); void OnButton(USHORT uId); struct { CComboBox cbGamma1; CComboBox cbGamma2; CComboBox cbGroundType; CComboBox cbGround; CComboBox cbMusic; CTrackBar tbLength; } m_ctl; public: CLvlOptions...
loginsinex/smb2
smb2/h/GUI/Wrapper/Controls/crebar.h
class CRebarWindow: public CControl { public: INT InsertBand(REBARBANDINFO * lpBand); INT Count(); INT InsertBand(HWND hWnd, LPARAM lParam = 0, BOOL fBreak = FALSE, BOOL fMovable = TRUE, BOOL fTopAlign = FALSE, LPCTSTR pszText = NULL, int cx = -1); INT Width(int idBand); void Width(int idB...
loginsinex/smb2
smb2/h/GUI/Dialogs/clvlobjdlg.h
<gh_stars>1-10 class CLvlObjDlg: public CDialog { CNesEditor & m_Level; CListView m_lv; struct { DWORD dwCount; std::vector<NES_LEVEL_ITEM> pItems; } m_CurrentItems; VOID OnInit(LPARAM lParam); VOID OnOK(); public: CLvlObjDlg(HINSTANCE hInstance, CNesEditor & Level); VOI...