SeqAn3 3.3.0-rc.1
The Modern C++ library for sequence analysis.
 
Loading...
Searching...
No Matches
seqan3::detail::owning_view< rng_t > Class Template Reference

A move-only view that takes unique ownership of a range. More...

#include <seqan3/core/detail/all_view.hpp>

+ Inheritance diagram for seqan3::detail::owning_view< rng_t >:

Public Member Functions

constexpr rng_t && base () &&noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
constexpr rng_t & base () &noexcept
 Returns the range.
 
constexpr rng_t const && base () const &&noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
constexpr rng_t const & base () const &noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
constexpr std::ranges::iterator_t< rng_t > begin ()
 Return the begin iterator of the range.
 
constexpr auto begin () const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
constexpr auto data ()
 Returns the raw data pointer of the range.
 
constexpr auto data () const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
constexpr bool empty ()
 Checks whether the range is empty.
 
constexpr bool empty () const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
constexpr std::ranges::sentinel_t< rng_t > end ()
 Return the end iterator of the range.
 
constexpr auto end () const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
owning_viewoperator= (owning_view &&)=default
 Defaulted.
 
owning_viewoperator= (owning_view const &)=delete
 Deleted.
 
 owning_view ()=default
 Defaulted.
 
 owning_view (owning_view &&)=default
 Defaulted.
 
 owning_view (owning_view const &)=delete
 Deleted.
 
constexpr owning_view (rng_t &&r)
 Move construct from a range.
 
constexpr auto size ()
 Returns the size of the range.
 
constexpr auto size () const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
 ~owning_view ()=default
 Defaulted.
 

Private Attributes

rng_t rng = rng_t()
 The stored range.
 

Detailed Description

template<std::ranges::range rng_t>
requires std::movable<rng_t> && (!seqan3::detail::is_type_specialisation_of_v<rng_t, std::initializer_list>)
class seqan3::detail::owning_view< rng_t >

A move-only view that takes unique ownership of a range.

See also
https://en.cppreference.com/w/cpp/ranges/owning_view

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