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

Int3Tuple Struct Reference

#include <ATypes.h>

List of all members.


Detailed Description

The layman's tuple of 3 ints. Each number can't be greater than 999.

Definition at line 142 of file ATypes.h.

Public Methods

 Int3Tuple ()
 Int3Tuple (int A, int B, int C)
bool operator= (const Int3Tuple &rhs) const
bool operator< (const Int3Tuple &rhs) const

Public Attributes

int a
int b
int c


Constructor & Destructor Documentation

Int3Tuple::Int3Tuple   [inline]
 

Definition at line 144 of file ATypes.h.

00144 { a=b=c=0; }

Int3Tuple::Int3Tuple int    A,
int    B,
int    C
[inline]
 

Definition at line 145 of file ATypes.h.

00145 { a=A; b=B; c=C; }


Member Function Documentation

bool Int3Tuple::operator< const Int3Tuple &    rhs const [inline]
 

Definition at line 147 of file ATypes.h.

References a, b, and c.

00147 { return (a*1000+b)*1000+c < (rhs.a*1000+rhs.b)*1000+rhs.c; }

bool Int3Tuple::operator= const Int3Tuple &    rhs const [inline]
 

Definition at line 146 of file ATypes.h.

References a, b, and c.

00146 { return a==rhs.a && b==rhs.b && c==rhs.c; }


Member Data Documentation

int Int3Tuple::a
 

Definition at line 148 of file ATypes.h.

Referenced by BattleEntry::initBattle(), operator<(), and operator=().

int Int3Tuple::b
 

Definition at line 148 of file ATypes.h.

Referenced by BattleEntry::initBattle(), operator<(), and operator=().

int Int3Tuple::c
 

Definition at line 148 of file ATypes.h.

Referenced by BattleEntry::initBattle(), operator<(), and operator=().


The documentation for this struct was generated from the following file:
Generated on Wed Apr 23 05:52:09 2003 for Modern Warfare by doxygen1.3-rc2