Main Page   Class Hierarchy   Compound List   Compound Members  

Anchor Class Reference

List of all members.

Public Methods

 Anchor (Id id, Offset offset, Unit unit, set< string > const &signals)
 Create an anchor, using the given identifier.

 Anchor (Id id, Unit unit, set< string > const &signals)
 Create an anchor, using a given identifier, but without specifying its offset.

 Anchor (Id id, const Anchor *)
 Copy an anchor, but with the given identifier.

const Id getId () const
 Get the id of the anchor.

Offset getOffset () const
 Get the offset of the anchor.

void setOffset (Offset o)
 Set the offset of the anchor.

bool getAnchored () const
 Get the anchored flag of the anchor.

void setSignals (set< string > &signals)
 Set the signals of the anchor.

set< string > getSignals () const
 Get the signals of the anchor.

void setUnit (string unit)
 Set the unit of the anchor.

Unit getUnit () const
 Get the unit of the anchor.

string toString ()
 Dump the anchor in AIF format.


Protected Methods

void unsetOffset ()
 Unset the offset.


Friends

bool operator< (const Anchor &, const Anchor &)
 Comparison of two anchors.


Detailed Description

An anchor is a named offset into signal data.
Author:
Xiaoyi Ma
Version:
1.3 September 21, 2001
Note:
anchors are not required to have an offset; two logically distinct anchors may have the same offset. An anchor with an offset is said to be anchored, otherwise unanchored.