AsmGrader 0.0.0
Loading...
Searching...
No Matches
stringize.hpp File Reference

See asmgrader::stringize. More...

#include <asmgrader/api/expression_inspection.hpp>
#include <asmgrader/common/error_types.hpp>
#include <asmgrader/common/expected.hpp>
#include <asmgrader/common/formatters/unknown.hpp>
#include <asmgrader/logging.hpp>
#include <boost/type_index.hpp>
#include <fmt/base.h>
#include <fmt/format.h>
#include <range/v3/range/concepts.hpp>
#include <range/v3/view/transform.hpp>
#include <concepts>
#include <span>
#include <string>
#include <string_view>
#include <utility>
Include dependency graph for stringize.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  asmgrader::stringize::StringizeResult
 Result type of a call to str or repr More...
 
struct  asmgrader::stringize::detail::ReprFn
 
struct  asmgrader::stringize::detail::StrFn
 str function dispatcher More...
 

Namespaces

namespace  asmgrader
 
namespace  asmgrader::stringize
 For everything related to test requirement stringification.
 
namespace  asmgrader::stringize::detail
 

Functions

std::string asmgrader::stringize::detail::str_default (const std::convertible_to< std::string_view > auto &val)
 
std::string asmgrader::stringize::detail::str_default (std::integral auto val)
 
std::string asmgrader::stringize::detail::str_default (char val)
 
std::string asmgrader::stringize::detail::str_default (std::floating_point auto val)
 
template<ranges::range Range>
requires (!std::convertible_to<Range, std::string_view>)
std::string asmgrader::stringize::detail::str_default (const Range &val)
 
template<typename T , typename E >
std::string asmgrader::stringize::detail::str_default (const Expected< T, E > &expected)
 
std::string asmgrader::stringize::detail::str_default (ErrorKind error_kind)
 

Variables

constexpr ReprFn asmgrader::stringize::detail::repr_fn_dispatcher {}
 
constexpr StrFn asmgrader::stringize::detail::str_fn_dispatcher {}
 
constexpr const auto & asmgrader::stringize::repr = detail::repr_fn_dispatcher
 repr customization point object The return value of this function is guaranteed to be parsable by highlight::highlight
 
constexpr const auto & asmgrader::stringize::str = detail::str_fn_dispatcher
 str customization point object The return value of this function is guaranteed to be parsable by highlight::highlight
 

Detailed Description