next up previous contents
Next: Modifiers Up: GenericNamed, and Specific Previous: Initialization

Tests and Accessors

The general tests of validity and equality are provided, as well as many tests of the general characteristics of a bank. Rather than provide examples of each, here is a list of the many tests and accessors:

  1. is_valid(), is_invalid()
  2. is_recorded(), is_unrecorded()
  3. bank_key(), bank_name(), bank_number()
  4. bank_size(), body_size(), head_size(), type_size(), data_size()
  5. bank_type()

The methods is_recorded() and is_unrecorded() can be used to determine if a bank is recorded. The methods bank_key(), bank_name(), bank_number(), and bank_type() access the respective information about a bank. The size methods return the size of the appropriate piece of a bank. Recall that the bank ``body'' in Trybos is defined to be the type and data sections combined.

In addition to these methods, TRY_Generic_Bank provides several methods to access the data in a bank. A generic print() method is provided which writes a formatted bank dump to cout.



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