template<class T>
void test(T t)
{
- deallog << "Type : " << boost::core::demangle(typeid(T).name()) << std::endl;
auto p = Convert<T>::to_pattern();
deallog << "Pattern : " << p->description() << std::endl;
auto s = Convert<T>::to_string(t);
-DEAL::Type : int
DEAL::Pattern : [Integer range -2147483648...2147483647 (inclusive)]
DEAL::To String: 1
DEAL::To value : 1
-DEAL::Type : unsigned int
DEAL::Pattern : [Integer]
DEAL::To String: 2
DEAL::To value : 2
-DEAL::Type : unsigned char
DEAL::Pattern : [Integer range 0...255 (inclusive)]
DEAL::To String: 3
DEAL::To value : 3
DEAL::Pattern : [Anything]
DEAL::To String: Ciao
DEAL::To value : Ciao
-DEAL::Type : double
DEAL::Pattern : [Double -MAX_DOUBLE...MAX_DOUBLE (inclusive)]
DEAL::To String: 4.000000
DEAL::To value : 4.000000
-DEAL::Type : bool
DEAL::Pattern : [Bool]
DEAL::To String: true
DEAL::To value : true
-DEAL::Type : float
DEAL::Pattern : [Double -3.40282e+38...3.40282e+38 (inclusive)]
DEAL::To String: 5.500000
DEAL::To value : 5.500000
--- /dev/null
+
+DEAL::Pattern : [Map of <[Integer range -2147483648...2147483647 (inclusive)]>:<[Double -MAX_DOUBLE...MAX_DOUBLE (inclusive)]> of length 0...4294967295 (inclusive)]
+DEAL::To String: 1:3.000000, 5:1.000000
+DEAL::To value : 1:3.000000, 5:1.000000
+DEAL::Pattern : [Map of <[Integer range -2147483648...2147483647 (inclusive)]>:<[Double -MAX_DOUBLE...MAX_DOUBLE (inclusive)]> of length 0...4294967295 (inclusive)]
+DEAL::To String: 1:3.000000, 5:1.000000
+DEAL::To value : 5:1.000000, 1:3.000000
+DEAL::Pattern : [Map of <[Integer range -2147483648...2147483647 (inclusive)]>:<[Double -MAX_DOUBLE...MAX_DOUBLE (inclusive)]> of length 0...4294967295 (inclusive)]
+DEAL::To String: 1:3.000000, 5:1.000000, 5:2.000000
+DEAL::To value : 1:3.000000, 5:1.000000, 5:2.000000
+DEAL::Pattern : [Map of <[Integer range -2147483648...2147483647 (inclusive)]>:<[Double -MAX_DOUBLE...MAX_DOUBLE (inclusive)]> of length 0...4294967295 (inclusive)]
+DEAL::To String: 1:3.000000, 5:2.000000, 5:1.000000
+DEAL::To value : 5:1.000000, 5:2.000000, 1:3.000000