|
basix_doc 0.1
|
Definition at line 123 of file routine.cpp.
| composed_routine_rep | ( | const routine & | fun2, |
| const vector< routine > & | args2 | ||
| ) | [inline] |
Definition at line 128 of file routine.cpp.
References ASSERT, mmx::copy(), mmx::N(), and mmx::read().
:
routine_rep (gen (GEN_COMPOSE, fun2->name, as_generic (flatten (args2)))),
fun (fun2), args (args2)
{
sig= copy (fun->signature ());
if (N(sig) != 0) {
ASSERT (N(sig) == N(args)+1,
"numbers of arguments don't match (composed_routine_rep)");
for (nat i=0; i<N(args); i++) {
const vector<nat> sub_sig= args[i]->signature ();
ASSERT (N(sub_sig) == 2,
"routine with one argument expected (composed_routine_rep)");
ASSERT (read (sig, i+1) == sub_sig[0] || read (sig, i+1) == 0,
"type mismatch (composed_routine_rep)");
sig[i+1]= sub_sig[1];
}
}
}
Reimplemented from routine_rep.
Definition at line 146 of file routine.cpp.
References mmx::apply(), ASSERT, and mmx::N().
Reimplemented from routine_rep.
Definition at line 150 of file routine.cpp.
References mmx::apply(), ASSERT, and mmx::N().
| generic apply | ( | ) | const [virtual, inherited] |
Reimplemented in nullary_routine_rep< void >, change_signature_routine_rep, and integrate_routine_rep.
Definition at line 37 of file routine.cpp.
Referenced by routine_rep::apply().
{
return apply (vec<generic> ());
}
Reimplemented from routine_rep.
Definition at line 154 of file routine.cpp.
References mmx::apply(), mmx::as_string(), ASSERT, mmx::N(), and n.
| routine clone | ( | ) | const [virtual, inherited] |
Definition at line 91 of file routine.cpp.
References ERROR.
| generic function_body | ( | ) | const [virtual, inherited] |
Definition at line 81 of file routine.cpp.
{
return "native";
}
| generic function_type | ( | ) | const [virtual, inherited] |
Definition at line 86 of file routine.cpp.
References mmx::gen(), mmx::GEN_FUNCTION_TYPE, routine_rep::signature(), and mmx::type_name().
{
return gen (GEN_FUNCTION_TYPE, type_name (signature ()));
}
| bool is_overloaded | ( | ) | const [virtual, inherited] |
Definition at line 71 of file routine.cpp.
{
return false;
}
Definition at line 76 of file routine.cpp.
References ERROR.
{
ERROR ("not implemented (meanings)");
}
| void overload | ( | const routine & | fun | ) | const [virtual, inherited] |
Definition at line 66 of file routine.cpp.
References ERROR.
{
ERROR ("not implemented (overload)");
}
Definition at line 64 of file routine.hpp.
Referenced by routine_rep::apply().