libdl  0.0.1
Simple yet powerful deep learning
Loading...
Searching...
No Matches
dl::utils::basic_pipestream< CharT, Traits, Allocator > Class Template Reference
Inheritance diagram for dl::utils::basic_pipestream< CharT, Traits, Allocator >:
Collaboration diagram for dl::utils::basic_pipestream< CharT, Traits, Allocator >:

Public Member Functions

 basic_pipestream (const basic_pipestream< CharT, Traits, Allocator > &other)=delete
 
bool is_open () const noexcept
 
void close ()
 
- Public Member Functions inherited from std::basic_iostream
T seekp (T... args)
 
T setstate (T... args)
 
T getloc (T... args)
 
T precision (T... args)
 
T width (T... args)
 
T flags (T... args)
 
T widen (T... args)
 
T operator>> (T... args)
 
T fill (T... args)
 
T setf (T... args)
 
T seekg (T... args)
 
T good (T... args)
 
T copyfmt (T... args)
 
T tellp (T... args)
 
T sync_with_stdio (T... args)
 
T gcount (T... args)
 
T ~basic_iostream (T... args)
 
T unget (T... args)
 
T xalloc (T... args)
 
T read (T... args)
 
T getline (T... args)
 
T eof (T... args)
 
T exceptions (T... args)
 
T register_callback (T... args)
 
T operator<< (T... args)
 
T narrow (T... args)
 
T operator bool (T... args)
 
T write (T... args)
 
T sync (T... args)
 
T putback (T... args)
 
T basic_iostream (T... args)
 
T ignore (T... args)
 
T unsetf (T... args)
 
T readsome (T... args)
 
T rdstate (T... args)
 
T tie (T... args)
 
T move (T... args)
 
T get (T... args)
 
T operator! (T... args)
 
T pword (T... args)
 
T swap (T... args)
 
T flush (T... args)
 
T tellg (T... args)
 
T set_rdbuf (T... args)
 
T fail (T... args)
 
T peek (T... args)
 
T iword (T... args)
 
T rdbuf (T... args)
 
T imbue (T... args)
 
T bad (T... args)
 
T clear (T... args)
 
T put (T... args)
 
T init (T... args)
 

Detailed Description

template<class CharT, class Traits = std::char_traits<CharT>, typename Allocator = std::allocator<CharT>>
class dl::utils::basic_pipestream< CharT, Traits, Allocator >

Definition at line 82 of file pipe.hpp.

Constructor & Destructor Documentation

◆ basic_pipestream()

template<class CharT , class Traits = std::char_traits<CharT>, typename Allocator = std::allocator<CharT>>
dl::utils::basic_pipestream< CharT, Traits, Allocator >::basic_pipestream ( )
inlinenoexcept

Member Function Documentation

◆ close()

template<class CharT , class Traits = std::char_traits<CharT>, typename Allocator = std::allocator<CharT>>
void dl::utils::basic_pipestream< CharT, Traits, Allocator >::close ( )
inline

Definition at line 97 of file pipe.hpp.

97 {
98 if (buf.close() == nullptr)
99 this->setstate(std::ios_base::failbit);
100 }
T setstate(T... args)

◆ is_open()

template<class CharT , class Traits = std::char_traits<CharT>, typename Allocator = std::allocator<CharT>>
bool dl::utils::basic_pipestream< CharT, Traits, Allocator >::is_open ( ) const
inlinenoexcept

Definition at line 96 of file pipe.hpp.

96{ return buf.is_open(); }

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