astrotypes  0.0
Public Member Functions | List of all members
pss::astrotypes::IndexMapper< DestinationContainer, SrcContainerType > Class Template Reference

Maps indexes from one container onto another. More...

#include <src/cpp/pss/astrotypes/multiarray/IndexMapper.h>

Public Member Functions

 IndexMapper (DestinationContainer &container, SrcContainerType const &view)
 
 ~IndexMapper ()
 
T & operator() (IteratorType) const
 

Detailed Description

template<typename DestinationContainer, typename SrcContainerType>
class pss::astrotypes::IndexMapper< DestinationContainer, SrcContainerType >

Maps indexes from one container onto another.

bool flags[100];
MultiContainer<2, int> c1(10, 10);
auto im = make_IndexMapper(flags, c1);
auto it = c1.begin();
im(it) = true;

Definition at line 49 of file IndexMapper.h.

Constructor & Destructor Documentation

template<typename DestinationContainer, typename SrcContainerType>
pss::astrotypes::multiarray::IndexMapper::IndexMapper ( DestinationContainer &  container,
SrcContainerType const &  view 
)

Definition at line 32 of file IndexMapper.cpp.

template<typename DestinationContainer, typename SrcContainerType>
pss::astrotypes::multiarray::IndexMapper::~IndexMapper ( )

Definition at line 36 of file IndexMapper.cpp.

Member Function Documentation

template<typename DestinationContainer, typename SrcContainerType>
T& pss::astrotypes::IndexMapper< DestinationContainer, SrcContainerType >::operator() ( IteratorType  ) const