Polaris: StringAssertion Class Reference

StringAssertion Class Reference

a base class for compiler String valued assertions. More...

#include <StringAssertion.h>

Inheritance diagram for StringAssertion:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 StringAssertion ()
 Construct a StringAssertion.
 StringAssertion (const StringAssertion &a)
 Construct a StringAssertion with a copy of another StringAssertion's current value.
virtual const List< StringElem > & string_arg_list_guarded () const
virtual List< StringElem > & string_arg_list_guarded ()
 return the list of StringElems associated with this assertion.
virtual Boolean string_arg_list_valid () const
 return the list of StringElems associated with this assertion.
virtual Assertionclone () const
 clone the StringAssertion
virtual StringAssertionoperator= (const StringAssertion &a)
 assignment operator.
virtual ~StringAssertion ()
 destructor

Protected Attributes

List< StringElem_string_arg_list

Detailed Description

a base class for compiler String valued assertions.

C Polaris

See also:
Directive/Assertion.h

Directive/StringAssertion.h

Description

The StringAssertion class is meant to provide the base for a generic compiler assertion class based on lists of strings. Derived classes will implement specific instances of the different flavors of compiler assertions.

Bugs

No known bugs.

Definition at line 35 of file StringAssertion.h.


Constructor & Destructor Documentation

StringAssertion::StringAssertion  ) 
 

Construct a StringAssertion.

Definition at line 248 of file Assertion.cc.

References AS_NONE.

Referenced by clone().

StringAssertion::StringAssertion const StringAssertion a  ) 
 

Construct a StringAssertion with a copy of another StringAssertion's current value.

Definition at line 253 of file Assertion.cc.

References _string_arg_list, and Assertion::operator=().

StringAssertion::~StringAssertion  )  [virtual]
 

destructor

... nothing to do

Definition at line 296 of file Assertion.cc.


Member Function Documentation

const List< StringElem > & StringAssertion::string_arg_list_guarded  )  const [virtual]
 

Reimplemented from Assertion.

Definition at line 273 of file Assertion.cc.

References _string_arg_list.

Referenced by cdg2cfg(), clone_loop(), clone_loop_body(), copy_directives(), Directive::generate_comment_directive(), Directive::generate_csrd_looplabel_directive(), Directive::generate_csrd_schedule_directive(), DoStmt::get_loop_name(), mark_loops_with_location(), parse_comment_or_directive(), AssertComment::print(), AssertSchedule::print(), AssertLoopLabel::print(), and reset_loop_label().

List< StringElem > & StringAssertion::string_arg_list_guarded  )  [virtual]
 

return the list of StringElems associated with this assertion.

Reimplemented from Assertion.

Definition at line 279 of file Assertion.cc.

References _string_arg_list.

Boolean StringAssertion::string_arg_list_valid  )  const [virtual]
 

return the list of StringElems associated with this assertion.

Reimplemented from Assertion.

Definition at line 285 of file Assertion.cc.

References True.

Referenced by copy_directives(), Directive::generate_csrd_looplabel_directive(), Directive::generate_csrd_schedule_directive(), DoStmt::get_loop_name(), mark_loops_with_location(), and reset_loop_label().

Assertion * StringAssertion::clone  )  const [virtual]
 

clone the StringAssertion

Reimplemented from Assertion.

Reimplemented in AssertComment, AssertLoopLabel, and AssertSchedule.

Definition at line 291 of file Assertion.cc.

References StringAssertion().

StringAssertion & StringAssertion::operator= const StringAssertion a  )  [virtual]
 

assignment operator.

Definition at line 261 of file Assertion.cc.

References _string_arg_list, List< T >::clear(), and Assertion::operator=().

Referenced by AssertComment::AssertComment(), AssertLoopLabel::AssertLoopLabel(), AssertSchedule::AssertSchedule(), AssertComment::operator=(), AssertSchedule::operator=(), and AssertLoopLabel::operator=().


Member Data Documentation

List<StringElem> StringAssertion::_string_arg_list [protected]
 

Definition at line 37 of file StringAssertion.h.

Referenced by operator=(), string_arg_list_guarded(), and StringAssertion().


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:08:24 2005