IntHolder Class Reference

List of all members.

Public Member Functions

 IntHolder (int value)
 IntHolder ()

Public Attributes

int mValue

Detailed Description

A Holder class for an int that is used to store "out" and "inout" parameters in methods. If a method has an int as an "out" or "inout" parameter, the programmer must pass an instance of IntHolder as the corresponding parameter in the method invocation; for "inout" parameters, the programmer must also fill the "in" value.

If myIntHolder is an instance of IntHolder,
the value stored in its value field can be accessed with myIntHolder.mValue.

Constructor & Destructor Documentation

IntHolder (  ) 

The default constructor for IntHolder class

IntHolder ( int  value  ) 

This constructor will intialize IntHolder class with specified int value.

Parameters:
value int value

Member Data Documentation

int mValue

This member variable is where the int value is stored.