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

#include <file.h>

Public Types

using iterator = detail::caching_cfile_iterator< CharT >
 
using underlying_iterator = detail::cfile_iterator< CharT >
 
using sentinel = underlying_iterator
 
using cache_type = detail::cfile_iterator_cache< CharT >
 

Public Member Functions

 basic_file (FILE *f)
 
 basic_file (const basic_file &)=delete
 
basic_fileoperator= (const basic_file &)=delete
 
 basic_file (basic_file &&)=default
 
basic_fileoperator= (basic_file &&)=default
 
 ~basic_file ()
 
iterator begin () const noexcept
 
sentinel end () const noexcept
 
FILE * file () const noexcept
 
cache_typecache () const noexcept
 
bool sync () const
 
basic_file_view< CharT > make_view () const
 
detail::range_wrapper
< basic_file_view< CharT > > 
wrap () const
 

Detailed Description

template<typename CharT>
class scn::basic_file< CharT >

Definition at line 141 of file file.h.

Member Typedef Documentation

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

Definition at line 341 of file file.h.

template<typename CharT>
using scn::basic_file< CharT >::iterator = detail::caching_cfile_iterator<CharT>

Definition at line 338 of file file.h.

template<typename CharT>
using scn::basic_file< CharT >::sentinel = underlying_iterator

Definition at line 340 of file file.h.

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

Definition at line 339 of file file.h.

Constructor & Destructor Documentation

template<typename CharT>
scn::basic_file< CharT >::basic_file ( FILE *  f)
inline

Definition at line 343 of file file.h.

template<typename CharT>
scn::basic_file< CharT >::basic_file ( const basic_file< CharT > &  )
delete
template<typename CharT>
scn::basic_file< CharT >::basic_file ( basic_file< CharT > &&  )
default
template<typename CharT>
scn::basic_file< CharT >::~basic_file ( )
inline

Definition at line 351 of file file.h.

Member Function Documentation

template<typename CharT>
iterator scn::basic_file< CharT >::begin ( ) const
inlinenoexcept

Definition at line 358 of file file.h.

template<typename CharT>
cache_type& scn::basic_file< CharT >::cache ( ) const
inlinenoexcept

Definition at line 374 of file file.h.

template<typename CharT>
sentinel scn::basic_file< CharT >::end ( ) const
inlinenoexcept

Definition at line 364 of file file.h.

template<typename CharT>
FILE* scn::basic_file< CharT >::file ( ) const
inlinenoexcept

Definition at line 369 of file file.h.

template<typename CharT >
basic_file_view< CharT > scn::basic_file< CharT >::make_view ( ) const

Definition at line 463 of file file.h.

template<typename CharT>
basic_file& scn::basic_file< CharT >::operator= ( const basic_file< CharT > &  )
delete
template<typename CharT>
basic_file& scn::basic_file< CharT >::operator= ( basic_file< CharT > &&  )
default
template<typename CharT>
bool scn::basic_file< CharT >::sync ( ) const
template<typename CharT>
detail::range_wrapper<basic_file_view<CharT> > scn::basic_file< CharT >::wrap ( ) const
inline

Definition at line 382 of file file.h.


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