generator  1.2
Classes | Functions
Interval.h File Reference

The file declares the Interval class and its iostream operators. More...

#include <iostream>
#include <stdexcept>
+ Include dependency graph for Interval.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Interval< T >
 The template class for intervals. More...
 
class  Interval< T >
 The template class for intervals. More...
 

Functions

template<class T >
std::istream & operator>> (std::istream &in, Interval< T > &t)
 Overloading of the input operator for the Interval class. More...
 
template<class T >
std::ostream & operator<< (std::ostream &out, const Interval< T > &t)
 Overloading of the output operator for the Interval class. More...
 

Detailed Description

The file declares the Interval class and its iostream operators.

Author
Libor Bukata

Definition in file Interval.h.

Function Documentation

template<class T >
std::ostream& operator<< ( std::ostream &  out,
const Interval< T > &  t 
)

Overloading of the output operator for the Interval class.

Parameters
outOutput stream object to which the textual representation of the Interval class will be written.
tInstance of the Interval class to be written to the output stream.

Definition at line 89 of file Interval.h.

template<class T >
std::istream & operator>> ( std::istream &  in,
Interval< T > &  t 
)

Overloading of the input operator for the Interval class.

The input operator needs to have the access to the private members of the class.

Parameters
inInput stream object from which data will be extracted.
tInstance of the Interval class to be filled from the input stream.

Definition at line 76 of file Interval.h.