|
template<typename Type , typename... Args>
requires ( is_check_preconditions_callable<Type, Args...>) |
| constexpr void | check_preconditions (Args &&...args) |
| |
| MGIS_VISIBILITY_EXPORT mfront::MFrontDatabase & | getDatabase () noexcept |
| |
| MGIS_EXPORT InvalidResult | registerExceptionInErrorBacktrace (ErrorBacktrace &) noexcept |
| | a custom Lippincott-like function that extract error messages from an exception
|
| |
| MGIS_EXPORT InvalidResult | registerExceptionInErrorBacktraceWithoutSourceLocation (ErrorBacktrace &) noexcept |
| | a custom Lippincott-like function that extract error messages from an exception
|
| |
| constexpr bool | isInvalid (const bool) noexcept |
| |
| template<typename T > |
| constexpr bool | isInvalid (const std::optional< T > &) noexcept |
| |
| template<typename T > |
| constexpr bool | isInvalid (T *const) noexcept |
| |
| template<typename T > |
| constexpr bool | isInvalid (const std::unique_ptr< T > &) noexcept |
| |
| template<typename T > |
| constexpr bool | isInvalid (const std::shared_ptr< T > &) noexcept |
| |
| constexpr bool | areInvalid (const auto &...) noexcept |
| |
| constexpr bool | isValid (const auto &) noexcept |
| |
| constexpr bool | areValid (const auto &...) noexcept |
| |
|
constexpr bool | areInvalid (const auto &...o) noexcept |
| |
|
constexpr bool | areValid (const auto &...o) noexcept |
| |
| MGIS_EXPORT std::ostream & | getDefaultLogStream () noexcept |
| |
| MGIS_EXPORT std::pair< bool, std::string > | setDefaultLogStream (std::string_view) noexcept |
| | set the default log stream as a file.
|
| |
| MGIS_EXPORT void | setDefaultLogStream (std::ostream &) noexcept |
| | set the default log stream from an exisiting output stream
|
| |
| MGIS_EXPORT void | setDefaultLogStream (std::shared_ptr< std::ostream >) noexcept |
| | set the default log stream from an exisiting output stream
|
| |
|
MGIS_EXPORT void | resetDefaultLogStream () noexcept |
| | reset the default log stream
|
| |
| MGIS_EXPORT void | disableDefaultLogStream () noexcept |
| | disable the default log stream
|
| |
| MGIS_EXPORT void | setStreamColor (std::ostream &, const OutputStreamColors) noexcept |
| | change the color of the output for warnings for red
|
| |
| MGIS_EXPORT void | resetStreamColor (std::ostream &) noexcept |
| | reset the color of the output
|
| |
| template<typename... Args> |
| void | warning (std::ostream &, Args &&...) noexcept |
| | print a warning message
|
| |
| template<typename... Args> |
| void | debug (std::ostream &, Args &&...) noexcept |
| | print message for debugging
|
| |
|
MGIS_EXPORT void | setErrorColor (std::ostream &) noexcept |
| |
|
MGIS_EXPORT void | setWarningColor (std::ostream &) noexcept |
| |
|
template<typename... Args> |
| void | warning (std::ostream &os, Args &&...args) noexcept |
| |
|
template<typename... Args> |
| void | debug (std::ostream &os, Args &&...args) noexcept |
| |
| MGIS_EXPORT void | setExceptionHandler (ExceptionHandler) |
| | set an exception handler
|
| |
|
MGIS_EXPORT ExceptionHandler | getExceptionHandler () |
| | return a registred exception handler, nullptr if none were registred.
|
| |
| template<typename Exception = std::runtime_error> |
| MGIS_VISIBILITY_LOCAL void | raise () |
| | a small wrapper used to build the exception outside the throw statement. As most exception's classes constructors may throw, this avoids undefined behaviour as reported by the cert-err60-cpp warning of clang-tidy (thrown exception type is not nothrow copy constructible).
|
| |
| template<typename Exception = std::runtime_error, typename... Args> |
| MGIS_VISIBILITY_LOCAL void | raise (Args &&...) |
| | a small wrapper used to build the exception outside the throw statement. As most exception's classes constructors may throw, this avoids undefined behaviour as reported by the cert-err60-cpp warning of clang-tidy (thrown exception type is not nothrow copy constructible).
|
| |
| template<typename Exception = std::runtime_error> |
| MGIS_VISIBILITY_LOCAL void | raise_if (const bool) |
| | raise an exception if the first argument is true.
|
| |
| template<typename Exception = std::runtime_error, typename... Args> |
| MGIS_VISIBILITY_LOCAL void | raise_if (const bool, Args &&...) |
| | raise an exception if the first argument is true.
|
| |
| template<typename Exception > |
| void | raise () |
| | a small wrapper used to build the exception outside the throw statement. As most exception's classes constructors may throw, this avoids undefined behaviour as reported by the cert-err60-cpp warning of clang-tidy (thrown exception type is not nothrow copy constructible).
|
| |
|
template<typename Exception , typename... Args> |
| void | raise (Args &&... a) |
| |
| template<typename Exception > |
| void | raise_if (const bool c) |
| | raise an exception if the first argument is true.
|
| |
|
template<typename Exception , typename... Args> |
| void | raise_if (const bool c, Args &&... a) |
| |
template<typename Type , typename... ArgumentsTypes>
requires std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...> |
| std::optional< Type > | construct (Context &, ArgumentsTypes &&...) noexcept |
| | try to build an object of the given type.
|
| |
template<typename Type , typename... ArgumentsTypes>
requires std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...> |
| std::unique_ptr< Type > | make_unique (Context &, ArgumentsTypes &&...) noexcept |
| | try to build a unique pointer holding the given type.
|
| |
template<typename BaseType , typename Type , typename... ArgumentsTypes>
requires std::is_base_of_v<BaseType, Type> && std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...> |
| std::unique_ptr< BaseType > | make_unique_as (Context &, ArgumentsTypes &&...) noexcept |
| | try to build a unique pointer of a base type holding the given type.
|
| |
template<typename Type , typename... ArgumentsTypes>
requires std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...> |
| std::shared_ptr< Type > | make_shared (Context &, ArgumentsTypes &&...) noexcept |
| | try to build a shared pointer holding the given type.
|
| |
template<typename BaseType , typename Type , typename... ArgumentsTypes>
requires std::is_base_of_v<BaseType, Type> && std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...> |
| std::shared_ptr< BaseType > | make_shared_as (Context &, ArgumentsTypes &&...) noexcept |
| | try to build a shared pointer of a base type holding the given type.
|
| |
template<typename Type , typename... ArgumentsTypes>
requires std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...> |
| std::optional< Type > | construct (Context &ctx, ArgumentsTypes &&...args) noexcept |
| |
template<typename Type , typename... ArgumentsTypes>
requires std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...> |
| std::unique_ptr< Type > | make_unique (Context &ctx, ArgumentsTypes &&...args) noexcept |
| |
template<typename BaseType , typename Type , typename... ArgumentsTypes>
requires std::is_base_of_v<BaseType, Type> && std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...> |
| std::unique_ptr< BaseType > | make_unique_as (Context &ctx, ArgumentsTypes &&...args) noexcept |
| |
template<typename Type , typename... ArgumentsTypes>
requires std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...> |
| std::shared_ptr< Type > | make_shared (Context &ctx, ArgumentsTypes &&...args) noexcept |
| |
template<typename BaseType , typename Type , typename... ArgumentsTypes>
requires std::is_base_of_v<BaseType, Type> && std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...> |
| std::shared_ptr< BaseType > | make_shared_as (Context &ctx, ArgumentsTypes &&...args) noexcept |
| |
| template<typename F , typename... ArgumentsTypes> |
| invoke_result_t< F, ArgumentsTypes... > | invoke (Context &, F &&, ArgumentsTypes &&...) noexcept |
| | invoke the given callable object param[inout] ctx: execution context
|
| |
|
template<typename F , typename... ArgumentsTypes> |
| invoke_result_t< F, ArgumentsTypes... > | invokeCheckErrno (Context &, F &&, ArgumentsTypes &&...) noexcept |
| |
|
template<typename F , typename... ArgumentsTypes> |
| invoke_result_t< F, ArgumentsTypes... > | invokeCheckErrno (Context &ctx, F &&f, ArgumentsTypes &&...args) noexcept |
| |
|
template<typename F , typename... ArgumentsTypes> |
| invoke_result_t< F, ArgumentsTypes... > | invoke (Context &ctx, F &&f, ArgumentsTypes &&...args) noexcept |
| |
|
template<typename ValueType > |
| void | swap (OptionalReference< ValueType > &p1, OptionalReference< ValueType > &p2) noexcept |
| |
|
template<typename ValueType > |
| constexpr OptionalReference< ValueType > | make_optional_reference (ValueType &p) noexcept |
| |
|
template<typename ValueType > |
| constexpr OptionalReference< ValueType > | make_optional_reference (ValueType *p) noexcept |
| |
|
template<typename ValueType1 , typename ValueType2 > |
| constexpr bool | operator== (OptionalReference< ValueType1 > p1, OptionalReference< ValueType2 > p2) |
| |
|
template<typename ValueType1 , typename ValueType2 > |
| constexpr bool | operator!= (OptionalReference< ValueType1 > p1, OptionalReference< ValueType2 > p2) |
| |
|
template<typename ValueType > |
| constexpr bool | operator== (OptionalReference< ValueType > p, std::nullptr_t) noexcept |
| |
|
template<typename ValueType > |
| constexpr bool | operator== (std::nullptr_t, OptionalReference< ValueType > p) noexcept |
| |
|
template<typename ValueType > |
| constexpr bool | operator!= (OptionalReference< ValueType > p, std::nullptr_t) noexcept |
| |
|
template<typename ValueType > |
| constexpr bool | operator!= (std::nullptr_t, OptionalReference< ValueType > p) noexcept |
| |
|
template<typename ValueType > |
| constexpr bool | isInvalid (const OptionalReference< ValueType > &p) noexcept |
| |
| MGIS_EXPORT VerbosityLevel & | getDefaultVerbosityLevel () noexcept |
| |
| MGIS_EXPORT void | setDefaultVerbosityLevel (const VerbosityLevel) noexcept |
| | change the default level of verbosity
|
| |
| MGIS_EXPORT bool | setDefaultVerbosityLevel (Context &, std::string_view) noexcept |
| | change the default level of verbosity
|
| |
| MGIS_EXPORT std::optional< VerbosityLevel > | convertToVerbosityLevel (Context &, std::string_view) noexcept |
| |