Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Out arguments
Topic Summary:
Created On: 17-Aug-2005 09:51
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 17-Aug-2005 09:51
User is offline View Users Profile Print this message


Jesper Gissel

Posts: 88
Joined: 20-Jul-2005

When choosing "out" as the direction for an argument, Rhapsody generates something similar to [FONT=Courier New]myFunc(int *& status)[/FONT].
Can anyone tell me what it meens and how I use it!?

Thanks.

-------------------------
Jesper Gissel
Johnson Controls Denmark, Marine Controls
Report this to a Moderator Report this to a Moderator
 17-Aug-2005 10:40
User is offline View Users Profile Print this message


Amos Ortal

Posts: 120
Joined: 22-Jul-2004

The <type>*& means that the caller should pass un-initialized pointer that should be initialized in the function.
For example:

void f(int*& i)
{
i = new int(5);
}

Note that you have full control over the mapping of out arguments to code using the CPP_CG:Typeut and CPP_CG:Classut properties. The properties should be set on the type/class of the argument or on the argument itself
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.