An odb_Sequence object is a repository used to hold an ordered list of objects of a specific type. Data are added using the append method. The odb_Sequence object will automatically allocate memory to contain the appended object; the user may, however, control the efficiency of the memory allocation process through the constructor.
This method creates an empty odb_Sequence object of objects of type Type.
odb_SequenceType
odb_SequenceType();
Required arguments
Optional arguments
An Int specifying the amount of memory to be allocated when the object is created. The default value is 0.
Return value
An empty odb_Sequence object.
Exceptions
This method adds items to an odb_Sequence object.
void append(Type item);
Required argument
An item of type Type to be appended to the odb_Sequence object, where Type must be one of the following:
For example, an odb_SequenceInt object accepts an argument of type Int.
Float
Int
String
SectionLayer
LayerProperties
FieldOutput
Optional arguments
Return value
Exceptions
This method accesses an item in an odb_Sequence object.
Type get(int index); const Type& constGet(int index) const;
Required argument
An Int specifying the index of the item to be accessed from the odb_Sequence object.
Optional arguments
Return value
An item of the Type stored in the odb_Sequence object.
Exceptions
This method checks whether an object is stored in the sequence.
bool isMember(const Type& item) const;
Required argument
An object of type Type.
Optional arguments
Return value
A Boolean specifying whether the object is stored in the sequence.
Exceptions
This method accesses an item in an odb_Sequence object.
const Type& [int index] const;
Required argument
An Int specifying the index of the item to be accessed from the odb_Sequence object.
Optional arguments
Return value
An item of the Type stored in the odb_Sequence object.
Exceptions