cisst-saw
Loading...
Searching...
No Matches
SelectByIndex Class Reference

#include <vctFixedSizeVectorRecursiveEngines.h>

Public Types

typedef vctFixedSizeVectorRecursiveEngines< _size-1 >::SelectByIndex RecursiveStep

Static Public Member Functions

template<class _outputVectorType, class _inputVectorType, class _indexVectorType>
static void Unfold (_outputVectorType &output, const _inputVectorType &input, const _indexVectorType &index)

Detailed Description

A specialized engine to select elements from the input vector to the output vector.

Member Typedef Documentation

◆ RecursiveStep

typedef vctFixedSizeVectorRecursiveEngines<_size-1>::SelectByIndex SelectByIndex::RecursiveStep

Member Function Documentation

◆ Unfold()

template<class _outputVectorType, class _inputVectorType, class _indexVectorType>
void SelectByIndex::Unfold ( _outputVectorType & output,
const _inputVectorType & input,
const _indexVectorType & index )
inlinestatic

Unfold the recursion: call Unfold for the first (_size - 1) elements, then assign value to the _size element.

Parameters
outputThe output vector.
inputThe input vector from which elements are selected.
indexThe index vector.

The documentation for this class was generated from the following file: