Skip to Content.
Sympa Menu

charm - Re: [charm] [ppl] regarding oops concepts

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] [ppl] regarding oops concepts


Chronological Thread 
  • From: Phil Miller <mille121 AT illinois.edu>
  • To: Karthikeyan palani <karthikeyankkn AT gmail.com>
  • Cc: "charm AT cs.uiuc.edu" <charm AT cs.uiuc.edu>
  • Subject: Re: [charm] [ppl] regarding oops concepts
  • Date: Sun, 19 Feb 2012 14:41:31 -0600
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of unmobile AT gmail.com designates 10.236.175.164 as permitted sender) smtp.mail=unmobile AT gmail.com; dkim=pass header.i=unmobile AT gmail.com
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

Yes, chares can inherit from other chares and plain c++ objects. When you inherit from a chare, declare it that way in your ci file, and inherit the implementing class foo from cbase_foo. From some other c++ class inherit from the cbase class and from the desired class.

Polymorphism works exactly as expected. Any virtual entry method will call through the object pointer and execute the most derived class method implementation.

On Feb 19, 2012 7:05 AM, "Karthikeyan palani" <karthikeyankkn AT gmail.com> wrote:

Hi,
   Can we use oops concepts like inheritance,polymorphism etc in charm++??  

  If yes, do we have to create chare for each class  ?

Need your help, 
Thanks in advance.

--
karthikeyankkn


  • Re: [charm] [ppl] regarding oops concepts, Phil Miller, 02/19/2012

Archive powered by MHonArc 2.6.16.

Top of Page