FFSM++ 1.1.0
French Forest Sector Model ++
Loading...
Searching...
No Matches
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) ///
 
 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() [1/2]

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}
string s
Definition BaseClass.h:208
int i2
Definition BaseClass.h:207
int i
Definition BaseClass.h:206

◆ iiskey() [2/2]

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}

◆ ~iiskey()

~iiskey ( )

Definition at line 485 of file BaseClass.cpp.

485 {
486
487}

Member Function Documentation

◆ operator!=()

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}

◆ operator<()

bool operator< ( const iiskey op2) const

Definition at line 505 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}

◆ operator<=()

bool operator<= ( const iiskey op2) const

Definition at line 529 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}

◆ operator==()

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}

◆ operator>()

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}

◆ operator>=()

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}

Member Data Documentation

◆ i

int i

◆ i2

int i2

◆ s

string s

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