Jpp  17.2.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Attributes | Static Protected Member Functions | Static Private Member Functions | List of all members
JStreamAvailable< T, __str__ > Class Template Reference

Test availability of stream operators. More...

#include <JStreamAvailable.hh>

Inheritance diagram for JStreamAvailable< T, __str__ >:
JLANG::JTest

Static Public Attributes

static const bool has_istream = JTEST(test(is() >> getReference()))
 true if std::istream& operator>>(std::istream&, T&) is defined; else false More...
 
static const bool has_ostream = JTEST(test(os() << getReference()))
 true if std::ostream& operator<<(std::ostream&, const T&) is defined; else false More...
 

Static Protected Member Functions

static JFalse test (...)
 default false More...
 

Static Private Member Functions

static JTrue test (std::istream &)
 
static JTrue test (std::ostream &)
 
static TgetReference ()
 
static std::istream & is ()
 
static std::ostream & os ()
 

Detailed Description

template<class T, bool __str__ = JLANG::JPrintHelper::JMemberMethod<T>::__str__>
class JStreamAvailable< T, __str__ >

Test availability of stream operators.

Definition at line 46 of file JStreamAvailable.hh.

Member Function Documentation

template<class T , bool __str__ = JLANG::JPrintHelper::JMemberMethod<T>::__str__>
static JTrue JStreamAvailable< T, __str__ >::test ( std::istream &  )
staticprivate
template<class T , bool __str__ = JLANG::JPrintHelper::JMemberMethod<T>::__str__>
static JTrue JStreamAvailable< T, __str__ >::test ( std::ostream &  )
staticprivate
template<class T , bool __str__ = JLANG::JPrintHelper::JMemberMethod<T>::__str__>
static T& JStreamAvailable< T, __str__ >::getReference ( )
staticprivate
template<class T , bool __str__ = JLANG::JPrintHelper::JMemberMethod<T>::__str__>
static std::istream& JStreamAvailable< T, __str__ >::is ( )
staticprivate
template<class T , bool __str__ = JLANG::JPrintHelper::JMemberMethod<T>::__str__>
static std::ostream& JStreamAvailable< T, __str__ >::os ( )
staticprivate
static JFalse JLANG::JTest::test (   ...)
staticprotectedinherited

default false

Member Data Documentation

template<class T , bool __str__ = JLANG::JPrintHelper::JMemberMethod<T>::__str__>
const bool JStreamAvailable< T, __str__ >::has_istream = JTEST(test(is() >> getReference()))
static

true if std::istream& operator>>(std::istream&, T&) is defined; else false

Definition at line 60 of file JStreamAvailable.hh.

template<class T , bool __str__ = JLANG::JPrintHelper::JMemberMethod<T>::__str__>
const bool JStreamAvailable< T, __str__ >::has_ostream = JTEST(test(os() << getReference()))
static

true if std::ostream& operator<<(std::ostream&, const T&) is defined; else false

Definition at line 61 of file JStreamAvailable.hh.


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