#include <Indices.hpp>
Public Member Functions | |
Indices (const std::vector< int > &indices) | |
Constructor using index-vector. More... | |
Indices (size_t numberCorrespondences) | |
Constructor without index-vector (uses all correspondences). More... | |
size_t | size () const |
Get the number of correspondences. More... | |
int | operator[] (int i) const |
Get an index. More... | |
Public Attributes | |
bool | _useIndices |
const std::vector< int > * | _indices |
size_t | _numberCorrespondences |
Index class used internally so we can efficiently access either all or just a subset of the indices, using the same syntax
|
inline |
Constructor using index-vector.
[in] | indices | The index-vector. |
|
inline |
Constructor without index-vector (uses all correspondences).
[in] | numberCorrespondences | The number of correspondences. |
|
inline |
Get an index.
[in] | i | The index. |
|
inline |
Get the number of correspondences.
const std::vector<int>* opengv::Indices::_indices |
Pointer to a vector of indices (if used)
size_t opengv::Indices::_numberCorrespondences |
The number of correspondences
bool opengv::Indices::_useIndices |
Indexing into vector of indices?