Botan 3.6.1
Crypto and TLS for C&
Botan::TPM2::PropMap< FieldPointerT, MaskT > Struct Template Reference

#include <tpm2_util.h>

Public Member Functions

constexpr bool & operator() (auto &object) const noexcept
 Access the boolean member 'field' from the given object.
 
constexpr bool operator() (const auto &object) const noexcept
 Read-only access the boolean member 'field' from the given object.
 

Public Attributes

FieldPointerT field
 
MaskT mask
 

Detailed Description

template<typename FieldPointerT, std::unsigned_integral MaskT>
requires std::is_member_object_pointer_v<FieldPointerT>
struct Botan::TPM2::PropMap< FieldPointerT, MaskT >

Helper for the AttributeWrapper to define mappings between boolean members of a struct and the corresponding bit masks

Definition at line 223 of file tpm2_util.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename FieldPointerT , std::unsigned_integral MaskT>
bool & Botan::TPM2::PropMap< FieldPointerT, MaskT >::operator() ( auto & object) const
inlinenodiscardconstexprnoexcept

Access the boolean member 'field' from the given object.

Definition at line 228 of file tpm2_util.h.

228{ return object.*field; }
FieldPointerT field
Definition tpm2_util.h:224

References Botan::TPM2::PropMap< FieldPointerT, MaskT >::field.

◆ operator()() [2/2]

template<typename FieldPointerT , std::unsigned_integral MaskT>
bool Botan::TPM2::PropMap< FieldPointerT, MaskT >::operator() ( const auto & object) const
inlinenodiscardconstexprnoexcept

Read-only access the boolean member 'field' from the given object.

Definition at line 231 of file tpm2_util.h.

231{ return object.*field; }

References Botan::TPM2::PropMap< FieldPointerT, MaskT >::field.

Member Data Documentation

◆ field

template<typename FieldPointerT , std::unsigned_integral MaskT>
FieldPointerT Botan::TPM2::PropMap< FieldPointerT, MaskT >::field

◆ mask

template<typename FieldPointerT , std::unsigned_integral MaskT>
MaskT Botan::TPM2::PropMap< FieldPointerT, MaskT >::mask

Definition at line 225 of file tpm2_util.h.


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