RE: (ROSE) Modeling Template Functions in UML

2002-02-26 Thread Marcus Daiber


Actually that would only be a workaround, however I tried it and it does not
work either, Rose complains:"Language specific keyword present".
But thanks,
I will turn the question to the Rose Support Team, there is a reason, I pay
for a maintenance contract.

Thank you for your help,

Marcus

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of G H Smith
Sent: Tuesday, February 26, 2002 9:19 AM
To: Marcus Daiber
Cc: [EMAIL PROTECTED]
Subject: RE: (ROSE) Modeling Template Functions in UML




Marcus

Have you tried setting the return type of the method to "template< typename
a, typename b> void ". I think this may do the needful.
The generated (inline) code comes out as:

template< typename a, typename b> void yfunc (a r, b s)
{
}

Graham




"Marcus Daiber" <[EMAIL PROTECTED]>@rational.com on 25/02/2002 21:43:00

Please respond to "Marcus Daiber" <[EMAIL PROTECTED]>

Sent by:  [EMAIL PROTECTED]


To:   <[EMAIL PROTECTED]>
cc:   "Ronald W Townsen" <[EMAIL PROTECTED]>

Subject:  RE: (ROSE) Modeling Template Functions in UML



Okay,
that is the problem, I do NOT want to model a template class.

I have a template function within my class.
Actually the application is to model a singleton class,
but the class provides a parametrized function. The class cannot be
paramatrized,
however the function has to deal with different types. How do I model this
in UML or Rose???.

Thank you for any responses,

Marcus


Sorry, I'm only using 2000e.  In 2000e, the enty for "Formal Arguments" in
describing a template class is under the class's Detail tab.  If they moved
it in 2002, I don't know where they moved it too.



"Marcus Daiber"
<[EMAIL PROTECTED]>  To:
<[EMAIL PROTECTED]>
Sent by:       cc: "Ronald W Townsen"
<[EMAIL PROTECTED]>
owner-rose_forum@raSubject: RE: (ROSE)
Modeling Template Functions in UML
tional.com


02/25/02 11:56 AM
Please respond to
"Marcus Daiber"







Ronald,
I do not find a "Formal Argument List", I use Rose Enterprise 2002.05.01.
I actually searched in "Class Specification"->"Operations Tab" ->
"Operation
Specification"->"Detail" I have no such thing as "formal argument list".
The class is defined as Visual C++ class.

Thank you for your help,
Marcus


-----Original Message-
From: Ronald W Townsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 8:53 AM
To: Marcus Daiber
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: (ROSE) Modeling Template Functions in UML



Under the "Detail" Tab, you specify the 
information in the "formal argument" list.



"Marcus Daiber"
<[EMAIL PROTECTED]>  To:
<[EMAIL PROTECTED]>
Sent by:   cc:
owner-rose_forum@raSubject: (ROSE) Modeling
Template Functions in UML
tional.com


02/23/02 02:39 PM
Please respond to
"Marcus Daiber"







Dear All,
I am still hoping to find an answer to the question:

how do I model a template function in UML using Rational Rose.
An example would be the UML Representation of class x:

class x
{
public:
   template< typename a, typename b>
   void yfunc(a r, b s){ doSomething(); }
};

I am quite aware of the possibility of using templatized classes, however
class x shall not be modeled as a template.

thank you for any help,

Marcus


* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*To: [EMAIL PROTECTED]
*Subject: 
*Body: unsubscribe rose_forum
*






* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*To: [EMAIL

RE: (ROSE) Modeling Template Functions in UML

2002-02-26 Thread G H Smith



Marcus

Have you tried setting the return type of the method to "template< typename
a, typename b> void ". I think this may do the needful.
The generated (inline) code comes out as:

template< typename a, typename b> void yfunc (a r, b s)
{
}

Graham




"Marcus Daiber" <[EMAIL PROTECTED]>@rational.com on 25/02/2002 21:43:00

Please respond to "Marcus Daiber" <[EMAIL PROTECTED]>

Sent by:  [EMAIL PROTECTED]


To:   <[EMAIL PROTECTED]>
cc:   "Ronald W Townsen" <[EMAIL PROTECTED]>

Subject:  RE: (ROSE) Modeling Template Functions in UML



Okay,
that is the problem, I do NOT want to model a template class.

I have a template function within my class.
Actually the application is to model a singleton class,
but the class provides a parametrized function. The class cannot be
paramatrized,
however the function has to deal with different types. How do I model this
in UML or Rose???.

Thank you for any responses,

Marcus


Sorry, I'm only using 2000e.  In 2000e, the enty for "Formal Arguments" in
describing a template class is under the class's Detail tab.  If they moved
it in 2002, I don't know where they moved it too.



"Marcus Daiber"
<[EMAIL PROTECTED]>  To:
<[EMAIL PROTECTED]>
Sent by:           cc: "Ronald W Townsen"
<[EMAIL PROTECTED]>
owner-rose_forum@raSubject: RE: (ROSE)
Modeling Template Functions in UML
tional.com


02/25/02 11:56 AM
Please respond to
"Marcus Daiber"







Ronald,
I do not find a "Formal Argument List", I use Rose Enterprise 2002.05.01.
I actually searched in "Class Specification"->"Operations Tab" ->
"Operation
Specification"->"Detail" I have no such thing as "formal argument list".
The class is defined as Visual C++ class.

Thank you for your help,
Marcus


-Original Message-
From: Ronald W Townsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 8:53 AM
To: Marcus Daiber
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: (ROSE) Modeling Template Functions in UML



Under the "Detail" Tab, you specify the 
information in the "formal argument" list.



"Marcus Daiber"
<[EMAIL PROTECTED]>  To:
<[EMAIL PROTECTED]>
Sent by:   cc:
owner-rose_forum@raSubject: (ROSE) Modeling
Template Functions in UML
tional.com


02/23/02 02:39 PM
Please respond to
"Marcus Daiber"







Dear All,
I am still hoping to find an answer to the question:

how do I model a template function in UML using Rational Rose.
An example would be the UML Representation of class x:

class x
{
public:
   template< typename a, typename b>
   void yfunc(a r, b s){ doSomething(); }
};

I am quite aware of the possibility of using templatized classes, however
class x shall not be modeled as a template.

thank you for any help,

Marcus


* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*To: [EMAIL PROTECTED]
*Subject: 
*Body: unsubscribe rose_forum
*






* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*To: [EMAIL PROTECTED]
*Subject: 
*Body: unsubscribe rose_forum
*






* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Reques

RE: (ROSE) Modeling Template Functions in UML

2002-02-25 Thread Marcus Daiber


Okay,
that is the problem, I do NOT want to model a template class.

I have a template function within my class.
Actually the application is to model a singleton class,
but the class provides a parametrized function. The class cannot be
paramatrized,
however the function has to deal with different types. How do I model this
in UML or Rose???.

Thank you for any responses,

Marcus


Sorry, I'm only using 2000e.  In 2000e, the enty for "Formal Arguments" in
describing a template class is under the class's Detail tab.  If they moved
it in 2002, I don't know where they moved it too.



"Marcus Daiber"
<[EMAIL PROTECTED]>  To:
<[EMAIL PROTECTED]>
Sent by:   cc: "Ronald W Townsen"
<[EMAIL PROTECTED]>
        owner-rose_forum@ra    Subject: RE: (ROSE)
Modeling Template Functions in UML
tional.com


02/25/02 11:56 AM
Please respond to
"Marcus Daiber"







Ronald,
I do not find a "Formal Argument List", I use Rose Enterprise 2002.05.01.
I actually searched in "Class Specification"->"Operations Tab" ->
"Operation
Specification"->"Detail" I have no such thing as "formal argument list".
The class is defined as Visual C++ class.

Thank you for your help,
Marcus


-Original Message-
From: Ronald W Townsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 8:53 AM
To: Marcus Daiber
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: (ROSE) Modeling Template Functions in UML



Under the "Detail" Tab, you specify the 
information in the "formal argument" list.



"Marcus Daiber"
<[EMAIL PROTECTED]>  To:
<[EMAIL PROTECTED]>
Sent by:   cc:
owner-rose_forum@raSubject: (ROSE) Modeling
Template Functions in UML
tional.com


02/23/02 02:39 PM
Please respond to
"Marcus Daiber"







Dear All,
I am still hoping to find an answer to the question:

how do I model a template function in UML using Rational Rose.
An example would be the UML Representation of class x:

class x
{
public:
   template< typename a, typename b>
   void yfunc(a r, b s){ doSomething(); }
};

I am quite aware of the possibility of using templatized classes, however
class x shall not be modeled as a template.

thank you for any help,

Marcus


* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*To: [EMAIL PROTECTED]
*Subject: 
*Body: unsubscribe rose_forum
*






* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*To: [EMAIL PROTECTED]
*Subject: 
*Body: unsubscribe rose_forum
*






* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*To: [EMAIL PROTECTED]
*Subject: 
*Body: unsubscribe rose_forum
*




RE: (ROSE) Modeling Template Functions in UML

2002-02-25 Thread Marcus Daiber


Ronald,
I do not find a "Formal Argument List", I use Rose Enterprise 2002.05.01.
I actually searched in "Class Specification"->"Operations Tab" -> "Operation
Specification"->"Detail" I have no such thing as "formal argument list".
The class is defined as Visual C++ class.

Thank you for your help,
Marcus


-Original Message-
From: Ronald W Townsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 8:53 AM
To: Marcus Daiber
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: (ROSE) Modeling Template Functions in UML



Under the "Detail" Tab, you specify the 
information in the "formal argument" list.



"Marcus Daiber"
<[EMAIL PROTECTED]>  To:
<[EMAIL PROTECTED]>
Sent by:   cc:
owner-rose_forum@raSubject: (ROSE) Modeling
Template Functions in UML
tional.com


02/23/02 02:39 PM
Please respond to
"Marcus Daiber"







Dear All,
I am still hoping to find an answer to the question:

how do I model a template function in UML using Rational Rose.
An example would be the UML Representation of class x:

class x
{
public:
   template< typename a, typename b>
   void yfunc(a r, b s){ doSomething(); }
};

I am quite aware of the possibility of using templatized classes, however
class x shall not be modeled as a template.

thank you for any help,

Marcus


* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*To: [EMAIL PROTECTED]
*Subject: 
*Body: unsubscribe rose_forum
*






* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*To: [EMAIL PROTECTED]
*Subject: 
*Body: unsubscribe rose_forum
*




Re: (ROSE) Modeling Template Functions in UML

2002-02-25 Thread Ronald W Townsen



Under the "Detail" Tab, you specify the 
information in the "formal argument" list.


   
  
"Marcus Daiber"
  
<[EMAIL PROTECTED]>  To: <[EMAIL PROTECTED]>   
  
Sent by:   cc: 
  
owner-rose_forum@raSubject: (ROSE) Modeling Template 
Functions in UML
tional.com 
  
   
  
   
  
02/23/02 02:39 PM  
  
Please respond to  
  
"Marcus Daiber"
  
   
  
   
  





Dear All,
I am still hoping to find an answer to the question:

how do I model a template function in UML using Rational Rose.
An example would be the UML Representation of class x:

class x
{
public:
   template< typename a, typename b>
   void yfunc(a r, b s){ doSomething(); }
};

I am quite aware of the possibility of using templatized classes, however
class x shall not be modeled as a template.

thank you for any help,

Marcus


* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*To: [EMAIL PROTECTED]
*Subject: 
*Body: unsubscribe rose_forum
*






* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*To: [EMAIL PROTECTED]
*Subject: 
*Body: unsubscribe rose_forum
*