Main Page | Class Hierarchy | Compound List | File List | Compound Members

BxArrayFixed Class Reference

Class for managing fixed-length binary arrays. More...

#include <BxArrayFixed.h>

Inheritance diagram for BxArrayFixed:

BxArray BxDataObject BxObject List of all members.

Public Member Functions

 BxArrayFixed ()
 BxArrayFixed (int dim)
 BxArrayFixed (const BxArrayFixed &copy)

Detailed Description

A fixed-length array is an array where the total number of data elements is known and specified in the BinX descriptor. The following is an example of a BinX descriptor for a fixed-length array.
   <arrayFixed>
      <float-32/>
      <dim indexTo="3">
          <dim indexTo="4">
              <dim indexTo="5"/>
          </dim>
      </dim>
   </arrayFixed>
   
The array has three dimensions and holds 32 bit floating point numbers. The first dimension contains four data elements indexed as [0] to [3]. The second dimension contains five data elements indexed as [0] to [4]. The third dimension contains six data elements indexed as [0] to [5]. This small fixed-length array contains a total of (4 * 5 * 6) = 120 data elements. BxArrayFixed is derived from the class BxArray, and inherits most of its methods from that class.
Since: BinX version 1.0.


Constructor & Destructor Documentation

BxArrayFixed::BxArrayFixed  ) 
 

Default constructor.

Constructs an empty instance of the class BxArrayFixed. Default attribute values are assigned by the default base class constructor BxArray().

BxArrayFixed::BxArrayFixed int  dim  ) 
 

Construct a fixed-length array having a specified number of dimensions.

The dims_ attribute is created to store the specified number of dimensions, but the dimension descriptions stored in this attribute are set to NULL. The other attribute values are assigned default values by the base class constructor BxArray(int dim).

Parameters:
dim The number of dimensions for the newly constructed fixed-length array.

BxArrayFixed::BxArrayFixed const BxArrayFixed copy  ) 
 

Construct a fixed-length array having attribute values identical to a specified instance of BxArrayFixed.

Attributes of the new array instance are initialized by copying attribute values from the specified input array. Uninitialized attribute values in the input array result in NULL valued attributes in the new array instance. If the attributes of the input array have been initialized, then the array structure of the new instance will be the same as the array structure of the input instance.
Upon completion of the copy operation, the two array instances are independent. They do not share array element values and they must be individually destructed.

Parameters:
copy The BxArrayFixed instance whose attribute values are to be copied.


The documentation for this class was generated from the following files:
Generated on Fri May 6 13:36:18 2005 for edikt::BinX by doxygen 1.3.3