A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
byte_container_with_subtype< BinaryType > Class Template Reference

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
 

Detailed Description

template<typename BinaryType>
class byte_container_with_subtype< BinaryType >

an internal type for a backed binary type

See also
https://json.nlohmann.me/api/byte_container_with_subtype/

Definition at line 6240 of file json.h.

Member Typedef Documentation

◆ container_type

template<typename BinaryType >
using byte_container_with_subtype< BinaryType >::container_type = BinaryType

Definition at line 6243 of file json.h.

◆ subtype_type

template<typename BinaryType >
using byte_container_with_subtype< BinaryType >::subtype_type = std::uint64_t

Definition at line 6244 of file json.h.

Constructor & Destructor Documentation

◆ byte_container_with_subtype() [1/5]

◆ byte_container_with_subtype() [2/5]

◆ byte_container_with_subtype() [3/5]

◆ byte_container_with_subtype() [4/5]

◆ byte_container_with_subtype() [5/5]

Member Function Documentation

◆ clear_subtype()

◆ has_subtype()

template<typename BinaryType >
constexpr bool byte_container_with_subtype< BinaryType >::has_subtype ( ) const
inlineconstexprnoexcept

return whether the value has a subtype

See also
https://json.nlohmann.me/api/byte_container_with_subtype/has_subtype/

Definition at line 6303 of file json.h.

References byte_container_with_subtype< BinaryType >::m_has_subtype.

◆ operator!=()

template<typename BinaryType >
bool byte_container_with_subtype< BinaryType >::operator!= ( const byte_container_with_subtype< BinaryType > &  rhs) const
inline

Definition at line 6281 of file json.h.

◆ operator==()

◆ set_subtype()

◆ subtype()

template<typename BinaryType >
constexpr subtype_type byte_container_with_subtype< BinaryType >::subtype ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ m_has_subtype

◆ m_subtype


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