repr 0.1
Reconstructable string representations and more
Loading...
Searching...
No Matches
librepr::PythonVisitor Struct Reference

#include <python.h>

Collaboration diagram for librepr::PythonVisitor:
[legend]

Public Member Functions

auto get_indent () const
 
void print_namespaces (std::string_view namespaces_)
 
template<typename T >
void print_type ()
 
template<typename T >
requires category::has_members<T>
auto operator() (T info)
 
template<typename T >
auto operator() (T info)
 

Static Public Member Functions

static auto fix_namespace (std::string_view namespace_)
 

Public Attributes

std::size_t indent_level = 0
 
std::size_t indent_amount = 4
 
std::stack< std::stringnamespaces {}
 
detail::StringBuffer result
 

Member Function Documentation

◆ fix_namespace()

static auto librepr::PythonVisitor::fix_namespace ( std::string_view  namespace_)
inlinestatic

◆ get_indent()

auto librepr::PythonVisitor::get_indent ( ) const
inline

◆ operator()() [1/2]

template<typename T >
requires category::has_members<T>
auto librepr::PythonVisitor::operator() ( info)
inline

◆ operator()() [2/2]

template<typename T >
auto librepr::PythonVisitor::operator() ( info)
inline

◆ print_namespaces()

void librepr::PythonVisitor::print_namespaces ( std::string_view  namespaces_)
inline

◆ print_type()

template<typename T >
void librepr::PythonVisitor::print_type ( )
inline

Member Data Documentation

◆ indent_amount

std::size_t librepr::PythonVisitor::indent_amount = 4

◆ indent_level

std::size_t librepr::PythonVisitor::indent_level = 0

◆ namespaces

std::stack<std::string> librepr::PythonVisitor::namespaces {}

◆ result

detail::StringBuffer librepr::PythonVisitor::result

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