repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
HoriaCool/Hackthon-SO-2020-2021
skel/server/server.c
/** * Hackathon SO: LogMemCacher * (c) 2020-2021, Operating Systems */ #include <ctype.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "../include/server.h" #ifdef __unix__ #include <sys/socket.h> #elif defined(_WIN32) #include <windows.h> #endif static ...
karmaresearch/laser-plus-plus
include/service/conjunctive_query.h
#ifndef LASER_SERVICE_CONJUNCTIVE_QUERY_H #define LASER_SERVICE_CONJUNCTIVE_QUERY_H #include <string> #include "formula/formula.h" #include "service/request.h" #include "service/request_type.h" #include "util/grounding.h" namespace laser { namespace service { class ConjunctiveQuery : public Request { private: ...
karmaresearch/laser-plus-plus
include/util/request_exception.h
// // Created by mike on 6/19/18. // #ifndef LASER_UTIL_REQUEST_EXCEPTION_H #define LASER_UTIL_REQUEST_EXCEPTION_H #include <exception> namespace laser { namespace util { class RequestException : public std::exception { private: char const *message_m = "RequestException"; public: RequestException() = defau...
karmaresearch/laser-plus-plus
include/rule/rule_parser.h
#ifndef LASER_RULE_RULE_PARSER_H #define LASER_RULE_RULE_PARSER_H #include <algorithm> #include <set> #include <sstream> #include "formula/extended/atom.h" #include "formula/extended/box.h" #include "formula/extended/conjunction.h" #include "formula/extended/diamond.h" #include "formula/extended/math.h" #include "for...
karmaresearch/laser-plus-plus
include/example/example_reader.h
<filename>include/example/example_reader.h // // Created by mike on 6/21/18. // #ifndef LASER_EXAMPLE_EXAMPLE_READER_H #define LASER_EXAMPLE_EXAMPLE_READER_H #include <sstream> #include <string> #include <unordered_map> #include <utility> #include <vector> #include <util/format_exception.h> #include <util/read_excep...
karmaresearch/laser-plus-plus
include/example/example_io_manager.h
<filename>include/example/example_io_manager.h #ifndef LASER_EXAMPLE_EXAMPLE_IO_MANAGER_H #define LASER_EXAMPLE_EXAMPLE_IO_MANAGER_H #include <memory> #include <vector> #include <core/io_manager.h> #include <util/grounding.h> #include <util/timeline.h> #include "example_parser.h" #include "example_reader.h" #include...
karmaresearch/laser-plus-plus
include/rule/shared.h
#ifndef LASER_RULE_SHARED_H #define LASER_RULE_SHARED_H #include <cstdint> #include <memory> #include <map> #include <unordered_map> #include "util/database.h" #include "util/grounding.h" #include "util/timeline.h" namespace laser { namespace rule { namespace shared { std::unordered_map<std::string, int> make_index...
karmaresearch/laser-plus-plus
include/formula/extended/time_window.h
<filename>include/formula/extended/time_window.h #ifndef LASER_FORMULA_EXTENDED_TIME_WINDOW_H #define LASER_FORMULA_EXTENDED_TIME_WINDOW_H #include <string> #include "formula/formula.h" #include "formula/math_operator.h" #include "util/grounding.h" namespace laser::formula { /** * Time Window Formula */ class Tim...
karmaresearch/laser-plus-plus
include/util/settings.h
<filename>include/util/settings.h #ifndef LASER_UTIL_SETTINGS_H #define LASER_UTIL_SETTINGS_H #include "util/chase_algorithm.h" namespace laser { namespace util { class Settings { private: ChaseAlgorithm chase_algorithm = ChaseAlgorithm::OBLIVIOUS; bool has_global_null_values_m = true; Settings() {}...
karmaresearch/laser-plus-plus
include/util/shared.h
<gh_stars>1-10 #ifndef LASER_UTIL_SHARED_H #define LASER_UTIL_SHARED_H #include <string> namespace laser::util::special_predicate { extern const std::string MATH; } // namespace laser::util::special_predicate namespace laser::util::special_value { extern const std::string CHASE_LABELED_NULL; } // namespace laser...
karmaresearch/laser-plus-plus
include/service/request_type.h
<reponame>karmaresearch/laser-plus-plus<gh_stars>1-10 #ifndef LASER_SERVICE_REQUEST_TYPE_H #define LASER_SERVICE_REQUEST_TYPE_H namespace laser { namespace service { enum class RequestType { QUERY, CONJUNCTIVE_QUERY, }; } // namespace service } // namespace laser #endif // LASER_SERVICE_REQUEST_TYPE_H
karmaresearch/laser-plus-plus
include/util/global.h
#ifndef LASER_UTIL_GLOBAL_H #define LASER_UTIL_GLOBAL_H #include <cstdint> namespace laser::util { class Global { private: uint64_t null_value_count = 0; Global() {} public: Global(Global const&) = delete; void operator=(Global const&) = delete; static Global &get_instance(); uint64...
karmaresearch/laser-plus-plus
include/formula/extended/conjunction.h
<reponame>karmaresearch/laser-plus-plus #ifndef LASER_FORMULA_EXTENDED_CONJUNCTION_H #define LASER_FORMULA_EXTENDED_CONJUNCTION_H #include <set> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #include "formula/formula.h" #include "formula/grounding_table.h" #include "formula/mat...
karmaresearch/laser-plus-plus
include/util/read_exception.h
// // Created by mike on 6/19/18. // #ifndef LASER_UTIL_READ_EXCEPTION_H #define LASER_UTIL_READ_EXCEPTION_H #include <exception> namespace laser { namespace util { class ReadException : public std::exception { private: char const *message_m = "ReadException"; public: ReadException() = default; explic...
karmaresearch/laser-plus-plus
include/rule/math/evaluator/algebra.h
<filename>include/rule/math/evaluator/algebra.h #ifndef LASER_RULE_MATH_EVALUATOR_ALGEBRA_H #define LASER_RULE_MATH_EVALUATOR_ALGEBRA_H #include <map> #include <memory> #include <set> #include <string> #include <unordered_set> #include <vector> #include "formula/formula.h" #include "formula/formula_type.h" #include "...
karmaresearch/laser-plus-plus
include/example/example_writer.h
#ifndef LASER_EXAMPLE_EXAMPLE_WRITER_H #define LASER_EXAMPLE_EXAMPLE_WRITER_H #include <iostream> #include <memory> #include <set> #include <sstream> #include <vector> #include <util/grounding.h> namespace laser { namespace example { class ExampleWriter { private: std::vector<std::shared_ptr<laser::util::Grou...
karmaresearch/laser-plus-plus
include/rule/math/evaluator/value_node.h
<gh_stars>1-10 #ifndef LASER_RULE_MATH_EVALUATOR_VALUE_NODE_H #define LASER_RULE_MATH_EVALUATOR_VALUE_NODE_H #include <string> #include <set> namespace laser::rule { struct value_node { bool is_numeric = false; int64_t num_value; uint64_t ht; uint64_t hc; std::string str_value; }; struct value_n...
karmaresearch/laser-plus-plus
include/rule/math/evaluator_type.h
#ifndef LASER_RULE_MATH_EVALUATOR_TYPE_H #define LASER_RULE_MATH_EVALUATOR_TYPE_H namespace laser::rule { enum class EvaluatorType { ASSIGNMENT, ALGEBRA, CONDITION }; } // namespace laser::rule #endif // LASER_RULE_MATH_EVALUATOR_TYPE_H
karmaresearch/laser-plus-plus
include/service/service_manager.h
<gh_stars>1-10 #ifndef LASER_SERVICE_SERVICE_MANAGER_H #define LASER_SERVICE_SERVICE_MANAGER_H #include <fstream> #include <iostream> #include <memory> #include <vector> #include "service/query.h" #include "service/request.h" #include "service/request_parser.h" #include "service/request_type.h" namespace laser { nam...
karmaresearch/laser-plus-plus
include/util/chase_algorithm.h
#ifndef LASER_UTIL_CHASE_ALGORITHM_H #define LASER_UTIL_CHASE_ALGORITHM_H namespace laser { namespace util { enum class ChaseAlgorithm { RESTRICTED, SKOLEM, OBLIVIOUS, }; } // namespace util } // namespace laser #endif // LASER_UTIL_CHASE_ALGORITHM_H
karmaresearch/laser-plus-plus
include/rule/filter/skolem_filter.h
#ifndef LASER_RULE_FILTER_SKOLEM_FILTER_H #define LASER_RULE_FILTER_SKOLEM_FILTER_H #include <iterator> // std::ostream_iterator #include <map> #include <memory> #include <set> #include <sstream> // std::stringstream #include <vector> #include "formula/formula.h" #include "rule/chase_filter.h" #include "rule/shared.h...
karmaresearch/laser-plus-plus
include/service/request_parser.h
#ifndef LASER_SERVICE_REQUEST_PARSER_H #define LASER_SERVICE_REQUEST_PARSER_H #include <memory> #include <set> #include <sstream> #include <string> #include <vector> #include "formula/extended/atom.h" #include "formula/formula.h" #include "service/query.h" #include "service/request.h" #include "util/format_exception....
karmaresearch/laser-plus-plus
include/acyclicity/shared.h
<reponame>karmaresearch/laser-plus-plus #ifndef LASER_ACYCLICITY_SHARED_H #define LASER_ACYCLICITY_SHARED_H #include <string> namespace laser::acyclicity::special_predicate { extern const std::string SMFA_PREDICATE_C; extern const std::string SMFA_PREDICATE_S; extern const std::string SMFA_PREDICATE_D; extern const...
karmaresearch/laser-plus-plus
include/rule/chase_filter.h
#ifndef LASER_RULE_CHASE_FILTER_H #define LASER_RULE_CHASE_FILTER_H #include <memory> #include <vector> #include "formula/formula.h" #include "util/database.h" #include "util/grounding.h" #include "util/timeline.h" namespace laser { namespace rule { /** * Chase Filter Interface */ class ChaseFilter { public: ...
karmaresearch/laser-plus-plus
include/formula/extended/math.h
#ifndef LASER_FORMULA_EXTENDED_MATH_H #define LASER_FORMULA_EXTENDED_MATH_H #include <map> #include <memory> #include <string> #include <vector> #include "formula/extended/atom.h" #include "formula/formula.h" #include "formula/formula_type.h" #include "formula/grounding_table.h" #include "formula/math_operator.h" #in...
karmaresearch/laser-plus-plus
include/service/query.h
#ifndef LASER_SERVICE_QUERY_H #define LASER_SERVICE_QUERY_H #include <set> #include <string> #include "formula/formula.h" #include "rule/shared.h" #include "service/request.h" #include "service/request_type.h" #include "util/grounding.h" namespace laser { namespace service { class Query : public Request { private...
karmaresearch/laser-plus-plus
include/util/format_exception.h
<reponame>karmaresearch/laser-plus-plus // // Created by mike on 6/19/18. // #ifndef LASER_UTIL_FORMAT_EXCEPTION_H #define LASER_UTIL_FORMAT_EXCEPTION_H #include <exception> namespace laser { namespace util { class FormatException : public std::exception { private: char const *message_m = "FormatException"; pu...
karmaresearch/laser-plus-plus
include/formula/extended/time_reference.h
<filename>include/formula/extended/time_reference.h #ifndef LASER_FORMULA_EXTENDED_TIME_REFERENCE_H #define LASER_FORMULA_EXTENDED_TIME_REFERENCE_H #include <set> #include <string> #include "formula/formula.h" #include "formula/grounding_table.h" #include "formula/math_operator.h" #include "util/grounding.h" namespa...
karmaresearch/laser-plus-plus
include/service/request.h
<reponame>karmaresearch/laser-plus-plus<filename>include/service/request.h #ifndef LASER_SERVICE_REQUEST_H #define LASER_SERVICE_REQUEST_H #include <string> namespace laser { namespace service { class Request { public: virtual ~Request() = default; virtual std::string evaluate() = 0; }; } // namespace ...
karmaresearch/laser-plus-plus
include/formula/math_operator.h
#ifndef LASER_FORMULA_MATH_OPERATOR_H #define LASER_FORMULA_MATH_OPERATOR_H namespace laser::formula { enum class MathOperator { ASSIGNMENT, PLUS, MINUS, MULTIPLICATION, DIVISION, EQUALS, NOT_EQUAL, LESSER, GREATHER, LESSER_OR_EQUAL, GREATHER_OR_EQUAL, NONE }; } // nam...
karmaresearch/laser-plus-plus
include/rule/filter/restricted_filter.h
<reponame>karmaresearch/laser-plus-plus #ifndef LASER_RULE_FILTER_RESTRICTED_FILTER_H #define LASER_RULE_FILTER_RESTRICTED_FILTER_H #include <memory> #include <unordered_map> #include <vector> #include "formula/extended/conjunction.h" #include "formula/formula.h" #include "formula/formula_type.h" #include "rule/chase...
karmaresearch/laser-plus-plus
include/acyclicity/naive_smfa.h
<reponame>karmaresearch/laser-plus-plus #ifndef LASER_ACYCLICITY_NAIVE_SMFA_H #define LASER_ACYCLICITY_NAIVE_SMFA_H #include <algorithm> // std::min() #include <cmath> // std::ceil() #include <memory> #include <set> #include <vector> #include "acyclicity/shared.h" #include "core/program.h" #include "formula/exten...
karmaresearch/laser-plus-plus
include/rule/rule.h
<reponame>karmaresearch/laser-plus-plus<gh_stars>1-10 #ifndef LASER_RULE_RULE_H #define LASER_RULE_RULE_H #include <iostream> #include <memory> #include <set> #include <unordered_map> #include <utility> #include "formula/formula.h" #include "formula/formula_type.h" #include "rule/chase_filter.h" #include "rule/filter...
muukii/Zap
Sources/RxBulk/RxBulk.h
<filename>Sources/RxBulk/RxBulk.h // // RxBulk.h // RxBulk // // Created by muukii on 2020/02/03. // #import <Foundation/Foundation.h> //! Project version number for RxBulk. FOUNDATION_EXPORT double RxBulkVersionNumber; //! Project version string for RxBulk. FOUNDATION_EXPORT const unsigned char RxBulkVersionStri...
muukii/Zap
Sources/BulkLogger/BulkLogger.h
<gh_stars>10-100 // // BulkLogger.h // BulkLogger // // Created by muukii on 2020/02/03. // #import <Foundation/Foundation.h> //! Project version number for BulkLogger. FOUNDATION_EXPORT double BulkLoggerVersionNumber; //! Project version string for BulkLogger. FOUNDATION_EXPORT const unsigned char BulkLoggerVers...
Myrannas/foundationdb-rust
wrapper.h
<filename>wrapper.h #define FDB_API_VERSION 510 #include <fdb_c.h>
ShreckYe/google-code-jam
2020/qualification-round/vestigium-c/solution.c
#include <stdio.h> void test_case(int t); int main() { int T; scanf("%d", &T); for (int t = 0; t < T; t++) test_case(t); return 0; } #define bool char #define true 1 #define false 0 void test_case(int t) { int N; scanf("%d", &N); int M[N][N]; for (int i = 0; i < N; i++) ...
demoncia/classless-dll
src/EQData.h
#pragma once /***************************************************************************** MQ2Main.dll: MacroQuest2's extension DLL for EverQuest Copyright (C) 2002-2003 Plazmic, 2003-2005 Lax This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Pu...
demoncia/classless-dll
src/demoncia.h
<filename>src/demoncia.h #pragma once #include "MQ2Main.h" char __fastcall DisableCMapViewWnd_Trampoline(char* pThis); char __fastcall DisableCMapViewWnd_Detour(char* pThis) { return 0; } DETOUR_TRAMPOLINE_EMPTY(char __fastcall DisableCMapViewWnd_Trampoline(char* pThis)); // Hooks to CMapViewWnd::AboutToShow void Di...
MyEvolution/Dragon
src/Geometry/Structure/PointCloud.h
#ifndef POINT_CLOUD_H #define POINT_CLOUD_H #include "Geometry/BasicGeometry.h" #include "Geometry/Structure/BoundingBox.h" #include <Eigen/Core> #include <memory> namespace dragon { namespace geometry { class RGBDFrame; class PointCloud { public: PointCloud()=default; siz...
MyEvolution/Dragon
src/Reconstruction/TSDFVoxel.h
#ifndef DRAGON_TSDF_VOXEL_H #define DRAGON_TSDF_VOXEL_H #include "Geometry/BasicGeometry.h" namespace dragon { namespace reconstruction { class TSDFVoxel { public: TSDFVoxel()=default; TSDFVoxel(float _sdf, float _weight, const geometry::Point3 &_color) { sdf = _sdf; ...
MyEvolution/Dragon
src/IO/OBJManager.h
<reponame>MyEvolution/Dragon<gh_stars>10-100 #ifndef OBJ_READER_H #define OBJ_READER_H #include "ConsoleColor.h" #include <vector> #include "../Geometry/BasicGeometry.h" namespace dragon { namespace io { bool ReadOBJ(const std::string &filename, geometry::Point3List &points, geometry::Point3List &normals, ...
MyEvolution/Dragon
src/Reconstruction/MarchingCube.h
#ifndef DRAGON_MARCHING_CUBE_H #define DRAGON_MARCHING_CUBE_H #include "Geometry/TriangleMesh/TriangleMesh.h" #include "TSDFVoxel.h" #include <map> namespace dragon { namespace reconstruction { geometry::Point3 InterpolateEdgeVetex(const geometry::Point3 &corner1, const geometry::Point3 &corner2, float sdf1, f...
MyEvolution/Dragon
src/IO/ConsoleColor.h
<gh_stars>10-100 #ifndef CONSOLE_COLOR_H #define CONSOLE_COLOR_H #define RESET "\033[0m" #define BLACK "\033[30m" /* Black */ #define RED "\033[31m" /* Red */ #define GREEN "\033[32m" /* Green */ #define YELLOW "\033[33m" /* Yellow */ #define BLUE "\033[34m" /* Blue */ #define PURPLE "\033...
MyEvolution/Dragon
3rdparty/glfw/tests/inputlag.c
//======================================================================== // Input lag test // Copyright (c) <NAME> <<EMAIL>> // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // ...
MyEvolution/Dragon
src/Reconstruction/Poisson.h
<reponame>MyEvolution/Dragon<gh_stars>10-100 #ifndef DRAGON_POISSON_H #define DRAGON_POISSON_H #include "Geometry/TriangleMesh/TriangleMesh.h" #include "Reconstruction/CubeHandler.h" // 1. build the octree // 2. compute basis function, i.e. each node function // 3. use basis function to compute the normal vector of eac...
MyEvolution/Dragon
src/Geometry/TriangleMesh/Processing/Subdivision.h
<reponame>MyEvolution/Dragon #ifndef DRAGON_SUBDIVISION_H #define DRAGON_SUBDIVISION_H #include "Geometry/Structure/HalfEdge.h" namespace dragon { namespace geometry { namespace mesh { std::shared_ptr<TriangleMesh> LoopSubdivision(const TriangleMesh &mesh, int iteration = 1); } } } #endif
MyEvolution/Dragon
src/Geometry/TriangleMesh/TriangleMesh.h
<reponame>MyEvolution/Dragon #ifndef TRIANGLE_MESH_H #define TRIANGLE_MESH_H #include "IO/ConsoleColor.h" #include "Geometry/BasicGeometry.h" // #include "Geometry/PointCloud.h" #include <memory> #include "Geometry/Structure/BoundingBox.h" #include "Geometry/Structure/PointCloud.h" namespace dragon { namespace geometry...
MyEvolution/Dragon
src/Visualization/Visualizer.h
#ifndef DRAGON_VISUALIZER_H #define DRAGON_VISUALIZER_H #include "Shader.h" #include "Geometry/BasicGeometry.h" #include <memory> #include "Window.h" #include "Geometry/TriangleMesh/TriangleMesh.h" #include "Geometry/Structure/BoundingBox.h" #include "Geometry/Structure/PointCloud.h" #include "Geometry/Structure/Octree...
MyEvolution/Dragon
src/Geometry/TriangleMesh/Processing/Decimation.h
#ifndef DRAGON_DECIMATION_H #define DRAGON_DECIMATION_H #include "Geometry/Structure/HalfEdge.h" #include "Geometry/TriangleMesh/TriangleMesh.h" #include <queue> #include <unordered_map> namespace dragon { namespace geometry { namespace mesh { struct HEEdgeWithNewPos { HEEdge *ptr = nullptr; Poi...
MyEvolution/Dragon
src/Geometry/Structure/Voronoi2D.h
<filename>src/Geometry/Structure/Voronoi2D.h #ifndef DRAGON_VORONOI_H #define DRAGON_VORONOI_H #include "HalfEdge.h" #include "Geometry/TriangleMesh/TriangleMesh.h" #include "PointCloud.h" #include <queue> #include <unordered_map> namespace dragon { namespace geometry { struct ArcNode; struct CircleEvent { ...
MyEvolution/Dragon
src/Tool/CppExtension.h
#include <string> #include <vector> #include <random> #include <sys/stat.h> #include <iostream> #include "IO/ConsoleColor.h" #include "Geometry/BasicGeometry.h" namespace dragon { namespace tool { //to split a string, or reversely split a string std::vector<std::string> Split(const std::string &str,...
MyEvolution/Dragon
src/Geometry/Structure/Octree.h
<filename>src/Geometry/Structure/Octree.h #ifndef DRAGON_OCTREE_H #define DRAGON_OCTREE_H #include "Geometry/BasicGeometry.h" #include "Geometry/Structure/PointCloud.h" namespace dragon { namespace geometry { class OctreeNode { public: bool is_leaf = true; double weight; bool InN...
MyEvolution/Dragon
src/Visualization/Shader.h
#ifndef DRAGON_SHADER_H #define DRAGON_SHADER_H #include "Uniform.h" #include <GL/glew.h> #include "IO/ConsoleColor.h" #include <iostream> #include <fstream> namespace dragon { namespace visualization { class Shader { public: bool Load(const std::string &vfile, const std::string &ffile); ...
MyEvolution/Dragon
src/Geometry/Structure/KDTree.h
<reponame>MyEvolution/Dragon #ifndef DRAGON_KDTREE_H #define DRAGON_KDTREE_H #include "Geometry/BasicGeometry.h" #include "nanoflann.hpp" #include <memory> //use nanoflann library namespace dragon { namespace geometry { //kdtree index class SearchParameter { public: //kdtree parameter ...
MyEvolution/Dragon
src/IO/PLYManager.h
<gh_stars>10-100 #ifndef PLY_MANAGER_H #define PLY_MANAGER_H #include "ConsoleColor.h" #include <vector> #include "Geometry/BasicGeometry.h" #include "tinyply.h" namespace dragon { namespace io { struct AdditionalElement { size_t count; size_t byte_size; std::string element_key; ...
MyEvolution/Dragon
src/Visualization/Window.h
#ifndef DRAGON_WINDOW_H #define DRAGON_WINDOW_H #include "imgui.h" #include "imgui_impl_glfw.h" #include "imgui_impl_opengl3.h" #include "IO/ConsoleColor.h" #include "Geometry/Structure/BoundingBox.h" #include <iostream> // About Desktop OpenGL function loaders: // Modern desktop OpenGL doesn't have a standard portabl...
MyEvolution/Dragon
src/Geometry/BasicGeometry.h
<filename>src/Geometry/BasicGeometry.h #ifndef POINT_H #define POINT_H #include <vector> #include <Eigen/Core> #include <Eigen/Geometry> #include <Eigen/StdVector> #include <Eigen/Eigenvalues> #include <Eigen/Eigen> #include "IO/ConsoleColor.h" #include <iostream> #include <random> #define DRAGON_EPS 1e-6 namespace dr...
MyEvolution/Dragon
src/Reconstruction/RBF.h
#ifndef DRAGON_RBF_H #define DRAGON_RBF_H #include "Geometry/BasicGeometry.h" #include "Geometry/Structure/PointCloud.h" #include "Geometry/TriangleMesh/TriangleMesh.h" #include "MarchingCube.h" #include "CubeHandler.h" namespace dragon { namespace reconstruction { // we choose basis function as phi(r) = r^3 vo...
MyEvolution/Dragon
src/Geometry/Structure/BoundingBox.h
#ifndef DRAGON_BB_H #define DRAGON_BB_H #include "Geometry/BasicGeometry.h" #include <algorithm> namespace dragon { namespace geometry { class BoundingBox { public: geometry::Point3 Center() const { return geometry::Point3(x_max + x_min, y_max + y_min, z_max + z_min) / 2; ...
MyEvolution/Dragon
src/Visualization/Visualizer2D.h
#ifndef DRAGON_VISUALIZER_2D_H #define DRAGON_VISUALIZER_2D_H #include "Window.h" #include "Geometry/Structure/HalfEdge.h" #include "Geometry/Structure/Voronoi2D.h" #include "IO/ConsoleColor.h" namespace dragon { namespace visualization { class Visualizer2D { public: bool Initialize() { ...
MyEvolution/Dragon
src/Reconstruction/Mesh2SDF.h
#ifndef DRAGON_MESH_TO_SDF_H #define DRAGON_MESH_TO_SDF_H #include "Geometry/TriangleMesh/TriangleMesh.h" #include "CubeHandler.h" #include "Geometry/Structure/KDTree.h" #include "Geometry/Structure/HalfEdge.h" #include "Geometry/Structure/PointCloud.h" // Naive way to generate sdf from triangle mesh. // for each voxel...
MyEvolution/Dragon
src/Geometry/TriangleMesh/Processing/MeshParameterization.h
<filename>src/Geometry/TriangleMesh/Processing/MeshParameterization.h #ifndef DRAGON_MESH_PARA_H #define DRAGON_MESH_PARA_H #include "Geometry/Parameterization.h" #include "Geometry/Structure/HalfEdge.h" namespace dragon { namespace geometry { namespace mesh { void GetOrderedVertices(HalfEdge &he, std::vector<int>...
MyEvolution/Dragon
src/Tool/MultiThreads.h
#ifndef MULTI_THREADS_H #define MULTI_THREADS_H #include <thread> #include <vector> //#include <functional> //f(x) = y => f(X) = Y #define MAX_THREADS 100 namespace dragon { namespace tool { template <class T1, class T2> void MultiThreads(const std::vector<T1> &p1, std::vector<T2> &p2, std::function<void(const...
MyEvolution/Dragon
src/Geometry/TriangleMesh/Processing/Smoothing.h
<gh_stars>10-100 #ifndef DRAGON_SMOOTHING_H #define DRAGON_SMOOTHING_H #include "Geometry/Structure/HalfEdge.h" namespace dragon { namespace geometry { namespace mesh { std::shared_ptr<TriangleMesh> NaiveLaplacianSmooting(const TriangleMesh &mesh, double lambda = 0.1, int max_iteration = 100); std::shared_ptr<...
MyEvolution/Dragon
src/Geometry/Parameterization.h
<gh_stars>10-100 #ifndef DRAGON_PARAMETERIZATION_H #define DRAGON_PARAMETERIZATION_H #include "BasicGeometry.h" namespace dragon { namespace geometry { namespace parameterization { //1d parameterization template<int T> geometry::ScalarList Uniform(const geometry::PointList<T> &points) { doub...
MyEvolution/Dragon
src/Reconstruction/VoxelCube.h
#ifndef DRAGON_VOXEL_CUBE_H #define DRAGON_VOXEL_CUBE_H #define CUBE_SIZE 8 #include "TSDFVoxel.h" #include "IO/ConsoleColor.h" #include <vector> #include <fstream> #include <iostream> namespace dragon { namespace reconstruction { typedef Eigen::Vector3i CubeID; typedef geometry::VoxelGridHashe...
MyEvolution/Dragon
3rdparty/glfw/tests/reopen.c
<filename>3rdparty/glfw/tests/reopen.c //======================================================================== // Window re-opener (open/close stress test) // Copyright (c) <NAME> <<EMAIL>> // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liabl...
MyEvolution/Dragon
src/Geometry/TriangleMesh/Processing/Curvature.h
#ifndef DRAGON_GURVATURE_H #define DRAGON_GURVATURE_H // compute mean curvature and the gauss curvature #include "Geometry/Structure/HalfEdge.h" namespace dragon { namespace geometry { namespace mesh { // compute mean curvature //void ComputeMeanCurvature(HalfEdge &he, Point3List &mean_curvature_vectors); ...
MyEvolution/Dragon
src/Geometry/Curve.h
<gh_stars>10-100 #ifndef DRAGON_CURVE_H #define DRAGON_CURVE_H #include "Geometry/BasicGeometry.h" #include "Tool/CppExtension.h" #include "Geometry/Parameterization.h" namespace dragon { namespace geometry { namespace curve { template<int T> geometry::Vector<T> deCasteljau_recur(const geometry::PointList...
MyEvolution/Dragon
src/Tool/ColorMapping.h
#ifndef DRAGON_COLOR_MAPPING_H #define DRAGON_COLOR_MAPPING_H #include "Geometry/BasicGeometry.h" #define COLOR_RANGE 512 namespace dragon { namespace tool { // blue-> white-> red (0 0 1-> 1 1 1-> 1 0 0), 255 * 2/ // use histogram equalization void ColorRemapping(const geometry::ScalarList &values, geometry...
MyEvolution/Dragon
src/Reconstruction/CubeHandler.h
#ifndef VOXEL_HASHING_H #define VOXEL_HASHING_H // voxel hashing table #include <unordered_map> #include <memory> #include "VoxelCube.h" #include "MarchingCube.h" #include "Geometry/Structure/PointCloud.h" #define TRUNCATED_DISTANCES 1.0 namespace dragon { namespace reconstruction { //define Hashing ...
MyEvolution/Dragon
src/Geometry/Structure/HalfEdge.h
#ifndef HALF_EDGE_H #define HALF_EDGE_H #include "Geometry/TriangleMesh/TriangleMesh.h" namespace dragon { namespace geometry { struct HEEdge; struct HEFace; struct HEVertex { HEVertex()=default; HEVertex(const geometry::VectorX & p):coor(p){} //vertex of HalfEdge geomet...
Hnatekmar/MCGA
src/MCGA.h
#ifndef MCGA_H #define MCGA_H #include <functional> // Stream(col.cbegin(), col.cend()).map([](auto& foo) {return foo * foo;}).sum(); namespace mcga { template<typename Iterator> class _range { Iterator m_start; Iterator m_end; public: _range(Iterator start, Iterator end) :...
pradyumnad/SearchHUD
Example/SearchHUD/PDViewController.h
<filename>Example/SearchHUD/PDViewController.h<gh_stars>10-100 // // PDViewController.h // SearchHUD // // Created by <NAME> on 12/12/2014. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import <SearchHUD/PDSearchHUD.h> @interface PDViewController : UIViewController<PDSearchHUDDele...
pradyumnad/SearchHUD
Pod/Classes/PDSearchHUD.h
<reponame>pradyumnad/SearchHUD<filename>Pod/Classes/PDSearchHUD.h // // SearchHUD.h // SearchHUD-Demo // // Created by <NAME> on 31/12/12. // Copyright (c) 2012 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> typedef enum { PDSearchTypeBeginsWith, PDSearchTypeContains } PDSearchType; //Use a 20 p...
pradyumnad/SearchHUD
Example/SearchHUD/PDAppDelegate.h
// // PDAppDelegate.h // SearchHUD // // Created by CocoaPods on 12/12/2014. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface PDAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
zeasy/YZTAlphaLib
YZTAlpha/Sources/Plugins/Trace/YZTTracePlugin.h
// // YZTTracePlugin.h // YZTAlpha // // Created by easy on 2019/3/12. // Copyright © 2019 easy. All rights reserved. // #import "ALPHAPlugin.h" NS_ASSUME_NONNULL_BEGIN @interface YZTTracePlugin : ALPHAPlugin @end NS_ASSUME_NONNULL_END
zeasy/YZTAlphaLib
Example/Pods/Target Support Files/Alpha/Alpha-umbrella.h
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "ALPHAAsset.h" #import "ALPHAAssetManager.h" #import "ALPHACoreAssets.h" #import "ALPHACache.h" #import "ALPHADiskCac...
zeasy/YZTAlphaLib
Example/YZTAlphaLib/YZTAppDelegate.h
// // YZTAppDelegate.h // YZTAlphaLib // // Created by <EMAIL> on 03/15/2019. // Copyright (c) 2019 <EMAIL>. All rights reserved. // @import UIKit; @interface YZTAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
zeasy/YZTAlphaLib
YZTAlpha/Sources/Plugins/Trace/YZTTraceSource.h
<filename>YZTAlpha/Sources/Plugins/Trace/YZTTraceSource.h // // YZTTraceSource.h // YZTAlpha // // Created by easy on 2019/3/12. // Copyright © 2019 easy. All rights reserved. // #import "ALPHABaseDataSource.h" NS_ASSUME_NONNULL_BEGIN extern NSString *const ALPHATraceDataIdentifier; @interface YZTTraceSource : ...
zeasy/YZTAlphaLib
YZTAlpha/Sources/Plugins/Trace/YZTTraceManager.h
// // YZTTraceManager.h // YZTAlpha // // Created by easy on 2019/3/12. // Copyright © 2019 easy. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @class YZTTraceManager; @protocol YZTTraceManagerDelegate <NSObject> -(void) traceManager:(YZTTraceManager *) manager data:(NSDicti...
zeasy/YZTAlphaLib
Example/YZTAlphaLib/YZTViewController.h
// // YZTViewController.h // YZTAlphaLib // // Created by <EMAIL> on 03/15/2019. // Copyright (c) 2019 <EMAIL>. All rights reserved. // @import UIKit; @interface YZTViewController : UIViewController @end
zeasy/YZTAlphaLib
YZTAlpha/Sources/Plugins/Trace/YZTTraceTaskSource.h
<filename>YZTAlpha/Sources/Plugins/Trace/YZTTraceTaskSource.h // // YZTTraceTaskSource.h // YZTAlpha // // Created by easy on 2019/3/12. // Copyright © 2019 easy. All rights reserved. // #import "ALPHABaseDataSource.h" NS_ASSUME_NONNULL_BEGIN extern NSString *const ALPHATraceTaskDataIdentifier; @interface YZTTr...
Krypton91/AdvancedBankingTraderAddin
scripts/3_Game/Serverconfig.c
/* @AdvBankingTraderConfig Author: Krypton91 License: You are allowed to repack this and edit this, but you need this text with my name in the files! */ class AdvBankingTraderConfig { bool NeedsBankCardInHandToPayOnTrader; bool CanOnlyUseIfCurrencyOnPlayerIsZero; void LoadDefaultSettings() ...
Krypton91/AdvancedBankingTraderAddin
scripts/5_Mission/missiongameplay.c
<reponame>Krypton91/AdvancedBankingTraderAddin<gh_stars>1-10 /* @AdvBankingTraderConfig Author: Krypton91 License: You are allowed to repack this and edit this, but you need this text with my name in the files! */ modded class MissionGameplay { bool m_AdvBankingTraderAddinInited; override void On...
Krypton91/AdvancedBankingTraderAddin
scripts/4_World/TraderMenu.c
<filename>scripts/4_World/TraderMenu.c /* @AdvBankingTraderConfig Author: Krypton91 Credits: DrJones License: You are allowed to repack this and edit this, but you need this text with my name in the files! */ modded class TraderMenu extends UIScriptedMenu { override int getPlayerCurrencyAmount() // dup...
Krypton91/AdvancedBankingTraderAddin
scripts/3_Game/statics.c
/* @statics Author: Krypton91 License: You are allowed to repack this and edit this, but you need this text with my name in the files! */ static bool NeedsBankCardInHandToPayOnTrader; static bool CanOnlyUseIfCurrencyOnPlayerIsZero;
Krypton91/AdvancedBankingTraderAddin
scripts/5_Mission/missionserver.c
<filename>scripts/5_Mission/missionserver.c<gh_stars>1-10 /* @AdvBankingTraderConfig Author: Krypton91 Credits: DrJones License: You are allowed to repack this and edit this, but you need this text with my name in the files! */ modded class MissionServer { protected ref AdvBankingTraderConfig m_TraderA...
Krypton91/AdvancedBankingTraderAddin
scripts/4_World/Entities/DayZPlayerImplement.c
/* @AdvBankingTraderConfig Author: Krypton91 Credits: DrJones License: You are allowed to repack this and edit this, but you need this text with my name in the files! */ modded class DayZPlayerImplement { override void handleBuyRPC(PlayerIdentity sender, int rpc_type, ParamsReadContext ctx) { Param3...
ruguoapp/VerifyCode-iOS
Release/VerifyCode_iOS_2.3.1/VerifyCode.framework/Headers/NTESVerifyCodeManager.h
<reponame>ruguoapp/VerifyCode-iOS // // NTESVerifyCodeManager.h // NTESVerifyCode // // Created by NetEase on 16/11/30. // Copyright © 2016年 NetEase. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger, NTESVerifyCodeLang) { // 中文 NTESVerifyCodeLangC...
appzzman/JMCircularColorPicker
CircularColorPicker/AppDelegate.h
// // AppDelegate.h // CircularColorPicker // // Created by <NAME> on 6/17/13. // Copyright (c) 2013 <NAME>. All rights reserved. /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must r...
appzzman/JMCircularColorPicker
CircularColorPicker/ViewController.h
// // ViewController.h // CircularColorPicker // // Created by <NAME> on 6/17/13. // Copyright (c) 2013 <NAME>. All rights reserved. // /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source co...
voei/megamol
plugins/gui/src/GUIWindows.h
/* * GUIWindows.h * * Copyright (C) 2018 by Universitaet Stuttgart (VIS). * Alle Rechte vorbehalten. */ #ifndef MEGAMOL_GUI_GUIWINDOWS_H_INCLUDED #define MEGAMOL_GUI_GUIWINDOWS_H_INCLUDED #include "mmcore/CoreInstance.h" #include "mmcore/param/ParamSlot.h" #include "mmcore/param/BoolParam.h" #include "mmcore/p...
voei/megamol
plugins/molecularmaps/src/AmbientOcclusionCalculator.h
/* * AmbientOcclusionCalculator.h * Copyright (C) 2006-2016 by MegaMol Team * Alle Rechte vorbehalten. */ #ifndef MMMOLMAPPLG_AMBIENTOCCLUSIONCALCULATOR_H_INCLUDED #define MMMOLMAPPLG_AMBIENTOCCLUSIONCALCULATOR_H_INCLUDED #if (defined(_MSC_VER) && (_MSC_VER > 1000)) #pragma once #endif /* (defined(_MSC_VER) && (_MS...
voei/megamol
vislib/include/vislib/net/ClusterDiscoveryListener.h
<filename>vislib/include/vislib/net/ClusterDiscoveryListener.h /* * ClusterDiscoveryListener.h * * Copyright (C) 2006 - 2007 by Universitaet Stuttgart (VIS). * Alle Rechte vorbehalten. */ #ifndef VISLIB_CLUSTERDISCOVERYLISTENER_H_INCLUDED #define VISLIB_CLUSTERDISCOVERYLISTENER_H_INCLUDED #if (defined(_MSC_VER) ...
voei/megamol
core/include/mmcore/view/Renderer3DModuleDS.h
<reponame>voei/megamol<filename>core/include/mmcore/view/Renderer3DModuleDS.h /* * Renderer3DModuleDS.h * * Copyright (C) 2011 by VISUS (Universitaet Stuttgart) * Alle Rechte vorbehalten. */ #ifndef MEGAMOLCORE_RENDERER3DMODULEDS_H_INCLUDED #define MEGAMOLCORE_RENDERER3DMODULEDS_H_INCLUDED #if (defined(_MSC_VER) ...
voei/megamol
vislib/include/vislib/net/cluster/DiscoveryListener.h
/* * DiscoveryListener.h * * Copyright (C) 2006 - 2009 by Universitaet Stuttgart (VIS). * Alle Rechte vorbehalten. */ #ifndef VISLIB_DISCOVERYLISTENER_H_INCLUDED #define VISLIB_DISCOVERYLISTENER_H_INCLUDED #if (defined(_MSC_VER) && (_MSC_VER > 1000)) #pragma once #endif /* (defined(_MSC_VER) && (_MSC_VER > 1000)...
voei/megamol
plugins/protein/src/VolumeSliceRenderer.h
/* * VolumeSliceRenderer.h * * Copyright (C) 2010 by Universitaet Stuttgart (VIS). * All Rights reserved. */ #ifndef MEGAMOLCORE_VOLSLICERENDERER_H_INCLUDED #define MEGAMOLCORE_VOLSLICERENDERER_H_INCLUDED #if (defined(_MSC_VER) && (_MSC_VER > 1000)) #pragma once #endif /* (defined(_MSC_VER) && (_MSC_VER > 1000))...
voei/megamol
core/include/mmcore/view/CallRender2D.h
/* * CallRender2D.h * * Copyright (C) 2009 by Universitaet Stuttgart (VIS). * Alle Rechte vorbehalten. */ #ifndef MEGAMOLCORE_CALLRENDER2D_H_INCLUDED #define MEGAMOLCORE_CALLRENDER2D_H_INCLUDED #if (defined(_MSC_VER) && (_MSC_VER > 1000)) #pragma once #endif /* (defined(_MSC_VER) && (_MSC_VER > 1000)) */ #inclu...