#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.
|
||||||||||
|
Definition at line 1276 of file OSGBaseFunctions.inl. 01276 : _cont(cont) 01277 {}
|
|
||||||||||||||||
|
Definition at line 1280 of file OSGBaseFunctions.inl. References osg::indirector< ContentT, IndexT >::_cont.
|
|
|||||
|
Definition at line 518 of file OSGBaseFunctions.h. Referenced by osg::indirector< ContentT, IndexT >::operator()(). |
1.4.3