basix_doc 0.1
binary_routine_rep< D, S1, S2 > Class Template Reference

#include <routine.hpp>

Inheritance diagram for binary_routine_rep< D, S1, S2 >:
routine_rep rep_struct

List of all members.

Public Member Functions

Public Attributes


Detailed Description

template<typename D, typename S1, typename S2>
class mmx::binary_routine_rep< D, S1, S2 >

Definition at line 223 of file routine.hpp.


Constructor & Destructor Documentation

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

Definition at line 227 of file routine.hpp.

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

Member Function Documentation

generic apply ( const generic x1,
const generic x2 
) const [inline, virtual]

Reimplemented from routine_rep.

Definition at line 229 of file routine.hpp.

                                                             {
    return make_abstract<D> (fun (make_concrete<S1> (x1),
                                  make_concrete<S2> (x2)));
  }
generic apply ( const vector< generic > &  v) const [inline, virtual]

Reimplemented from routine_rep.

Definition at line 233 of file routine.hpp.

References mmx::apply(), ASSERT, and mmx::N().

                                                 {
    ASSERT (N(v) == 2, "two arguments expected");
    return apply (v[0], v[1]);
  }
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> ());
}
generic apply ( const generic g1) const [virtual, inherited]
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]

Reimplemented from routine_rep.

Definition at line 237 of file routine.hpp.


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