FFSM++  1.1.0
French Forest Sector Model ++
iiskey Class Reference

Class to provide a simple integer-integer-string key in std maps. More...

#include <BaseClass.h>

Collaboration diagram for iiskey:

Public Member Functions

 iiskey ()
 iiskey class (note the double ii) /// More...
 
 iiskey (int i_h, int i2_h, string s_h)
 
 ~iiskey ()
 
bool operator== (const iiskey &op2) const
 
bool operator!= (const iiskey &op2) const
 
bool operator< (const iiskey &op2) const
 
bool operator> (const iiskey &op2) const
 
bool operator<= (const iiskey &op2) const
 
bool operator>= (const iiskey &op2) const
 

Public Attributes

int i
 
int i2
 
string s
 

Detailed Description

Class to provide a simple integer-integer-string key in std maps.

Definition at line 195 of file BaseClass.h.

Constructor & Destructor Documentation

iiskey ( )

iiskey class (note the double ii) ///

Definition at line 474 of file BaseClass.cpp.

474  {
475  i = 0;
476  i2 = 0;
477  s = "";
478 }
int i2
Definition: BaseClass.h:207
string s
Definition: BaseClass.h:208
int i
Definition: BaseClass.h:206
iiskey ( int  i_h,
int  i2_h,
string  s_h 
)

Definition at line 479 of file BaseClass.cpp.

479  {
480  i = i_h;
481  i2 = i2_h;
482  s = s_h;
483 }
int i2
Definition: BaseClass.h:207
string s
Definition: BaseClass.h:208
int i
Definition: BaseClass.h:206
~iiskey ( )

Definition at line 485 of file BaseClass.cpp.

485  {
486 
487 }

Member Function Documentation

bool operator!= ( const iiskey op2) const

Definition at line 498 of file BaseClass.cpp.

498  {
499  if(op2.i == i && op2.i2 == i2 && op2.s == s){
500  return false;
501  }
502  return true;
503 }
int i2
Definition: BaseClass.h:207
string s
Definition: BaseClass.h:208
int i
Definition: BaseClass.h:206
bool operator< ( const iiskey op2) const

Definition at line 506 of file BaseClass.cpp.

506  {
507  if (i < op2.i ) {return true;}
508  if (i == op2.i) {
509  if (i2 < op2.i2 ) {return true;}
510  if (i2 == op2.i2){
511  if (s < op2.s) {return true;}
512  }
513  }
514  return false;
515 }
int i2
Definition: BaseClass.h:207
string s
Definition: BaseClass.h:208
int i
Definition: BaseClass.h:206
bool operator<= ( const iiskey op2) const

Definition at line 530 of file BaseClass.cpp.

530  {
531  if (i < op2.i ) {return true;}
532  if (i == op2.i) {
533  if (i2 < op2.i2 ) {return true;}
534  if (i2 == op2.i2){
535  if (s <= op2.s) {return true;}
536  }
537  }
538  return false;
539 }
int i2
Definition: BaseClass.h:207
string s
Definition: BaseClass.h:208
int i
Definition: BaseClass.h:206
bool operator== ( const iiskey op2) const

Definition at line 490 of file BaseClass.cpp.

490  {
491  if(op2.i == i && op2.i2 == i2 && op2.s == s){
492  return true;
493  }
494  return false;
495 }
int i2
Definition: BaseClass.h:207
string s
Definition: BaseClass.h:208
int i
Definition: BaseClass.h:206
bool operator> ( const iiskey op2) const

Definition at line 518 of file BaseClass.cpp.

518  {
519  if (i > op2.i ) {return true;}
520  if (i == op2.i) {
521  if (i2 > op2.i2 ) {return true;}
522  if (i2 == op2.i2){
523  if (s > op2.s) {return true;}
524  }
525  }
526  return false;
527 }
int i2
Definition: BaseClass.h:207
string s
Definition: BaseClass.h:208
int i
Definition: BaseClass.h:206
bool operator>= ( const iiskey op2) const

Definition at line 542 of file BaseClass.cpp.

542  {
543  if (i > op2.i ) {return true;}
544  if (i == op2.i) {
545  if (i2 > op2.i2 ) {return true;}
546  if (i2 == op2.i2){
547  if (s >= op2.s) {return true;}
548  }
549  }
550  return false;
551 }
int i2
Definition: BaseClass.h:207
string s
Definition: BaseClass.h:208
int i
Definition: BaseClass.h:206

Member Data Documentation

int i

Definition at line 206 of file BaseClass.h.

Referenced by operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

int i2

Definition at line 207 of file BaseClass.h.

Referenced by operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

string s

Definition at line 208 of file BaseClass.h.

Referenced by operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().


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