Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Int2 Struct Reference

#include <Int2.h>

List of all members.

Public Methods

 Int2 ()
 Int2 (int x)
int compare (Int2 x) const
bool operator== (const Int2 &i) const
bool operator!= (const Int2 &i) const
Int2 operator- () const
Int2 operator+ (const Int2 &i) const
Int2& operator+= (const Int2 &i)
Int2 operator * (const Int2 &i) const
Int2& operator *= (const Int2 &i)
bool operator< (const Int2 &i) const
bool operator> (const Int2 &i) const
int value () const

Private Attributes

int v

Friends

ostream& operator<< (ostream &ostr, const Int2 &i)


Constructor & Destructor Documentation

Int2::Int2 ( ) [inline]
 

Definition at line 26 of file Int2.h.

Int2::Int2 ( int x ) [inline]
 

Definition at line 28 of file Int2.h.


Member Function Documentation

int Int2::compare ( Int2 x ) const [inline]
 

Definition at line 30 of file Int2.h.

bool Int2::operator== ( const Int2 & i ) const [inline]
 

Definition at line 42 of file Int2.h.

bool Int2::operator!= ( const Int2 & i ) const [inline]
 

Definition at line 44 of file Int2.h.

Int2 Int2::operator- ( ) const [inline]
 

Definition at line 46 of file Int2.h.

Int2 Int2::operator+ ( const Int2 & i ) const [inline]
 

Definition at line 48 of file Int2.h.

Int2 & Int2::operator+= ( const Int2 & i ) [inline]
 

Definition at line 50 of file Int2.h.

Int2 Int2::operator * ( const Int2 & i ) const [inline]
 

Definition at line 52 of file Int2.h.

Int2 & Int2::operator *= ( const Int2 & i ) [inline]
 

Definition at line 54 of file Int2.h.

bool Int2::operator< ( const Int2 & i ) const [inline]
 

Definition at line 56 of file Int2.h.

bool Int2::operator> ( const Int2 & i ) const [inline]
 

Definition at line 58 of file Int2.h.

int Int2::value ( ) const [inline]
 

Definition at line 60 of file Int2.h.


Friends And Related Function Documentation

ostream & operator<< ( ostream & ostr,
const Int2 & i ) [friend]
 

Definition at line 36 of file Int2.h.


Member Data Documentation

int Int2::v [private]
 

Definition at line 64 of file Int2.h.


The documentation for this struct was generated from the following file:
Generated at Tue Jun 19 09:49:56 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001