OpenMPTL - Helper Library
C++ Microprocessor Template Library
Public Types | Public Member Functions | Friends | List of all members
poorman::ostream< Tp > Class Template Referenceabstract

#include <poorman_ostream.hpp>

Public Types

using char_type = Tp
 

Public Member Functions

virtual ostreamput (char_type c)=0
 
virtual ostreamputs (const char_type *s)=0
 
virtual ostreamwrite (const char_type *s, unsigned int count)=0
 
virtual ostreamflush ()=0
 
virtual ostreamendl ()=0
 
template<typename valT >
std::enable_if< std::is_integral< valT >::value, ostream & >::type friend operator<< (ostream &st, valT val)
 hexadecimal output of any integral type More...
 
ostreamoperator<< (ostream &(*func)(ostream &))
 

Friends

ostreamoperator<< (ostream &st, const char *s)
 

Member Typedef Documentation

◆ char_type

template<typename Tp>
using poorman::ostream< Tp >::char_type = Tp

Member Function Documentation

◆ endl()

template<typename Tp>
virtual ostream& poorman::ostream< Tp >::endl ( )
pure virtual

◆ flush()

template<typename Tp>
virtual ostream& poorman::ostream< Tp >::flush ( )
pure virtual

◆ operator<<() [1/2]

template<typename Tp>
template<typename valT >
std::enable_if<std::is_integral<valT>::value, ostream &>::type friend poorman::ostream< Tp >::operator<< ( ostream< Tp > &  st,
valT  val 
)
inline

◆ operator<<() [2/2]

template<typename Tp>
ostream& poorman::ostream< Tp >::operator<< ( ostream< Tp > &(*)(ostream< Tp > &)  func)
inline

◆ put()

template<typename Tp>
virtual ostream& poorman::ostream< Tp >::put ( char_type  c)
pure virtual

◆ puts()

template<typename Tp>
virtual ostream& poorman::ostream< Tp >::puts ( const char_type s)
pure virtual

◆ write()

template<typename Tp>
virtual ostream& poorman::ostream< Tp >::write ( const char_type s,
unsigned int  count 
)
pure virtual

Friends And Related Function Documentation

◆ operator<<

template<typename Tp>
ostream& operator<< ( ostream< Tp > &  st,
const char *  s 
)
friend

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