Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JPrintHelper::JTypewriter< T > Struct Template Reference

Type writer implementation of interface JTypeout based on member method const char* str() const; More...

Inheritance diagram for JLANG::JPrintHelper::JTypewriter< T >:
JLANG::JPrintHelper::JTypeout

Public Member Functions

virtual std::ostream & print (std::ostream &out, const void *p) const override
 Print object.
 

Detailed Description

template<class T>
struct JLANG::JPrintHelper::JTypewriter< T >

Type writer implementation of interface JTypeout based on member method const char* str() const;

Definition at line 51 of file JPrintHelper.hh.

Member Function Documentation

◆ print()

template<class T >
virtual std::ostream & JLANG::JPrintHelper::JTypewriter< T >::print ( std::ostream & out,
const void * p ) const
inlineoverridevirtual

Print object.

Parameters
outoutput stream
ppointer to object
Returns
output stream

Implements JLANG::JPrintHelper::JTypeout.

Definition at line 61 of file JPrintHelper.hh.

62 {
63 return out << ((const T*) p)->__str__();;
64 }
const void * p
pointer to object

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