generator  1.2
Public Member Functions | Private Attributes | Friends | List of all members
Interval< T > Class Template Reference

The template class for intervals. More...

#include <Interval.h>

+ Collaboration diagram for Interval< T >:

Public Member Functions

 Interval ()
 Default constructor creates an empty interval.
 
 Interval (T f, T t)
 It constructs the interval [f,t] from two endpoint values. More...
 
from () const
 
to () const
 

Private Attributes

mFrom
 The left endpoint of the interval.
 
mTo
 The right endpoint of the interval.
 

Friends

std::istream & operator>> (std::istream &, Interval< T > &)
 The input operator needs to have the access to the private members of the class. More...
 

Detailed Description

template<class T>
class Interval< T >

The template class for intervals.

Template Parameters
TNumeric type.

Definition at line 31 of file Interval.h.

Constructor & Destructor Documentation

template<class T>
Interval< T >::Interval ( f,
t 
)
inline

It constructs the interval [f,t] from two endpoint values.

Parameters
fThe left endpoint.
tThe right endpoint.

Definition at line 51 of file Interval.h.

Friends And Related Function Documentation

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

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.


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