OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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)
 
template<typename T >
OptionalStreamoperator<< (T const &rhs)
 Stream me anything! (I might do nothing with it, but...)
 

Detailed Description

Definition at line 41 of file OptionalStream.h.

Constructor & Destructor Documentation

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

clear the moved-from stream pointer

Definition at line 53 of file OptionalStream.h.

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

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

Definition at line 58 of file OptionalStream.h.

Member Function Documentation

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...

Definition at line 68 of file OptionalStream.h.


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