Go to Overview over all GrAL packages.
Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

int_index_type Struct Reference

2D integer coordinate. More...

#include <index-type.h>

List of all members.

Public Types

typedef int_index_type self

Public Methods

 int_index_type ()
 int_index_type (int xx, int yy)
self & operator+= (const self &rhs)
self & operator-= (const self &rhs)
self & operator *= (int rhs)
int & operator[] (int i)
int operator[] (int i) const

Public Attributes

int x
int y

Friends

self operator+ (const self &lhs, const self &rhs)
self operator- (const self &lhs, const self &rhs)
self operator * (const self &lhs, int rhs)
self operator * (int lhs, const self &rhs)
self operator- (const self &rhs)
bool operator== (const self &ls, const self &rs)
bool operator!= (const self &lhs, const self &rhs)
bool operator< (const self &ls, const self &rs)
std::ostream & operator<< (std::ostream &out, const self &idx)
std::istream & operator>> (std::istream &in, self &idx)


Detailed Description

2D integer coordinate.

Definition at line 13 of file index-type.h.


Member Typedef Documentation

typedef int_index_type int_index_type::self
 

Definition at line 14 of file index-type.h.


Constructor & Destructor Documentation

int_index_type::int_index_type (    )  [inline]
 

Definition at line 16 of file index-type.h.

int_index_type::int_index_type (  int    xx,
int    yy
)  [inline]
 

Definition at line 17 of file index-type.h.

References x, and y.


Member Function Documentation

self& int_index_type::operator+= (  const self &    rhs )  [inline]
 

Definition at line 21 of file index-type.h.

References x, and y.

self& int_index_type::operator-= (  const self &    rhs )  [inline]
 

Definition at line 22 of file index-type.h.

References x, and y.

self& int_index_type::operator *= (  int    rhs )  [inline]
 

Definition at line 23 of file index-type.h.

References x, and y.

int& int_index_type::operator[] (  int    i )  [inline]
 

Definition at line 36 of file index-type.h.

References x, and y.

int int_index_type::operator[] (  int    i )  const [inline]
 

Definition at line 37 of file index-type.h.

References x, and y.


Friends And Related Function Documentation

self operator+ (  const self &    lhs,
const self &    rhs
)  [friend]
 

Definition at line 25 of file index-type.h.

self operator- (  const self &    lhs,
const self &    rhs
)  [friend]
 

Definition at line 27 of file index-type.h.

self operator * (  const self &    lhs,
int    rhs
)  [friend]
 

Definition at line 29 of file index-type.h.

self operator * (  int    lhs,
const self &    rhs
)  [friend]
 

Definition at line 31 of file index-type.h.

self operator- (  const self &    rhs )  [friend]
 

Definition at line 33 of file index-type.h.

bool operator== (  const self &    ls,
const self &    rs
)  [friend]
 

Definition at line 40 of file index-type.h.

bool operator!= (  const self &    lhs,
const self &    rhs
)  [friend]
 

Definition at line 42 of file index-type.h.

bool operator< (  const self &    ls,
const self &    rs
)  [friend]
 

Definition at line 44 of file index-type.h.

std::ostream& operator<< (  std::ostream &    out,
const self &    idx
)  [friend]
 

Definition at line 48 of file index-type.h.

std::istream& operator>> (  std::istream &    in,
self &    idx
)  [friend]
 

Definition at line 51 of file index-type.h.


Member Data Documentation

int int_index_type::x
 

Definition at line 18 of file index-type.h.

Referenced by xmjr_indexmap2D::init, int_index_type, xmjr_indexmap2D::IsInRange, general_indexmap2D::IsInRange, xmjr_indexmap2D::llx, general_indexmap2D::llx, make_ordered, xmjr_indexmap2D::number, general_indexmap2D::number, operator *=, operator+=, operator-=, operator[], general_indexmap2D::pretty_print, general_indexmap2D::shrink_x_v, xmjr_indexmap2D::urx, general_indexmap2D::urx, xmjr_indexmap2D::x0, general_indexmap2D::x0, xmjr_indexmap2D::xmax, and general_indexmap2D::xmax.

int int_index_type::y
 

Definition at line 18 of file index-type.h.

Referenced by xmjr_indexmap2D::init, int_index_type, xmjr_indexmap2D::IsInRange, general_indexmap2D::IsInRange, xmjr_indexmap2D::lly, general_indexmap2D::lly, make_ordered, xmjr_indexmap2D::number, general_indexmap2D::number, operator *=, operator+=, operator-=, operator[], general_indexmap2D::pretty_print, general_indexmap2D::shrink_y_v, xmjr_indexmap2D::ury, general_indexmap2D::ury, xmjr_indexmap2D::y0, general_indexmap2D::y0, xmjr_indexmap2D::ymax, and general_indexmap2D::ymax.


The documentation for this struct was generated from the following file:
Copyright (c) Guntram Berti 1997-2002. See the GrAL Homepage for up-to-date information.

Generated at Tue Feb 26 16:08:17 2002 for GrAL Cartesian2D by doxygen 1.2.11-20011104 written by Dimitri van Heesch, © 1997-2000