cpp-reflect
C++ Reflection and Annotations Library
Loading...
Searching...
No Matches
formats::base< Format, Args > Struct Template Referenceexport

Public Types

using args_t = Args
 

Public Member Functions

 base (args_t args_)
 
virtual ~base ()
 
template<typename O, refl::Reflected R, std::size_t I>
void print_obj_field_impl (O &out, const R &obj, std::size_t indent)
 
template<typename O, refl::Reflected R, std::size_t... I>
void print_obj_impl (O &out, const R &obj, std::size_t indent, std::index_sequence< I... >)
 
template<typename O, refl::Reflected R, std::size_t I>
void print_obj_method (O &out, const R &obj)
 
template<typename O, refl::Reflected R>
void print_obj (O &out, const R &obj, std::size_t indent=0)
 
template<typename O, typename T>
void print_std_iterable (O &out, const T &it, std::size_t indent)
 
template<typename O, typename T>
void print_std_pair (O &out, const T &it, std::size_t indent)
 
template<typename O, typename T>
void print_any (O &out, const T &it, std::size_t indent)
 
template<refl::Reflected R>
void visit (const R &obj)
 

Public Attributes

args_t args
 

Protected Member Functions

template<typename T>
void visit_value (const T &obj)
 
template<refl::Reflected R>
void visit_obj (const R &obj)
 
template<refl::Reflected R, typename Field>
void visit_obj_field (const R &obj)
 
template<typename T>
void visit_iterable (const T &iterable)
 
template<typename T>
void visit_any (const T &it)
 

Detailed Description

template<typename Format, typename Args>
struct formats::base< Format, Args >

Definition at line 36 of file format_base.cppm.

Constructor & Destructor Documentation

◆ base()

template<typename Format, typename Args>
formats::base< Format, Args >::base ( args_t args_)
inlineexplicitexport

Definition at line 40 of file format_base.cppm.

◆ ~base()

template<typename Format, typename Args>
virtual formats::base< Format, Args >::~base ( )
inlineexportvirtual

Definition at line 43 of file format_base.cppm.

Member Function Documentation

◆ print_any()

template<typename Format, typename Args>
template<typename O, typename T>
void formats::base< Format, Args >::print_any ( O & out,
const T & it,
std::size_t indent )
inlineexport

Definition at line 297 of file format_base.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print_obj()

template<typename Format, typename Args>
template<typename O, refl::Reflected R>
void formats::base< Format, Args >::print_obj ( O & out,
const R & obj,
std::size_t indent = 0 )
inlineexport

Definition at line 155 of file format_base.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print_obj_field_impl()

template<typename Format, typename Args>
template<typename O, refl::Reflected R, std::size_t I>
void formats::base< Format, Args >::print_obj_field_impl ( O & out,
const R & obj,
std::size_t indent )
inlineexport

Definition at line 46 of file format_base.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print_obj_impl()

template<typename Format, typename Args>
template<typename O, refl::Reflected R, std::size_t... I>
void formats::base< Format, Args >::print_obj_impl ( O & out,
const R & obj,
std::size_t indent,
std::index_sequence< I... >  )
inlineexport

Definition at line 118 of file format_base.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print_obj_method()

template<typename Format, typename Args>
template<typename O, refl::Reflected R, std::size_t I>
void formats::base< Format, Args >::print_obj_method ( O & out,
const R & obj )
inlineexport

Definition at line 130 of file format_base.cppm.

+ Here is the caller graph for this function:

◆ print_std_iterable()

template<typename Format, typename Args>
template<typename O, typename T>
void formats::base< Format, Args >::print_std_iterable ( O & out,
const T & it,
std::size_t indent )
inlineexport

Definition at line 164 of file format_base.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print_std_pair()

template<typename Format, typename Args>
template<typename O, typename T>
void formats::base< Format, Args >::print_std_pair ( O & out,
const T & it,
std::size_t indent )
inlineexport

Definition at line 217 of file format_base.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ visit()

template<typename Format, typename Args>
template<refl::Reflected R>
void formats::base< Format, Args >::visit ( const R & obj)
inlineexport

Definition at line 355 of file format_base.cppm.

◆ visit_any()

template<typename Format, typename Args>
template<typename T>
void formats::base< Format, Args >::visit_any ( const T & it)
inlineexportprotected

Definition at line 457 of file format_base.cppm.

+ Here is the caller graph for this function:

◆ visit_iterable()

template<typename Format, typename Args>
template<typename T>
void formats::base< Format, Args >::visit_iterable ( const T & iterable)
inlineexportprotected

Definition at line 426 of file format_base.cppm.

◆ visit_obj()

template<typename Format, typename Args>
template<refl::Reflected R>
void formats::base< Format, Args >::visit_obj ( const R & obj)
inlineexportprotected

Definition at line 401 of file format_base.cppm.

◆ visit_obj_field()

template<typename Format, typename Args>
template<refl::Reflected R, typename Field>
void formats::base< Format, Args >::visit_obj_field ( const R & obj)
inlineexportprotected

Definition at line 412 of file format_base.cppm.

◆ visit_value()

template<typename Format, typename Args>
template<typename T>
void formats::base< Format, Args >::visit_value ( const T & obj)
inlineexportprotected

Definition at line 396 of file format_base.cppm.

+ Here is the call graph for this function:

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