7.5 LegionMessage

LegionMessage()
Parameters: UVaL_Reference<LegionLOID> src
UVaL_Reference<LegionLOID> dest
int fnum
int parms_to_expect
UVaL_Reference<LegionComputationTag> tag
UVaL_Reference<LegionParameterList> plist
UVaL_Reference<LegionContinuationList> lcontList
UVaL_Reference<LegionEnvironment> lenv

The LegionMessage constructor creates a LegionMessage from the constituent parts passed as parameters.

Accessor functions

LegionMessage exports public member functions to get and set all of its constituent parts.

Overloaded operators

The equality operators (== and !=) are overloaded. Two LegionMessages are deemed equal only if each of the constituent parts are equal, as determined by the equality operators of their respective classes.

show()
Parameters: None

Prints the contents of the LegionMessage to the stderr stream.

int pack()
int unpack()

Parameters: LegionBuffer &lb

LegionMessage is packable.

7.5.1 LegionParameter

LegionParameter()
Parameters: int param_number
UVaL_Reference<LegionBuffer> lb

Constructs a new parameter whose value is assumed to be in lb, and whose number is set to param_number.

Other constructors

The default constructor creates a parameter with a negative parameter number and an empty LegionBuffer. A constructor that takes only a LegionBuffer as a parameter unpacks the contents of the LegionParameter from that buffer. The copy constructor is also overloaded.

Accessor functions

LegionParameter exports public member functions to get and set both the parameter number and the buffer containing the value of the parameter.

Overloaded operators

The == operator is overloaded to return 1 when the parameter numbers are the same, and 0 otherwise.

show()
Parameters: None

Prints the contents of the LegionParameter to the stderr stream.

int pack()
int unpack()

Parameters: LegionBuffer &lb

LegionParameter is packable.

7.5.2 LegionParameterList

Constructors

The default constructor creates an empty parameter list, and a constructor that takes a LegionBuffer as an argument unpacks the contents of the LegionParameterList from that buffer.

Set operations

LegionParameterList is derived from templated class UVaL_PackableSet_LinkedList, and therefore exports the full interface of UVaL_PackableSet.

UVaL_Reference<LegionParameter> find()
Parameters: int parameter_number

Augments the UVaL_Set operations to allow parameters to be looked up by number. Returns a reference to the parameter, if found, or a null reference if not.

show()
Parameters: None

Prints the contents of the LegionParameterList to the stderr stream.

int pack()
int unpack()

Parameters: LegionBuffer &lb

LegionParameterList is packable.

7.5.3 LegionComputationTag

LegionComputationTag simply maintains a glorified interface to a long integer. The Library also contains a class -- LegionComputationTagGenerator -- that creates random computation tags. See the source code or on-line documentation for a description of that class.

Constructors

The default constructor creates a LegionComputationTag with an uninitialized initial value. A constructor that takes a LegionBuffer as an argument unpacks the contents of the computation tag from that buffer.

Accessor functions

LegionComputationTag exports public member functions to allow the value of the tag to be set and retrieved as a long integer.

show()
Parameters: None

Prints the contents of the LegionComputationTag to the stderr stream.

int pack()
int unpack()

Parameters: LegionBuffer &lb

LegionComputationTag is packable.

7.5.4 Other fields

A LegionMessage also contains a LegionContinuationList, and a LegionEnvironment. A LegionContinuationList is simply a UVaL_PackableSet of LegionContinuations, and a LegionEnvironment is a UVaL_PackableSet of LegionEnvironmentItems. Please refer to the on-line documentation and source code for the interface to these classes.

Directory of Legion 1.8 Manuals
[Home] [General] [Documentation] [Software]
[Testbeds] [Et Cetera] [Map/Search]

Free JavaScripts provided by The JavaScript Source

legion@Virginia.edu
http://legion.virginia.edu/