Workspace 6.21.5
Public Member Functions | List of all members
DefaultAccessor< ContainerType, IsConst, SizeType, ValueType > Struct Template Reference

Default accessor functor for an index based iterator. Retrieves a reference R from a container C using size type S. More...

#include <Workspace/Application/LanguageUtils/indexbasediterator.h>

Inheritance diagram for DefaultAccessor< ContainerType, IsConst, SizeType, ValueType >:
[legend]

Public Member Functions

std::conditional< IsConst, constValueType &, ValueType & >::type operator() (typename std::conditional< IsConst, const ContainerType &, ContainerType & >::type container, SizeType index) const
 

Detailed Description

template<typename ContainerType, bool IsConst, typename SizeType, typename ValueType>
struct CSIRO::Application::IndexBasedIteratorPrivate::DefaultAccessor< ContainerType, IsConst, SizeType, ValueType >
Template Parameters
ContainerTypeThe container type to index into
IsConstWhether the accessor needs to access a const method or not.
SizeTypeThe size_type of the container in question
ValueTypeThe value type of contained within C.

Member Function Documentation

◆ operator()()

std::conditional< IsConst, constValueType &, ValueType & >::type operator() ( typename std::conditional< IsConst, const ContainerType &, ContainerType & >::type  container,
SizeType  index 
) const
inline