comma::SignatureSet Class Reference

#include <SignatureSet.h>

List of all members.

Public Types

typedef SignatureTable::iterator iterator
typedef
SignatureTable::const_iterator 
const_iterator

Public Member Functions

bool addDirectSignature (SigInstanceDecl *signature, const AstRewriter &rewriter)
bool contains (SigInstanceDecl *signature) const
 Returns true is the given signature is already contained in this set.
bool isDirect (SigInstanceDecl *signature) const
 Returns true if the given signature is a direct signature of this set.
bool isIndirect (SigInstanceDecl *signature) const
 Returns true if the given signature is an indirect signature of this set.
unsigned numSignatures () const
 Returns the number of direct and indirect signatures in this set.
unsigned size () const
 Analogus to numSignatures().
bool empty () const
 Returns true if this signature set is empty.
unsigned numDirectSignatures () const
 Returns the number of direct signatures in this set.
unsigned numIndirectSignatures () const
 Returns the number of indirect signatures in this set.
iterator beginDirect ()
 Iterators over the direct signatures in this set.
iterator endDirect ()
const_iterator beginDirect () const
const_iterator endDirect () const
iterator begin ()
 Iterators over all of the signatures in this set.
iterator end ()
const_iterator begin () const
const_iterator end () const

Detailed Description

Definition at line 29 of file SignatureSet.h.


Member Typedef Documentation

typedef SignatureTable::const_iterator comma::SignatureSet::const_iterator

Definition at line 82 of file SignatureSet.h.

typedef SignatureTable::iterator comma::SignatureSet::iterator

Definition at line 81 of file SignatureSet.h.


Member Function Documentation

bool SignatureSet::addDirectSignature ( SigInstanceDecl signature,
const AstRewriter rewriter 
)

Adds a direct signature to this set using the supplied rewrite rules.

This method adds signature to the direct signature set. Then, using the supplied rewrite rules, inserts all super-signatures of signature into the set of indirect signatures, rewriting each in turn. Returns true if the signature did not previously exist in this set and false otherwise.

Definition at line 16 of file SignatureSet.cpp.

const_iterator comma::SignatureSet::begin (  )  const [inline]

Definition at line 101 of file SignatureSet.h.

iterator comma::SignatureSet::begin (  )  [inline]

Iterators over all of the signatures in this set.

Returns the signatures in a depth-first preorder traversal of the signature graph, ignoring all repeats.

Definition at line 98 of file SignatureSet.h.

const_iterator comma::SignatureSet::beginDirect (  )  const [inline]

Definition at line 91 of file SignatureSet.h.

iterator comma::SignatureSet::beginDirect (  )  [inline]

Iterators over the direct signatures in this set.

Returns the direct supersignatures in insertion order (that is, in the order defined by the sequence of calls to addDirectSignature).

Definition at line 88 of file SignatureSet.h.

bool comma::SignatureSet::contains ( SigInstanceDecl signature  )  const [inline]

Returns true is the given signature is already contained in this set.

Definition at line 48 of file SignatureSet.h.

bool comma::SignatureSet::empty (  )  const [inline]

Returns true if this signature set is empty.

Definition at line 71 of file SignatureSet.h.

const_iterator comma::SignatureSet::end (  )  const [inline]

Definition at line 102 of file SignatureSet.h.

iterator comma::SignatureSet::end (  )  [inline]

Definition at line 99 of file SignatureSet.h.

const_iterator comma::SignatureSet::endDirect (  )  const [inline]

Definition at line 92 of file SignatureSet.h.

iterator comma::SignatureSet::endDirect (  )  [inline]

Definition at line 89 of file SignatureSet.h.

bool comma::SignatureSet::isDirect ( SigInstanceDecl signature  )  const [inline]

Returns true if the given signature is a direct signature of this set.

Definition at line 54 of file SignatureSet.h.

bool comma::SignatureSet::isIndirect ( SigInstanceDecl signature  )  const [inline]

Returns true if the given signature is an indirect signature of this set.

Definition at line 60 of file SignatureSet.h.

unsigned comma::SignatureSet::numDirectSignatures (  )  const [inline]

Returns the number of direct signatures in this set.

Definition at line 74 of file SignatureSet.h.

unsigned comma::SignatureSet::numIndirectSignatures (  )  const [inline]

Returns the number of indirect signatures in this set.

Definition at line 77 of file SignatureSet.h.

unsigned comma::SignatureSet::numSignatures (  )  const [inline]

Returns the number of direct and indirect signatures in this set.

Definition at line 65 of file SignatureSet.h.

unsigned comma::SignatureSet::size (  )  const [inline]

Analogus to numSignatures().

Definition at line 68 of file SignatureSet.h.


The documentation for this class was generated from the following files:

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1