15 #ifndef _DATAT_BITS_INCLUDE_TAG
16 #error Must only be included from sag_connectivity_cpp.hpp, use that instead
19 #include <sag_internal/convert_to.hpp>
69 inline typename get_details::GetVisitor<const T>::result_type
get(
const data_t &t) {
return apply_visitor(get_details::GetVisitor<const T>(), t); }
86 inline typename get_details::GetVisitor<T>::result_type
get(
data_t &t) {
return apply_visitor(get_details::GetVisitor<T>(), t); }
get_details::GetVisitor< custom_t< T > >::result_type get_custom(data_t &t)
Get the contents of the data_t as a typed custom_t.
Definition: functions.hpp:100
const char * type_name() const
Return the name of the contained type as a string (mainly useful for debugging)
Definition: data_t.hpp:131
T convert_to(const data_t &d)
Get a T from a data_t, parsing it from a string if necessary/possible.
Definition: functions.hpp:123
data_t & get< data_t & >(data_t &t)
Specialization to be a pass-through, for use in a templated context.
Definition: functions.hpp:91
V::result_type apply_visitor(const V &v) const
Apply a visitor (using the boost::static_visitor pattern) to this data_t.
A wrapper type for holding arbitrary objects inside a data_t.
Definition: custom_t.hpp:42
const data_t & get< const data_t & >(const data_t &t)
Specialization to be a pass-through, for use in a templated context.
Definition: functions.hpp:74
A variant type which can be one of the following:
Definition: data_t.hpp:42
V::result_type apply_visitor(const V &v, data_t &t)
Apply a visitor (using the boost::static_visitor pattern) to the given data_t.
Definition: functions.hpp:38