Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
JLANG::JValueOutput< T > Class Template Reference

Forward declaration for friend declaration of JValueOutput inside JValueInput. More...

#include <JValue.hh>

Inheritance diagram for JLANG::JValueOutput< T >:
JLANG::JStreamOutput JLANG::JValue< T >

Public Member Functions

 JValueOutput (const T &object)
 Constructor. More...
 
 JValueOutput (const JValueInput< T > &object)
 Constructor. More...
 
 JValueOutput (const void *ps)
 Constructor. More...
 
 operator const T & () const
 type conversion operator More...
 
virtual std::ostream & write (std::ostream &out) const override
 Stream output. More...
 

Protected Attributes

const Tp
 

Detailed Description

template<class T>
class JLANG::JValueOutput< T >

Forward declaration for friend declaration of JValueOutput inside JValueInput.

Wrapper class around template object.

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

Definition at line 27 of file JValue.hh.

Constructor & Destructor Documentation

template<class T>
JLANG::JValueOutput< T >::JValueOutput ( const T object)
inline

Constructor.

Parameters
objectinput object

Definition at line 101 of file JValue.hh.

101  :
102  p(&object)
103  {}
template<class T>
JLANG::JValueOutput< T >::JValueOutput ( const JValueInput< T > &  object)
inline

Constructor.

Parameters
objectinput object

Definition at line 111 of file JValue.hh.

111  :
112  p(object.p)
113  {}
template<class T>
JLANG::JValueOutput< T >::JValueOutput ( const void *  ps)
inline

Constructor.

Parameters
pspointer to valid object

Definition at line 121 of file JValue.hh.

121  :
122  p((const T*) ps)
123  {}
do set_variable OUTPUT_DIRECTORY $WORKDIR T

Member Function Documentation

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

type conversion operator

Definition at line 126 of file JValue.hh.

template<class T>
virtual std::ostream& JLANG::JValueOutput< T >::write ( std::ostream &  out) const
inlineoverridevirtual

Stream output.

Parameters
outoutput stream
Returns
output stream

Implements JLANG::JStreamOutput.

Definition at line 135 of file JValue.hh.

136  {
137  return out << *p;
138  }

Member Data Documentation

template<class T>
const T* JLANG::JValueOutput< T >::p
protected

Definition at line 142 of file JValue.hh.


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