21 #ifndef mia_core_tools_hh 22 #define mia_core_tools_hh 26 #include <boost/call_traits.hpp> 57 template <
typename Data>
60 typedef std::shared_ptr<Data>
PData;
80 std::istringstream sx(s);
87 std::string remaining;
90 for(
auto i = remaining.begin(); i != remaining.end(); ++i)
91 retval &= isspace(remaining[0]);
106 template <
typename T>
121 template <
typename T>
122 const std::string
to_string(
typename boost::call_traits<T>::param_type v)
124 std::stringstream result;
135 template <
typename T>
138 std::stringstream result;
139 int inf = std::isinf(v);
const std::string to_string(typename boost::call_traits< T >::param_type v)
virtual void operator()(T *)
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
A helper class to make it possible to store a non-pointer object or a pointer that must not be freed ...
functor to wrap statically allocated data a shared pointer representation
std::shared_ptr< Data > PData
#define NS_MIA_END
conveniance define to end the mia namespace
bool from_string(const char *s, T &result)