FFSM++  1.1.0
French Forest Sector Model ++
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 ( )

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

Definition at line 408 of file BaseClass.cpp.

408  {
409  i = 0;
410  s = "";
411 }
int i
Definition: BaseClass.h:190
string s
Definition: BaseClass.h:191
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 }
int i
Definition: BaseClass.h:190
string s
Definition: BaseClass.h:191
~iskey ( )

Definition at line 417 of file BaseClass.cpp.

417  {
418 
419 }

Member Function Documentation

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 }
int i
Definition: BaseClass.h:190
string s
Definition: BaseClass.h:191
bool operator< ( const iskey op2) const

Definition at line 438 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 }
int i
Definition: BaseClass.h:190
string s
Definition: BaseClass.h:191
bool operator<= ( const iskey op2) const

Definition at line 456 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 }
int i
Definition: BaseClass.h:190
string s
Definition: BaseClass.h:191
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 }
int i
Definition: BaseClass.h:190
string s
Definition: BaseClass.h:191
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 }
int i
Definition: BaseClass.h:190
string s
Definition: BaseClass.h:191
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 }
int i
Definition: BaseClass.h:190
string s
Definition: BaseClass.h:191

Member Data Documentation

int i

Definition at line 190 of file BaseClass.h.

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

string s

Definition at line 191 of file BaseClass.h.

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


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