Interval Class Reference

#include <Interval.hpp>

List of all members.

Public Member Functions

const real_t & a () const
const real_t & b () const
 Interval (const Interval &i)
 Interval (const real_t &a, const real_t &b)
 ~Interval ()

Private Attributes

const real_t __a
const real_t __b


Detailed Description

Definition at line 33 of file Interval.hpp.


Constructor & Destructor Documentation

Interval::Interval ( const Interval i  ) 

Copy constructor

Parameters:
i given interval

Definition at line 23 of file Interval.cpp.

00024   : __a(i.__a),
00025     __b(i.__b)
00026 {
00027   ;
00028 }

Interval::Interval ( const real_t &  a,
const real_t &  b 
)

Constructs an interval

Parameters:
a $ a $
b $ b $

Definition at line 31 of file Interval.cpp.

00033   : __a(std::min(a,b)),
00034     __b(std::max(a,b))
00035 {
00036   ;
00037 }

Interval::~Interval (  ) 

Destructor

Definition at line 40 of file Interval.cpp.

00041 {
00042   ;
00043 }


Member Function Documentation

const real_t & Interval::a (  )  const

const real_t & Interval::b (  )  const


Member Data Documentation

const real_t Interval::__a [private]

$ a $

Definition at line 36 of file Interval.hpp.

Referenced by a().

const real_t Interval::__b [private]

$ b $

Definition at line 37 of file Interval.hpp.

Referenced by b().


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

Generated on Wed Nov 19 00:08:30 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6