DNA Calib 1.1
Project brief
Public Types | Public Member Functions | Public Attributes | List of all members
dna::Signature< Size > Struct Template Reference

#include <DNA.h>

Inheritance diagram for dna::Signature< Size >:
Inheritance graph
Collaboration diagram for dna::Signature< Size >:
Collaboration graph

Public Types

using SignatureValueType = std::array< char, Size >
 

Public Member Functions

 Signature (SignatureValueType bytes)
 
template<class Archive >
void serialize (Archive &archive)
 
bool matches () const
 

Public Attributes

ExpectedValue< SignatureValueTypevalue
 

Member Typedef Documentation

◆ SignatureValueType

template<std::size_t Size>
using dna::Signature< Size >::SignatureValueType = std::array<char, Size>

Constructor & Destructor Documentation

◆ Signature()

template<std::size_t Size>
dna::Signature< Size >::Signature ( SignatureValueType  bytes)
inlineexplicit
75 : value{bytes} {
76 }
ExpectedValue< SignatureValueType > value
Definition: dna/DNA.h:73

Member Function Documentation

◆ matches()

template<std::size_t Size>
bool dna::Signature< Size >::matches ( ) const
inline
84 {
85 return value.matches();
86 }
bool matches() const
Definition: dna/DNA.h:63

References dna::ExpectedValue< T >::matches(), and dna::Signature< Size >::value.

Referenced by dna::DNA::load(), and dnac::DNA::load().

◆ serialize()

template<std::size_t Size>
template<class Archive >
void dna::Signature< Size >::serialize ( Archive &  archive)
inline
79 {
80 archive.label("data");
81 archive(value);
82 }

References dna::Signature< Size >::value.

Member Data Documentation

◆ value

template<std::size_t Size>
ExpectedValue<SignatureValueType> dna::Signature< Size >::value

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