scnlib  0.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scn::detail::caching_cfile_iterator< CharT > Class Template Reference

#include <file.h>

Public Types

using char_type = CharT
 
using underlying_iterator = cfile_iterator< CharT >
 
using cache_type = cfile_iterator_cache< CharT >
 
using traits = std::char_traits< char_type >
 
using value_type = ranges::iter_value_t< underlying_iterator >
 
using reference = ranges::iter_reference_t< underlying_iterator >
 
using pointer = value_type *
 
using difference_type = ranges::iter_difference_t< underlying_iterator >
 
using iterator_category = std::bidirectional_iterator_tag
 

Public Member Functions

 caching_cfile_iterator ()=default
 
 caching_cfile_iterator (underlying_iterator it, cache_type &c)
 
underlying_iterator base ()
 
cache_typecache ()
 
expected< char_typeoperator* ()
 
caching_cfile_iteratoroperator++ ()
 
caching_cfile_iteratoroperator-- () noexcept
 
bool operator== (const caching_cfile_iterator &o) const
 
bool operator!= (const caching_cfile_iterator &o) const
 
bool operator== (const cfile_iterator< CharT > &o) const
 
bool operator!= (const cfile_iterator< CharT > &o) const
 

Detailed Description

template<typename CharT>
class scn::detail::caching_cfile_iterator< CharT >

Definition at line 215 of file file.h.

Member Typedef Documentation

template<typename CharT >
using scn::detail::caching_cfile_iterator< CharT >::cache_type = cfile_iterator_cache<CharT>

Definition at line 219 of file file.h.

template<typename CharT >
using scn::detail::caching_cfile_iterator< CharT >::char_type = CharT

Definition at line 217 of file file.h.

Definition at line 226 of file file.h.

template<typename CharT >
using scn::detail::caching_cfile_iterator< CharT >::iterator_category = std::bidirectional_iterator_tag

Definition at line 227 of file file.h.

template<typename CharT >
using scn::detail::caching_cfile_iterator< CharT >::pointer = value_type*

Definition at line 224 of file file.h.

Definition at line 223 of file file.h.

template<typename CharT >
using scn::detail::caching_cfile_iterator< CharT >::traits = std::char_traits<char_type>

Definition at line 220 of file file.h.

template<typename CharT >
using scn::detail::caching_cfile_iterator< CharT >::underlying_iterator = cfile_iterator<CharT>

Definition at line 218 of file file.h.

Definition at line 222 of file file.h.

Constructor & Destructor Documentation

template<typename CharT >
scn::detail::caching_cfile_iterator< CharT >::caching_cfile_iterator ( )
default
template<typename CharT >
scn::detail::caching_cfile_iterator< CharT >::caching_cfile_iterator ( underlying_iterator  it,
cache_type c 
)
inline

Definition at line 230 of file file.h.

Member Function Documentation

template<typename CharT >
underlying_iterator scn::detail::caching_cfile_iterator< CharT >::base ( )
inline

Definition at line 235 of file file.h.

template<typename CharT >
cache_type* scn::detail::caching_cfile_iterator< CharT >::cache ( )
inline

Definition at line 239 of file file.h.

template<typename CharT >
bool scn::detail::caching_cfile_iterator< CharT >::operator!= ( const caching_cfile_iterator< CharT > &  o) const
inline

Definition at line 286 of file file.h.

template<typename CharT >
bool scn::detail::caching_cfile_iterator< CharT >::operator!= ( const cfile_iterator< CharT > &  o) const
inline

Definition at line 298 of file file.h.

template<typename CharT >
expected<char_type> scn::detail::caching_cfile_iterator< CharT >::operator* ( )
inline

Definition at line 244 of file file.h.

template<typename CharT >
caching_cfile_iterator& scn::detail::caching_cfile_iterator< CharT >::operator++ ( )
inline

Definition at line 258 of file file.h.

template<typename CharT >
caching_cfile_iterator& scn::detail::caching_cfile_iterator< CharT >::operator-- ( )
inlinenoexcept

Definition at line 269 of file file.h.

template<typename CharT >
bool scn::detail::caching_cfile_iterator< CharT >::operator== ( const caching_cfile_iterator< CharT > &  o) const
inline

Definition at line 276 of file file.h.

template<typename CharT >
bool scn::detail::caching_cfile_iterator< CharT >::operator== ( const cfile_iterator< CharT > &  o) const
inline

Definition at line 291 of file file.h.


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