dynamic_routine_rep Class Reference

Inheritance diagram for dynamic_routine_rep:
routine_rep rep_struct

List of all members.

Public Member Functions

Public Attributes


Detailed Description

Definition at line 65 of file overload.cpp.


Constructor & Destructor Documentation

dynamic_routine_rep ( const routine r2  )  [inline]

Definition at line 68 of file overload.cpp.

00068                                          :
00069     routine_rep (gen ("dynamic", r2->name)), r (r2) {}
  generic apply (const vector<generic>& v) const {


Member Function Documentation

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

Reimplemented from routine_rep.

Definition at line 70 of file overload.cpp.

References mmx::N().

00070                                                  {
00071     vector<dynamic> a= fill<generic> (N(v));
00072     for (nat i=0; i<N(v); i++)
00073       if (is<dynamic> (v[i])) a[i]= as<dynamic> (v[i]);
00074       else a[i]= dynamic (v[i]);
00075     return as<generic> (dynamic (r, a)); }

vector<nat> signature (  )  const [inline, virtual]

Reimplemented from routine_rep.

Definition at line 76 of file overload.cpp.

00076                                  {
00077     return vec<nat> (type_information<dynamic>::id,
00078                      type_information<tuple<dynamic> >::id); }


The documentation for this class was generated from the following file:

Generated on 6 Dec 2012 for mmxlight by  doxygen 1.6.1