repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
pavelsevecek/OpenSPH
core/objects/wrappers/Expected.h
#pragma once /// \file Expected.h /// \brief Wrapper of type containing either a value or an error message /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "objects/wrappers/Variant.h" NAMESPACE_SPH_BEGIN struct UnexpectedTag {}; const UnexpectedTag UNEXPECTED; /// \brief Wrapper of type that...
pavelsevecek/OpenSPH
core/io/Logger.h
<gh_stars>10-100 #pragma once /// \file Logger.h /// \brief Logging routines of the run. /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "common/Globals.h" #include "io/Path.h" #include "objects/containers/Array.h" #include "objects/wrappers/AutoPtr.h" #include "objects/wrappers/Flags.h" #includ...
pavelsevecek/OpenSPH
core/objects/utility/OutputIterators.h
#pragma once /// \file OutputIterators.h /// \brief Helper iterators allowing to save values to containers. /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "common/Assert.h" #include <type_traits> NAMESPACE_SPH_BEGIN struct OutputIterator { using iterator_category = std::output_iterator_ta...
pavelsevecek/OpenSPH
core/post/Plot.h
<gh_stars>10-100 #pragma once /// \file Plot.h /// \brief Drawing quantity values as functions of time or spatial coordinates /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "objects/containers/Queue.h" #include "objects/utility/OperatorTemplate.h" #include "physics/Integrals.h" #include "post/A...
pavelsevecek/OpenSPH
core/objects/containers/Array.h
<reponame>pavelsevecek/OpenSPH #pragma once /// \file Array.h /// \brief Generic dynamically allocated resizable storage /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "math/MathBasic.h" #include "objects/containers/BasicAllocators.h" #include "objects/containers/ArrayView.h" #ifdef SPH_GCC #p...
pavelsevecek/OpenSPH
core/system/Settings.h
<reponame>pavelsevecek/OpenSPH<gh_stars>10-100 #pragma once /// \file Settings.h /// \brief Generic storage and input/output routines of settings. /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "objects/Exceptions.h" #include "objects/geometry/TracelessTensor.h" #include "objects/utility/EnumMa...
pavelsevecek/OpenSPH
gui/objects/Palette.h
#pragma once #include "gui/objects/Color.h" #include "objects/containers/Array.h" #include "objects/wrappers/Function.h" #include "objects/wrappers/Outcome.h" #include "quantities/QuantityIds.h" NAMESPACE_SPH_BEGIN class Path; enum class PaletteScale { /// Control points are interpolated on linear scale LIN...
pavelsevecek/OpenSPH
core/objects/wrappers/Function.h
#pragma once /// \file Function.h /// \brief Generic wrappers of lambdas, functors and other callables /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "common/Traits.h" #include "objects/wrappers/SharedPtr.h" NAMESPACE_SPH_BEGIN namespace Detail { template <typename TSignature> class Callable;...
pavelsevecek/OpenSPH
core/objects/finders/KdTree.inl.h
<reponame>pavelsevecek/OpenSPH #include "objects/finders/KdTree.h" // including the header just to make syntax highlighting work and code navigation NAMESPACE_SPH_BEGIN enum class KdChild { LEFT = 0, RIGHT = 1, }; template <typename TNode, typename TMetric> void KdTree<TNode, TMetric>::buildImpl(IScheduler& ...
pavelsevecek/OpenSPH
core/objects/wrappers/LockingPtr.h
<reponame>pavelsevecek/OpenSPH #pragma once /// \file LockingPtr.h /// \brief Smart pointer associated with a mutex /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "objects/wrappers/AlignedStorage.h" #include "objects/wrappers/SharedPtr.h" #include <atomic> #include <mutex> NAMESPACE_SPH_BEGIN ...
pavelsevecek/OpenSPH
gui/objects/RenderJobs.h
<gh_stars>10-100 #pragma once #include "gui/Settings.h" #include "gui/objects/Bitmap.h" #include "gui/objects/CameraJobs.h" #include "gui/renderers/IRenderer.h" NAMESPACE_SPH_BEGIN class IColorizer; struct RenderParams; class JobNode; class Palette; enum class RenderColorizerId; enum class AnimationType { SING...
pavelsevecek/OpenSPH
core/system/Platform.h
<reponame>pavelsevecek/OpenSPH<gh_stars>10-100 #pragma once /// \file Platform.h /// \brief System functions /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "objects/wrappers/Expected.h" #include "objects/wrappers/Outcome.h" #include <stdio.h> NAMESPACE_SPH_BEGIN class Path; /// Returns the a...
pavelsevecek/OpenSPH
test/utils/Config.h
#pragma once #include "io/Path.h" NAMESPACE_SPH_BEGIN #ifndef SPH_CONFIG_SET static_assert(false, "You need to modify these paths according to your system. Then define macro SPH_CONFIG_SET and rebuild " "the tests."); #else /// Directory containing auxiliary resources for tests (serialized storage, etc.) co...
pavelsevecek/OpenSPH
gui/renderers/RayMarcher.h
#pragma once #include "gui/Settings.h" #include "gui/objects/Color.h" #include "gui/renderers/Brdf.h" #include "gui/renderers/IRenderer.h" #include "objects/finders/Bvh.h" #include "sph/kernel/Kernel.h" NAMESPACE_SPH_BEGIN class FrameBuffer; class IBrdf; class IColorMap; class RayMarcher : public IRaytracer { priva...
pavelsevecek/OpenSPH
core/objects/finders/Bvh.inl.h
#include "objects/finders/Bvh.h" NAMESPACE_SPH_BEGIN struct BvhTraversal { Size idx; Float t_min; }; struct BvhBuildEntry { Size parent; Size start; Size end; }; bool intersectBox(const Box& box, const Ray& ray, Float& t_min, Float& t_max) { StaticArray<Vector, 2> b = { box.lower(), box.uppe...
pavelsevecek/OpenSPH
core/thread/OpenMp.h
<reponame>pavelsevecek/OpenSPH<filename>core/thread/OpenMp.h #pragma once #include "thread/Scheduler.h" NAMESPACE_SPH_BEGIN /// \brief Scheduler encapsulating OpenMP directives. /// /// Need to be compiled with -fopenmp. class OmpScheduler : public IScheduler { private: static SharedPtr<OmpScheduler> globalInsta...
pavelsevecek/OpenSPH
core/objects/utility/EnumMap.h
#pragma once /// \file EnumMap.h /// \brief Helper object for converting enums to string, listing all available values of enum, etc. /// \author <NAME> (sevecek at sirrah.<EMAIL> /// \date 2016-2021 #include "objects/containers/FlatMap.h" #include <typeindex> NAMESPACE_SPH_BEGIN struct EnumValue { /// Text of t...
pavelsevecek/OpenSPH
core/run/jobs/InitialConditionJobs.h
<reponame>pavelsevecek/OpenSPH<gh_stars>10-100 #pragma once #include "objects/containers/Grid.h" #include "run/jobs/MaterialJobs.h" #include "sph/initial/Galaxy.h" NAMESPACE_SPH_BEGIN /// \brief Creates a single monolithic body class MonolithicBodyIc : public IParticleJob, public MaterialProvider { protected: st...
pavelsevecek/OpenSPH
gui/renderers/VolumeRenderer.h
#pragma once #include "gui/objects/Color.h" #include "gui/renderers/IRenderer.h" #include "objects/finders/Bvh.h" #include <atomic> NAMESPACE_SPH_BEGIN class VolumeRenderer : public IRaytracer { private: /// BVH for finding intersections of rays with particles Bvh<BvhSphere> bvh; struct { /// Pa...
pavelsevecek/OpenSPH
core/objects/containers/FlatMap.h
<reponame>pavelsevecek/OpenSPH #pragma once /// \file FlatMap.h /// \brief Key-value associative container implemented as a sorted array /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "objects/containers/Array.h" #include "objects/containers/Tags.h" #include "objects/wrappers/Optional.h" #inclu...
pavelsevecek/OpenSPH
gui/objects/RenderContext.h
<gh_stars>10-100 #pragma once #include "gui/Utils.h" #include "gui/objects/Bitmap.h" #include "gui/objects/Color.h" #include "gui/renderers/IRenderer.h" #include "sph/kernel/Kernel.h" #include <wx/dc.h> NAMESPACE_SPH_BEGIN enum class ColorFlag { LINE = 1 << 0, FILL = 1 << 1, TEXT = 1 << 2, }; /// \brie...
pavelsevecek/OpenSPH
core/common/Assert.h
<filename>core/common/Assert.h #pragma once /// \file Assert.h /// \brief Custom assertions /// \author <NAME> (sevecek at sirrah.<EMAIL>) /// \date 2016-2021 #include "common/Globals.h" #include <exception> #include <sstream> NAMESPACE_SPH_BEGIN struct Assert { static bool isTest; /// \brief If true, asse...
pavelsevecek/OpenSPH
core/io/Table.h
<gh_stars>10-100 #pragma once /// \file Table.h /// \brief Helper container allowing to store strings in cells and print them into table /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "objects/containers/Array.h" NAMESPACE_SPH_BEGIN class Table { private: using Row = Array<std::string>; ...
pavelsevecek/OpenSPH
gui/objects/Colorizer.h
#pragma once /// \file Colorizer.h /// \brief Object converting quantity values of particles into colors. /// \author <NAME> (sevecek at <EMAIL>) /// \date 2016-2021 #include "gravity/AggregateSolver.h" #include "gui/Settings.h" #include "gui/objects/Palette.h" #include "gui/objects/Point.h" #include "gui/objects/Tex...
pavelsevecek/OpenSPH
core/system/Settings.impl.h
#include "io/FileSystem.h" #include "objects/Exceptions.h" #include "objects/utility/StringUtils.h" #include "objects/wrappers/Outcome.h" #include "system/Settings.h" #include <fstream> #include <regex> /// Settigs implementation, needs to be included in cpp with explicit instantiation of Settings. NAMESPACE_SPH_BEGI...
pavelsevecek/OpenSPH
gui/objects/SvgContext.h
<filename>gui/objects/SvgContext.h #pragma once /// \file SvgContext.h /// \brief Implementation of IDrawingContext for creating vector images (.svg) /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "gui/objects/Point.h" #include "io/Path.h" #include "post/Plot.h" #include <wx/dcsvg.h> NAMESPACE...
pavelsevecek/OpenSPH
gui/ImageTransform.h
#pragma once #include "gui/objects/Bitmap.h" #include "thread/Scheduler.h" NAMESPACE_SPH_BEGIN template <typename Transform> Bitmap<Rgba> transform(const Bitmap<Rgba>& input, const Transform& func) { Bitmap<Rgba> result(input.size()); for (int y = 0; y < input.size().y; ++y) { for (int x = 0; x < inp...
pavelsevecek/OpenSPH
core/sph/Materials.h
<filename>core/sph/Materials.h #pragma once /// \file Materials.h /// \brief SPH-specific implementation of particle materials /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "quantities/IMaterial.h" NAMESPACE_SPH_BEGIN class IEos; class IRheology; /// \brief Material holding equation of stat...
pavelsevecek/OpenSPH
gui/windows/GridPage.h
<reponame>pavelsevecek/OpenSPH<gh_stars>10-100 #pragma once #include "post/Analysis.h" #include "quantities/Storage.h" #include <thread> #include <wx/grid.h> #include <wx/panel.h> NAMESPACE_SPH_BEGIN enum class CheckFlag; class GridPage : public wxPanel { private: wxGrid* grid = nullptr; std::thread thread;...
pavelsevecek/OpenSPH
gui/renderers/IRenderer.h
<reponame>pavelsevecek/OpenSPH #pragma once /// \file IRenderer.h /// \brief Interface for renderers /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "gui/objects/Color.h" #include "gui/objects/Point.h" #include "gui/objects/Texture.h" #include "objects/wrappers/Any.h" #include "objects/wrappers/...
pavelsevecek/OpenSPH
core/run/jobs/ParticleJobs.h
<reponame>pavelsevecek/OpenSPH #pragma once #include "run/Job.h" NAMESPACE_SPH_BEGIN class JoinParticlesJob : public IParticleJob { private: Vector offset = Vector(0._f); Vector velocity = Vector(0._f); bool moveToCom = false; bool uniqueFlags = true; public: explicit JoinParticlesJob(const std:...
pavelsevecek/OpenSPH
core/math/AffineMatrix.h
<reponame>pavelsevecek/OpenSPH<filename>core/math/AffineMatrix.h #pragma once /// \file AffineMatrix.h /// \brief Three-dimensional affine matrix /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "objects/geometry/Vector.h" #include "objects/wrappers/Optional.h" NAMESPACE_SPH_BEGIN /// \todo som...
pavelsevecek/OpenSPH
core/io/Path.h
#pragma once /// \file Path.h /// \brief Object representing a path on a filesystem, similar to std::filesystem::path in c++17 /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "common/Assert.h" #include <unistd.h> NAMESPACE_SPH_BEGIN /// \brief Object representing a path on a filesystem /// ///...
pavelsevecek/OpenSPH
gui/ArcBall.h
#pragma once /// \file ArcBall.h /// \brief Helper class for rotating objects by mouse drag /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "gui/objects/Point.h" #include "math/AffineMatrix.h" #include "math/Quat.h" NAMESPACE_SPH_BEGIN /// \brief Helper object providing rotation matrix based o...
pavelsevecek/OpenSPH
core/objects/wrappers/Outcome.h
#pragma once /// \file Outcome.h /// \brief Return value of function that may fail, containing either SUCCEES (true) or error message /// \author <NAME> (sevecek ar <EMAIL>) /// \date 2016-2021 #include "objects/wrappers/Optional.h" NAMESPACE_SPH_BEGIN struct SuccessTag {}; struct FailTag {}; /// \brief Utility f...
pavelsevecek/OpenSPH
core/sph/equations/Accumulated.h
<filename>core/sph/equations/Accumulated.h #pragma once /// \file Accumulated.h /// \brief Buffer storing quantity values accumulated by summing over particle pairs /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "common/ForwardDecl.h" #include "objects/containers/Array.h" #include "objects/geom...
pavelsevecek/OpenSPH
core/system/ArgsParser.h
#pragma once #include "io/Logger.h" #include "objects/Exceptions.h" #include "objects/containers/FlatMap.h" #include "objects/wrappers/Function.h" #include "objects/wrappers/SharedPtr.h" #include "objects/wrappers/Variant.h" #include "system/Settings.h" NAMESPACE_SPH_BEGIN enum class ArgEnum { NONE, ///< No valu...
pavelsevecek/OpenSPH
core/gravity/Collision.h
<filename>core/gravity/Collision.h #pragma once /// \file Collision.h /// \brief Collision handling /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "objects/containers/FlatSet.h" #include "physics/Functions.h" #include "quantities/Storage.h" #include "system/Settings.h" NAMESPACE_SPH_BEGIN enu...
pavelsevecek/OpenSPH
core/gravity/Moments.h
#pragma once #include "objects/geometry/Multipole.h" NAMESPACE_SPH_BEGIN template <Size N> INLINE void computeGreenGamma(ArrayView<Float> gamma, const Vector dr) { const Float invDistSqr = 1._f / getSqrLength(dr); gamma[0] = -sqrt(invDistSqr); for (Size i = 1; i < N + 2; ++i) { gamma[i] = -(2._f ...
pavelsevecek/OpenSPH
core/objects/utility/StringUtils.h
<reponame>pavelsevecek/OpenSPH<filename>core/objects/utility/StringUtils.h #pragma once #include "objects/containers/Array.h" #include "objects/containers/StaticArray.h" #include "objects/wrappers/Optional.h" #include <set> #include <string> NAMESPACE_SPH_BEGIN /// Converts a string to given type. template <typename...
pavelsevecek/OpenSPH
gui/windows/BatchDialog.h
<reponame>pavelsevecek/OpenSPH<filename>gui/windows/BatchDialog.h #pragma once #include "gui/objects/Bitmap.h" #include "run/Node.h" #include <wx/dialog.h> #include <wx/grid.h> NAMESPACE_SPH_BEGIN class Config; class BatchManager { private: struct Col { SharedPtr<JobNode> node; std::string key; ...
pavelsevecek/OpenSPH
gui/objects/Camera.h
#pragma once /// \file Camera.h /// \brief Defines projection transforming 3D particles onto 2D screen /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "gui/objects/Point.h" #include "math/AffineMatrix.h" #include "objects/wrappers/ClonePtr.h" #include "objects/wrappers/Optional.h" NAMESPACE_SPH...
pavelsevecek/OpenSPH
core/run/jobs/IoJobs.h
#pragma once #include "run/Job.h" NAMESPACE_SPH_BEGIN class Triangle; enum class UnitEnum { SI, CGS, NBODY, }; class LoadFileJob : public IParticleJob { private: Path path; EnumWrapper units = EnumWrapper(UnitEnum::SI); public: LoadFileJob(const Path& path = Path("file.ssf")) : IPa...
pavelsevecek/OpenSPH
gui/windows/CurveDialog.h
<gh_stars>10-100 #pragma once #include "gui/objects/Color.h" #include "gui/objects/Point.h" #include "math/Curve.h" #include "objects/containers/Array.h" #include "objects/wrappers/Function.h" #include "objects/wrappers/Optional.h" #include <algorithm> #include <wx/dcclient.h> #include <wx/frame.h> #include <wx/panel....
pavelsevecek/OpenSPH
core/quantities/Storage.h
#pragma once /// \file Storage.h /// \brief Container for storing particle quantities and materials. /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "common/ForwardDecl.h" #include "objects/Exceptions.h" #include "objects/containers/Array.h" #include "objects/containers/FlatMap.h" #include "obje...
pavelsevecek/OpenSPH
core/sph/equations/DerivativeHelpers.h
#pragma once #include "quantities/Quantity.h" #include "sph/equations/Derivative.h" NAMESPACE_SPH_BEGIN enum class DerivativeFlag { /// \brief Use correction tensor on kernel gradient when evaluating the derivative. /// /// Can be currently only used for asymmetric derivatives. Implies \ref SUM_ONLY_UNDA...
pavelsevecek/OpenSPH
core/objects/containers/Queue.h
#pragma once /// \file Queue.h /// \brief Double-ended queue /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2017 #include "math/MathUtils.h" #include "objects/containers/ArrayView.h" #include <mm_malloc.h> NAMESPACE_SPH_BEGIN /// \brief Container allowing to add and remove elements from both ends. template...
pavelsevecek/OpenSPH
core/objects/containers/StaticArray.h
<reponame>pavelsevecek/OpenSPH<filename>core/objects/containers/StaticArray.h<gh_stars>10-100 #pragma once #include "objects/containers/ArrayView.h" #include "objects/wrappers/AlignedStorage.h" #include <initializer_list> NAMESPACE_SPH_BEGIN const struct EmptyArray { } EMPTY_ARRAY; /// \brief Array with fixed numbe...
pavelsevecek/OpenSPH
core/objects/containers/String.h
#pragma once /// \file String.h /// \brief Object representing a sequence of characters /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "objects/containers/Array.h" #include <string.h> NAMESPACE_SPH_BEGIN class String { private: Array<char> data = { '\0' }; public: String() = default;...
pavelsevecek/OpenSPH
core/objects/containers/BasicAllocators.h
<filename>core/objects/containers/BasicAllocators.h #pragma once /// \file BasicAllocators.h /// \brief Allocators used by containers /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "common/Assert.h" #include <mm_malloc.h> NAMESPACE_SPH_BEGIN struct MemoryBlock { void* ptr; std::size_t...
pavelsevecek/OpenSPH
gui/windows/RunPage.h
<gh_stars>10-100 #pragma once #include "gui/Settings.h" #include "gui/windows/Widgets.h" #include "objects/containers/Array.h" #include "objects/wrappers/LockingPtr.h" #include "system/Settings.h" #include "system/Timer.h" #include <wx/panel.h> class wxBoxSizer; class wxGauge; class wxCheckBox; class wxTextCtrl; clas...
pavelsevecek/OpenSPH
core/quantities/Attractor.h
#pragma once #include "system/Settings.h" NAMESPACE_SPH_BEGIN enum class AttractorSettingsId { /// String identifier of the attractor LABEL = 0, /// If true, the attractor absorbs any particle that falls below the attractor's radius. BLACK_HOLE = 1, /// Texture VISUALIZATION_TEXTURE = 100, ...
pavelsevecek/OpenSPH
core/objects/finders/NeighborFinder.h
#pragma once /// \file NeighborFinder.h /// \brief Base class defining interface for kNN queries. /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "objects/containers/ArrayView.h" #include "objects/finders/Order.h" #include "objects/geometry/Vector.h" #include "objects/wrappers/Flags.h" NAMESPAC...
pavelsevecek/OpenSPH
core/sph/boundary/Boundary.h
<gh_stars>10-100 #pragma once /// \file Boundary.h /// \brief Boundary conditions /// \author <NAME> (sevecek at s<EMAIL>) /// \date 2016-2021 #include "common/ForwardDecl.h" #include "objects/containers/Array.h" #include "objects/geometry/Domain.h" #include "objects/geometry/Vector.h" #include "objects/wrappers/Auto...
konevas/cortex-m3_fault_handler
fault.h
/** * @brief Fault handler header * * @author <NAME>. */ /* Should be used as fault handlers entry in vector table */ void fault_entry(void); /* Reqired to be defined */ /* void fault_common_handler(const int * stack_ptr, int handler_index); */
anjunhu/flakes
TISGrabberGlobalDefs.h
<reponame>anjunhu/flakes #ifndef __GLOBALDEFS_H__ #define __GLOBALDEFS_H__ typedef enum { FILETYPE_BMP, FILETYPE_JPEG, FILETYPE_MEGA=65536 // Borland C++ 6 compatibility } IMG_FILETYPE; typedef enum { Y800, RGB24, RGB32, UYVY, Y16, NONE, // used as return value COLORFORMAT_MEGA=65536 // Borland C++ 6 co...
anjunhu/flakes
tisgrabber.h
<reponame>anjunhu/flakes<filename>tisgrabber.h<gh_stars>0 #ifndef _TISGRABBER #define _TISGRABBER ////////////////////////////////////////////////////////////////////////// /*! @mainpage Please see "tisgrabber.h" for the function documentation. */ #include "TISGrabberGlobalDefs.h" // WINAPI for Visual Basic //#d...
cbarrett/XPC-Calc
XPC Calc/XPC_CalcAppDelegate.h
<reponame>cbarrett/XPC-Calc<filename>XPC Calc/XPC_CalcAppDelegate.h // // XPC_CalcAppDelegate.h // XPC Calc // // Created by <NAME> on 8/6/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import <Cocoa/Cocoa.h> #import <xpc/xpc.h> @interface XPC_CalcAppDelegate : NSObject <NSApplicationDelegate> ...
cbarrett/XPC-Calc
Haskell Service/main.c
// // main.c // XPC Calc // // Created by <NAME> on 8/7/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #include "main.h" #include <stdio.h> #include "HsFFI.h" #include "HsXPC_stub.h" extern void __stginit_HsXPC(); void hsxpc_dictionary_get_keys_and_values(xpc_object_t dictionary, const char **k...
cbarrett/XPC-Calc
Shared.h
<gh_stars>1-10 // // Shared.h // XPC Calc // // Created by <NAME> on 8/6/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #ifndef XPC_Calc_Shared_h #define XPC_Calc_Shared_h enum { OperatorAdd, OperatorSub, OperatorMul, OperatorDiv }; #endif
cbarrett/XPC-Calc
Haskell Service/main.h
<gh_stars>1-10 #include <xpc/xpc.h> void hsxpc_dictionary_get_keys_and_values(xpc_object_t dictionary, const char **keys, xpc_object_t *values);
CychUC/SmallBase
user/menu/menu.h
#pragma once #include <common.h> namespace Small { class Menu { public: void Init(); void Loop(); public: bool initialized_; bool opened_; }; inline Menu menu; }
CychUC/SmallBase
appdata/il2cpp-api-functions-ptr.h
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty // Target Unity version: 2020.2.4 - 2020.3.99 // ****************************************************************************** // * IL2CPP API function pointers // *************************************************************...
CychUC/SmallBase
appdata/il2cpp-types-ptr.h
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty // Target Unity version: 2020.2.4 - 2020.3.99 // ****************************************************************************** // * IL2CPP application-specific type definition addresses // ************************************...
CychUC/SmallBase
appdata/il2cpp-metadata-version.h
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty // Target Unity version: 2020.2.4 - 2020.3.99 #define __IL2CPP_METADATA_VERSION 271
CychUC/SmallBase
user/hooking/hooking.h
#pragma once #include <common.h> #include <detours/detours.h> namespace Small { struct Hooks { static HRESULT HookPresent(IDXGISwapChain* this_, UINT sync_, UINT flags_); static LRESULT HookWndProc(HWND hwnd_, UINT msg_, WPARAM wparam_, LPARAM lparam_); }; class Hooking { friend Hooks; public: explicit H...
dguerizec/teleinfo
firmware/teleinfo.h
<reponame>dguerizec/teleinfo #ifndef __TELEINFO_H__ #define __TELEINFO_H__ #include "application.h" #define FRAME_START 0x02 #define FRAME_END 0x03 #define FRAME_MAX_LEN 1024 #define FRAME_READ_TIMEOUT 2000 class Teleinfo { private: Stream *stream; bool verbose; String *frame; ...
timpur/esphome-components
esphome-components/freqtiny/freqtiny.h
#pragma once #include "esphome/components/i2c/i2c.h" #include "esphome/components/sensor/sensor.h" #include "esphome/core/component.h" namespace esphome { namespace freqtiny { enum FreqTinyPin { FREQTINY_PIN_5 = 0b00, FREQTINY_PIN_3 = 0b01, FREQTINY_PIN_4 = 0b10, FREQTINY_PIN_1 = 0b11, }; enum FreqTinyPuls...
timpur/esphome-components
esphome-components/wind/wind.h
<reponame>timpur/esphome-components<filename>esphome-components/wind/wind.h<gh_stars>0 #pragma once #include "esphome/core/component.h" #include "esphome/components/sensor/sensor.h" #include "esphome/components/text_sensor/text_sensor.h" namespace esphome { namespace wind { class WindComponent : public Component { p...
regnauld/lxd
shared/netutils/unixfd.h
<gh_stars>1000+ // +build linux // +build cgo #ifndef LXD_UNIXFD_H #define LXD_UNIXFD_H #include <linux/types.h> #include <sys/socket.h> #include <sys/types.h> #define KERNEL_SCM_MAX_FD 253 /* Allow the caller to set expectations. */ #define UNIX_FDS_ACCEPT_EXACT ((__u32)(1 << 0)) /* default */ #define UNIX_FDS_ACC...
regnauld/lxd
lxd/include/mount_utils.h
<reponame>regnauld/lxd #ifndef __LXD_MOUNT_UTILS_H #define __LXD_MOUNT_UTILS_H #ifndef _GNU_SOURCE #define _GNU_SOURCE 1 #endif #include <linux/sched.h> #include <sched.h> #include <signal.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <sys/syscall.h> #include <sys/wait.h> #include <unistd.h> ...
regnauld/lxd
lxd/include/syscall_wrappers.h
#ifndef __LXD_SYSCALL_WRAPPER_H #define __LXD_SYSCALL_WRAPPER_H #ifndef _GNU_SOURCE #define _GNU_SOURCE 1 #endif #include <asm/unistd.h> #include <errno.h> #include <sys/syscall.h> #include <sys/types.h> #include <unistd.h> #include "syscall_numbers.h" #ifndef CLOSE_RANGE_UNSHARE #define CLOSE_RANGE_UNSHARE (1U << 1...
regnauld/lxd
shared/netutils/unixfd.c
<reponame>regnauld/lxd // +build linux // +build cgo #ifndef _GNU_SOURCE #define _GNU_SOURCE 1 #endif #include <errno.h> #include <fcntl.h> #include <grp.h> #include <limits.h> #include <poll.h> #include <pty.h> #include <pwd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <s...
yantor3d/polySymmetry
src/sceneCache.h
/** Copyright (c) 2017 <NAME> You may use, distribute, or modify this code under the terms of the MIT license. */ #ifndef POLY_SYMMETRY_SCENE_CACHE_H #define POLY_SYMMETRY_SCENE_CACHE_H #include <string> #include <unordered_map> #include <maya/MCallbackIdArray.h> #include <maya/MObject.h> #include <maya/...
yantor3d/polySymmetry
src/polySymmetryCmd.h
<gh_stars>10-100 /** Copyright (c) 2017 <NAME> You may use, distribute, or modify this code under the terms of the MIT license. */ #ifndef POLY_SYMMETRY_CMD_H #define POLY_SYMMETRY_CMD_H #include "meshData.h" #include "polySymmetry.h" #include <vector> #include <maya/MArgList.h> #include <maya/MArgDatab...
yantor3d/polySymmetry
src/polySymmetry.h
<gh_stars>10-100 /** Copyright (c) 2017 <NAME> You may use, distribute, or modify this code under the terms of the MIT license. */ #ifndef POLY_SYMMETRY_H #define POLY_SYMMETRY_H #include "meshData.h" #include "selection.h" #include <queue> #include <utility> #include <vector> #include <maya/MDagPath.h...
yantor3d/polySymmetry
src/polyDeformerWeights.h
/** Copyright (c) 2017 <NAME> You may use, distribute, or modify this code under the terms of the MIT license. */ #ifndef POLY_DEFORMER_WEIGHTS_H #define POLY_DEFORMER_WEIGHTS_H #include <vector> #include <maya/MArgList.h> #include <maya/MArgDatabase.h> #include <maya/MDagPath.h> #include <maya/MFloatArr...
yantor3d/polySymmetry
src/polyChecksum.h
/** Copyright (c) 2017 <NAME> You may use, distribute, or modify this code under the terms of the MIT license. */ #ifndef POLY_CHECKSUM_H #define POLY_CHECKSUM_H #include <cstddef> // based on code found at http://www.relisoft.com/science/CrcOptim.html class PolyChecksum { public: ...
yantor3d/polySymmetry
src/polySkinWeights.h
<reponame>yantor3d/polySymmetry /** Copyright (c) 2017 <NAME> You may use, distribute, or modify this code under the terms of the MIT license. */ #ifndef POLY_SKIN_WEIGHTS_H #define POLY_SKIN_WEIGHTS_H #include <functional> #include <string> #include <unordered_map> #include <vector> #include <maya/MArgL...
yantor3d/polySymmetry
src/polySymmetryNode.h
<gh_stars>10-100 /** Copyright (c) 2017 <NAME> You may use, distribute, or modify this code under the terms of the MIT license. */ #ifndef POLY_SYMMETRY_NODE_H #define POLY_SYMMETRY_NODE_H #include <string> #include <vector> #include <maya/MDagPath.h> #include <maya/MDataHandle.h> #include <maya/MFnDepen...
yantor3d/polySymmetry
src/parseArgs.h
<gh_stars>10-100 #ifndef PARSE_ARGS_H #define PARSE_ARGS_H #include <maya/MArgDatabase.h> #include <maya/MDagPath.h> #include <maya/MFn.h> #include <maya/MObject.h> #include <maya/MStatus.h> namespace parseArgs { MStatus getNodeArgument(MArgDatabase &argsData, const char* flag, MObject &node, bool required); ...
yantor3d/polySymmetry
src/meshData.h
<gh_stars>10-100 /** Copyright (c) 2017 <NAME> You may use, distribute, or modify this code under the terms of the MIT license. */ #ifndef MESH_DATA_CMD_H #define MESH_DATA_CMD_H #include <vector> #include <unordered_map> #include <maya/MDagPath.h> #include <maya/MItMeshEdge.h> #include <maya/MItMeshPoly...
yantor3d/polySymmetry
src/polySymmetryTool.h
/** Copyright (c) 2017 <NAME> You may use, distribute, or modify this code under the terms of the MIT license. */ #ifndef POLY_SYMMETRY_TOOL_H #define POLY_SYMMETRY_TOOL_H #include "meshData.h" #include "polySymmetry.h" #include <vector> #include <maya/MColor.h> #include <maya/MColorArray.h> #include <m...
yantor3d/polySymmetry
src/selection.h
/** Copyright (c) 2017 <NAME> You may use, distribute, or modify this code under the terms of the MIT license. */ #ifndef POLY_SYMMETRY_SELECTION_H #define POLY_SYMMETRY_SELECTION_H #include "meshData.h" #include <vector> #include <utility> #include <maya/MDagPath.h> #include <maya/MFn.h> #include <maya...
yantor3d/polySymmetry
src/util.h
/** Copyright (c) 2017 <NAME> You may use, distribute, or modify this code under the terms of the MIT license. */ #ifndef POLY_SYMMETRY_UTIL_H #define POLY_SYMMETRY_UTIL_H #include <algorithm> #include <vector> using namespace std; vector<int> intersection(vector<int> &a, vector<int> &b); bool co...
shobhit85/BackPocket
Source/ObjectSerializer.h
<reponame>shobhit85/BackPocket<gh_stars>0 // // ObjectSerializer.h // // Created by <NAME> on 10/12/13. // #import <Foundation/Foundation.h> @protocol ObjectSerializer <NSObject> @required - (NSData *) serialize:(NSObject *)object; - (NSObject *) deserialize: (NSData *)bytes; @end
shobhit85/BackPocket
Source/DataStore.h
<gh_stars>0 // // Region.h // // Created by <NAME> on 1/3/13. // #import <Foundation/Foundation.h> #import "Pool.h" #import "ObjectSerializer.h" @interface DataStore : NSObject { NSNumber *size; NSString *name; Pool *connectionPool; } @property (copy, getter = getName) NSString *name; @property (nonato...
shobhit85/BackPocket
Examples/SampleObjectCache/SampleObjectCache/SampleObjectCacheMasterViewController.h
// // SampleObjectCacheMasterViewController.h // SampleObjectCache // // Created by <NAME> on 3/24/13. // Copyright (c) 2013 shobhita. All rights reserved. // #import <UIKit/UIKit.h> @interface SampleObjectCacheMasterViewController : UITableViewController @end
shobhit85/BackPocket
Examples/SampleObjectCache/SampleObjectCache/SampleObjectCacheDetailViewController.h
<filename>Examples/SampleObjectCache/SampleObjectCache/SampleObjectCacheDetailViewController.h // // SampleObjectCacheDetailViewController.h // SampleObjectCache // // Created by <NAME> on 3/24/13. // Copyright (c) 2013 shobhita. All rights reserved. // #import <UIKit/UIKit.h> @interface SampleObjectCacheDetailVi...
shobhit85/BackPocket
Source/Pool.h
<filename>Source/Pool.h // // Pool.h // // Created by <NAME> on 1/6/13. // #import <Foundation/Foundation.h> #import "Connection.h" @interface Pool : NSObject { NSString *server; NSInteger port; } @property (retain, nonatomic) NSString *server; @property (assign, readwrite) NSInteger port; - (id)initializ...
shobhit85/BackPocket
Source/PocketFactory.h
<filename>Source/PocketFactory.h // // PocketFactory.h // // Created by <NAME> on 1/3/13. // #import <Foundation/Foundation.h> #import "Pocket.h" @interface PocketFactory : NSObject { NSDictionary *properties; } @property (copy, getter = getProps) NSDictionary *properties; - (id) initWithProps:(NSDictionary *...
shobhit85/BackPocket
Source/Pocket.h
<reponame>shobhit85/BackPocket // // ClientCache.h // // Created by <NAME> on 1/3/13. // #import <Foundation/Foundation.h> #import "DataStore.h" #import "PoolManager.h" @interface Pocket : NSObject { NSString *server; NSInteger port; } @property (copy, nonatomic) NSString *server; @property (readonly, nona...
shobhit85/BackPocket
Source/AbstractDataStoreMap.h
// // AbstractRegionMap.h // // Created by <NAME> on 1/22/13. // #import <Foundation/Foundation.h> #import <CoreFoundation/CoreFoundation.h> #define DEFAULT_CACHE_SIZE 1000 @class DSValue; @interface AbstractDataStoreMap : NSObject { CFMutableDictionaryRef map; DSValue *first; DSValue *last; int32...
shobhit85/BackPocket
Source/Message.h
// // GetRequestMessage.h // // Created by <NAME> on 1/27/13. // #import <Foundation/Foundation.h> #import "ObjectSerializer.h" #import <objc/runtime.h> #define OFFSETTER sizeof(int32_t) @interface Message : NSObject @property (assign, getter = getOpcode) int16_t op; @property (retain, getter = getDSName) NSStrin...
shobhit85/BackPocket
Examples/SampleObjectCache/SampleObjectCache/SampleObjectCacheAppDelegate.h
// // SampleObjectCacheAppDelegate.h // SampleObjectCache // // Created by <NAME> on 3/24/13. // Copyright (c) 2013 shobhita. All rights reserved. // #import <UIKit/UIKit.h> #import <BackPocket.h> @class SampleObjectCacheMasterViewController; @interface SampleObjectCacheAppDelegate : UIResponder <UIApplicationDe...
shobhit85/BackPocket
Source/Connection.h
<filename>Source/Connection.h // // Connection.h // // Created by <NAME> on 1/6/13. // #import <CoreFoundation/CoreFoundation.h> #import <Foundation/Foundation.h> @interface Connection : NSObject { CFReadStreamRef readStream; CFWriteStreamRef writeStream; } @property CFReadStreamRef readStream; @property ...
shobhit85/BackPocket
Source/DefaultPListObjectSerializer.h
<reponame>shobhit85/BackPocket // // DefaultPListObjectSerializer.h // // Created by <NAME> on 10/13/13. // #import "ObjectSerializer.h" #import <objc/runtime.h> @interface DefaultPListObjectSerializer : NSObject <ObjectSerializer> @end
shobhit85/BackPocket
Source/PoolManager.h
<reponame>shobhit85/BackPocket<filename>Source/PoolManager.h<gh_stars>0 // // PoolManager.h // // Created by <NAME> on 1/6/13. // #import <Foundation/Foundation.h> #import "Pool.h" #define INIT_NUM_CONN 5 @interface PoolManager : NSObject + (Pool *)createPoolWithAddress:(NSString *)server port:(NSInteger *)port; ...
shobhit85/BackPocket
Source/BackPocket.h
// // Created by <NAME> on 1/3/13. // #import <Foundation/Foundation.h> #import "PocketFactory.h" @interface BackPocket : NSObject + (PocketFactory *) getPocketFactory:(NSDictionary *) props; @end
ic-lab-duth/NoCpad
examples/nocpad_2m-2s_2d-mesh_vc-req-resp_id-order/ic_top_2d_1noc.h
#ifndef AXI4_TOP_IC_H #define AXI4_TOP_IC_H #pragma once #include "../../src/axi_master_if_vc.h" #include "../../src/axi_slave_if_vc.h" #include "../../src/router_vc.h" #include "systemc.h" #include "nvhls_connections.h" #pragma hls_design top // Bundle of configuration parameters template < unsigned char MASTE...