specialize_alias_routine_rep Class Reference

Inheritance diagram for specialize_alias_routine_rep:
routine_rep rep_struct

List of all members.

Public Member Functions

Public Attributes


Detailed Description

Definition at line 166 of file overload.cpp.


Constructor & Destructor Documentation

specialize_alias_routine_rep ( const routine fun2,
const vector< nat > &  sig2 
) [inline]

Definition at line 170 of file overload.cpp.

00170                                                                              :
00171     routine_rep (gen (GEN_SPECIALIZE_ALIAS, fun2->name)),
00172     fun (fun2), sig (sig2) {}
  generic apply (const vector<generic>& args) const {


Member Function Documentation

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

Reimplemented from routine_rep.

Definition at line 173 of file overload.cpp.

References mmx::N(), n, mmx::specialize_alias(), and mmx::type().

00173                                                     {
00174     nat i, n= N(args);
00175     vector<generic> v= fill<generic> (n);
00176     for (i=0; i<n; i++)
00177       if (type (args[i]) == type_id<alias<generic> > ())
00178         v[i]= specialize_alias (args[i]);
00179       else v[i]= args[i];
00180     return fun->apply (v); }

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

Reimplemented from routine_rep.

Definition at line 181 of file overload.cpp.

00181 { return sig; }


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

Generated on 6 Dec 2012 for mmxlight by  doxygen 1.6.1