Generally represented using multiplicity.  In the case of a vector
multiplicity of 0..n is used and for a map the use of Keys/Qualifiers to a
relationship, indicating the key value for the map, with the appropriate
multiplicity, remembering that it is the multiplicity on the key value that
is of interest for a map.

If you wish to generate C++ then it depends on what C++ generator you are
using.

The C++ generator has a set of model properties to set, The one to use will
become obvious after first generation of code.

For ansi c++ then the role name field is used to specify the type (e.g.
rolename : map<string> (preferably a typedefed nested class)) is used.

----------------------------------------------------------------------------
----------------
Frank Adcock                    Tel: +61 7 3880 2586
Whitesmiths Australia Pty Ltd           Fax: +61 7 3880 2133
www.whitesmiths.com.au          Email: [EMAIL PROTECTED]
----------------------------------------------------------------------------
----------------


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, 5 June 2001 3:40 PM
To: shao yong
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: (ROSE) Generic Algotithms




Hi,

Can any one tell me how to represent a Generic Algorithm in Rose, say a map
or a vector in C++?

Thanks

Henry
______________________________________________
Dr Henry (Shaowei) Wang
Software Developer
Ubitrade (Asia Pacific) Pty Ltd
PO BOX R504, Royal Exchange, NSW 1225, Australia
Voice: +61 2 9004 0915          Fax: +61 2 9004 0901

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

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

Reply via email to