API Reference > Other Classes > OdVector Template
OdVector Template
OdVector
Syntax
C++
template <class T, class A, class Mm> class OdVector;

OdVector.h

This template class implements dynamic Array objects within the ODA Platform.

Methods are provided to access Array elements via both array indices and array pointers (iterators). 

Some definitions are in order: 

  1. Logical Length or Size -- The number of entries in the array. Initially zero.
  2. Physical Length -- The maximum Logical Length of the array before it automatically grows.
  3. Grow Length -- The number of entries by which the Physical Length will grow as required.
 

Db 

 

 
Name 
Description 
 
This is ~OdVector, a member of class OdVector. 
 
This is the overview for the OdVector constructor overload. 
 
Name 
Description 
 
This is the overview for the append method overload. 
 
This is the overview for the asArrayPtr method overload. 
 
Assigns the specified range of elements to this Array object.
 
 
at 
This is the overview for the at method overload. 
 
This is the overview for the begin method overload. 
 
Returns the physical length of this Array object. 
 
Removes all elements from this Array object. 
 
Returns true if and only if this Array object contains ths specified value.
 
 
Returns true if and only if this Array is empty. 
 
end 
This is the overview for the end method overload. 
 
This is the overview for the erase method overload. 
 
find 
Returns true if and only if this Array object contains ths specified value.
 
 
This is the overview for the first method overload. 
 
Returns the element of this Array object at the specified position.  
 
Returns the data buffer of this Array object. 
 
Returns the grow length of this Array object. 
 
This is the overview for the insert method overload. 
 
Inserts the specified value into this Array object at the specified index.
 
 
Returns true if and only if this Array is empty. 
 
last 
This is the overview for the last method overload. 
 
Returns the number of elements in this Array object. 
 
Returns the logical length of this Array object. 
 
Returns the physical length of this Array object. 
 
Appends an element to the end of this Array object. 
 
Removes the element with the specified value from this Array object.
 
 
Removes the element at the specified index from this Array object.
 
 
Removes the first element in this Array object. 
 
Removes the last element in this Array object. 
 
Removes the specified elements from this Array object.
 
 
Sets the physical length of this Array object to the specified reserve length if the reserve length is greater than its physical length.
 
 
This is the overview for the resize method overload. 
 
Reverses the order of the elements in this Array object. 
 
Sets all the elements in this Array object to the specified value.  
 
Sets the element of this Array object at the specified index.  
 
Sets the grow length of this Array object.  
 
Sets the logical length of this Array object.  
 
Sets the physical length of this Array object.  
 
size 
Returns the logical length of this Array object. 
 
swap 
Swaps the specified elements in this Array object.  
Name 
Description 
This is nested type OdVector::const_iterator. 
This is nested type OdVector::const_reference. 
This is nested type OdVector::iterator. 
This is nested type OdVector::reference. 
This is nested type OdVector::size_type. 
compatibility with OdArray 
 
Name 
Description 
 
[] 
This is the overview for the [] operator overload. 
 
= 
This is =, a member of class OdVector. 
 
== 
This is ==, a member of class OdVector. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.