|
It is currently Thu Feb 09, 2012 12:30 am
|
View unanswered posts | View active topics
| Welcome |
|
Welcome to RHAPSODY4YOU
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today. |
 |
|
 |
|
| Author |
Message |
|
marqueemark
|
Post subject: Modelling C++ templates using Rhapsody Posted: Wed Aug 25, 2010 9:13 am |
Joined: Wed Aug 25, 2010 9:06 am Posts: 2
|
|
I cannot find out how to modle the following:
Non-Type template parameters (i.e. values) Template Specializations Partial Template Specializations
I Would like to model the following:
template<uint8_t V, typename T=void> struct MapperTemplate { static const uint8_t value = V; typedef T Type; }
template<> struct MapperTemplate< VAL1, Class1 > : MapperTemplate< VAL1, Class1 > {};
template<> struct MapperTemplate< VAL2, Class2 > : MapperTemplate< VAL2, Class2 > {};
Is this possible with Rhapsody?
Another question - how do I resize a package without Rahpsody resizing some of the classes inside it?
|
|
|
|
 |
|
marqueemark
|
Post subject: Re: Modelling C++ templates using Rhapsody Posted: Wed Aug 25, 2010 9:29 am |
Joined: Wed Aug 25, 2010 9:06 am Posts: 2
|
|
How do I add a typedef to a template?
|
|
|
|
 |
|
oakdemir
|
Post subject: Re: Modelling C++ templates using Rhapsody Posted: Fri Aug 27, 2010 8:40 am |
Joined: Tue Jun 24, 2008 6:18 pm Posts: 141 Location: Ankara
|
|
By "resizing the package", do you mean graphically editing so the package symbol gets smaller or bigger ? If this is what you mean, keep pressing ALT while doing resize operation. If this is not what you mean, please explain more.
I do not know how to model those types of template definitions.
|
|
|
|
 |
|
|
 |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|