| 
    Simbody
    3.8
    
   | 
 
This is an iterator for iterating over the elements of a Vector_ or Vec object. More...
Public Types | |
| typedef ELT | value_type | 
| typedef ptrdiff_t | difference_type | 
| typedef ELT & | reference | 
| typedef ELT * | pointer | 
| typedef std::random_access_iterator_tag | iterator_category | 
Public Member Functions | |
| VectorIterator (VECTOR_CLASS &vector, ptrdiff_t index) | |
Create an iterator for the supplied vector and set it to refer to the element at index.  More... | |
| VectorIterator ()=delete | |
| No default constructor.  More... | |
| VectorIterator (const VectorIterator &source)=default | |
| Copy constructor creates a new iterator referring to the same element of the same vector as the source iterator.  More... | |
| VectorIterator & | operator= (const VectorIterator &source)=default | 
| Copy assignment makes this iterator refer to the same element of the same vector as the source iterator.  More... | |
| ELT & | operator* () const | 
| Dereference the iterator to access the element it points to.  More... | |
| VectorIterator & | operator++ () | 
| VectorIterator | operator++ (int) | 
| VectorIterator & | operator-- () | 
| VectorIterator | operator-- (int) | 
| VectorIterator & | operator+= (ptrdiff_t n) | 
| VectorIterator & | operator-= (ptrdiff_t n) | 
| bool | operator< (const VectorIterator &iter) const | 
| bool | operator> (const VectorIterator &iter) const | 
| bool | operator<= (const VectorIterator &iter) const | 
| bool | operator>= (const VectorIterator &iter) const | 
| ptrdiff_t | operator- (const VectorIterator &iter) const | 
| VectorIterator | operator- (ptrdiff_t n) const | 
| VectorIterator | operator+ (ptrdiff_t n) const | 
| bool | operator== (const VectorIterator &iter) const | 
| bool | operator!= (const VectorIterator &iter) const | 
This is an iterator for iterating over the elements of a Vector_ or Vec object.
| ELT | The type of an element stored in the vector whose type is given in VECTOR_CLASS.  | 
| VECTOR_CLASS | The type of vector container to iterate through. Its element type must be ELT. | 
This random access iterator can be used with any container that supports random-access indexing and a size() method. However, the intent is for use internally to allow writing a variety of vector math functions without having to specialize them for the various flavors of vector we support. 
| typedef ELT SimTK::VectorIterator< ELT, VECTOR_CLASS >::value_type | 
| typedef ptrdiff_t SimTK::VectorIterator< ELT, VECTOR_CLASS >::difference_type | 
| typedef ELT& SimTK::VectorIterator< ELT, VECTOR_CLASS >::reference | 
| typedef ELT* SimTK::VectorIterator< ELT, VECTOR_CLASS >::pointer | 
| typedef std::random_access_iterator_tag SimTK::VectorIterator< ELT, VECTOR_CLASS >::iterator_category | 
      
  | 
  inline | 
Create an iterator for the supplied vector and set it to refer to the element at index. 
      
  | 
  delete | 
No default constructor.
      
  | 
  default | 
Copy constructor creates a new iterator referring to the same element of the same vector as the source iterator.
      
  | 
  default | 
Copy assignment makes this iterator refer to the same element of the same vector as the source iterator.
      
  | 
  inline | 
Dereference the iterator to access the element it points to.
Note that although the iterator may be const, it can still point to a mutable element.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline |