#include <OSGBaseFunctions.h>
Public Member Functions | |
| indirector (ContentT cont) | |
| bool | operator() (IndexT a, IndexT b) |
Private Attributes | |
| ContentT | _cont |
Allows using an indirection field for STL algorithms, e.g. sort.
The idea is to sort an index field instead of the actual data, as the data might be large or immovable.
Example:
std::vector<float> contv; std::vector<int> indv; indirector<std::vector<float>, int> ind(contv);
std::sort(indv.begin(), indv.end(), ind);
Definition at line 508 of file OSGBaseFunctions.h.
| osg::indirector< ContentT, IndexT >::indirector | ( | ContentT | cont | ) | [inline] |
| bool osg::indirector< ContentT, IndexT >::operator() | ( | IndexT | a, | |
| IndexT | b | |||
| ) | [inline] |
Definition at line 1280 of file OSGBaseFunctions.inl.
References osg::indirector< ContentT, IndexT >::_cont.
ContentT osg::indirector< ContentT, IndexT >::_cont [private] |
Definition at line 518 of file OSGBaseFunctions.h.
Referenced by osg::indirector< ContentT, IndexT >::operator()().
1.5.5