cheshirekow  v0.1.0
mpblocks::utility Namespace Reference

Classes

class  ExceptionStream
 used to simplify the process of generating an exception message More...
 
class  Timespec
 just a c timespec with arithmetic operators More...
 

Typedefs

typedef ExceptionStream
< std::runtime_error > 
ex
 

Functions

template<typename OutputType = unsigned>
constexpr unsigned _BinaryLiteral (const char *str, size_t val=0)
 
template<typename OutputType = unsigned>
constexpr OutputType BinaryLiteral (const char *str, size_t val=0)
 
constexpr bool IsBinary (char c)
 
template<typename T >
constexpr size_t NumberOfBits ()
 
bool operator!= (const timespec &a, const timespec &b)
 
Timespec operator+ (const Timespec &a, const Timespec &b)
 
Timespec operator- (const Timespec &a, const Timespec &b)
 
bool operator< (const timespec &a, const timespec &b)
 
bool operator<= (const timespec &a, const timespec &b)
 
bool operator== (const timespec &a, const timespec &b)
 
bool operator> (const timespec &a, const timespec &b)
 
bool operator>= (const timespec &a, const timespec &b)
 
constexpr size_t StringLength (const char *str, size_t current_len=0)
 

Typedef Documentation

typedef ExceptionStream<std::runtime_error> mpblocks::utility::ex

Definition at line 27 of file exception_stream.hpp.

Function Documentation

template<typename OutputType = unsigned>
constexpr unsigned mpblocks::utility::_BinaryLiteral ( const char *  str,
size_t  val = 0 
)

Definition at line 61 of file binary_literal.h.

template<typename OutputType = unsigned>
constexpr OutputType mpblocks::utility::BinaryLiteral ( const char *  str,
size_t  val = 0 
)

Definition at line 70 of file binary_literal.h.

constexpr bool mpblocks::utility::IsBinary ( char  c)

Definition at line 57 of file binary_literal.h.

template<typename T >
constexpr size_t mpblocks::utility::NumberOfBits ( )

Definition at line 37 of file binary_literal.h.

bool mpblocks::utility::operator!= ( const timespec &  a,
const timespec &  b 
)
inline

Definition at line 60 of file timespec.h.

Timespec mpblocks::utility::operator+ ( const Timespec &  a,
const Timespec &  b 
)
Timespec mpblocks::utility::operator- ( const Timespec &  a,
const Timespec &  b 
)
bool mpblocks::utility::operator< ( const timespec &  a,
const timespec &  b 
)
inline

Definition at line 64 of file timespec.h.

bool mpblocks::utility::operator<= ( const timespec &  a,
const timespec &  b 
)
inline

Definition at line 84 of file timespec.h.

bool mpblocks::utility::operator== ( const timespec &  a,
const timespec &  b 
)
inline

Definition at line 56 of file timespec.h.

bool mpblocks::utility::operator> ( const timespec &  a,
const timespec &  b 
)
inline

Definition at line 74 of file timespec.h.

bool mpblocks::utility::operator>= ( const timespec &  a,
const timespec &  b 
)
inline

Definition at line 94 of file timespec.h.

constexpr size_t mpblocks::utility::StringLength ( const char *  str,
size_t  current_len = 0 
)

Definition at line 50 of file binary_literal.h.