3 #ifndef VISR_CHANNEL_LIST_HPP_INCLUDED 4 #define VISR_CHANNEL_LIST_HPP_INCLUDED 9 #include <initializer_list> 50 ChannelList( std::initializer_list<IndexType>
const & initList );
58 ChannelList( std::initializer_list<ChannelRange>
const & initList );
69 template<
class Container>
71 :
ChannelList( std::begin(container), std::end(container) )
82 template<
class Iterator>
85 for( ; begin != end; ++begin )
87 appendIndex( *begin );
99 std::size_t size()
const;
106 IndexType operator[]( std::size_t idx )
const;
113 IndexType& operator[]( std::size_t idx );
170 VISR_CORE_LIBRARY_SYMBOL std::ostream &
operator<<( std::ostream & str,
ChannelList const channels );
224 bool isValid()
const;
284 #endif // #ifndef VISR_CHANNEL_LIST_HPP_INCLUDED const_iterator begin() const
Definition: channel_list.hpp:137
ChannelList(Iterator begin, Iterator end)
Definition: channel_list.hpp:83
ChannelList(Container const &container)
Definition: channel_list.hpp:70
ListType::const_iterator const_iterator
Definition: channel_list.hpp:130
std::size_t IndexType
Definition: channel_list.hpp:27
std::vector< IndexType > ListType
Definition: channel_list.hpp:129
ChannelList::IndexType IndexType
Definition: channel_list.hpp:180
Definition: channel_list.hpp:24
IndexType start() const
Definition: channel_list.hpp:234
Definition: options.cpp:10
IndexType end() const
Definition: channel_list.hpp:240
Definition: channel_list.hpp:177
std::ptrdiff_t StepType
Definition: channel_list.hpp:181
const_iterator end() const
Definition: channel_list.hpp:144
std::ostream & operator<<(std::ostream &str, ChannelList const channels)
Definition: channel_list.cpp:182
StepType step() const
Definition: channel_list.hpp:245