next up previous contents
Next: Accessing Data in a Up: Bank Classes Previous: Creating a Bank

Testing a Bank

Once a bank is created, it can be tested for validity or compared to another bank. Validity for different bank classes may be defined differently, though it should at least contain TRY_Generic_Bank::is_valid() in its definition. Comparisons are made between the bank header, type, and data values and are based on the member function compare().

bool  is_valid(void) const ;
bool  is_invalid(void) const ;
bool  compare(const LRID_Bank& my_bank) const ;

friend  bool  operator == (const LRID_Bank& bank1,
                           const LRID_Bank& bank2) ;
friend  bool  operator != (const LRID_Bank& bank1,
                           const LRID_Bank& bank2) ;



Robert Kennedy
Mon Jul 28 13:23:28 CDT 1997