OSVR-Core
Public Member Functions | List of all members
osvr::vbtracker::detail::OptionalStream Class Reference

Public Member Functions

 OptionalStream ()
 Nothing to stream to.
 
 OptionalStream (std::ostream &os)
 Construct with a stream for use.
 
 OptionalStream (OptionalStream const &)=delete
 
OptionalStream operator= (OptionalStream const &)=delete
 
 OptionalStream (OptionalStream &&other)
 
 ~OptionalStream ()
 
template<typename T >
OptionalStreamoperator<< (T &&rhs)
 Stream me anything! (I might do nothing with it, but...) More...
 
template<typename T >
OptionalStreamoperator<< (T const &rhs)
 Stream me anything! (I might do nothing with it, but...)
 

Constructor & Destructor Documentation

§ OptionalStream()

osvr::vbtracker::detail::OptionalStream::OptionalStream ( OptionalStream &&  other)
inline

clear the moved-from stream pointer

§ ~OptionalStream()

osvr::vbtracker::detail::OptionalStream::~OptionalStream ( )
inline

If we had a stream, put an endl on it.

Member Function Documentation

§ operator<<()

template<typename T >
OptionalStream& osvr::vbtracker::detail::OptionalStream::operator<< ( T &&  rhs)
inline

Stream me anything! (I might do nothing with it, but...)

Todo:
figure out how to deal with std::endl and friends, who are overloaded functions...

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