repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
kazeevn/catboost | catboost/libs/fstr/shap_values.h | <filename>catboost/libs/fstr/shap_values.h
#pragma once
#include <catboost/libs/model/model.h>
#include <catboost/libs/data/pool.h>
#include <util/generic/vector.h>
TVector<TVector<double>> CalcShapValues(
const TFullModel& model,
const TPool& pool,
int threadCount,
int logPeriod = 0,
int dimensi... |
kazeevn/catboost | catboost/libs/quantized_pool/serialization.h | #pragma once
#include <util/generic/fwd.h>
#include <util/stream/fwd.h>
namespace NCB {
struct TQuantizedPool;
struct TQuantizedPoolDigest;
namespace NIdl {
class TPoolQuantizationSchema;
}
}
namespace NCB {
void SaveQuantizedPool(const TQuantizedPool& pool, IOutputStream* output);
... |
kazeevn/catboost | library/coroutine/engine/impl.h | <reponame>kazeevn/catboost
#pragma once
#include "poller.h"
#include <util/system/mutex.h>
#include <util/system/error.h>
#include <util/system/context.h>
#include <util/system/defaults.h>
#include <util/system/valgrind.h>
#include <util/network/iovec.h>
#include <util/memory/tempbuf.h>
#include <util/memory/smallobj... |
kazeevn/catboost | util/generic/variant_traits.h | <gh_stars>0
#pragma once
#include "typetraits.h"
#include <util/system/yassert.h>
#include <utility>
#include <type_traits>
template <class... Ts>
class TVariant;
namespace NVariant {
constexpr size_t T_NPOS = -1;
template <class T>
struct TTypeHolder {
using type = T;
};
template <... |
kazeevn/catboost | catboost/libs/data/doc_pool_data_provider.h | <reponame>kazeevn/catboost
#pragma once
#include "async_row_processor.h"
#include "load_data.h"
#include <catboost/libs/data_util/line_data_reader.h>
#include <catboost/libs/data_util/path_with_scheme.h>
#include <catboost/libs/helpers/mem_usage.h>
#include <catboost/libs/options/load_options.h>
#include <library/ob... |
kazeevn/catboost | catboost/libs/algo/features_layout.h | #pragma once
#include <catboost/libs/options/enums.h>
#include <catboost/libs/model/features.h>
#include <util/generic/vector.h>
#include <util/generic/string.h>
#include <util/system/yassert.h>
class TFeaturesLayout {
public:
TFeaturesLayout(const int featureCount, std::vector<int> catFeatureIndices, const TVe... |
kazeevn/catboost | catboost/python-package/catboost/helpers.h | <reponame>kazeevn/catboost
#pragma once
#include <catboost/libs/algo/plot.h>
#include <util/generic/noncopyable.h>
#include <Python.h>
class TGilGuard : public TNonCopyable {
public:
TGilGuard()
: State_(PyGILState_Ensure())
{ }
~TGilGuard() {
PyGILState_Release(State_);
}
private:
... |
kazeevn/catboost | catboost/libs/quantization_schema/schema.h | #pragma once
#include <catboost/libs/options/enums.h>
#include <util/generic/vector.h>
#include <util/generic/string.h>
namespace NCB {
// TODO(yazevnul): replace `NCatboostCuda::TBinarizedFloatFeaturesMetaInfo` with this struct
struct TPoolQuantizationSchema {
TVector<size_t> TrueFeatureIndices;
... |
kazeevn/catboost | catboost/cuda/cuda_lib/cuda_events_provider.h | <filename>catboost/cuda/cuda_lib/cuda_events_provider.h<gh_stars>0
#pragma once
#include "cuda_base.h"
#include <util/system/spinlock.h>
#include <util/generic/vector.h>
namespace NCudaLib {
class TCudaEventsProvider {
private:
TVector<cudaEvent_t> FreeHandles;
TVector<cudaEvent_t> FreeHandles... |
PaerrePampula/SmartCan_sensor | ScreenControl.h | #include "Adafruit_GFX.h"
#include "Adafruit_SSD1331.h"
// Define colors
#define Black 0x0000
#define Blue 0x001F
#define Red 0xF800
#define Green 0x07E0
#define Cyan 0x07FF
#define Magenta 0xF81F
#define Yellow 0xFFE0
#define White 0xFFFF
class ScreenControl
{
public:
ScreenControl(Adafruit_SSD1331 &screen);
vo... |
PaerrePampula/SmartCan_sensor | MQTTNetworkingControl.h | #include <MQTTClientMbedOs.h>
#include "ESP8266Interface.h"
#include "ntp-client/NTPClient.h"
#define ntpAddress "time.mikes.fi" // The VTT Mikes in Helsinki
#define ntpPort 123 // Typically 123 for every NTP server
class MQTTNetworkingControl
{
public:
MQTTNetworkingControl(ESP8266Interface& espInterface... |
PaerrePampula/SmartCan_sensor | DistanceSensor.h | <reponame>PaerrePampula/SmartCan_sensor
/*A distance sensor, that is using sonar to measure distances. The recommended and the originally used component is HC-SR04.
Maximum possible distance measured : 400cm
The connections are:
Connect VCC to a 5v power supply, do not use 3.3V! Its not enough for the sensor, and it on... |
FelixYin66/CocoapodsDemo | TestCocoapodsProject/Example/TestCocoapodsProject/FYViewController.h | //
// FYViewController.h
// TestCocoapodsProject
//
// Created by <NAME> on 04/01/2017.
// Copyright (c) 2017 <NAME>. All rights reserved.
//
@import UIKit;
@interface FYViewController : UIViewController
@end
|
FelixYin66/CocoapodsDemo | TestCocoapodsProject/Example/Pods/Target Support Files/TestCocoapodsProject/TestCocoapodsProject-umbrella.h | <filename>TestCocoapodsProject/Example/Pods/Target Support Files/TestCocoapodsProject/TestCocoapodsProject-umbrella.h
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
FOUNDATION_EXPORT double TestCocoapodsProjectVersionNumber;
FOUNDATION_EXPORT const unsigned char TestCocoapodsProjectVersionString[];
|
FelixYin66/CocoapodsDemo | TestCocoapodsProject/Example/Pods/Target Support Files/Pods-TestCocoapodsProject_Example/Pods-TestCocoapodsProject_Example-umbrella.h | <reponame>FelixYin66/CocoapodsDemo
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
FOUNDATION_EXPORT double Pods_TestCocoapodsProject_ExampleVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_TestCocoapodsProject_ExampleVersionString[];
|
FelixYin66/CocoapodsDemo | TestCocoapodsProject/Example/TestCocoapodsProject/CocoapodsTest/FYCocoapodsViewController.h | <gh_stars>0
//
// FYCocoapodsViewController.h
// TestCocoapodsProject
//
// Created by <NAME> on 2017/4/1.
// Copyright © 2017年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface FYCocoapodsViewController : UIViewController
@end
|
FelixYin66/CocoapodsDemo | TestCocoapodsProject/Example/Pods/Target Support Files/Pods-TestCocoapodsProject_Tests/Pods-TestCocoapodsProject_Tests-umbrella.h | <gh_stars>0
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
FOUNDATION_EXPORT double Pods_TestCocoapodsProject_TestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_TestCocoapodsProject_TestsVersionString[];
|
FelixYin66/CocoapodsDemo | TestCocoapodsProject/Example/TestCocoapodsProject/FYAppDelegate.h | //
// FYAppDelegate.h
// TestCocoapodsProject
//
// Created by <NAME> on 04/01/2017.
// Copyright (c) 2017 <NAME>. All rights reserved.
//
@import UIKit;
@interface FYAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
MoSights/Cleaner | thirdparty/OptParse/optparse.h | <gh_stars>1-10
//
// Copyright (c) 2006 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merg... |
MoSights/Cleaner | common/str.h | #pragma once
unsigned int a2w(const char * astr, wchar_t *wstr);
unsigned int w2a(const wchar_t *wstr, char *astr);
unsigned int a2u8(const char *astr, char *utf8);
unsigned int u82a(const char *utf8, char *astr);
unsigned int u2u8(const wchar_t *wstr, char *utf8);
unsigned int u82u(const char *utf8, wchar_t *wst... |
MoSights/Cleaner | thirdparty/SlimXml/SlimXml.h | #ifndef __SLIM_XML_H__
#define __SLIM_XML_H__
#include <string>
#include <list>
#include <istream>
#pragma warning(push)
#pragma warning(disable:4251)
//disable this to make parsing a little bit faster
//#define SLIM_TRANSFER_CHARACTER
#if defined(SLIMLIB_EXPORTS)
#if defined(_MSC_VER)
//#define SLIMLIB_API __decls... |
MoSights/Cleaner | thirdparty/SlimXml/XmlSchema.h | #ifndef __SLIM_XML_SCHEMA_H__
#define __SLIM_XML_SCHEMA_H__
#include "SlimXml.h"
namespace slim
{
class SLIMLIB_API XmlSchema : public XmlDocument
{
public:
//parse schema from xml file
bool constructFromXml( XmlDocument* file );
//generate reading/writing c++ code automatically
bool generateCode( const Char* fi... |
aral/XAuthTwitterEngine | XAuthTwitterEngineDemo/Classes/XAuthTwitterEngineDemoViewController.h | <reponame>aral/XAuthTwitterEngine
//
// XAuthTwitterEngineDemoViewController.h
// XAuthTwitterEngineDemo
//
// Created by <NAME> on 28/02/2010.
// Copyright Naklab 2010. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "XAuthTwitterEngineDelegate.h"
#import "OAToken.h"
#define kOAuthConsumerKey @"" // Re... |
aral/XAuthTwitterEngine | XAuthTwitterEngineDemo/UIAlertView+Helper.h | <filename>XAuthTwitterEngineDemo/UIAlertView+Helper.h
//
// UIAlertViewHelper.h
// CocoaHelpers
//
// Created by <NAME> on 10/16/08.
// Copyright 2008 enormego. All rights reserved.
//
#import <UIKit/UIKit.h>
/*
* Convenience method to throw a quick alert to the user
*/
void UIAlertViewQuick(NSString* title, NS... |
aral/XAuthTwitterEngine | XAuthTwitterEngineDemo/Classes/XAuthTwitterEngineDemoAppDelegate.h | //
// XAuthTwitterEngineDemoAppDelegate.h
// XAuthTwitterEngineDemo
//
// Created by <NAME> on 28/02/2010.
// Copyright Naklab 2010. All rights reserved.
//
#import <UIKit/UIKit.h>
@class XAuthTwitterEngineDemoViewController;
@interface XAuthTwitterEngineDemoAppDelegate : NSObject <UIApplicationDelegate> {
U... |
EricJeffrey/my_http_server | response_header.h | #if !defined(RESPONSE_HEADER_H)
#define RESPONSE_HEADER_H
#include "utils.h"
#include <map>
#include <string>
#include <sys/stat.h>
using std::map;
using std::string;
using std::to_string;
class response_header {
public:
static map<int, string> code2phrase;
static string STR_VERSION_HTTP_1_1;
static con... |
EricJeffrey/my_http_server | config.h | <reponame>EricJeffrey/my_http_server
#if !defined(CONFIG_H)
#define CONFIG_H
#include <string>
#include <unordered_map>
#include <vector>
using std::pair;
using std::string;
using std::unordered_map;
using std::vector;
typedef pair<string, string> PAIR_SS;
typedef pair<int, string> PAIR_IS;
class config {
public:
... |
EricJeffrey/my_http_server | request_header.h | #if !defined(REQUEST_HEADER_H)
#define REQUEST_HEADER_H
#include "utils.h"
#include <map>
#include <vector>
using std::map;
using std::pair;
using std::vector;
typedef pair<string, string> PAIR_SS;
class request_header {
public:
string version;
string method;
string url;
map<string, string> mp_gene_r... |
EricJeffrey/my_http_server | oldver_19_11/header_file/include_heads.h | <gh_stars>1-10
#include <arpa/inet.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <pthread.h>
#include <string>
#include <sys/socket.h>
#include <sys/stat.h>
#include <unistd.h>
#include <vector>
using std::pair;
using std::string;
using std::vector;
typedef co... |
EricJeffrey/my_http_server | oldver_19_10/src/logger.h | #include <stdio.h>
#include <stdlib.h>
#if !defined(LOGGER_H)
#define LOGGER_H
const int LOG_LV_DEBUG = 1;
const int LOG_LV_VERBOSE = 2;
const char LOG_LV_STR[][20] = {"", "DEBUG", "VERBOSE"};
int LOG_LEVEL = LOG_LV_VERBOSE;
FILE *FP_LOG_OUTPUT = stderr;
// 设置日志等级
#define LOGGER_SET_LV(x) ... |
EricJeffrey/my_http_server | conn_hanlder.h | <gh_stars>1-10
#if !defined(CONN_HANDLER_H)
#define CONN_HANDLER_H
#include "buffered_reader.h"
#include "cgi_server.h"
#include "config.h"
#include "request_header.h"
#include "response_header.h"
#include "static_server.h"
#include "utils.h"
#include <arpa/inet.h>
#include <fcntl.h>
#include <netdb.h>
#include <sys/s... |
EricJeffrey/my_http_server | main_app.h | #if !defined(MAIN_APP_H)
#define MAIN_APP_H
#include <set>
#include <string>
#include <unistd.h>
using std::set;
using std::string;
enum state {
initialize,
start,
stop
};
class main_app {
private:
// arguments to parse
static int argc;
static char **argv;
static const string usage;
s... |
EricJeffrey/my_http_server | utils.h | #if !defined(UTILS_H)
#define UTILS_H
#include "config.h"
#include "logger.h"
#include <fcntl.h>
#include <regex>
#include <string>
#include <sys/stat.h>
using std::regex;
using std::regex_match;
using std::to_string;
class utils {
private:
public:
static const set<string> set_errorcode;
utils() {}
~ut... |
EricJeffrey/my_http_server | oldver_19_10/src/thread_pool.h | <gh_stars>1-10
#if !defined(THREAD_POOL_H)
#define THREAD_POOL_H
#include "logger.h"
#include <condition_variable>
#include <mutex>
#include <queue>
#include <thread>
#include <vector>
using std::condition_variable;
using std::mutex;
using std::queue;
using std::thread;
using std::unique_lock;
using std::vector;
//... |
EricJeffrey/my_http_server | test_utils.h | <reponame>EricJeffrey/my_http_server
#include "utils.h"
#include <iomanip>
#include <iostream>
#include <vector>
using std::cin;
using std::cout;
using std::endl;
using std::vector;
void test_parse_url() {
vector<string> url_list = {
"",
"cgi",
"/stait",
"/static",
"/hello",... |
EricJeffrey/my_http_server | oldver_19_10/header_file/req_resp_header.h | <reponame>EricJeffrey/my_http_server<gh_stars>1-10
#include "include_heads.h"
#if !defined(REQ_RESP_HEADER)
#define REQ_RESP_HEADER
// request headers
struct my_req_header {
string path, method, version;
vector<string> keys, values;
void print_me() {
printf("path: %s\nmethod: %s\nproto: ... |
EricJeffrey/my_http_server | oldver_19_11/header_file/svr_mgr.h | <gh_stars>1-10
#if !defined(SVR_MGR)
#define SVR_MGR
#include "req_resp_header.h"
const char msg_body_404[] = "404: Requested Resource Not Found";
typedef pair<string, string> pss;
// exit on error. err: error number, s: info, thread_exit: exit only this thread, sd: sd to close (only when thread_exit is fa... |
EricJeffrey/my_http_server | buffered_reader.h | <gh_stars>1-10
#if !defined(BUFFERED_READER_H)
#define BUFFERED_READER_H
#include "logger.h"
#include "utils.h"
#include <unistd.h>
#include <vector>
using std::fill;
using std::to_string;
class buffered_reader {
private:
static const int SIZE_BUFFER = 2048;
char buffer[SIZE_BUFFER];
int fd;
int pos;... |
EricJeffrey/my_http_server | oldver_19_10/src/err_handler.h | <filename>oldver_19_10/src/err_handler.h
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#if !defined(ERR_HANDLER_H)
#define ERR_HANDLER_H
FILE *fp_err_out = stderr;
#define errExitSimp(A) \
do { ... |
EricJeffrey/my_http_server | logger.h | #if !defined(LOGGER_H)
#define LOGGER_H
#include "config.h"
#include <cerrno>
#include <cstring>
#include <fstream>
#include <initializer_list>
#include <iostream>
#include <mutex>
#include <ostream>
#include <queue>
#include <sstream>
#include <string>
#include <sys/syscall.h>
#include <sys/types.h>
#include <thread>... |
EricJeffrey/my_http_server | main_listener.h | <gh_stars>1-10
#if !defined(MAIN_LISTENER_H)
#define MAIN_LISTENER_H
#include "config.h"
#include "conn_hanlder.h"
#include "main_app.h"
#include "utils.h"
class main_listener {
private:
/*
-1 for error
int openListenFd(int port, int backlog) {
addrinfo hints, *listp, *p;
int listenfd, opt... |
EricJeffrey/my_http_server | oldver_19_10/src/wrappers.h | <reponame>EricJeffrey/my_http_server
#include "err_handler.h"
#include "logger.h"
#include <fcntl.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <unistd.h>
#if !defined(WAPPERS_H)
#define WAPPERS_H
static int ret_wrapper = 0;
// IO api
int Close(int fd) {
LOGGER_SIMP(LOG_LV_VERBOSE, "Wrapper: close")... |
EricJeffrey/my_http_server | cgi_server.h | #if !defined(CGI_SERVER_H)
#define CGI_SERVER_H
#include "config.h"
#include "logger.h"
#include "response_header.h"
#include "utils.h"
#include <cstring>
#include <fcntl.h>
#include <iostream>
#include <signal.h>
#include <sstream>
#include <string>
#include <sys/stat.h>
#include <unistd.h>
#include <vector>
#include... |
EricJeffrey/my_http_server | static_server.h | <reponame>EricJeffrey/my_http_server
#if !defined(STATIC_SERVER_H)
#define STATIC_SERVER_H
#include "config.h"
#include "logger.h"
#include "response_header.h"
#include "utils.h"
#include <sys/sendfile.h>
#include <sys/socket.h>
#include <sys/types.h>
// write [n] bytes of [buffer] to [sd], return n or -1
int writeBu... |
kedzie/autotools-maven-plugin | archetype/shared/src/main/resources/archetype-resources/src/main/native/hello.c | <reponame>kedzie/autotools-maven-plugin
#ifdef HAVE_CONFIG_H
\#include "config.h"
#endif
\#include "hello.h"
\#include "jni-${artifactId}.h"
const char *
greeting(void)
{
return "Hello World!";
}
#set( $jnipackage = $package.replace('.','_') )
JNIEXPORT jstring JNICALL
Java_${jnipackage}_App_getGreeting0(JNIEnv *... |
kedzie/autotools-maven-plugin | it/src/it/automake-subdir/src/main/native/subdir/hello.h | #ifndef __SAY_HELLO
#define __SAY_HELLO
extern int say_hello(void);
#endif
|
kedzie/autotools-maven-plugin | archetype/shared/src/main/resources/archetype-resources/src/main/native/hello.h | #ifndef __HELLO_H
#define __HELLO_H
extern const char *greeting(void);
#endif
|
kedzie/autotools-maven-plugin | it/src/it/libraries/libshared-foo/src/main/native/shared-foo.c | /*
* Copyright (C) 2006-2013 <NAME> <<EMAIL>>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
kedzie/autotools-maven-plugin | it/src/it/automake-subdir/src/main/native/subdir/hello.c | #include <stdio.h>
#include "hello.h"
int
say_hello(void)
{
printf("Hello World\n");
return 0;
}
|
kedzie/autotools-maven-plugin | it/src/it/libraries/bar/src/main/native/bar.c | <reponame>kedzie/autotools-maven-plugin
/*
* Copyright (C) 2006-2013 <NAME> <<EMAIL>>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
kedzie/autotools-maven-plugin | it/src/it/automake-subdir/src/main/native/main.c | #include "hello.h"
int main(int argc, char **argv)
{
return say_hello();
}
|
Naimin/Zephyr | Zephyr_Common/src/Primitive/Triangle.h | #ifndef TRIANGLE_H
#define TRIANGLE_H
#include "Point.h"
#include "Vertex.h"
namespace Zephyr
{
namespace Common
{
struct ZEPHYR_COMMON_API Triangle
{
public:
Triangle(Vertex p0 = Vertex(), Vertex p1 = Vertex(), Vertex p2 = Vertex());
Vertex getVertex(const int i) const;
Vector3f computeNormal() con... |
Naimin/Zephyr | Zephyr_GPU/src/stdfx.h | #pragma once
#ifdef ZEPHYR_GPU_EXPORTS
#define ZEPHYR_GPU_API __declspec(dllexport)
#else
#define ZEPHYR_GPU_API __declspec(dllimport)
#endif
#ifndef NOMINMAX
#define NOMINMAX
#endif |
Naimin/Zephyr | Zephyr_Algorithm/src/stdfx.h | #pragma once
#ifdef ZEPHYR_ALGORITHM_EXPORTS
#define ZEPHYR_ALGORITHM_API __declspec(dllexport)
#else
#define ZEPHYR_ALGORITHM_API __declspec(dllimport)
#endif |
Naimin/Zephyr | Zephyr_App/src/UI.h | #ifndef ZEPHYR_UI_H
#define ZEPHYR_UI_H
#include <string>
#include <Eigen/Eigen>
#include <unordered_map>
#include <nana/gui/wvl.hpp>
#include <nana/gui/widgets/label.hpp>
#include <nana/gui/widgets/button.hpp>
#include <nana/gui/widgets/slider.hpp>
namespace Zephyr
{
class App;
class UI
{
public:
UI(const... |
Naimin/Zephyr | Zephyr_Common/src/Random.h | <filename>Zephyr_Common/src/Random.h
#ifndef COMMON_RANDOM_H
#define COMMON_RANDOM_H
#include "stdfx.h"
#include "boost/random.hpp"
#include "boost/generator_iterator.hpp"
namespace Zephyr
{
namespace Common
{
typedef boost::mt19937 RNGType;
class ZEPHYR_COMMON_API RandomGenerator
{
public:
RandomGenera... |
Naimin/Zephyr | Zephyr_GPU/src/QueryDevice.h | <filename>Zephyr_GPU/src/QueryDevice.h
#ifndef ZEPHYR_GPU_QUERY_DEVICE_H
#define ZEPHYR_GPU_QUERY_DEVICE_H
#include "stdfx.h"
#include <vector>
namespace Zephyr
{
namespace GPU
{
class ZEPHYR_GPU_API QueryDevice
{
public:
static int getDeviceCount();
static std::string getDeviceName(const int gpuId);... |
Naimin/Zephyr | Zephyr_Graphics/src/IRenderPass.h | #ifndef RENDER_PASS_H
#define RENDER_PASS_H
#include "stdfx.h"
#include "ShaderManager.h"
#include "CommandList.h"
namespace Zephyr
{
namespace Graphics
{
class Renderer;
}
}
namespace Zephyr
{
namespace Graphics
{
class GraphicsEngine;
class CommandList;
class ZEPHYR_GRAPHICS_API IRenderPass : public ... |
Naimin/Zephyr | Zephyr_Common/src/Camera.h | <reponame>Naimin/Zephyr<filename>Zephyr_Common/src/Camera.h
#ifndef CAMERA_H
#define CAMERA_H
#include "stdfx.h"
namespace Zephyr
{
namespace Common
{
class ZEPHYR_COMMON_API Camera
{
public:
Camera();
~Camera();
void intialize(const Common::Vector3f& cameraPos,
const Common::Vector3f& came... |
Naimin/Zephyr | Zephyr_Common/src/Mesh/Texture.h | <gh_stars>1-10
#ifndef TEXTURE_H
#define TEXTURE_H
#include "../stdfx.h"
#include <FreeImagePlus.h>
#include <boost/filesystem/path.hpp>
namespace Zephyr
{
namespace Common
{
class ZEPHYR_COMMON_API Texture
{
public:
Texture();
Texture(const boost::filesystem::path& path);
virtual ~Texture();
... |
Naimin/Zephyr | Zephyr_Algorithm/src/Decimate/QuadricError.h | <filename>Zephyr_Algorithm/src/Decimate/QuadricError.h
#ifndef ZEPHYR_ALGORITHM_QUADRIC_ERROR_H
#define ZEPHYR_ALGORITHM_QUADRIC_ERROR_H
#include "../stdfx.h"
#include <Mesh/OM_Mesh.h>
#include <OpenMesh/Core/Geometry/QuadricT.hh>
#include <OpenMesh/Tools/Decimater/CollapseInfoT.hh>
#include <vector>
/// Quadric usi... |
Naimin/Zephyr | Zephyr_Algorithm/src/Decimate/Decimate.h | #ifndef ZEPHYR_ALGORITHM_DECIMATE_H
#define ZEPHYR_ALGORITHM_DECIMATE_H
#include "../stdfx.h"
#include <Mesh/OM_Mesh.h>
namespace Zephyr
{
namespace Algorithm
{
enum DecimationType
{
GREEDY_DECIMATE = 0,
RANDOM_DECIMATE,
RANDOM_DECIMATE_VERTEX,
ADAPTIVE_RANDOM_DECIMATE,
GPU_RANDOM_DECIMATE,
GP... |
Naimin/Zephyr | Zephyr_Algorithm/src/Segmentation/iDualGraph.h | #ifndef I_DUAL_GRAPH_H
#define I_DUAL_GRAPH_H
#include "../stdfx.h"
#include <vector>
#include <algorithm>
namespace Zephyr
{
namespace Algorithm
{
template <class NodeType, class EdgeType>
class ZEPHYR_ALGORITHM_API DualGraph
{
public:
struct Node
{
Node(const NodeType data_) : data(data_) {}
... |
Naimin/Zephyr | Zephyr_Graphics/src/ResourceManager.h | <gh_stars>1-10
#ifndef RESOURCE_MANAGER_H
#define RESOURCE_MANAGER_H
#include "stdfx.h"
#include "CommandQueue.h"
namespace Zephyr
{
namespace Graphics
{
class GraphicsEngine;
class ZEPHYR_GRAPHICS_API ResourceManager
{
public:
enum RESOURCE_TYPE
{
DEFAULT = 1, // GPU read/write, no CPU
... |
Naimin/Zephyr | Zephyr_Graphics/src/ShaderManager.h | <filename>Zephyr_Graphics/src/ShaderManager.h<gh_stars>1-10
#ifndef SHADER_MANAGER_H
#define SHADER_MANAGER_H
#include "stdfx.h"
namespace Zephyr
{
namespace Graphics
{
class ZEPHYR_GRAPHICS_API ShaderManager
{
public:
enum SHADER_TYPE
{
VERTEX = 0,
PIXEL
};
ShaderManager();
vi... |
Naimin/Zephyr | Zephyr_Common/src/Timer.h | <filename>Zephyr_Common/src/Timer.h
#ifndef COMMON_TIMER_H
#define COMMON_TIMER_H
#include "stdfx.h"
#include <chrono>
namespace Zephyr
{
namespace Common
{
class ZEPHYR_COMMON_API Timer
{
public:
Timer(const std::string& name="");
virtual ~Timer();
double getElapsedTime(); // Time since creatio... |
Naimin/Zephyr | Zephyr_Graphics/src/Zephyr_Graphics.h | <filename>Zephyr_Graphics/src/Zephyr_Graphics.h
#ifndef ZEPHYR_GRAPHICS_H
#define ZEPHYR_GRAPHICS_H
#include "stdfx.h"
#include "Renderer.h"
#include "ShaderManager.h"
#include "ResourceManager.h"
namespace Zephyr
{
namespace Graphics
{
class BasicRenderPass;
class ZEPHYR_GRAPHICS_API GraphicsEngine
{
pu... |
Naimin/Zephyr | Zephyr_Graphics/src/CommandQueue.h | <filename>Zephyr_Graphics/src/CommandQueue.h
#ifndef COMMAND_QUEUE_H
#define COMMAND_QUEUE_H
#include "stdfx.h"
#include "CommandList.h"
#include "IRenderPass.h"
namespace Zephyr
{
namespace Graphics
{
enum COMMAND_QUEUE_TYPE
{
DIRECT = 0,
BUNDLE = 1,
COMPUTE = 2,
COPY = 3
};
class ZEPHYR_GRAPH... |
Naimin/Zephyr | Zephyr_Common/src/Mesh/Material.h | #ifndef MATERIAL_H
#define MATERIAL_H
#include "../stdfx.h"
#include "Texture.h"
namespace Zephyr
{
namespace Common
{
class ZEPHYR_COMMON_API Material
{
public:
Material(boost::filesystem::path path = boost::filesystem::path(""), std::string name = std::string());
virtual ~Material();
boost::fi... |
Naimin/Zephyr | Zephyr_Common/src/Mesh/OM_Mesh.h | #ifndef OM_MESH_H
#define OM_MESH_H
#include "../stdfx.h"
#include <OpenMesh/Core/IO/MeshIO.hh>
// Wrapper class foor OpenMesh half-edge mesh representation
#include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
#include <OpenMesh/Core/Mesh/TriMeshT.hh>
#include "Mesh.h"
using namespace OpenMesh;
struct ZephyrTrai... |
Naimin/Zephyr | Zephyr_Graphics/src/CommandList.h | <gh_stars>1-10
#ifndef COMMAND_LIST_H
#define COMMAND_LIST_H
#include "stdfx.h"
#include "Fence.h"
namespace Zephyr
{
namespace Graphics
{
class GraphicsEngine;
class CommandQueue;
class Pipeline;
// wrapper over directx commandList
class ZEPHYR_GRAPHICS_API CommandList
{
public:
CommandList(con... |
Naimin/Zephyr | Zephyr_Graphics/src/TestRenderPass.h | <reponame>Naimin/Zephyr<gh_stars>1-10
#ifndef TEST_RENDER_PASS_H
#define TEST_RENDER_PASS_H
#include "IRenderPass.h"
namespace Zephyr
{
namespace Graphics
{
class ZEPHYR_GRAPHICS_API TestRenderPass : public IRenderPass
{
public:
TestRenderPass(const int frameBufferCount, GraphicsEngine* pEngine);
vi... |
Naimin/Zephyr | Zephyr_Graphics/src/RenderableModel.h | <filename>Zephyr_Graphics/src/RenderableModel.h
#ifndef RENDERABLE_MODEL_H
#define RENDERABLE_MODEL_H
#include "stdfx.h"
#include <Mesh/Model.h>
#include <Mesh/Material.h>
namespace Zephyr
{
namespace Graphics
{
class CommandList;
class ResourceManager;
class OpenMeshMesh;
// class of renderable model
cl... |
Naimin/Zephyr | Zephyr_Common/src/Mesh/Model.h | <filename>Zephyr_Common/src/Mesh/Model.h
#ifndef MODEL_H
#define MODEL_H
#include "Material.h"
#include "Mesh.h"
#include <vector>
namespace Zephyr
{
namespace Common
{
class ZEPHYR_COMMON_API Model
{
public:
Model();
virtual ~Model();
// Mesh Accessor
void addMesh(Mesh& mesh);
Mesh& getMesh(c... |
Naimin/Zephyr | Zephyr_Graphics/src/Renderer.h | #ifndef RENDERER_H
#define RENDERER_H
#include "stdfx.h"
#include "IRenderPass.h"
#include "CommandQueue.h"
#include <Timer.h>
namespace Zephyr
{
namespace Graphics
{
const int FRAME_BUFFER_COUNT = 3; // triple buffering
class GraphicsEngine;
class ZEPHYR_GRAPHICS_API Renderer
{
public:
Renderer(... |
Naimin/Zephyr | Zephyr_Graphics/src/SharedPtr.h | <filename>Zephyr_Graphics/src/SharedPtr.h
#ifndef SHARED_POINTER_H
#define SHARED_POINTER_H
// Specialized std::shared_ptr that call directx12 Release() instead of delete
#include "stdfx.h"
// this will only call release if an object exists (prevents exceptions calling release on non existant objects)
#define SAFE_R... |
Naimin/Zephyr | Zephyr_GPU/src/Algorithm/QEM_Data.h | <gh_stars>1-10
#ifndef ZEPHYR_GPU_OpenMesh_H
#define ZEPHYR_GPU_OpenMesh_H
#include "../stdfx.h"
#include <Mesh/OM_Mesh.h>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/system/cuda/experimental/pinned_allocator.h>
namespace Zephyr
{
namespace GPU
{
typedef unsigned char INDEX_... |
Naimin/Zephyr | Zephyr_Common/src/Utils/CoordinateConvertor.h | <reponame>Naimin/Zephyr
#ifndef COORDINATE_CONVERTOR_H
#define COORDINATE_CONVERTOR_H
#include "stdfx.h"
#include <cmath>
namespace Zephyr
{
namespace Common
{
const float PI = 3.14159265358979323846f;
const float PI_OVER_180 = PI / 180.0f;
const float OVER_180_PI = 180.0f / PI;
struct ZEPHYR_COMMON_API Co... |
Naimin/Zephyr | Zephyr_GPU/src/Algorithm/Decimate.h | <gh_stars>1-10
#ifndef ZEPHYR_GPU_ALGORITHM_DECIMATE_H
#define ZEPHYR_GPU_ALGORITHM_DECIMATE_H
#include "../stdfx.h"
#include <Decimate/Decimate.h>
namespace Zephyr
{
namespace GPU
{
int ZEPHYR_GPU_API decimate(Common::OpenMeshMesh& mesh, unsigned int targetFaceCount, unsigned int binSize, Algorithm::DecimationTy... |
Naimin/Zephyr | Zephyr_Graphics/src/StringUtils.h | <filename>Zephyr_Graphics/src/StringUtils.h
#ifndef STRING_UTILS_H
#define STRING_UTILS_H
#include <locale>
#include <codecvt>
#include <string>
namespace Zephyr
{
namespace Utils
{
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
}
}
#endif |
Naimin/Zephyr | Zephyr_Common/src/stdfx.h | <filename>Zephyr_Common/src/stdfx.h
#pragma once
#ifdef ZEPHYR_COMMON_EXPORTS
#define ZEPHYR_COMMON_API __declspec(dllexport)
#else
#define ZEPHYR_COMMON_API __declspec(dllimport)
#endif
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include "GeometryMath.h" |
Naimin/Zephyr | Zephyr_Common/src/Primitive/Line.h | #ifndef Line_H
#define Line_H
#include "Point.h"
namespace Zephyr
{
namespace Common
{
struct Line
{
Line(const Point p1 = Point(), const Point p2 = Point())
{
mPoint[0] = p1;
mPoint[1] = p2;
}
Point mPoint[2];
};
}
}
#endif
|
Naimin/Zephyr | Zephyr_Graphics/src/stdfx.h | <gh_stars>1-10
#pragma once
#ifdef ZEPHYR_GRAPHICS_EXPORTS
#define ZEPHYR_GRAPHICS_API __declspec(dllexport)
#else
#define ZEPHYR_GRAPHICS_API __declspec(dllimport)
#endif
#include <memory>
#include <functional>
#include <map>
#include <vector>
#include <unordered_map>
#include <iostream>
// custom shared... |
Naimin/Zephyr | Zephyr_App/src/App.h | #ifndef ZEPHYR_APP_H
#define ZEPHYR_APP_H
#include <Zephyr_Graphics.h>
#include <Camera.h>
namespace Zephyr
{
const std::string DEFAULT_RENDERPASS_NAME = "BasicRenderPass";
class UI;
class AppEvents;
class Common::Camera;
class App
{
public:
App(const std::string& windowTitle, unsigned int width = 800, u... |
Naimin/Zephyr | Zephyr_Common/src/IO/MeshExporter.h | <reponame>Naimin/Zephyr
#ifndef MESH_EXPORTER_H
#define MESH_EXPORTER_H
#include "../stdfx.h"
#include "../Mesh/Model.h"
namespace Zephyr
{
namespace Common
{
class ZEPHYR_COMMON_API MeshExporter
{
public:
MeshExporter();
virtual ~MeshExporter();
static bool exportMesh(const std::string& path,... |
Naimin/Zephyr | Zephyr_Common/src/MeshConverter.h | #ifndef MESH_CONVERTER_H
#define MESH_CONVERTER_H
#include "stdfx.h"
#include "Mesh/Model.h"
namespace Zephyr
{
namespace Common
{
class ZEPHYR_COMMON_API MeshLoader
{
public:
MeshLoader();
virtual ~MeshLoader();
static bool loadFile(const std::string& path, Model* pModel);
};
}
}
#endif
|
Naimin/Zephyr | Zephyr_Algorithm/src/Segmentation/MeshSegmentation.h | <filename>Zephyr_Algorithm/src/Segmentation/MeshSegmentation.h<gh_stars>1-10
#ifndef MESH_SEGMENTATION_H
#define MESH_SEGMENTATION_H
namespace Zephyr
{
namespace Algorithm
{
class MeshSegmentation
{
public:
MeshSegmentation();
virtual ~MeshSegmentation();
protected:
};
}
}
#endif
|
Naimin/Zephyr | Zephyr_Common/src/GeometryMath.h | <reponame>Naimin/Zephyr
#ifndef GEOMETRY_MATH_H
#define GEOMETRY_MATH_H
#include <Eigen/Eigen>
// this interface so we can easily switch out the math library if we want to
namespace Zephyr
{
namespace Common
{
typedef Eigen::Vector2f Vector2f;
typedef Eigen::Vector3f Vector3f;
typedef Eigen::Vector4f Vecto... |
Naimin/Zephyr | Zephyr_Common/src/Utils/LNormUtil.h | <reponame>Naimin/Zephyr
#ifndef L_NORM_UTIL_H
#define L_NORM_UTIL_H
#include "../stdfx.h"
#include <algorithm>
#include <cmath>
namespace Zephyr
{
namespace Common
{
struct ZEPHYR_COMMON_API LNormUtil
{
static float L1Norm(const Vector3f vec);
static float L2Norm(const Vector3f vec);
static float LI... |
Naimin/Zephyr | Zephyr_GPU/src/Zephyr_GPU.h | <gh_stars>1-10
#include "stdfx.h"
void ZEPHYR_GPU_API dummy(); |
Naimin/Zephyr | Zephyr_Common/src/Primitive/Vertex.h | <reponame>Naimin/Zephyr<filename>Zephyr_Common/src/Primitive/Vertex.h<gh_stars>1-10
#ifndef VERTEX_H
#define VERTEX_H
#include "../stdfx.h"
namespace Zephyr
{
namespace Common
{
struct ZEPHYR_COMMON_API Vertex
{
Vertex(float x = -1.0f, float y = -1.0f, float z = -1.0f, float nx = -1.0f, float ny = -1.0f, flo... |
Naimin/Zephyr | Zephyr_Graphics/src/Fence.h | #ifndef FENCE_H
#define FENCE_H
#include "stdfx.h"
namespace Zephyr
{
namespace Graphics
{
class CommandQueue;
class ZEPHYR_GRAPHICS_API Fence
{
public:
Fence(SharedPtr<ID3D12Device> pDevice);
virtual ~Fence();
UINT64 current(); // get current value;
void increment(); // increment fence v... |
Naimin/Zephyr | Zephyr_Algorithm/src/Segmentation/TriDualGraph.h | <gh_stars>1-10
#ifndef TRI_DUAL_GRAPH_H
#define TRI_DUAL_GRAPH_H
#include "iDualGraph.h"
#include <Primitive/Triangle.h>
#include <Primitive/Line.h>
#include <Mesh/Model.h>
namespace Zephyr
{
namespace Algorithm
{
struct TriEdge;
struct TriNode : public Common::Triangle
{
TriNode() {}
TriNode(const Com... |
Naimin/Zephyr | Zephyr_Common/src/Mesh/Mesh.h | #ifndef MESH_H
#define MESH_H
#include "../Primitive/Vertex.h"
namespace Zephyr
{
namespace Common
{
class ZEPHYR_COMMON_API Mesh
{
public:
Mesh();
virtual ~Mesh();
std::vector<Vertex>& getVertices();
const std::vector<Vertex>& getVertices() const;
int getVerticesCount() const;
void... |
Naimin/Zephyr | Zephyr_Common/src/Primitive/Point.h | #ifndef POINT_H
#define POINT_H
#include "../stdfx.h"
namespace Zephyr
{
namespace Common
{
struct ZEPHYR_COMMON_API Point
{
Point(float x = 0, float y = 0, float z = 0) : position(x,y,z)
{
}
Vector3f position;
};
}
}
#endif
|
Naimin/Zephyr | Zephyr_Algorithm/src/Zephyr_Algorithm.h | <filename>Zephyr_Algorithm/src/Zephyr_Algorithm.h
#ifndef ZEPHYR_ALGORITHM_H
#define ZEPHYR_ALGORITHM_H
#include "stdfx.h"
#include "OM_Mesh.h"
namespace Zephyr
{
namespace Algorithm
{
class ZEPHYR_ALGORITHM_API Algorithm
{
public:
Algorithm();
virtual ~Algorithm();
};
}
}
#endif |
Naimin/Zephyr | Zephyr_Graphics/src/BasicRenderPass.h | #ifndef BASIC_RENDER_PASS_H
#define BASIC_RENDER_PASS_H
#include "IRenderPass.h"
#include "RenderableModel.h"
#include <Camera.h>
namespace Zephyr
{
namespace Graphics
{
using namespace DirectX;
class ZEPHYR_GRAPHICS_API BasicRenderPass : public IRenderPass
{
public:
struct ConstantBuffer
{
X... |
Naimin/Zephyr | Zephyr_Common/src/IO/MeshConverter.h | #ifndef MESH_CONVERTER_H
#define MESH_CONVERTER_H
#include "../stdfx.h"
#include "../Mesh/Model.h"
#include "../Mesh/OM_Mesh.h"
namespace Zephyr
{
namespace Common
{
class ZEPHYR_COMMON_API MeshConverter
{
public:
MeshConverter();
virtual ~MeshConverter();
static OpenMeshMesh ModelToOpenMesh(co... |
Naimin/Zephyr | Zephyr_App/src/AppEvents.h | #ifndef ZEPHYR_APP_EVENTS_H
#define ZEPHYR_APP_EVENTS_H
#include "App.h"
#include "UI.h"
namespace Zephyr
{
namespace Algorithm
{
enum DecimationType;
}
class AppEvents
{
public:
AppEvents(App* pApp, UI* pUI);
virtual ~AppEvents();
bool initialize();
protected:
virtual void setupLoadButtonEv... |
Naimin/Zephyr | Zephyr_Graphics/src/Pipeline.h | <reponame>Naimin/Zephyr
#ifndef PIPELINE_H
#define PIPELINE_H
#include "stdfx.h"
namespace Zephyr
{
namespace Graphics
{
class GraphicsEngine;
struct ZEPHYR_GRAPHICS_API PipelineOption
{
D3D12_ROOT_SIGNATURE_FLAGS rootSignatureFlag;
std::wstring vertexShader;
std::wstring vertexShaderPath;
std::w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.