SIRIUS 7.5.0
Electronic structure library and applications
Public Types | Public Member Functions | Private Attributes | List of all members
byte_container_with_subtype< BinaryType > Class Template Reference

an internal type for a backed binary type More...

#include <nlohmann_json.hpp>

Inherits 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 (container_type &&b) noexcept(noexcept(container_type(std::move(b))))
 
 byte_container_with_subtype (const container_type &b, subtype_type subtype_) noexcept(noexcept(container_type(b)))
 
 byte_container_with_subtype (container_type &&b, subtype_type subtype_) noexcept(noexcept(container_type(std::move(b))))
 
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 More...
 
constexpr subtype_type subtype () const noexcept
 return the binary subtype More...
 
constexpr bool has_subtype () const noexcept
 return whether the value has a subtype More...
 
void clear_subtype () noexcept
 clears the binary subtype More...
 

Private Attributes

subtype_type m_subtype = 0
 
bool m_has_subtype = false
 

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 5823 of file nlohmann_json.hpp.

Member Typedef Documentation

◆ container_type

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

Definition at line 5826 of file nlohmann_json.hpp.

◆ subtype_type

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

Definition at line 5827 of file nlohmann_json.hpp.

Constructor & Destructor Documentation

◆ byte_container_with_subtype() [1/5]

template<typename BinaryType >
byte_container_with_subtype< BinaryType >::byte_container_with_subtype ( )
inlinenoexcept

◆ byte_container_with_subtype() [2/5]

template<typename BinaryType >
byte_container_with_subtype< BinaryType >::byte_container_with_subtype ( const container_type &  b)
inlinenoexcept

◆ byte_container_with_subtype() [3/5]

template<typename BinaryType >
byte_container_with_subtype< BinaryType >::byte_container_with_subtype ( container_type &&  b)
inlinenoexcept

◆ byte_container_with_subtype() [4/5]

template<typename BinaryType >
byte_container_with_subtype< BinaryType >::byte_container_with_subtype ( const container_type &  b,
subtype_type  subtype_ 
)
inlinenoexcept

◆ byte_container_with_subtype() [5/5]

template<typename BinaryType >
byte_container_with_subtype< BinaryType >::byte_container_with_subtype ( container_type &&  b,
subtype_type  subtype_ 
)
inlinenoexcept

Member Function Documentation

◆ operator==()

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

Definition at line 5858 of file nlohmann_json.hpp.

◆ operator!=()

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

Definition at line 5864 of file nlohmann_json.hpp.

◆ set_subtype()

template<typename BinaryType >
void byte_container_with_subtype< BinaryType >::set_subtype ( subtype_type  subtype_)
inlinenoexcept

sets the binary subtype

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

Definition at line 5871 of file nlohmann_json.hpp.

◆ subtype()

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

return the binary subtype

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

Definition at line 5879 of file nlohmann_json.hpp.

◆ 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 5886 of file nlohmann_json.hpp.

◆ clear_subtype()

template<typename BinaryType >
void byte_container_with_subtype< BinaryType >::clear_subtype ( )
inlinenoexcept

clears the binary subtype

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

Definition at line 5893 of file nlohmann_json.hpp.

Member Data Documentation

◆ m_subtype

template<typename BinaryType >
subtype_type byte_container_with_subtype< BinaryType >::m_subtype = 0
private

Definition at line 5900 of file nlohmann_json.hpp.

◆ m_has_subtype

template<typename BinaryType >
bool byte_container_with_subtype< BinaryType >::m_has_subtype = false
private

Definition at line 5901 of file nlohmann_json.hpp.


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