FFSM++ 1.1.0
French Forest Sector Model ++
Loading...
Searching...
No Matches
iskey Class Reference

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

#include <BaseClass.h>

Collaboration diagram for iskey:

Public Member Functions

 iskey ()
 
 iskey (int i_h, string s_h)
 
 ~iskey ()
 
bool operator== (const iskey &op2) const
 
bool operator!= (const iskey &op2) const
 
bool operator< (const iskey &op2) const
 
bool operator> (const iskey &op2) const
 
bool operator<= (const iskey &op2) const
 
bool operator>= (const iskey &op2) const
 

Public Attributes

int i
 
string s
 

Detailed Description

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

Definition at line 179 of file BaseClass.h.

Constructor & Destructor Documentation

◆ iskey() [1/2]

iskey ( )

OTHER CLASSES THAN BASECLASS ////////////////// iskey class ///

Definition at line 408 of file BaseClass.cpp.

408 {
409 i = 0;
410 s = "";
411}
string s
Definition BaseClass.h:191
int i
Definition BaseClass.h:190

◆ iskey() [2/2]

iskey ( int  i_h,
string  s_h 
)

Definition at line 412 of file BaseClass.cpp.

412 {
413 i = i_h;
414 s = s_h;
415}

◆ ~iskey()

~iskey ( )

Definition at line 417 of file BaseClass.cpp.

417 {
418
419}

Member Function Documentation

◆ operator!=()

bool operator!= ( const iskey op2) const

Definition at line 430 of file BaseClass.cpp.

430 {
431 if(op2.i == i && op2.s == s){
432 return false;
433 }
434 return true;
435}

◆ operator<()

bool operator< ( const iskey op2) const

Definition at line 437 of file BaseClass.cpp.

438 {
439 if (i < op2.i ) return true;
440 if (i == op2.i) {
441 if (s < op2.s) return true;
442 }
443 return false;
444}

◆ operator<=()

bool operator<= ( const iskey op2) const

Definition at line 455 of file BaseClass.cpp.

456 {
457 if (i < op2.i ) return true;
458 if (i == op2.i) {
459 if (s <= op2.s) return true;
460 }
461 return false;
462}

◆ operator==()

bool operator== ( const iskey op2) const

Definition at line 422 of file BaseClass.cpp.

422 {
423 if(op2.i == i && op2.s == s){
424 return true;
425 }
426 return false;
427}

◆ operator>()

bool operator> ( const iskey op2) const

Definition at line 447 of file BaseClass.cpp.

447 {
448 if (i > op2.i ) return true;
449 if (i == op2.i) {
450 if (s > op2.s) return true;
451 }
452 return false;
453}

◆ operator>=()

bool operator>= ( const iskey op2) const

Definition at line 465 of file BaseClass.cpp.

465 {
466 if (i > op2.i ) return true;
467 if (i == op2.i) {
468 if (s >= op2.s) return true;
469 }
470 return false;
471}

Member Data Documentation

◆ i

int i

◆ s

string s

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