All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
icarus::ns::util::details::BitObjHolder< Tag, T, Bits > Struct Template Reference

An object wrapping some data (copy), with a tag type. More...

#include <BinaryDumpUtils.h>

Public Member Functions

constexpr BitObjHolder (T data)
 

Public Attributes

T const data
 

Static Public Attributes

static constexpr unsigned int bits { Bits }
 

Detailed Description

template<typename Tag, typename T, unsigned int const Bits = (8*sizeof(T))>
struct icarus::ns::util::details::BitObjHolder< Tag, T, Bits >

An object wrapping some data (copy), with a tag type.

Template Parameters
Taga type to make a template class instance unique
Ttype of the data wrapped
Bitssize of data in T in bits

This template is used to implement other wrappers.

The role of Tag is just to allow distinguishing template instances with the same T (see for example BinObj and HexObj).

Definition at line 46 of file BinaryDumpUtils.h.

Constructor & Destructor Documentation

template<typename Tag, typename T, unsigned int const Bits = (8*sizeof(T))>
constexpr icarus::ns::util::details::BitObjHolder< Tag, T, Bits >::BitObjHolder ( data)
inline

Definition at line 49 of file BinaryDumpUtils.h.

Member Data Documentation

template<typename Tag, typename T, unsigned int const Bits = (8*sizeof(T))>
constexpr unsigned int icarus::ns::util::details::BitObjHolder< Tag, T, Bits >::bits { Bits }
static

Definition at line 48 of file BinaryDumpUtils.h.

template<typename Tag, typename T, unsigned int const Bits = (8*sizeof(T))>
T const icarus::ns::util::details::BitObjHolder< Tag, T, Bits >::data

Definition at line 47 of file BinaryDumpUtils.h.


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