repr 0.1
Reconstructable string representations and more
Loading...
Searching...
No Matches
librepr::ReprVisitor Class Reference

#include <repr.h>

Collaboration diagram for librepr::ReprVisitor:
[legend]

Public Member Functions

 ReprVisitor (Options const &options_)
 
void nesting (bool increase)
 
void member_name (std::string_view name)
 
template<typename T >
void type ()
 
template<typename T >
void value (T const &obj)
 
template<typename T >
requires detail::has_repr_member<T>
void value (T const &obj)
 
void value (char const *obj)
 
template<typename T >
requires std::is_pointer_v<T>
void value (T const &obj)
 
template<typename T >
requires category::has_value<T>
void operator() (T info)
 
template<typename T >
requires category::has_value<T> && category::can_descend<T>
void operator() (T info)
 

Public Attributes

detail::StringBuffer result {}
 

Constructor & Destructor Documentation

◆ ReprVisitor()

librepr::ReprVisitor::ReprVisitor ( Options const options_)
inlineexplicit

Member Function Documentation

◆ member_name()

void librepr::ReprVisitor::member_name ( std::string_view  name)
inline

◆ nesting()

void librepr::ReprVisitor::nesting ( bool  increase)
inline

◆ operator()() [1/2]

template<typename T >
requires category::has_value<T>
void librepr::ReprVisitor::operator() ( info)
inline

◆ operator()() [2/2]

template<typename T >
requires category::has_value<T> && category::can_descend<T>
void librepr::ReprVisitor::operator() ( info)
inline

◆ type()

template<typename T >
void librepr::ReprVisitor::type ( )
inline

◆ value() [1/4]

void librepr::ReprVisitor::value ( char const obj)
inline

◆ value() [2/4]

template<typename T >
void librepr::ReprVisitor::value ( T const obj)
inline

◆ value() [3/4]

template<typename T >
requires detail::has_repr_member<T>
void librepr::ReprVisitor::value ( T const obj)
inline

◆ value() [4/4]

template<typename T >
requires std::is_pointer_v<T>
void librepr::ReprVisitor::value ( T const obj)
inline

Member Data Documentation

◆ result

detail::StringBuffer librepr::ReprVisitor::result {}

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