Menu

Nested AutoInterface?

thrope
2012-11-12
2013-05-15
  • thrope

    thrope - 2012-11-12

    Would it be possible to have AutoInterface recurse into included template modules and create a common interface with all the different functions with the same 'as'.

    I have some code which I would like to repeat for many different numerical data types (and eventually array ranks but I'm starting with the type thing). There are several functions for each set so I am putting them in a templated module. I would then like in my main module to instantiate all the different templated modules and have the the interfaces in a single block. Is there any way to do this?

     
  • thrope

    thrope - 2012-11-12

    Never mind I think I figured out something closer to what I want using just a single module and having templated functions (rather then modules). Then I can do one module procedure interface mysefl with the different kinds to instantiate the templated functions/subroutines, and the AutoInterface will fill in all the others… Great!

     

Log in to post a comment.

MongoDB Logo MongoDB