an internal type for a backed binary type More...
#include "json.h"
Inheritance diagram for byte_container_with_subtype< BinaryType >:
Collaboration diagram for byte_container_with_subtype< BinaryType >:Public Types | |
| using | container_type = BinaryType |
| using | subtype_type = std::uint64_t |
Public Member Functions | |
| byte_container_with_subtype () noexcept(noexcept(container_type())) | |
| byte_container_with_subtype (const container_type &b) noexcept(noexcept(container_type(b))) | |
| byte_container_with_subtype (const container_type &b, subtype_type subtype_) noexcept(noexcept(container_type(b))) | |
| byte_container_with_subtype (container_type &&b) noexcept(noexcept(container_type(std::move(b)))) | |
| byte_container_with_subtype (container_type &&b, subtype_type subtype_) noexcept(noexcept(container_type(std::move(b)))) | |
| void | clear_subtype () noexcept |
| clears the binary subtype | |
| constexpr bool | has_subtype () const noexcept |
| return whether the value has a subtype | |
| bool | operator!= (const byte_container_with_subtype &rhs) const |
| bool | operator== (const byte_container_with_subtype &rhs) const |
| void | set_subtype (subtype_type subtype_) noexcept |
| sets the binary subtype | |
| constexpr subtype_type | subtype () const noexcept |
| return the binary subtype | |
Private Attributes | |
| bool | m_has_subtype = false |
| subtype_type | m_subtype = 0 |
an internal type for a backed binary type
| using byte_container_with_subtype< BinaryType >::container_type = BinaryType |
| using byte_container_with_subtype< BinaryType >::subtype_type = std::uint64_t |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
clears the binary subtype
Definition at line 6310 of file json.h.
References byte_container_with_subtype< BinaryType >::m_has_subtype, and byte_container_with_subtype< BinaryType >::m_subtype.
|
inlineconstexprnoexcept |
return whether the value has a subtype
Definition at line 6303 of file json.h.
References byte_container_with_subtype< BinaryType >::m_has_subtype.
|
inline |
|
inline |
Definition at line 6275 of file json.h.
References byte_container_with_subtype< BinaryType >::m_has_subtype, and byte_container_with_subtype< BinaryType >::m_subtype.
|
inlinenoexcept |
sets the binary subtype
Definition at line 6288 of file json.h.
References byte_container_with_subtype< BinaryType >::m_has_subtype, and byte_container_with_subtype< BinaryType >::m_subtype.
|
inlineconstexprnoexcept |
return the binary subtype
Definition at line 6296 of file json.h.
References byte_container_with_subtype< BinaryType >::m_has_subtype, and byte_container_with_subtype< BinaryType >::m_subtype.
|
private |
Definition at line 6318 of file json.h.
Referenced by byte_container_with_subtype< BinaryType >::clear_subtype(), byte_container_with_subtype< BinaryType >::has_subtype(), byte_container_with_subtype< BinaryType >::operator==(), byte_container_with_subtype< BinaryType >::set_subtype(), and byte_container_with_subtype< BinaryType >::subtype().
|
private |