CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
anonymous_namespace{debug.hh}::DebugContext< N > Struct Template Reference

Helper class wrapping a string for use as a template argument. More...

#include <debug.hh>

Public Member Functions

constexpr DebugContext (const char(&str)[N])
 Constructor, captures the string argument.
constexpr operator const char * () const
 Implicit conversion to a C string.

Public Attributes

char value [N]
 The captured string.

Detailed Description

template<size_t N>
struct anonymous_namespace{debug.hh}::DebugContext< N >

Helper class wrapping a string for use as a template argument.

This is used to describe a context for conditional debugging that will be prefixed to debug lines.

Definition at line 581 of file debug.hh.

Constructor & Destructor Documentation

◆ DebugContext()

template<size_t N>
anonymous_namespace{debug.hh}::DebugContext< N >::DebugContext ( const char(&) str[N])
inlineconstexpr

Constructor, captures the string argument.

Definition at line 586 of file debug.hh.

References value.

Member Function Documentation

◆ operator const char *()

template<size_t N>
anonymous_namespace{debug.hh}::DebugContext< N >::operator const char * ( ) const
inlineconstexpr

Implicit conversion to a C string.

Definition at line 594 of file debug.hh.

References value.

Member Data Documentation

◆ value

template<size_t N>
char anonymous_namespace{debug.hh}::DebugContext< N >::value[N]

The captured string.

Must be public for this class to meet the requirements of a structural type for use as a template argument.

Definition at line 603 of file debug.hh.

Referenced by DebugContext(), and operator const char *().


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