repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
buaa0300/QSOpenGlESLearn
QSOpenGLES004/QSOpenGLES004/QSViewController.h
// // QSViewController.h // QSOpenGLES004 // // Created by zhongpingjiang on 17/2/23. // Copyright © 2017年 shaoqing. All rights reserved. // //#import <UIKit/UIKit.h> #import <GLKit/GLKit.h> @interface QSViewController : GLKViewController @end
buaa0300/QSOpenGlESLearn
QSOpenGLES003/QSOpenGLES003/Source/QSOpenGLView.h
<reponame>buaa0300/QSOpenGlESLearn // // QSOpenGLView.h // QSOpenGLES002 // // Created by zhongpingjiang on 17/2/21. // Copyright © 2017年 shaoqing. All rights reserved. // #import <UIKit/UIKit.h> @interface QSOpenGLView : UIView @end
buaa0300/QSOpenGlESLearn
QSOpenGLES001/QSOpenGLES001/QSViewController.h
<gh_stars>1-10 // // QSViewController.h // QSOpenGLES001 // // Created by shaoqing on 17/2/19. // Copyright © 2017年 shaoqing. All rights reserved. // //#import <UIKit/UIKit.h> #import <GLKit/GLKit.h> @interface QSViewController : GLKViewController @end
buaa0300/QSOpenGlESLearn
QSOpenGLES002_BlendTexture/QSOpenGLES002_BlendTexture/ViewController.h
<reponame>buaa0300/QSOpenGlESLearn // // ViewController.h // QSOpenGLES002_BlendTexture // // Created by zhongpingjiang on 17/3/1. // Copyright © 2017年 shaoqing. All rights reserved. // #import <GLKit/GLKit.h> @interface ViewController : UIViewController @end
buaa0300/QSOpenGlESLearn
QSOpenGLESLearn002/QSOpenGLESLearn002/ViewController.h
// // ViewController.h // QSOpenGLESLearn002 // // Created by shaoqing on 17/2/19. // Copyright © 2017年 Jiang. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
DavieDang/DWPagingDemo
PagingDemo/PagingDemo/ViewController.h
<reponame>DavieDang/DWPagingDemo<filename>PagingDemo/PagingDemo/ViewController.h // // ViewController.h // PagingDemo // // Created by lg on 2019/1/29. // Copyright © 2019年 lancoo. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
DavieDang/DWPagingDemo
PagingDemo/PagingDemo/PageScrollView/DWPageScrollView.h
<filename>PagingDemo/PagingDemo/PageScrollView/DWPageScrollView.h // // DWPageScrollView.h // PagingDemo // // Created by lg on 2019/1/29. // Copyright © 2019年 lancoo. All rights reserved. // #import <UIKit/UIKit.h> @interface DWPageScrollView : UIScrollView @end
zackLiuzz/AlignmentCompare
ceres_solver.h
<reponame>zackLiuzz/AlignmentCompare<gh_stars>0 /* * ceres_solver.h * * Created on: Jul 29, 2021 * Author: zack */ #ifndef CERES_SOLVER_H_ #define CERES_SOLVER_H_ namespace trunk{ } //namespace trunk #endif /* CERES_SOLVER_H_ */
zackLiuzz/AlignmentCompare
common.h
/* * common.h * * Created on: Jul 29, 2021 * Author: zack */ #ifndef COMMON_H_ #define COMMON_H_ #include <iostream> #include <string> #include <pcl/io/ply_io.h> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/visualization/pcl_visualizer.h> #include <pcl/console/time.h> // TicToc na...
zackLiuzz/AlignmentCompare
ndt.h
<reponame>zackLiuzz/AlignmentCompare /* * ndt.h * * Created on: Jul 29, 2021 * Author: zack */ #ifndef NDT_H_ #define NDT_H_ namespace trunk{ class TrunkNDT{ explicit TrunkNDT::TrunkNDT(){} TrunkNDT::~TrunkNDT(){} public: private: }; } //namespace trunk #endif /* NDT_H_ */
zackLiuzz/AlignmentCompare
g2o_solver.h
<filename>g2o_solver.h<gh_stars>0 /* * g2o_solver.h * * Created on: Jul 29, 2021 * Author: zack */ #ifndef G2O_SOLVER_H_ #define G2O_SOLVER_H_ namespace trunk{ } //namespace trunk #endif /* G2O_SOLVER_H_ */
zackLiuzz/AlignmentCompare
icp.h
/* * icp.h * * Created on: Jul 29, 2021 * Author: zack */ #ifndef ICP_H_ #define ICP_H_ namespace trunk{ class TrunkICP{ explicit TrunkICP::TrunkICP(){} TrunkICP::~TrunkICP(){} public: private: }; } //namespace trunk #endif /* ICP_H_ */
zackLiuzz/AlignmentCompare
GaussNewton.h
<reponame>zackLiuzz/AlignmentCompare /* * GaussNewton.h * * Created on: Aug 2, 2021 * Author: zack */ #ifndef GAUSSNEWTON_H_ #define GAUSSNEWTON_H_ #include "common.h" #include <eigen3/Eigen/Core> #include <pcl/common/transforms.h> #include <pcl/kdtree/kdtree_flann.h> namespace trunk{ //该类是对优化方法的ICP进行的实现,是...
nyanmisaka/media-driver
media_softlet/agnostic/common/vp/hal/feature_manager/policy.h
<reponame>nyanmisaka/media-driver /* * Copyright (c) 2019-2021, Intel Corporation * * 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 rig...
nyanmisaka/media-driver
media_softlet/agnostic/common/hw/mhw_mi_cmdpar.h
<filename>media_softlet/agnostic/common/hw/mhw_mi_cmdpar.h /* * Copyright (c) 2020, Intel Corporation * * 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 ...
Kitepay/ed25519_blake2b
ext/ed25519_blake2b/rbext.c
#include <ruby/ruby.h> #include <ruby/encoding.h> #include "ed25519.h" VALUE cEd25519_Blake2b; VALUE ed25519_blake2b_public_key(VALUE self, VALUE rbSecret_key) { Check_Type(rbSecret_key, T_STRING); if (RSTRING_LEN(rbSecret_key) != 32) { rb_raise(rb_eArgError, "The secret key must be 32 bytes in length"); ...
Kitepay/ed25519_blake2b
ext/ed25519_blake2b/ed25519-hash-custom.c
#include <stdlib.h> #include "ed25519-hash-custom.h" #include "blake2.h" void ed25519_hash_init (ed25519_hash_context * ctx) { ctx->blake2 = (blake2b_state *) malloc(sizeof(blake2b_state)); blake2b_init(ctx->blake2, 64); } void ed25519_hash_update (ed25519_hash_context * ctx, uint8_t const * in, size_t inlen) { ...
NVIDIA-Jetson/jetson-trashformers
include/KeyboardController.h
#ifndef KEYBOARDCONTROLLER_H_ #define KEYBOARDCONTROLLER_H_ #include <stdio.h> #include <iostream> #include <unistd.h> #include <termios.h> #include "Controls.h" #include "ZigbController.h" class KeyboardController{ public: KeyboardController(ZigbController* zigb); virtual ~KeyboardController()...
NVIDIA-Jetson/jetson-trashformers
include/DetectNetController.h
#ifndef DETECTNETCONTROLLER_H_ #define DETECTNETCONTROLLER_H_ #include <stdio.h> #include <iostream> #include <thread> #include <algorithm> #include <vector> #include <string> #include "../util/detectnet-camera.h" #define TARGET_BB_IN_SORTED_ARRAY 0 class DetectNetController { public: DetectNetControlle...
NVIDIA-Jetson/jetson-trashformers
util/detectnet-camera.h
<reponame>NVIDIA-Jetson/jetson-trashformers #ifndef DETECTNETCAMERA_H_ #define DETECTNETCAMERA_H_ #include <stdint.h> #include <string> void sig_handler(int signo); int main( int argc, char** argv ); int runDetectNet(std::string modelNum); float** getBoundingBoxArray(); int* getNumBoundingBox(); bool getStopSignal();...
NVIDIA-Jetson/jetson-trashformers
include/SerialHandler.h
#ifndef SERIAL_HANDLER_H #define SERIAL_HANDLER_H #include "ZigbController.h" #include "../util/dynamixel_sdk.h" #define DEVICENAME_DEFAULT "/dev/ttyACM0" class SerialHandler { public: SerialHandler(); virtual ~SerialHandler(); int OpenZigbPort(); int OpenDynamixelPort(); ...
NVIDIA-Jetson/jetson-trashformers
include/BehaviorController.h
#ifndef BEHAVIOR_H_ #define BEHAVIOR_H_ #include "ZigbController.h" #include "Controls.h" #include "SerialHandler.h" class BehaviorController { public: enum class ControllerState { WALK_FORWARD, WALK_BACKWARD, TURN_RIGHT, TURN_LEFT, STRAFE_LEFT...
NVIDIA-Jetson/jetson-trashformers
include/ZigbController.h
#ifndef ZIGBCONTROLLER_H_ #define ZIGBCONTROLLER_H_ #include <stdio.h> #include <iostream> #include <string.h> #include "../util/zigbee.h" class ZigbController { public: ZigbController(); ZigbController(int device_index); virtual ~ZigbController(); int ConnectZigbee(); in...
NVIDIA-Jetson/jetson-trashformers
include/Arm.h
<filename>include/Arm.h #ifndef ARM_H_ #define ARM_H_ #include <stdio.h> #include <iostream> #include "Servo.h" #include "dynamixel_sdk.h" #include "SerialHandler.h" #define SHOULDER_MAX 800 #define SHOULDER_MIN 150 #define ELBOW_MAX 1023 #define ELBOW_MIN 350 #define WRIST_MAX 750 #define WRIST_MIN 250 #define CL...
NVIDIA-Jetson/jetson-trashformers
include/Humanoid.h
<reponame>NVIDIA-Jetson/jetson-trashformers<filename>include/Humanoid.h #ifndef HUMANOID_H_ #define HUMANOID_H_ #include <stdio.h> #include <iostream> #include "ZigbController.h" #include "KeyboardController.h" #include "DetectNetController.h" #include "Controls.h" #include "Arm.h" #include "Servo.h" #include "Serial...
NVIDIA-Jetson/jetson-trashformers
include/Controls.h
<filename>include/Controls.h<gh_stars>10-100 #ifndef CONTROLS_H_ #define CONTROLS_H_ /* ALL ZIGB CONTROLS */ static const int BUTTON_U = 1; static const int BUTTON_D = 2; static const int BUTTON_L = 4; static const int BUTTON_R = 8; static const int BUTTON_1 = 16; static const int BUTTON_2 = 32; static const int BUTTO...
NVIDIA-Jetson/jetson-trashformers
include/Servo.h
#ifndef SERVO_H_ #define SERVO_H_ #include <stdio.h> #include <iostream> #include <string> #include "../util/dynamixel_sdk.h" #define ADDR_MX_TORQUE_ENABLE 24 #define ADDR_MX_GOAL_TORQUE 34 #define ADDR_MX_GOAL_POSITION 30 #define ADDR_MX_PRESENT_POSITION 36 #define ADDR_MX_GOAL_SPEED 32 #define PROTOCOL_VERSION 1 ...
Crowntium/crowntium
src/cpp-ethereum/test/tools/jsontests/StateTests.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <test/tools/jsontests/StateTestFixtureBase.h> #include <test/tools/libtesteth/TestSuite.h> #include <boost/filesystem/path.hpp> namespace dev { n...
Crowntium/crowntium
src/cpp-ethereum/test/tools/libtestutils/Common.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <string> #include <json/json.h> #include <libdevcore/Log.h> #include <boost/filesystem.hpp> namespace dev { namespace test { boost::filesystem...
Crowntium/crowntium
src/cpp-ethereum/libethereum/SnapshotImporter.h
<reponame>Crowntium/crowntium<filename>src/cpp-ethereum/libethereum/SnapshotImporter.h // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. /// @file /// Class for importing snapshot from directory on disk #pragma once #...
Crowntium/crowntium
src/cpp-ethereum/libdevcore/LruCache.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <list> #include <unordered_map> namespace dev { template <class Key, class Value> class LruCache { using key_type = Key; using value_type = V...
Crowntium/crowntium
src/cpp-ethereum/libethereum/ImportPerformanceLogger.h
<reponame>Crowntium/crowntium<gh_stars>1-10 // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. /// @file /// Class for logging of importing a Block into BlockChain. #pragma once #include <libdevcore/Common.h> #include ...
Crowntium/crowntium
src/cpp-ethereum/libweb3jsonrpc/Web3Face.h
<reponame>Crowntium/crowntium /** * This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY! */ #ifndef JSONRPC_CPP_STUB_DEV_RPC_WEB3FACE_H_ #define JSONRPC_CPP_STUB_DEV_RPC_WEB3FACE_H_ #include "ModularServer.h" namespace dev { namespace rpc { class Web3Face : public ServerInterface<Web3Face>...
Crowntium/crowntium
src/cpp-ethereum/libweb3jsonrpc/JsonHelper.h
<filename>src/cpp-ethereum/libweb3jsonrpc/JsonHelper.h // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <json/json.h> #include <libp2p/Common.h> #include <libethcore/Common.h> #include <libethco...
Crowntium/crowntium
src/cpp-ethereum/test/unittests/performance/poplnkc.c
#include <stdio.h> #include <stdint.h> int main() { struct link { struct link* next; long long slot[8]; } stack; struct link* sp = &stack; struct link* free = &stack; struct link* tmp = 0; stack.next = &stack; for (uint64_t i = 0; i < 8388608; ++i) { tmp = sp->next, sp->next = free, free = sp, sp = tmp; ...
Crowntium/crowntium
src/cpp-ethereum/test/tools/jsontests/LegacyTests.h
<reponame>Crowntium/crowntium // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #include <test/tools/jsontests/BlockChainTests.h> #include <test/tools/jsontests/StateTestFixtureBase.h> #include <test/tools/jsontests/StateTe...
Crowntium/crowntium
src/cpp-ethereum/libp2p/EndpointTracker.h
<reponame>Crowntium/crowntium<gh_stars>1-10 // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "Common.h" namespace dev { namespace p2p { /// Class for keeping track of our external endpoint as seen b...
Crowntium/crowntium
src/cpp-ethereum/test/tools/jsontests/StateTestFixtureBase.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <test/tools/libtesteth/TestHelper.h> namespace dev { namespace test { enum class TestExecution { RequireOptionAll, NotRefillable }; static st...
Crowntium/crowntium
src/cpp-ethereum/libdevcore/TrieHash.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <libdevcore/FixedHash.h> #include <vector> namespace dev { bytes rlp256(BytesMap const& _s); h256 hash256(BytesMap const& _s); template <clas...
Crowntium/crowntium
src/cpp-ethereum/libethereum/CommonNet.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. /// @file /// Miscellanea required for the PeerServer/Session classes. #pragma once #include <libdevcore/Common.h> #include <libdevcore/Log.h> #include <libp2p/Common....
Crowntium/crowntium
src/cpp-ethereum/libethcore/BasicAuthority.h
<gh_stars>1-10 // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <libdevcrypto/Common.h> #include "SealEngine.h" namespace dev { namespace eth { class BasicAuthority: public SealEngineBase { p...
Crowntium/crowntium
src/cpp-ethereum/libweb3jsonrpc/Test.h
<reponame>Crowntium/crowntium // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "TestFace.h" namespace dev { namespace eth { class Client; } namespace rpc { class Test: public TestFace { publi...
Crowntium/crowntium
src/cpp-ethereum/utils/json_spirit/JsonSpiritHeaders.h
<reponame>Crowntium/crowntium // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #pragma warning(push) #pragma warning(disable: 4100) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversio...
Crowntium/crowntium
src/cpp-ethereum/libethashseal/Ethash.h
<reponame>Crowntium/crowntium // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. /// @file /// The Ethash proof of work algorithm. #pragma once #include "EthashProofOfWork.h" #include <libethcore/SealEngine.h> #include...
Crowntium/crowntium
src/cpp-ethereum/libdevcore/SHA3.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "FixedHash.h" #include "vector_ref.h" #include <ethash/keccak.hpp> #include <string> namespace dev { // SHA-3 convenience routines. /// Calc...
Crowntium/crowntium
src/cpp-ethereum/libdevcore/UndefMacros.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. /// @file /// This header should be used to #undef some really evil macros defined by /// windows.h which result in conflict with our libsolidity/Token.h #pragma once ...
Crowntium/crowntium
src/cpp-ethereum/libweb3jsonrpc/TestFace.h
<reponame>Crowntium/crowntium<filename>src/cpp-ethereum/libweb3jsonrpc/TestFace.h<gh_stars>10-100 /** * This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY! */ #ifndef JSONRPC_CPP_STUB_DEV_RPC_TESTFACE_H_ #define JSONRPC_CPP_STUB_DEV_RPC_TESTFACE_H_ #include "ModularServer.h" namespace dev { names...
Crowntium/crowntium
src/cpp-ethereum/test/tools/libtesteth/TestSuite.h
<reponame>Crowntium/crowntium<filename>src/cpp-ethereum/test/tools/libtesteth/TestSuite.h // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. /// @file /// Base functions for all test suites #pragma once #include <boost/...
Crowntium/crowntium
src/cpp-ethereum/test/tools/jsontests/BlockChainTests.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2017-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <libethashseal/Ethash.h> #include <libethashseal/GenesisInfo.h> #include <test/tools/jsontests/StateTestFixtureBase.h> #include <test/tools/libtes...
Crowntium/crowntium
src/cpp-ethereum/ethash/test/integration/compilation/ethash_header_test.c
/* ethash: C/C++ implementation of Ethash, the Ethereum Proof of Work algorithm. * Copyright 2018 <NAME>. * Licensed under the Apache License, Version 2.0. See the LICENSE file. */ #include <ethash/ethash.h> int test() { int sum = 0; sum += ETHASH_EPOCH_LENGTH; sum += ETHASH_LIGHT_CACHE_ITEM_SIZE; ...
Crowntium/crowntium
src/cpp-ethereum/libethashseal/EthashCPUMiner.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "EthashProofOfWork.h" #include <libethereum/GenericMiner.h> namespace dev { namespace eth { class EthashCPUMiner : public GenericMiner<EthashP...
Crowntium/crowntium
src/cpp-ethereum/libethereum/DatabasePaths.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "libdevcore/FixedHash.h" #include <boost/filesystem/path.hpp> namespace dev { namespace eth { class DatabasePaths { public: DatabasePaths(bo...
Crowntium/crowntium
src/cpp-ethereum/test/tools/libtesteth/wast2wasm.h
#pragma once #include <string> namespace dev { namespace test { std::string wast2wasm(std::string const& input, bool debug = false); } }
Crowntium/crowntium
src/cpp-ethereum/aleth/buildinfo.c
/* Cable: CMake Bootstrap Library. * Copyright 2018 <NAME>. * Licensed under the Apache License, Version 2.0. See the LICENSE file. */ #include "buildinfo.h" const struct buildinfo* aleth_get_buildinfo() { static const struct buildinfo buildinfo = { .project_name = "aleth", .project_version = "...
Crowntium/crowntium
src/cpp-ethereum/ethash/lib/ethash/keccakf800.c
/* ethash: C/C++ implementation of Ethash, the Ethereum Proof of Work algorithm. * Copyright 2018 <NAME>. * Licensed under the Apache License, Version 2.0. See the LICENSE file. */ #include <stdint.h> static uint32_t rol(uint32_t x, unsigned s) { return (x << s) | (x >> (32 - s)); } static const uint32_t roun...
Crowntium/crowntium
src/cpp-ethereum/libethereum/GasPricer.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <libethcore/Common.h> namespace dev { namespace eth { class Block; class BlockChain; enum class TransactionPriority { Lowest = 0, Low = 2, ...
Crowntium/crowntium
src/cpp-ethereum/libdevcore/TransientDirectory.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <string> namespace dev { /** * @brief temporary directory implementation * It creates temporary directory in the given path. On dealloc it re...
Crowntium/crowntium
src/cpp-ethereum/test/tools/libtestutils/FixedClient.h
<reponame>Crowntium/crowntium // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <libethereum/ClientBase.h> #include <libethereum/BlockChain.h> #include <libethcore/Common.h> namespace dev { name...
Crowntium/crowntium
src/cpp-ethereum/test/tools/libtesteth/TestOutputHelper.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2017-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. /// @file /// Fixture class for boost output when running testeth #pragma once #include <test/tools/libtestutils/Common.h> #include <test/tools/libtesteth/JsonSpiritHea...
Crowntium/crowntium
src/cpp-ethereum/libdevcrypto/CryptoPP.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. /** * CryptoPP headers and primitive helper methods */ #pragma once #include "Common.h" namespace dev { namespace crypto { /// Amount of bytes added when encryptin...
Crowntium/crowntium
src/cpp-ethereum/test/unittests/libdevcrypto/MemTrie.h
<filename>src/cpp-ethereum/test/unittests/libdevcrypto/MemTrie.h // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2013-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <libdevcore/Common.h> #include <libdevcore/FixedHash.h> namespace dev { class ...
Crowntium/crowntium
src/cpp-ethereum/libdevcore/Terminal.h
<gh_stars>1-10 // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once namespace dev { namespace con { #define EthReset "" // Text Reset // Regular Colors #define EthBlack "" // Black #define EthCoal...
Crowntium/crowntium
src/cpp-ethereum/libweb3jsonrpc/Net.h
<filename>src/cpp-ethereum/libweb3jsonrpc/Net.h<gh_stars>1-10 // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "NetFace.h" namespace dev { class NetworkFace; namespace rpc { class Net: publi...
Crowntium/crowntium
src/cpp-ethereum/test/unittests/performance/popcpyc.c
#include <stdio.h> #include <stdint.h> int main() { struct link { struct link* next; long long slot[8]; } stack[2], *sp; for (uint64_t i = 0; i < 8388608; ++i) { stack[0] = stack[1]; sp = stack + 1; stack[0] = stack[1]; sp = stack + 1; stack[0] = stack[1]; sp = stack + 1; stack[0] = stack[1]; sp = stack ...
Crowntium/crowntium
src/cpp-ethereum/libethereum/GenesisInfo.h
<reponame>Crowntium/crowntium // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <libdevcore/Common.h> #include <string> namespace dev { namespace eth { extern std::string const c_genesisInfoT...
Crowntium/crowntium
src/cpp-ethereum/libweb3jsonrpc/Personal.h
<filename>src/cpp-ethereum/libweb3jsonrpc/Personal.h #pragma once #include "PersonalFace.h" namespace dev { namespace eth { class KeyManager; class AccountHolder; class Interface; } namespace rpc { class Personal: public dev::rpc::PersonalFace { public: Personal(dev::eth::KeyManager& _keyManager, dev::eth::Accoun...
Crowntium/crowntium
src/cpp-ethereum/libp2p/NodeTable.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "Common.h" #include "ENR.h" #include "EndpointTracker.h" #include <libp2p/UDP.h> #include <boost/integer/static_log2.hpp> #include <algorithm> n...
Crowntium/crowntium
src/cpp-ethereum/test/tools/libtesteth/Stats.h
<gh_stars>1-10 // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2013-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <chrono> #include <vector> #include "TestHelper.h" namespace dev { namespace test { class Stats: public Listener { public: usi...
Crowntium/crowntium
src/cpp-ethereum/libdevcore/OverlayDB.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <memory> #include <libdevcore/db.h> #include <libdevcore/Common.h> #include <libdevcore/Log.h> #include <libdevcore/StateCacheDB.h> namespace de...
Crowntium/crowntium
src/cpp-ethereum/libdevcore/RocksDB.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2017-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "db.h" #include <boost/filesystem.hpp> #include <rocksdb/db.h> #include <rocksdb/write_batch.h> namespace dev { namespace db { class RocksDB : p...
Crowntium/crowntium
src/cpp-ethereum/libp2p/All.h
#pragma once #include "Common.h" #include "HostCapability.h" #include "Capability.h" #include "Host.h" #include "Session.h"
Crowntium/crowntium
src/cpp-ethereum/libp2p/RLPxHandshake.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <memory> #include <libdevcrypto/Common.h> #include "RLPXSocket.h" #include "RLPXFrameCoder.h" #include "Common.h" namespace ba = boost::asio; name...
Crowntium/crowntium
src/cpp-ethereum/libdevcore/JsonUtils.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <libdevcore/Exceptions.h> #include <json_spirit/JsonSpiritHeaders.h> #include <set> #include <string> namespace dev { // Throws UnknownField() i...
Crowntium/crowntium
src/cpp-ethereum/libethcore/LogEntry.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2017-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "Common.h" #include <libdevcore/Address.h> #include <libdevcore/FixedHash.h> namespace dev { class RLP; class RLPStream; namespace eth { stru...
Crowntium/crowntium
src/cpp-ethereum/libp2p/Session.h
<reponame>Crowntium/crowntium // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "Capability.h" #include "Common.h" #include "RLPXSocket.h" #include <libdevcore/Common.h> #include <libdevcore/Guar...
Crowntium/crowntium
src/cpp-ethereum/libweb3jsonrpc/EthFace.h
/** * This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY! */ #ifndef JSONRPC_CPP_STUB_DEV_RPC_ETHFACE_H_ #define JSONRPC_CPP_STUB_DEV_RPC_ETHFACE_H_ #include "ModularServer.h" namespace dev { namespace rpc { class EthFace : public ServerInterface<EthFace> { public: ...
Crowntium/crowntium
src/cpp-ethereum/test/unittests/performance/mul64c.c
#include <stdio.h> #include <stdint.h> int main() { uint64_t r; for (uint64_t i = 0; i < 1048576; ++i) { uint64_t z = 0xd; uint64_t y = 0xd; uint64_t x = 0xd; x *= y; x *= y; x *= y; x *= y; x *= y; x *= y; x *= y; x *= y; x *= y; x *= y; x *= y; x *= y; x *= y; x *= y; x *= y; x *= y; x = z; x *= ...
Crowntium/crowntium
src/cpp-ethereum/test/unittests/performance/popincc.c
#include <stdio.h> #include <stdint.h> int main() { uint64_t r; for (uint64_t i = 0; i < 1048576; ++i) { uint64_t z = 0; uint64_t y = 64; uint64_t x = 0; x += y; x += y; x += y; x += y; x += y; x += y; x += y; x += y; x += y; x += y; x += y; x += y; x += y; x += y; x += y; x += y; x = z; x += y; x ...
Crowntium/crowntium
src/cpp-ethereum/libweb3jsonrpc/SessionManager.h
#pragma once #include <unordered_set> #include <unordered_map> #define RPC_ADMIN if (!m_sm.hasPrivilegeLevel(_session, Privilege::Admin)) throw jsonrpc::JsonRpcException("Invalid privileges"); namespace dev { namespace rpc { enum class Privilege { Admin }; } } namespace std { template<> struct hash<dev::rpc::Pri...
Crowntium/crowntium
src/cpp-ethereum/libp2p/Peer.h
<filename>src/cpp-ethereum/libp2p/Peer.h // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "Common.h" namespace dev { namespace p2p { /** * @brief Representation of connectivity state and al...
Crowntium/crowntium
src/cpp-ethereum/aleth/version.h
/* Cable: CMake Bootstrap Library. * Copyright 2019 <NAME>. * Licensed under the Apache License, Version 2.0. */ /* Generated by Cable Build Info on 2020-11-23T09:41:02. Do not modify directly. */ #pragma once #define ALETH_VERSION "1.8.0+commit.af7b28a0.dirty" #ifdef __cplusplus constexpr auto aleth_version = "...
Crowntium/crowntium
src/cpp-ethereum/libp2p/CapabilityHost.h
<reponame>Crowntium/crowntium<filename>src/cpp-ethereum/libp2p/CapabilityHost.h // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2018-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "Common.h" namespace dev { namespace p2p { /** * @brief The Cap...
Crowntium/crowntium
src/cpp-ethereum/libdevcore/LoggingProgramOptions.h
<reponame>Crowntium/crowntium<filename>src/cpp-ethereum/libdevcore/LoggingProgramOptions.h // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "Log.h" #include <boost/program_options/options_descri...
Crowntium/crowntium
src/qt/crttoken.h
#ifndef XCRTTOKEN_H #define XCRTTOKEN_H #include <qt/sendtokenpage.h> #include <qt/receivetokenpage.h> #include <qt/addtokenpage.h> #include <QWidget> #include <QModelIndex> #include <QAbstractItemModel> class WalletModel; class ClientModel; class TokenTransactionView; class TokenListWidget; class Pla...
Crowntium/crowntium
src/cpp-ethereum/libdevcore/DBFactory.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "Common.h" #include "db.h" #include <boost/filesystem.hpp> #include <boost/program_options/options_description.hpp> namespace dev { namespace d...
Crowntium/crowntium
src/cpp-ethereum/libethashseal/EthashProofOfWork.h
<reponame>Crowntium/crowntium<gh_stars>1-10 // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. /** * Determines the PoW algorithm. */ #pragma once #include <libethcore/BlockHeader.h> #include <libdevcore/Guards.h> n...
Crowntium/crowntium
src/cpp-ethereum/libdevcrypto/LibSnark.h
<gh_stars>1-10 // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <libdevcore/Common.h> namespace dev { namespace crypto { std::pair<bool, bytes> alt_bn128_pairing_product(bytesConstRef _in); s...
Crowntium/crowntium
src/cpp-ethereum/libethereum/SecureTrieDB.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <libdevcore/TrieDB.h> namespace dev { namespace eth { #if ETH_FATDB template <class KeyType, class DB> using SecureTrieDB = SpecificTrieDB<FatGe...
Crowntium/crowntium
src/cpp-ethereum/libweb3jsonrpc/PersonalFace.h
/** * This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY! */ #ifndef JSONRPC_CPP_STUB_DEV_RPC_PERSONALFACE_H_ #define JSONRPC_CPP_STUB_DEV_RPC_PERSONALFACE_H_ #include "ModularServer.h" namespace dev { namespace rpc { class PersonalFace : public ServerInterface<PersonalFace> { ...
Crowntium/crowntium
src/cpp-ethereum/libweb3jsonrpc/IpcServerBase.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <atomic> #include <string> #include <thread> #include <mutex> #include <unordered_set> #include <jsonrpccpp/server/abstractserverconnector.h> n...
Crowntium/crowntium
src/cpp-ethereum/ethash/include/ethash/hash_types.h
<filename>src/cpp-ethereum/ethash/include/ethash/hash_types.h /* ethash: C/C++ implementation of Ethash, the Ethereum Proof of Work algorithm. * Copyright 2018 <NAME>. * Licensed under the Apache License, Version 2.0. See the LICENSE file. */ #pragma once #include <stdint.h> #ifdef __cplusplus extern "C" { #endif...
Crowntium/crowntium
src/cpp-ethereum/test/tools/fuzzTesting/BoostRandomCode.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2017-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "RandomCode.h" #include <random> namespace dev { namespace test { using IntDistrib = std::uniform_int_distribution<>; using DescreteDistrib = std...
Crowntium/crowntium
src/cpp-ethereum/libethereum/EthereumCapability.h
<reponame>Crowntium/crowntium // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "CommonNet.h" #include "EthereumPeer.h" #include <libdevcore/Guards.h> #include <libdevcore/OverlayDB.h> #include <l...
Crowntium/crowntium
src/cpp-ethereum/libweb3jsonrpc/Eth.h
<filename>src/cpp-ethereum/libweb3jsonrpc/Eth.h // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "EthFace.h" #include "SessionManager.h" #include <jsonrpccpp/common/exception.h> #include <jsonr...
Crowntium/crowntium
src/chainparamsseeds.h
#ifndef BITCOIN_CHAINPARAMSSEEDS_H #define BITCOIN_CHAINPARAMSSEEDS_H /** * List of fixed seed nodes for the bitcoin network * AUTOGENERATED by contrib/seeds/generate-seeds.py * * Each line contains a 16-byte IPv6 address and a port. * IPv4 as well as onion addresses are wrapped inside an IPv6 address accordingly....
Crowntium/crowntium
src/cpp-ethereum/aleth-key/KeyAux.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. /// @file /// CLI module for key management. #pragma once #include <libdevcore/CommonIO.h> #include <libdevcore/FileSystem.h> #include <libdevcore/SHA3.h> #include <li...
Crowntium/crowntium
src/cpp-ethereum/test/tools/libtestutils/BlockChainLoader.h
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <json/json.h> #include <libdevcore/TransientDirectory.h> #include <libethereum/BlockChain.h> #include <libethereum/Block.h> #include <libethashsea...
Crowntium/crowntium
src/cpp-ethereum/test/tools/fuzzTesting/fuzzHelper.h
<reponame>Crowntium/crowntium<filename>src/cpp-ethereum/test/tools/fuzzTesting/fuzzHelper.h // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <string> #include <test/tools/fuzzTesting/BoostRandomC...
Crowntium/crowntium
src/cpp-ethereum/libp2p/ENR.h
<filename>src/cpp-ethereum/libp2p/ENR.h // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "Common.h" namespace dev { namespace p2p { DEV_SIMPLE_EXCEPTION(ENRIsTooBig); DEV_SIMPLE_EXCEPTION(ENRSignatu...
Crowntium/crowntium
src/cpp-ethereum/libweb3jsonrpc/WinPipeServer.h
<reponame>Crowntium/crowntium<filename>src/cpp-ethereum/libweb3jsonrpc/WinPipeServer.h // Aleth: Ethereum C++ client, tools and libraries. // Copyright 2015-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include "IpcServerBase.h" #include <windows.h> namespace dev { cl...