YPC  0.2.0
Public Types | Public Member Functions | Static Public Attributes | List of all members
ypc::utc::bytes< ByteType, Format > Class Template Reference
Inheritance diagram for ypc::utc::bytes< ByteType, Format >:
Inheritance graph
[legend]
Collaboration diagram for ypc::utc::bytes< ByteType, Format >:
Collaboration graph
[legend]

Public Types

using byte_t = ByteType
 
using raw_bytes_t = bytes< ByteType, byte_encode::raw_bytes >
 
using hex_bytes_t = bytes< ByteType, byte_encode::hex_bytes >
 
using base58_bytes_t = bytes< ByteType, byte_encode::base58_bytes >
 
using base64_bytes_t = bytes< ByteType, byte_encode::base64_bytes >
 
- Public Types inherited from ypc::utc::internal::bytes_base< ByteType >
using byte_t = ByteType
 

Public Member Functions

 bytes (size_t len)
 
 bytes (const bytes< ByteType, Format > &v)
 
 bytes (bytes< ByteType, Format > &&v)
 
 bytes (std::initializer_list< ByteType > l)
 
template<typename T >
 bytes (const T *v, size_t len)
 
 bytes (const char *str)
 
 bytes (const std::string &str)
 
template<typename BytesType >
auto as () const -> typename std::enable_if< std::is_same< typename BytesType::byte_t, ByteType >::value &&(BytesType::format==byte_encode::base58_bytes &&Format==byte_encode::raw_bytes), BytesType >::type
 
template<typename BytesType >
auto as () const -> typename std::enable_if< std::is_same< typename BytesType::byte_t, ByteType >::value &&(BytesType::format==byte_encode::hex_bytes &&Format==byte_encode::raw_bytes), BytesType >::type
 
template<typename BytesType >
auto as () const -> typename std::enable_if< std::is_same< typename BytesType::byte_t, ByteType >::value &&(BytesType::format==byte_encode::base64_bytes &&Format==byte_encode::raw_bytes), BytesType >::type
 
template<typename BytesType >
auto as () const -> typename std::enable_if< std::is_same< typename BytesType::byte_t, ByteType >::value &&(BytesType::format==byte_encode::raw_bytes &&Format==byte_encode::hex_bytes), BytesType >::type
 
template<typename BytesType >
auto as () const -> typename std::enable_if< std::is_same< typename BytesType::byte_t, ByteType >::value &&(BytesType::format==byte_encode::raw_bytes &&Format==byte_encode::base58_bytes), BytesType >::type
 
template<typename BytesType >
auto as () const -> typename std::enable_if< std::is_same< typename BytesType::byte_t, ByteType >::value &&(BytesType::format==byte_encode::raw_bytes &&Format==byte_encode::base64_bytes), BytesType >::type
 
bytes< ByteType, Format > & operator= (const bytes< ByteType, Format > &v)
 
bytes< ByteType, Format > & operator= (bytes< ByteType, Format > &&v)
 
bool operator== (const bytes< ByteType, Format > &v) const
 
bool operator!= (const bytes< ByteType, Format > &v) const
 
bytes< ByteType, Format > operator+ (const bytes< ByteType, Format > &v) const
 
bytes< ByteType, Format > operator+ (const char *s) const
 
bytes< ByteType, Format > operator+ (const std::string &s) const
 
template<typename T >
bytes< ByteType, Format > & operator+= (const T &t)
 
- Public Member Functions inherited from ypc::utc::internal::bytes_base< ByteType >
 bytes_base (size_t len)
 
 bytes_base (const bytes_base< ByteType > &v)
 
bytes_base< ByteType > & operator= (const bytes_base< ByteType > &v)
 
bytes_base< ByteType > & operator= (bytes_base< ByteType > &&v)
 
 bytes_base (bytes_base< ByteType > &&v)
 
 bytes_base (std::initializer_list< byte_t > l)
 
template<typename T >
 bytes_base (const T *v, size_t len)
 
const byte_t & operator[] (size_t index) const
 
byte_t & operator[] (size_t index)
 
size_t size () const
 
const byte_t * data () const
 
byte_t * data ()
 
bool empty () const
 
bool operator< (const bytes_base< ByteType > &v) const
 
bool operator> (const bytes_base< ByteType > &v) const
 

Static Public Attributes

const static byte_encode format = Format
 

Additional Inherited Members

- Protected Attributes inherited from ypc::utc::internal::bytes_base< ByteType >
std::unique_ptr< byte_t[]> m_value
 
size_t m_size
 

The documentation for this class was generated from the following file: