Jump to content

Dealing with template classes with runtime initializations.


ManikantaAllam

Recommended Posts

Hi seniors. 

My question is regarding a C++ concept. Not directly SystemC.  I am dealing with a set of SystemC Template classes (Nvidia's MatchLib Library). The classes here use template-based parameter initialization instead of a constructor.

I am writing a simulation framework using the elements from this library. I need to do a lot of looping through some parsing structures during instantiations and port mappings - runtime deduction of values. I have concerns about moving those parameters from the templates to the constructors - I am not thinking of this as a solution. 

So, is there any solution to these kinds of situations? 

Thank you so much in advance!

PS: I'm not thinking of printing the code either now!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...