Polaris: Declaration Class Reference

Declaration Class Reference

#include <Declaration.h>

Inheritance diagram for Declaration:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Declaration (const char *prefix, const char *header_string, const char *tail_string, int space_for_label, int max_line_len)
 ~Declaration ()
virtual void print (ostream &o) const
 Needed for Definition.
virtual Definitiondefinition_clone () const
 Needed for Definition.
virtual int structures_OK () const
 Needed for Definition.
const char * str_ref ()
 This function returns the string which the Declaration has created from the input given to it by operator <<.

Friends

Declarationoperator<< (Declaration &decl, const String &str)

Constructor & Destructor Documentation

Declaration::Declaration const char *  prefix,
const char *  header_string,
const char *  tail_string,
int  space_for_label,
int  max_line_len
 

Definition at line 28 of file Declaration.cc.

References register_instance().

Declaration::~Declaration  ) 
 

... Delete the memory which ostrstream turned over to us

Definition at line 53 of file Declaration.cc.

References unregister_instance().


Member Function Documentation

virtual void Declaration::print ostream &  o  )  const [virtual]
 

Needed for Definition.

Implements Definition.

Definition * Declaration::definition_clone  )  const [virtual]
 

Needed for Definition.

Implements Definition.

Definition at line 181 of file Declaration.cc.

int Declaration::structures_OK  )  const [virtual]
 

Needed for Definition.

Implements Definition.

Definition at line 190 of file Declaration.cc.

const char * Declaration::str_ref  ) 
 

This function returns the string which the Declaration has created from the input given to it by operator <<.

Note:
Once this function has been called, the Declaration is in a "frozen" state and no more elements may be added, although str() may be called as many times as desired. DO NOT delete this returned string. It will be deleted automatically when the destructor is called.

Definition at line 69 of file Declaration.cc.

Referenced by Equivalence::write().


Friends And Related Function Documentation

Declaration& operator<< Declaration decl,
const String str
[friend]
 

... Adding this item would make the line too long (note that this ... clause is NOT taken if there are no entries already on the ... line). Finish off the old line and start a new one.

... Add the item to the line

Definition at line 80 of file Declaration.cc.


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:10 2005