All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
icarus::details::ChannelRange_t Struct Reference

A simple range of channels. More...

#include <GeometryObjectCollections.h>

Inheritance diagram for icarus::details::ChannelRange_t:

Public Member Functions

constexpr raw::ChannelID_t begin () const
 Returns the ID of the first channel in the range. More...
 
constexpr raw::ChannelID_t end () const
 Returns the ID of the channel after the last one in the range. More...
 
constexpr bool contains (raw::ChannelID_t channel) const
 Returns whether this range includes the specified channel. More...
 

Detailed Description

A simple range of channels.

Definition at line 47 of file GeometryObjectCollections.h.

Member Function Documentation

constexpr raw::ChannelID_t icarus::details::ChannelRange_t::begin ( ) const
inline

Returns the ID of the first channel in the range.

Definition at line 54 of file GeometryObjectCollections.h.

54 { return first; }
constexpr bool icarus::details::ChannelRange_t::contains ( raw::ChannelID_t  channel) const
inline

Returns whether this range includes the specified channel.

Definition at line 60 of file GeometryObjectCollections.h.

61  { return (channel >= begin()) && (channel < end()); }
constexpr raw::ChannelID_t end() const
Returns the ID of the channel after the last one in the range.
constexpr raw::ChannelID_t begin() const
Returns the ID of the first channel in the range.
constexpr raw::ChannelID_t icarus::details::ChannelRange_t::end ( ) const
inline

Returns the ID of the channel after the last one in the range.

Definition at line 57 of file GeometryObjectCollections.h.

57 { return second; }

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