#include <pair.hpp>
Definition at line 68 of file pair.hpp.
Reimplemented from void_binary_helper< pair< C1, C2 > >.
Definition at line 75 of file pair.hpp.
References ERROR.
00075 { 00076 if (i == 0) return as<generic> (v.x1); 00077 else if (i == 1) return as<generic> (v.x2); 00078 else ERROR ("index out of range"); }
Reimplemented from void_binary_helper< pair< C1, C2 > >.
Definition at line 81 of file pair.hpp.
References Pair, and mmx::vector_access().
00081 { 00082 return Pair (as<C1> (vector_access (v, 0)), 00083 as<C2> (vector_access (v, 1))); }
Reimplemented from void_binary_helper< pair< C1, C2 > >.
Definition at line 79 of file pair.hpp.
References mmx::gen_vec().
00079 { 00080 return gen_vec (as<generic> (v.x1), as<generic> (v.x2)); }
static generic full_type_name | ( | ) | [inline, static] |
Reimplemented from void_binary_helper< pair< C1, C2 > >.
Definition at line 71 of file pair.hpp.
References mmx::C2, Full_type_name, and mmx::gen().
00071 { 00072 return gen ("Pair", Full_type_name (C1), Full_type_name (C2)); }
static string short_type_name | ( | ) | [inline, static] |
Reimplemented from void_binary_helper< pair< C1, C2 > >.
Definition at line 69 of file pair.hpp.
References mmx::C2, and Short_type_name.
00069 { 00070 return "Pa" * Short_type_name (C1) * Short_type_name (C2); }
Reimplemented from void_binary_helper< pair< C1, C2 > >.
Reimplemented from void_binary_helper< pair< C1, C2 > >.