basix_doc 0.1
unary_routine_rep< D, S1 > Class Template Reference

#include <routine.hpp>

Inheritance diagram for unary_routine_rep< D, S1 >:
routine_rep rep_struct

List of all members.

Public Member Functions

Public Attributes


Detailed Description

template<typename D, typename S1>
class mmx::unary_routine_rep< D, S1 >

Definition at line 179 of file routine.hpp.


Constructor & Destructor Documentation

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

Definition at line 183 of file routine.hpp.

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

Member Function Documentation

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

Reimplemented from routine_rep.

Definition at line 185 of file routine.hpp.

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

Reimplemented from routine_rep.

Definition at line 188 of file routine.hpp.

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

                                                 {
    ASSERT (N(v) == 1, "one argument expected");
    return apply (v[0]);
  }
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 generic g2 
) 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 192 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