[Enterprise Extensions only]

SequenceDef::bound

Overview The bound read and write operations allow the access and update of the bound attribute of a sequence definition (CORBA::SequenceDef) within the Interface Repository.
Original interface SequenceDef Interface
Exceptions CORBA::SystemException


Intended Usage

The bound attribute specifies the maximum number of elements in the sequence. A bound of zero indicates an unbounded sequence. Read and write bound operations are supported with parameters as defined below.

IDL Syntax

  attribute unsigned longbound;

Read operations

Input parameters
None.
Return values
CORBA::ULong

The returned value is the current value of the bound attribute of the sequence definition (CORBA::SequenceDef) object.

Write operations

Input parameters
CORBA::ULong bound

The bound parameter is the new value to which the bound attribute of the CORBA::SequenceDef object is set.

Return values
None.

Example

  // C++
     // assume that 'this_sequence' has already been initialized
     CORBA::SequenceDef * this_sequence;
 
     // change the bound attribute of the sequence definition
     CORBA::ULong new_bound = 409;
     this_sequence-> bound (new_bound);
 
     // obtain the bound of a sequence definition
     CORBA::ULong returned_bound;
     returned_bound = this_sequence-> bound ();