ONE - On-device Neural Engine
Loading...
Searching...
No Matches
UI Class Reference

#include <Support.hpp>

Public Member Functions

std::istream * in () const
 
std::ostream * out () const
 
void in (std::unique_ptr< std::istream > &&in)
 
void out (std::unique_ptr< std::ostream > &&out)
 

Detailed Description

Definition at line 42 of file Support.hpp.

Member Function Documentation

◆ in() [1/2]

std::istream * UI::in ( ) const
inline

Definition at line 45 of file Support.hpp.

45{ return _in ? _in.get() : &std::cin; }

Referenced by in().

◆ in() [2/2]

void UI::in ( std::unique_ptr< std::istream > &&  in)
inline

Definition at line 49 of file Support.hpp.

49{ _in = std::move(in); }
std::istream * in() const
Definition Support.hpp:45

References in().

◆ out() [1/2]

std::ostream * UI::out ( ) const
inline

Definition at line 46 of file Support.hpp.

46{ return _out ? _out.get() : &std::cout; }

Referenced by out().

◆ out() [2/2]

void UI::out ( std::unique_ptr< std::ostream > &&  out)
inline

Definition at line 50 of file Support.hpp.

50{ _out = std::move(out); }
std::ostream * out() const
Definition Support.hpp:46

References out().


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