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

#include <file.h>

Inheritance diagram for scn::basic_file_view< CharT >:
scn::detail::ranges::view_base

Public Types

using file_type = basic_file< CharT >
 
using iterator = typename file_type::iterator
 
using sentinel = typename file_type::sentinel
 

Public Member Functions

 basic_file_view ()=default
 
 basic_file_view (const file_type &f)
 
 basic_file_view (iterator i, sentinel)
 
iterator begin () const noexcept
 
sentinel end () const noexcept
 
bool sync () const
 
FILE * file () const noexcept
 
const file_typeget () const
 
 operator bool () const
 

Detailed Description

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

Definition at line 333 of file file.h.

Member Typedef Documentation

template<typename CharT>
using scn::basic_file_view< CharT >::file_type = basic_file<CharT>

Definition at line 404 of file file.h.

template<typename CharT>
using scn::basic_file_view< CharT >::iterator = typename file_type::iterator

Definition at line 405 of file file.h.

template<typename CharT>
using scn::basic_file_view< CharT >::sentinel = typename file_type::sentinel

Definition at line 406 of file file.h.

Constructor & Destructor Documentation

template<typename CharT>
scn::basic_file_view< CharT >::basic_file_view ( )
default
template<typename CharT>
scn::basic_file_view< CharT >::basic_file_view ( const file_type f)
inline

Definition at line 409 of file file.h.

template<typename CharT>
scn::basic_file_view< CharT >::basic_file_view ( iterator  i,
sentinel   
)
inline

Definition at line 410 of file file.h.

Member Function Documentation

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

Definition at line 415 of file file.h.

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

Definition at line 420 of file file.h.

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

Definition at line 432 of file file.h.

template<typename CharT>
const file_type& scn::basic_file_view< CharT >::get ( ) const
inline

Definition at line 438 of file file.h.

template<typename CharT>
scn::basic_file_view< CharT >::operator bool ( ) const
inlineexplicit

Definition at line 444 of file file.h.

template<typename CharT>
bool scn::basic_file_view< CharT >::sync ( ) const
inline

Definition at line 426 of file file.h.


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