Polaris: LabelDB Class Reference

LabelDB Class Reference

Database of FORTRAN Labels. More...

#include <LabelDB.h>

List of all members.

Public Member Functions

void print (ostream &o) const
 Print the elements of LabelDB.
Boolean member (int value) const
 Return a flag indicating if there is a label number in the database.
int first_ref () const
 Return the first label number in the database (return 0 if none).
int successor_ref (int value) const
 Find the next label number after value in the database (return 0 if none).
int last_ref () const
 Find the last label number in the database (return 0 if none).
int structures_OK () const
 Check the structure of the data for errors or inconsistency Return 0 and print error message if problems found, otherwise return 1 without message.

Friends

class StmtList
ostream & operator<< (ostream &o, const LabelDB &ldb)


Detailed Description

Database of FORTRAN Labels.

Polaris C++ VDL

See also:
LabelDB.h

LabelDB.h

LabelDB.cc

Description

LabelDB is a database for FORTRAN formats which includes a constructor from a binstr.

Definition at line 29 of file LabelDB.h.


Member Function Documentation

void LabelDB::print ostream &  o  )  const
 

Print the elements of LabelDB.

Definition at line 16 of file LabelDB.cc.

References first_ref(), and successor_ref().

Boolean LabelDB::member int  value  )  const [inline]
 

Return a flag indicating if there is a label number in the database.

Definition at line 88 of file LabelDB.h.

References ProtoRefDatabase< S, T >::member().

int LabelDB::first_ref  )  const [inline]
 

Return the first label number in the database (return 0 if none).

Definition at line 94 of file LabelDB.h.

References TypedBaseRefMap< S, T >::first_ref().

Referenced by print().

int LabelDB::successor_ref int  value  )  const [inline]
 

Find the next label number after value in the database (return 0 if none).

Definition at line 101 of file LabelDB.h.

References TypedBaseRefMap< S, T >::successor_ref().

Referenced by print().

int LabelDB::last_ref  )  const [inline]
 

Find the last label number in the database (return 0 if none).

Definition at line 108 of file LabelDB.h.

References TypedBaseRefMap< S, T >::last_ref().

int LabelDB::structures_OK  )  const
 

Check the structure of the data for errors or inconsistency Return 0 and print error message if problems found, otherwise return 1 without message.

Definition at line 63 of file LabelDB.cc.

References BaseMapRoot::structures_OK().


Friends And Related Function Documentation

friend class StmtList [friend]
 

Definition at line 31 of file LabelDB.h.

ostream& operator<< ostream &  o,
const LabelDB ldb
[friend]
 


The documentation for this class was generated from the following files:
 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:07:40 2005