Ring Daemon 16.0.0
Loading...
Searching...
No Matches
Common.h File Reference
Include dependency graph for libdevcore/Common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  dev::ScopeGuard
 RAII utility class whose destructor calls a given function. More...
 

Namespaces

namespace  dev
 

Macros

#define DEV_IF_THROWS(X)
 
#define DEV_IGNORE_EXCEPTIONS(X)
 
#define DEV_QUOTED(s)   DEV_QUOTED_HELPER(s)
 
#define DEV_QUOTED_HELPER(s)   #s
 
#define DEV_UNUSED   __attribute__((unused))
 

Typedefs

using dev::bytes = std::vector< uint8_t >
 
using dev::bytesConstRef = vector_ref< uint8_t const >
 
using dev::BytesMap = std::map< bytes, bytes >
 
using dev::bytesRef = vector_ref< uint8_t >
 
using dev::HexMap = std::map< bytes, bytes >
 
using dev::string32 = std::array< char, 32 >
 
using dev::StringHashMap = std::unordered_map< std::string, std::string >
 
using dev::StringMap = std::map< std::string, std::string >
 
using dev::strings = std::vector< std::string >
 

Enumerations

enum class  dev::WithExisting : int { dev::Trust = 0 , dev::Verify , dev::Rescue , dev::Kill }
 

Functions

template<class N >
dev::diff (N const &_a, N const &_b)
 

Variables

std::string const dev::EmptyString
 
char const * dev::Version
 

Detailed Description

Author
Gav Wood i@gav.nosp@m.wood.nosp@m..com
Date
2014

Very common stuff (i.e. that every other header needs except vector_ref.h).

Definition in file libdevcore/Common.h.

Macro Definition Documentation

◆ DEV_IF_THROWS

#define DEV_IF_THROWS (   X)
Value:
try { \
X; \
} catch (...)

Definition at line 60 of file libdevcore/Common.h.

◆ DEV_IGNORE_EXCEPTIONS

#define DEV_IGNORE_EXCEPTIONS (   X)
Value:
try { \
X; \
} catch (...) { \
}

Definition at line 54 of file libdevcore/Common.h.

◆ DEV_QUOTED

#define DEV_QUOTED (   s)    DEV_QUOTED_HELPER(s)

Definition at line 52 of file libdevcore/Common.h.

◆ DEV_QUOTED_HELPER

#define DEV_QUOTED_HELPER (   s)    #s

Definition at line 51 of file libdevcore/Common.h.

◆ DEV_UNUSED

#define DEV_UNUSED   __attribute__((unused))

Definition at line 115 of file libdevcore/Common.h.