LocARNA-1.9.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Friends
LocARNA::FiniteInt Class Reference

#include <infty_int.hh>

Inheritance diagram for LocARNA::FiniteInt:
LocARNA::InftyInt LocARNA::TaintedInftyInt

List of all members.

Public Member Functions

 FiniteInt ()
 Construct empty.
 FiniteInt (base_type x)
 Construct from base type value.
const base_typefinite_value () const
 Access finite value.

Friends

FiniteInt operator+ (const FiniteInt &x, const FiniteInt &y)
 Add.
FiniteInt operator- (const FiniteInt &x, const FiniteInt &y)
 Subtract.

Detailed Description

Finite integer value compatible with potentially infinite integers.


Constructor & Destructor Documentation

Construct from base type value.

Parameters:
xvalue
Note:
used for implicit type cast

Member Function Documentation

const base_type& LocARNA::FiniteInt::finite_value ( ) const [inline]

Access finite value.

Returns:
value

Reimplemented from LocARNA::TaintedInftyInt.


Friends And Related Function Documentation

FiniteInt operator+ ( const FiniteInt x,
const FiniteInt y 
) [friend]

Add.

Parameters:
xoperand 1
yoperand 2
Returns:
x plus y
FiniteInt operator- ( const FiniteInt x,
const FiniteInt y 
) [friend]

Subtract.

Parameters:
xoperand 1
yoperand 2
Returns:
x minus y

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends