microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
grid_view.hpp File Reference

Register grid and field descriptor formatting views. More...

#include "../microfmt.hpp"
#include <cstddef>
#include <cstdint>
#include <string_view>
#include <type_traits>
Include dependency graph for grid_view.hpp:

Go to the source code of this file.

Classes

struct  microfmt::reg_grid_desc< WordType, N >
 Static descriptor naming N register entries within a grid. More...
 
struct  microfmt::reg_grid_type_tag< T >
 Empty tag used to drive CTAD for reg_grid_desc. More...
 
struct  microfmt::reg_grid_view< WordType, N >
 Non-owning view pairing register values with their static descriptor. More...
 
struct  microfmt::formatter< reg_grid_view< WordType, N > >
 Formatter rendering reg_grid_view as an aligned register grid. More...
 

Namespaces

namespace  microfmt
 

Functions

template<typename WordType , typename... Names>
 microfmt::reg_grid_desc (reg_grid_type_tag< WordType >, microfmt::string_view, uint8_t, Names...) -> reg_grid_desc< WordType, sizeof...(Names)>
 Deduction guide deriving the entry count for reg_grid_desc.
 
template<typename StructOrArray , typename WordType , size_t N>
RELOCO_BEGIN_UNSAFE_CODE constexpr auto microfmt::make_reg_grid (const StructOrArray &data, const reg_grid_desc< WordType, N > &desc) noexcept
 Builds a reg_grid_view over an array/struct of register data.
 

Detailed Description

Register grid and field descriptor formatting views.