Jpp  18.1.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
JLANG::JValue< T > Class Template Reference

Wrapper class around template object. More...

#include <JValue.hh>

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

Public Member Functions

 JValue (T &object)
 Constructor. More...
 
 JValue (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...
 
 operator const T & () const
 type conversion operator More...
 
virtual std::ostream & write (std::ostream &out) const override
 Stream output. More...
 

Protected Attributes

Tp
 
const Tp
 

Detailed Description

template<class T>
class JLANG::JValue< T >

Wrapper class around template object.

This class implements the JStreamInput and JStreamOutput interfaces.

Definition at line 151 of file JValue.hh.

Constructor & Destructor Documentation

template<class T >
JLANG::JValue< T >::JValue ( T object)
inline

Constructor.

Parameters
objectinput object

Definition at line 161 of file JValue.hh.

161  :
162  JValueInput <T>(&object),
163  JValueOutput<T>(&object)
164  {}
Forward declaration for friend declaration of JValueOutput inside JValueInput.
Definition: JValue.hh:27
Wrapper class around template object.
Definition: JValue.hh:36
template<class T >
JLANG::JValue< T >::JValue ( void *  ps)
inline

Constructor.

Parameters
pspointer to valid object

Definition at line 172 of file JValue.hh.

172  :
173  JValueInput <T>(ps) ,
174  JValueOutput<T>(ps)
175  {}
Forward declaration for friend declaration of JValueOutput inside JValueInput.
Definition: JValue.hh:27
Wrapper class around template object.
Definition: JValue.hh:36

Member Function Documentation

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

type conversion operator

Definition at line 65 of file JValue.hh.

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

type conversion operator

Definition at line 66 of file JValue.hh.

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

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  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
template<class T>
JLANG::JValueOutput< T >::operator const T & ( ) const
inlineinherited

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
inlineoverridevirtualinherited

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>
T* JLANG::JValueInput< T >::p
protectedinherited

Definition at line 82 of file JValue.hh.

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

Definition at line 142 of file JValue.hh.


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