repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
mvandi/Flinty
Flinty/src/fl/graphics/shaders/ShaderManager.h
#pragma once #include "fl/Common.h" #include "fl/Types.h" #include "Shader.h" namespace fl { class FL_API ShaderManager { private: static HashMap<String, Shader*> s_Shaders; public: static void Add(Shader* shader); static Shader* Get(const String& name); static void C...
mvandi/Flinty
Flinty/src/fl/graphics/VertexArray.h
#pragma once #include "fl/Common.h" namespace fl { class VertexBuffer; class VertexBufferLayout; class IndexBuffer; class FL_API VertexArray { public: VertexArray(); VertexArray(VertexBuffer* vb, IndexBuffer* ib); ~VertexArray(); void AddVertexBuffer(VertexBu...
mvandi/Flinty
Flinty/src/fl/events/MouseEvent.h
#pragma once #include "Event.h" namespace fl { class FL_API MouseMovedEvent : public Event { public: MouseMovedEvent(float x, float y, float dx, float dy) : m_MouseX(x), m_MouseY(y), m_MouseDX(x), m_MouseDY(dy) {} inline float GetX() const { return m_MouseX; } inline ...
mvandi/Flinty
Sandbox/src/SceneLayer.h
#pragma once #include <Flinty.h> class SceneLayer : public fl::Layer { public: SceneLayer(); ~SceneLayer(); void OnInit() override; void OnTick() override; void OnUpdate() override; void OnRender() override; private: fl::Shader* m_Shader; fl::Shader* m_FullScreenQuadShader; fl::F...
mvandi/Flinty
Flinty/src/fl/system/Timer.h
<filename>Flinty/src/fl/system/Timer.h #pragma once #include <chrono> class Timer { private: typedef std::chrono::high_resolution_clock HighResolutionClock; typedef std::chrono::duration<float, std::milli> milliseconds_type; std::chrono::time_point<HighResolutionClock> m_Start; public: in...
mvandi/Flinty
Flinty/src/fl/graphics/shaders/ShaderUniform.h
<reponame>mvandi/Flinty #pragma once #include "fl/Common.h" #include "fl/String.h" #include <iostream> #include <vector> namespace fl { class ShaderUniformDeclaration; class FL_API ShaderStruct { private: friend class Shader; private: String m_Name; std::vector<ShaderUni...
mvandi/Flinty
Flinty/src/fl/debug/ImGuiLayer.h
#pragma once #include "fl/Common.h" #include "fl/Layer.h" namespace fl { namespace debug { class FL_API ImGuiLayer : public Layer { public: ImGuiLayer(); ~ImGuiLayer(); void OnUpdate() override; void OnRender() override; void OnEvent(Event& event) override; pr...
mvandi/Flinty
Flinty/src/fl/Types.h
<filename>Flinty/src/fl/Types.h #pragma once typedef unsigned int uint; typedef char int8; typedef unsigned char uint8; typedef short int16; typedef unsigned short uint16; typedef long int32; typedef unsigned long uint32; typedef long long int64; typedef unsigned long long uint64; typedef float float32; typedef d...
tomerd/swift-nio-http2
Sources/CNIONghttp2/shims.c
//===----------------------------------------------------------------------===// // // This source file is part of the SwiftNIO open source project // // Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information // See CONTRIB...
tomerd/swift-nio-http2
Sources/CNIONghttp2/include/c_nio_nghttp2.h
<reponame>tomerd/swift-nio-http2 //===----------------------------------------------------------------------===// // // This source file is part of the SwiftNIO open source project // // Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for l...
yazevnul/fcai
CanonicalBasis/fca_context.h
# pragma once # ifndef FCA_CONTEXT_H_ # define FCA_CONTEXT_H_ # include <vector> # include "fca_definitions.h" namespace FCA { class Context { protected: std::vector<Object> m_objects; std::vector<std::vector<size_t> > m_objectsIntent; std::vector<Attribute> m_attributes; ...
yazevnul/fcai
CanonicalBasis/fca_concept.h
<reponame>yazevnul/fcai<gh_stars>1-10 # pragma once # ifndef FCA_CONCEPT_H_ # define FCA_CONCEPT_H_ # include "fca_definitions.h" namespace FCA { class Concept { protected: std::vector<Object> m_extent; std::vector<Attribute> m_intent; public: Concept() {} Concept(cons...
yazevnul/fcai
CanonicalBasis/test_timer.h
# pragma once # ifdef WIN32 # include <windows.h> # else # ifdef __unix__ # include <sys/resource.h> # include <cstddef> //for size_t # else # include <ctime> # endif // __unix__ # endif //WIN32 # ifndef TEST_TIMER_H_ # define TEST_TIMER_H_ class Timer { public: void StartTiming(); void StopTiming(); do...
yazevnul/fcai
CanonicalBasis/fca_bitset.h
<filename>CanonicalBasis/fca_bitset.h # pragma once # ifndef FCA_BITSET_H_ # define FCA_BITSET_H_ # include "fca_config.h" # ifdef BOOST_BITSET_ON # include <boost/dynamic_bitset.hpp> # endif //BOOST_BITSET_ON # ifdef MAGIC_BITSET_ON # include <src/bm.h> # endif //MAGIC_BITSET_ON namespace FCA { ...
yazevnul/fcai
CanonicalBasis/fca_implications.h
<gh_stars>1-10 # pragma once # ifndef FCA_IMPLICATIONS_H_ # define FCA_IMPLICATIONS_H_ # include "fca_definitions.h" namespace FCA { class Implication { protected: std::vector<Attribute> m_premise; std::vector<Attribute> m_conclusion; public: Implication() {} Implicati...
yazevnul/fcai
CanonicalBasis/fca_utility.h
# pragma once # ifndef FCA_UTILITY_H_ # define FCA_UTILITY_H_ namespace FCA { template <typename T> void RemoveElements(const std::vector<bool> &remove, const size_t elementInd, std::vector<T> &a, size_t &elementNextInd); }; //==================================================================================...
yazevnul/fcai
CanonicalBasis/test_time.h
<reponame>yazevnul/fcai<gh_stars>1-10 # pragma once # ifndef TEST_TIME_H_ # define TEST_TIME_H_ # include <ctime> # include <cstdlib> # include <ostream> struct Time { static const clock_t SECOND = CLOCKS_PER_SEC; static const clock_t MINUTE = SECOND * 60; static const clock_t HOUR = MINUTE * 60; ...
yazevnul/fcai
CanonicalBasis/fca_datastructures.h
# pragma once # ifndef FCA_DATASTRUCTURES_H_ # define FCA_DATASTRUCTURES_H_ # include "fca_context.h" # include "fca_concept.h" # include "fca_implications.h" # endif //FCA_DATASTRUCTUERS_H_
yazevnul/fcai
CanonicalBasis/fca_definitions.h
# pragma once # ifndef FCA_DEFINITIONS_H_ # define FCA_DEFINITIONS_H_ # include <vector> # include <string> # include "fca_bitset.h" namespace FCA { typedef std::string Object; typedef std::string Attribute; inline bool IsPrefixIdentical(const BitSet &bitSet1, const BitSet &bitSet2, const size_t prefLe...
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/RuntimeCircleStylesExample.h
<reponame>marhas/ios-sdk-examples<gh_stars>10-100 // // RuntimeCircleStylesExample.h // Examples // // Created by <NAME> on 11/30/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface RuntimeCircleStylesExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/AnimatedLineExample.h
#import <UIKit/UIKit.h> @interface AnimatedLineExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/ClusteringWithImagesExample.h
<reponame>marhas/ios-sdk-examples #import <UIKit/UIKit.h> @interface ClusteringWithImagesExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/ManageOfflineRegionsExample.h
#import <UIKit/UIKit.h> @import Mapbox; @interface ManageOfflineRegionsExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/ShowHideLayerExample.h
<filename>Examples/ObjectiveC/Headers/ShowHideLayerExample.h // // ShowHideLayerExample.h // Examples // // Created by <NAME> on 11/30/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface ShowHideLayerExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/ImageSourceExample.h
<gh_stars>10-100 // // ImageSourceExample.h // Examples // // Created by <NAME> on 10/6/17. // Copyright © 2017 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface ImageSourceExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/RasterImageryExample.h
<gh_stars>10-100 // // RasterImageryExample.h // Examples // // Created by <NAME> on 12/2/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface RasterImageryExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/AnnotationViewExample.h
<gh_stars>10-100 // // AnnotationViewExample.h // Examples // // Created by <NAME> on 6/23/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface AnnotationViewExample : UIViewController @end
marhas/ios-sdk-examples
Examples/Testing Categories/ForwardingMapViewDelegate.h
@import Foundation; @import Mapbox; NS_ASSUME_NONNULL_BEGIN @interface ForwardingMapViewDelegate: NSObject <MGLMapViewDelegate> @property (nonatomic, weak, nullable) NSObject<MGLMapViewDelegate> *delegate; + (void)addToMapView:(MGLMapView*)mapView; @end NS_ASSUME_NONNULL_END
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/InsetMapExample.h
#import <UIKit/UIKit.h> @interface InsetMapExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/LiveDataExample.h
<gh_stars>10-100 // // LiveDataExample.h // Examples // // Created by <NAME> on 6/7/17. // Copyright © 2017 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface LiveDataExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/WebAPIDataExample.h
// // WebAPIDataExample.h // Examples // // Created by <NAME> on 12/2/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface WebAPIDataExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/MultipleImagesExample.h
<gh_stars>10-100 // // MultipleImagesExample.h // Examples // // Created by <NAME> on 2/19/18. // Copyright © 2018 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface MultipleImagesExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/LineGradientExample.h
<reponame>marhas/ios-sdk-examples #import <UIKit/UIKit.h> @interface LineGradientExample : UIViewController @end
marhas/ios-sdk-examples
DocsCode/DDSCircleLayerTutorial/DDSCircleLayerTutorialViewController.h
#import <UIKit/UIKit.h> @interface DDSCircleLayerTutorialViewController : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/HeatmapExample.h
// // HeatmapExample.h // Examples // // Created by <NAME> on 2/23/18. // Copyright © 2018 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface HeatmapExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/UserLocationAnnotationExample.h
// // UserLocationAnnotationExample.h // Examples // // Created by <NAME> on 4/21/17. // Copyright © 2017 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface UserLocationAnnotationExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/DraggableAnnotationViewExample.h
// // DraggableAnnotationViewExample.h // Examples // // Created by <NAME> on 7/11/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface DraggableAnnotationViewExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/FeatureSelectionExample.h
// // FeatureSelectionExample.h // Examples // // Created by <NAME> on 3/21/17. // Copyright © 2017 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface FeatureSelectionExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/LineStyleLayerExample.h
#import <UIKit/UIKit.h> @interface LineStyleLayerExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ExamplesTableViewController.h
<reponame>marhas/ios-sdk-examples // // ExamplesTableViewController.h // Examples // // Created by <NAME> on 1/26/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface ExamplesTableViewController : UITableViewController @end
marhas/ios-sdk-examples
Examples/Examples.h
// // Examples.h // Examples // // Created by <NAME> on 1/28/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <Foundation/Foundation.h> // Steps to add a new example: // 1. Create a new `NewExample.m` file in ../Examples/Code/Objective-C // 2. In your new Objective-C file, add a new string cons...
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/SimpleMapViewExample.h
// // SimpleMapViewExample.h // Examples // // Created by <NAME> on 1/26/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface SimpleMapViewExample : UIViewController @end
marhas/ios-sdk-examples
Examples/AppDelegate.h
<filename>Examples/AppDelegate.h // // AppDelegate.h // Examples // // Created by <NAME> on 1/26/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/LocationPrivacyExample.h
<gh_stars>10-100 #import <UIKit/UIKit.h> @import Mapbox; @interface LocationPrivacyExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/CustomCalloutView.h
// // CustomCalloutView.h // Examples // // Created by <NAME> on 3/6/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @import Mapbox; @interface CustomCalloutView : UIView <MGLCalloutView> @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/DefaultStylesExample.h
<gh_stars>10-100 // // DefaultStylesExample.h // Examples // // Created by <NAME> on 1/28/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface DefaultStylesExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/AddMarkerSymbolExample.h
// // AddMarkerSymbolExample.h // Examples // // Created by <NAME> on 2/12/20. // Copyright © 2020 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface AddMarkerSymbolExample : UIViewController @end NS_ASSUME_NONNULL_END
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/ClusteringExample.h
<filename>Examples/ObjectiveC/Headers/ClusteringExample.h // // ClusteringExample.h // Examples // // Created by <NAME> on 2/22/17. // Copyright © 2017 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface ClusteringExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/DDSCircleLayerExample.h
<reponame>marhas/ios-sdk-examples<gh_stars>10-100 // // DDSCircleLayerExample.h // Examples // // Created by <NAME> on 3/9/17. // Copyright © 2017 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface DDSCircleLayerExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/CameraFlyToExample.h
// // CameraFlyToViewController.h // Examples // // Created by <NAME> on 12/13/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @import Mapbox; @interface CameraFlyToExample : UIViewController <MGLMapViewDelegate> @end
marhas/ios-sdk-examples
Examples/ObjectiveC/TestingSupport.h
<gh_stars>10-100 @import Foundation; typedef NSString *MBXTestingSupportNotification NS_TYPED_ENUM; extern const MBXTestingSupportNotification MBXTestingSupportNotificationExampleComplete; extern const MBXTestingSupportNotification MBXTestingSupportNotificationMapViewStyleLoaded; extern const MBXTestingSupportNotific...
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/BuildingLightExample.h
<gh_stars>10-100 #import <UIKit/UIKit.h> @interface BuildingLightExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/StaticSnapshotExample.h
#import <UIKit/UIKit.h> @interface StaticSnapshotExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/PolygonPatternExample.h
<reponame>marhas/ios-sdk-examples #import <UIKit/UIKit.h> @interface PolygonPatternExample : UIViewController @end
marhas/ios-sdk-examples
Examples/ExamplesContainerViewController.h
// // ExamplesContainerViewController.h // Examples // // Created by <NAME> on 1/26/16. // Copyright © 2016 Mapbox. All rights reserved. // #import <UIKit/UIKit.h> @interface ExamplesContainerViewController : UIViewController @property (nonatomic) NSString *exampleToLoad; @end
marhas/ios-sdk-examples
Examples/ObjectiveC/Headers/MultipleShapesExample.h
<reponame>marhas/ios-sdk-examples #import <UIKit/UIKit.h> @interface MultipleShapesExample : UIViewController @end
krafczyk/ArgParse
inc/ArgParse/Argument.h
#ifndef ARGPARSE_Argument_HDR #define ARGPARSE_Argument_HDR #include <vector> #include <string> #include "ArgParse/ArgObject.h" namespace ArgParse { class Argument : public ArgObject { public: Argument(const std::string& call_name, const std::string& help_text, const Req_t required, bool* was_defined = nullptr)...
krafczyk/ArgParse
inc/ArgParse/Utilities.h
namespace ArgParse { const char* basename(const char* filename); }
krafczyk/ArgParse
inc/ArgParse/ArgGroup.h
#ifndef ARGPARSE_ArgGroup_HDR #define ARGPARSE_ArgGroup_HDR #include "ArgParse/ArgObject.h" #include "ArgParse/ArgObjContainer.h" namespace ArgParse { class ArgGroup : public ArgObject , public ArgObjContainer { public: ArgGroup(const std::string& title, const std::string& help_text, const ArgObject::Mode_t mod...
krafczyk/ArgParse
inc/ArgParse/ArgParser.h
#ifndef ARGPARSE_ArgParser_HDR #define ARGPARSE_ArgParser_HDR #include <vector> #include <string> #include "ArgParse/ArgObjContainer.h" namespace ArgParse { class ArgParser : public ArgObjContainer { public: ArgParser(const std::string& help_intro); ~ArgParser(); void PrintHelp(); bool HelpPrinted()...
krafczyk/ArgParse
inc/ArgParse/ArgObjContainer.h
#ifndef ARGPARSE_ArgObjContainer_HDR #define ARGPARSE_ArgObjContainer_HDR #include "ArgParse/ArgObject.h" #include "ArgParse/Argument.h" #include "ArgParse/ArgScalar.h" #include "ArgParse/ArgVector.h" namespace ArgParse { //Need to forward declare this.. class ArgGroup; class ArgObjContainer { public: ArgOb...
krafczyk/ArgParse
inc/ArgParse/ArgExclusiveGroup.h
#ifndef ARGPARSE_ArgExclusiveGroup_HDR #define ARGPARSE_ArgExclusiveGroup_HDR #include "ArgParse/ArgGroup.h" namespace ArgParse { class ArgExclusiveGroup : public ArgGroup { public: ArgExclusiveGroup(const std::string& title, const std::string& help_text, const ArgObject::Mode_t mode = ArgObject::None, const Ar...
krafczyk/ArgParse
inc/ArgParse/Message.h
<filename>inc/ArgParse/Message.h<gh_stars>1-10 #ifndef ARGPARSE_Message_HDR #define ARGPARSE_Message_HDR #include <string> #include <cstring> #include "ArgParse/Utilities.h" namespace ArgParse { int _vscprintf (const char* format, va_list pargs); const std::string& GetMessage(); extern int DebugLevel; extern b...
krafczyk/ArgParse
inc/ArgParse/ArgScalar.h
#ifndef ARGPARSE_ArgScalar_HDR #define ARGPARSE_ArgScalar_HDR #include <sstream> #include "ArgParse/Message.h" #include "ArgParse/Argument.h" namespace ArgParse { template<class T> class ArgScalar : public Argument { public: ArgScalar(const std::string& call_name, const std::string& help_text, T* value, const...
krafczyk/ArgParse
inc/ArgParse/ArgObject.h
<reponame>krafczyk/ArgParse<filename>inc/ArgParse/ArgObject.h #ifndef ARGPARSE_ArgObject_HDR #define ARGPARSE_ArgObject_HDR #include <string> #include "ArgParse/Message.h" namespace ArgParse { class ArgObject { public: //Accept management typedef int Accept_t; static const Accept_t No; static const Ac...
ucla-pbpl/pbpl-compton
src/pyG4MaterialPropertiesTable.h
void export_G4MaterialPropertiesTable();
ucla-pbpl/pbpl-compton
src/PhysicsListEMstd.h
// -*- mode: c++; c-file-style: "stroustrup"; c-basic-offset: 4 -*- #ifndef PHYSICS_LIST_EM_STD_H #define PHYSICS_LIST_EM_STD_H #include <G4VPhysicsConstructor.hh> class PhysicsListEMstd : public G4VPhysicsConstructor { public: PhysicsListEMstd(); ~PhysicsListEMstd(); virtual void ConstructParticle(); ...
ucla-pbpl/pbpl-compton
src/PhysicsList.h
// -*- mode: c++; c-file-style: "stroustrup"; c-basic-offset: 4 -*- #ifndef PHYSICS_LIST_H #define PHYSICS_LIST_H #include <G4VModularPhysicsList.hh> #include <globals.hh> class PhysicsList: public G4VModularPhysicsList { public: PhysicsList(); ~PhysicsList(); virtual void SetCuts(); }; #endif
ucla-pbpl/pbpl-compton
src/pyG4MultiSensitiveDetector.h
<reponame>ucla-pbpl/pbpl-compton void export_G4MultiSensitiveDetector();
ucla-pbpl/pbpl-compton
src/pyCADMesh.h
void export_CADMesh();
ucla-pbpl/pbpl-compton
src/Exception.h
// -*- mode: c++; c-file-style: "stroustrup"; c-basic-offset: 4 -*- #ifndef PBPL_Exception_h #define PBPL_Exception_h #include <exception> #include <string> namespace PBPL { class Exception : public std::runtime_error { std::string msg; public: Exception(const std::string &arg, const char *file, int line) : ...
ucla-pbpl/pbpl-compton
src/ImportedMagneticField.h
<gh_stars>1-10 // -*- mode: c++; c-file-style: "stroustrup"; c-basic-offset: 4 -*- #ifndef IMPORTED_MAGNETIC_FIELD_H #define IMPORTED_MAGNETIC_FIELD_H #include <G4MagneticField.hh> #include <fstream> #include <vector> #include <string> #include <boost/multi_array.hpp> class ImportedMagneticField : public G4MagneticF...
ucla-pbpl/pbpl-compton
src/Particles.h
<reponame>ucla-pbpl/pbpl-compton // -*- mode: c++; c-file-style: "stroustrup"; c-basic-offset: 4 -*- #ifndef PARTICLES_H #define PARTICLES_H #include <G4VPhysicsConstructor.hh> class Particles : public G4VPhysicsConstructor { public: Particles(); ~Particles(); virtual void ConstructParticle(); virtual...
chlds/util
lib/cbr/obj/src/cli_coord_beta.c
<filename>lib/cbr/obj/src/cli_coord_beta.c<gh_stars>0 /* Set flag CLI_IN to get the current cursor position or flag CLI_OUT to set the cursor position. Remarks: Refer at fn. cli_init_ty_beta. The beta edition is for Windows 10 64-bit OS. */ # define CBR # define CLI_W32 # include "../../../incl/config.h" signed(_...
chlds/util
lib/car/obj/src/concat_argv_r.c
/* **** Notes Concatenate */ # define CAR # include "../../../incl/config.h" signed(__cdecl concat_argv_r(signed(*di),signed char(**si))) { /* **** DATA, BSS and STACK */ auto signed i,r; /* **** CODE/TEXT */ if(!di) return(0x00); if(!si) return(0x00); if(!(*si)) return(0x00); *di = (0x00); r = concat_argv_r_r...
chlds/util
lib/car/obj/src/retr_f.c
/* **** Notes Retrieve files. Remarks: Release buffer later. Refer at fn. rl_v. Refer at fn. finds. */ # define CAR # define C_W32API # include "../../../incl/config.h" # include "../../../incl/c_dir.h" signed(__cdecl retr_f(signed char(***di),signed char(*si))) { auto signed char *b; auto signed r; auto dir_info...
chlds/util
lib/car/obj/src/cli_i_except_r.c
<gh_stars>0 /* Get a byte or bytes for one meta key started from (0x00). */ # define CAR # include <conio.h> # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_i_except_r(signed char(**argp))) { auto signed char *b; auto signed r; auto signed short flag; if(!argp) return(0x00); if(!(*argp))...
chlds/util
lib/cbr/obj/src/cli_search_pages_internal.c
/* **** Notes Search pages out of the index page to find characters. Remarks: Based on a doubly linked list */ # define CBR # include "../../../incl/config.h" signed(__cdecl cli_search_pages_internal(CLI_TYPEWRITER(*argp))) { /* **** DATA, BSS and STACK */ auto cli_page_t *page; auto signed char *cur,*base,*p; ...
chlds/util
lib/ccr/obj/src/cmdl2_clear.c
<filename>lib/ccr/obj/src/cmdl2_clear.c<gh_stars>0 /* **** Notes Commandlet to clear the console screen Remarks: unsigned int(__stdcall fn(void(*argp))) for fn. _beginthreadex */ # define C_CODE_STDS # define CCR # include "../../../incl/config.h" unsigned(__stdcall cmdl2_clear(SAT(*argp))) { /* **** DATA */ auto...
chlds/util
lib/car/obj/src/decode_surrogate_first.c
<gh_stars>0 /* Decode bytes into a character based on UTF-16. */ # define CAR # include "../../../incl/config.h" signed(__cdecl decode_surrogate_first(signed short(*di),signed(si))) { auto signed additional = (0x10000); auto signed first = (0xD800); auto signed char *b; auto signed surrog; auto signed i,r; auto s...
chlds/util
lib/car/obj/src/cv_spcr.c
<reponame>chlds/util<filename>lib/car/obj/src/cv_spcr.c<gh_stars>0 /* **** Notes Replace CR with SP. */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl cv_spcr(signed char(*argp))) { auto signed char *b; auto signed i,r; if(!argp) return(0x00); return(cv_ds_f(argp,SP,CR)); }
chlds/util
lib/cbr/obj/src/cli_wrap_internal.c
/* Load. Along with C library Remarks: Refer at fn. cli_bind_pages and fn. cli_concat_pages. */ # define CBR # include <io.h> # include <conio.h> # include <stdio.h> # include <stdlib.h> # include <fcntl.h> # include <sys/stat.h> # include <sys/types.h> # include "../../../incl/config.h" signed(__cdecl cli_wrap_...
chlds/util
lib/car/obj/src/cpy_w.c
/* **** Notes Copy to the <di> out of the <si> */ # define CAR # include "../../../incl/config.h" signed(__cdecl cpy_w(signed short(*di),signed short(*si))) { auto signed short cache; if(!di) return(0x00); if(!si) return(0x00); if(!(*si)) { *di = (0x00); return(0x00); } cache = (*si); *di = (cache); di++; si++;...
chlds/util
bin/obj/src/appd.c
/* **** Notes Append content of files to a new file. */ # define CAR # include "./../../../lib/incl/config.h" // signed(__cdecl main(signed(argc),signed char(**argv),signed char(**envp))) { signed(__cdecl wmain(signed(argc),signed short(**argv),signed short(**envp))) { // auto signed char **v; // auto signed char ...
chlds/util
lib/car/obj/src/opt_b.c
<filename>lib/car/obj/src/opt_b.c<gh_stars>0 /* **** Notes Opt. Remarks: Based on UTF-8 */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl opt_b(signed(arg),void(*argp),signed(__cdecl*f)(signed(arg),void(*argp)))) { auto signed char *b; auto signed i,r; auto signed short flag; a...
chlds/util
lib/car/obj/src/xt_parse_access_w.c
/* Along with C library Remarks: Refer at util/lib/car/obj/src/xt.c */ # define CAR # include <stdio.h> # include <fcntl.h> # include <sys/types.h> # include <sys/stat.h> # include "../../../incl/config.h" signed(__cdecl xt_parse_access_w(signed(*retv),signed char(*argp))) { auto signed char *b; auto signed i,l,r...
chlds/util
lib/car/obj/src/rf_env.c
/* **** Notes Refer. */ # define CAR # include <stdlib.h> # include "./../../../incl/config.h" signed char(*__cdecl rf_env(signed char(*argp))) { if(!argp) return(0x00); return(getenv(argp)); }
chlds/util
lib/car/obj/src/ords_part.c
/* **** Notes Check the ordinal number. //*/ # define CAR # include "./../../../incl/config.h" signed(__cdecl ords_part(signed char(**di),signed char(*si))) { auto signed i,r; if(!di) return(0x00); if(!si) return(0x00); if(!(*di)) return(0x00); r = cmpr_part(&i,si,*di); if(!i) return(0x00); di++; return(0x01+...
chlds/util
lib/car/obj/src/coord_report.c
/* **** Notes Coordinate. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl coord_report(signed(arg),coord_t(*argp))) { auto signed char *p; auto signed i,r; auto signed char *b = ("\033[6n"); auto signed delim = ('R'); auto signed size = (0x10); if(arg<(0x00)) return(0x00); if(!argp) return(0x0...
chlds/util
lib/car/obj/src/unbind_pages.c
<reponame>chlds/util<filename>lib/car/obj/src/unbind_pages.c<gh_stars>0 /* **** Notes Unmap out of the RAM Remarks: Refer at fn. bind_pages. //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl unbind_pages(page_t(*argp))) { auto page_t *page; auto signed r; auto signed short flag; if(!argp) retur...
chlds/util
lib/car/obj/src/appd_ds_w_r.c
/* **** Notes Retrieve a file descriptor to read. Remarks: Refer at fn. wr_ds_w_r. */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl appd_ds_w_r(signed(fd),fl_t(*argp))) { auto signed short *w; auto signed r; auto signed short flag; auto signed char *perm = ("append,rdwr,bina...
chlds/util
lib/car/obj/src/cue_r.c
/* Retrieve bytes to the leading address of a word or symbol. */ # define CAR # include "../../../incl/config.h" signed(__cdecl cue_r(signed short(flag),signed char(*sym),signed char(*argp))) { auto signed char *b; auto signed r; auto signed short BYTE_ONE = (0x01); auto signed short BYTE_MUL = (0x02); auto signed...
chlds/util
lib/car/obj/src/cals_backward_r.c
<reponame>chlds/util<filename>lib/car/obj/src/cals_backward_r.c /* **** Notes Go backward for months //*/ # define CALEND # define CAR # include <errno.h> # include <string.h> # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cals_backward_r(signed(arg),cals_t(*argp))) { auto struct tm *tp; aut...
chlds/util
lib/car/obj/src/compare.c
/* **** Notes Compare addresses. Remarks: Refer at fn. cmpr. */ # define CAR # include "../../../incl/config.h" signed(__cdecl compare(signed char(*di),signed char(*si))) { /* **** CODE/TEXT */ if(!di) return(0x00); if(!si) return(0x00); if(si<(di)) si++; else return(0x00); return(0x01+(compare(di,si))); }
chlds/util
lib/car/obj/src/encode_w.c
<reponame>chlds/util /* Encode a character into bytes based on UTF-8. Check the leading byte for one Unicode character based on UTF-8: .iiii.o*** (0xF0) that stands for the leading byte for a 4-byte character i.e., for a 21-bit-efficient character expressed in .iiii.o*** .io**.**** .io**.**** .io**.**** (3+6+6+6) on...
chlds/util
lib/car/obj/src/scroll_beta.c
<gh_stars>0 /* Scroll a content on console screen buffer up or down in relative coordinates. Remarks: Refer at fn. cli_io_beta. */ # define CAR # include <stdio.h> # include <windows.h> # include "../../../incl/config.h" signed(__cdecl scroll_beta(signed short(arg))) { /* **** DATA, BSS and STACK */ auto signed c...
chlds/util
lib/car/obj/src/cals_count_events.c
<reponame>chlds/util /* **** Notes Count //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_count_events(cals_roll_t(*argp))) { auto cals_event_t *ev; auto signed i,r; if(!argp) return(0x00); if(!(CALS_INIT&(R(flag,*argp)))) return(0x00); ev = (*(CLI_LEAD+(R(event,*argp))))...
chlds/util
lib/car/obj/src/cv_l_r.c
/* **** Notes Convert. //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl cv_l_r(signed short(radix),signed char(*di_tbl),signed char(*si_tbl),signed char(*di),signed char(*si))) { /* **** DATA, BSS and STACK */ auto signed i,r; auto signed short flag; auto signed char c; /* **** CODE/TEXT */ if(...
chlds/util
lib/cbr/obj/src/cli_ctrl_m_beta.c
/* Press <Ctrl-M> to invoke the function. Along with C and Windows libraries Remarks: Refer at util/lib/obj/src/cli_io_beta.c */ # define CBR # define CLI_W32 # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_ctrl_m_beta(CLI_W32_STAT(*argp))) { /*...
chlds/util
lib/car/obj/src/wrap_words.c
/* **** Notes Count bytes of words wrapped in the width. Remarks: Refer at fn. cv_ww. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl wrap_words(signed short(arg),signed char(*sym),signed char(*argp))) { auto signed i,r; if(arg<(0x01)) return(0x00); // if(!sym) return(0x00); if(!argp) return(...