basix_doc 0.1
quaternary_routine_rep< D, S1, S2, S3, S4 > Class Template Reference

#include <routine.hpp>

Inheritance diagram for quaternary_routine_rep< D, S1, S2, S3, S4 >:
routine_rep rep_struct

List of all members.

Public Member Functions

Public Attributes


Detailed Description

template<typename D, typename S1, typename S2, typename S3, typename S4>
class mmx::quaternary_routine_rep< D, S1, S2, S3, S4 >

Definition at line 321 of file routine.hpp.


Constructor & Destructor Documentation

quaternary_routine_rep ( const generic name,
function_type  fun2 
) [inline]

Definition at line 325 of file routine.hpp.

                                                                  :
    routine_rep (name), fun (fun2) {}

Member Function Documentation

generic apply ( const vector< generic > &  v) const [inline, virtual]

Reimplemented from routine_rep.

Definition at line 327 of file routine.hpp.

References ASSERT, and mmx::N().

                                                 {
    ASSERT (N(v) == 4, "four arguments expected");
    return make_abstract<D> (fun (make_concrete<S1> (v[0]),
                                  make_concrete<S2> (v[1]),
                                  make_concrete<S3> (v[2]),
                                  make_concrete<S4> (v[3])));
  }
generic apply ( const generic g1) const [virtual, inherited]
generic apply ( const generic g1,
const generic g2 
) const [virtual, inherited]
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> ());
}
routine clone ( ) const [virtual, inherited]

Definition at line 91 of file routine.cpp.

References ERROR.

                          {
  ERROR ("not implemented (clone)");
  return routine (this, true);
}
generic function_body ( ) const [virtual, inherited]

Definition at line 81 of file routine.cpp.

                                  {
  return "native";
}
generic function_type ( ) const [virtual, inherited]
bool is_overloaded ( ) const [virtual, inherited]

Definition at line 71 of file routine.cpp.

                                  {
  return false;
}
vector< routine > meanings ( ) const [virtual, inherited]

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)");
}
vector<nat> signature ( ) const [inline, virtual]

Member Data Documentation

generic name [inherited]

Definition at line 64 of file routine.hpp.

Referenced by routine_rep::apply().

MMX_ALLOCATORS int ref_count [inherited]

Definition at line 138 of file basix.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines