Nui
Classes | Namespaces | Functions
val_conversion.hpp File Reference
#include <nui/concepts.hpp>
#include <nui/frontend/event_system/observed_value.hpp>
#include <boost/describe.hpp>
#include <boost/mp11/algorithm.hpp>
#include <nui/frontend/val.hpp>
#include <optional>
#include <vector>
#include <filesystem>
#include <utility>
#include <unordered_map>
#include <memory>
#include <map>
#include <variant>
Include dependency graph for val_conversion.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Nui::Detail::IsOptional< T >
 
struct  Nui::Detail::IsOptional< std::optional< T > >
 

Namespaces

 Nui
 
 Nui::Detail
 

Functions

template<typename T , class Bases = boost::describe::describe_bases<T, boost::describe::mod_any_access>, class Members = boost::describe::describe_members<T, boost::describe::mod_any_access>, class Enable = std::enable_if_t<!std::is_union<T>::value>>
void Nui::convertToVal (Nui::val &val, T const &obj)
 
template<typename T >
Nui::val Nui::convertToVal (std::optional< T > const &option)
 
template<typename T >
requires Fundamental< T > Nui::val Nui::convertToVal (T const &value)
 
Nui::val Nui::convertToVal (std::string const &value)
 
Nui::val Nui::convertToVal (std::filesystem::path const &value)
 
Nui::val Nui::convertToVal (Nui::val value)
 
Nui::val Nui::convertToVal (char const *value)
 
template<typename T >
Nui::val Nui::convertToVal (std::vector< T > const &vector)
 
template<typename T >
Nui::val Nui::convertToVal (Observed< T > const &observed)
 
template<typename T >
Nui::val Nui::convertToVal (std::unordered_map< std::string, T > const &map)
 
template<typename T >
Nui::val Nui::convertToVal (std::map< std::string, T > const &map)
 
template<typename T >
Nui::val Nui::convertToVal (std::unique_ptr< T > const &map)
 
template<typename T >
Nui::val Nui::convertToVal (std::shared_ptr< T > const &map)
 
Nui::val Nui::convertToVal (long long)
 
Nui::val Nui::convertToVal (std::monostate)
 
template<typename... Ts>
Nui::val Nui::convertToVal (std::variant< Ts... > const &variant)
 
template<typename T >
requires(!std::is_union_v< T >) void convertFromValObjImpl(Nui requires(!std::is_union_v< T >) void convertFromVal(Nui requires(!std::is_union_v< T > &&!boost::describe::has_describe_bases< T >::value) void convertFromVal(Nui requires Fundamental< T > void Nui::convertFromVal (Nui::val const &val, T &value)
 
void Nui::convertFromVal (Nui::val const &val, std::string &str)
 
template<typename T >
void Nui::convertFromVal (Nui::val const &val, std::optional< T > &option)
 
void Nui::convertFromVal (Nui::val const &val, std::filesystem::path &value)
 
void Nui::convertFromVal (Nui::val const &val, Nui::val &value)
 
template<typename T >
void Nui::convertFromVal (Nui::val const &val, std::vector< T > &vector)
 
template<typename T >
requires Fundamental< T > void Nui::convertFromVal (Nui::val const &val, std::vector< T > &vector)
 
template<typename T >
void Nui::convertFromVal (Nui::val const &val, Observed< T > &observed)
 
template<typename T >
void Nui::convertFromVal (Nui::val const &val, std::unordered_map< std::string, T > &map)
 
void Nui::convertFromVal (Nui::val const &, long long)
 
template<typename T , class Bases = boost::describe::describe_bases<T, boost::describe::mod_any_access>, class Members = boost::describe::describe_members<T, boost::describe::mod_any_access>, class Enable = std::enable_if_t<!std::is_union<T>::value>>
Nui::val Nui::convertToVal (T const &obj)
 
template<typename T , class Members = boost::describe::describe_members<T, boost::describe::mod_any_access>>
 Nui::requires (!std::is_union_v< T > &&!boost::describe::has_describe_bases< T >::value) void convertFromVal(Nui
 
template<typename T , class Bases = boost::describe::describe_bases<T, boost::describe::mod_any_access>, class Members = boost::describe::describe_members<T, boost::describe::mod_any_access>>
 Nui::requires (!std::is_union_v< T > &&boost::describe::has_describe_bases< T >::value) void convertFromVal(Nui
 
template<typename T , class Members = boost::describe::describe_members<T, boost::describe::mod_any_access>>
 Nui::requires (!std::is_union_v< T >) void convertFromValObjImpl(Nui
 
template<typename T >
requires Fundamental< T > void Nui::convertFromVal (Nui::val const &val, T &value)