Jpp  19.1.0
the software that should make you happy
Public Member Functions | Protected Attributes | Friends | List of all members
JLANG::JValueInput< T > Class Template Reference

Wrapper class around template object. More...

#include <JValue.hh>

Inheritance diagram for JLANG::JValueInput< T >:
JLANG::JStreamInput JLANG::JValue< T >

Public Member Functions

 JValueInput (T &object)
 Constructor. More...
 
 JValueInput (void *ps)
 Constructor. More...
 
 operator const T & () const
 type conversion operator More...
 
 operator T& ()
 type conversion operator More...
 
virtual std::istream & read (std::istream &in) override
 Stream input. More...
 

Protected Attributes

T * p
 

Friends

class JValueOutput< T >
 

Detailed Description

template<class T>
class JLANG::JValueInput< T >

Wrapper class around template object.

This class implements the JStreamInput interface. Note that this class can be used in conjuction with the JEquationFacet.

Definition at line 36 of file JValue.hh.

Constructor & Destructor Documentation

◆ JValueInput() [1/2]

template<class T >
JLANG::JValueInput< T >::JValueInput ( T &  object)
inline

Constructor.

Parameters
objectinput object

Definition at line 50 of file JValue.hh.

50  :
51  p(&object)
52  {}

◆ JValueInput() [2/2]

template<class T >
JLANG::JValueInput< T >::JValueInput ( void *  ps)
inline

Constructor.

Parameters
pspointer to valid object

Definition at line 60 of file JValue.hh.

60  :
61  p((T*) ps)
62  {}

Member Function Documentation

◆ operator const T &()

template<class T >
JLANG::JValueInput< T >::operator const T & ( ) const
inline

type conversion operator

Definition at line 65 of file JValue.hh.

◆ operator T&()

template<class T >
JLANG::JValueInput< T >::operator T& ( )
inline

type conversion operator

Definition at line 66 of file JValue.hh.

◆ read()

template<class T >
virtual std::istream& JLANG::JValueInput< T >::read ( std::istream &  in)
inlineoverridevirtual

Stream input.

Parameters
ininput stream
Returns
input stream

Implements JLANG::JStreamInput.

Definition at line 75 of file JValue.hh.

76  {
77  return in >> *p;
78  }

Friends And Related Function Documentation

◆ JValueOutput< T >

template<class T >
friend class JValueOutput< T >
friend

Definition at line 233 of file JValue.hh.

Member Data Documentation

◆ p

template<class T >
T* JLANG::JValueInput< T >::p
protected

Definition at line 82 of file JValue.hh.


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