|
class ElementThe class Element is the most essentail class (similar to javas object-class). Contains pure virtuals #include <unselect.h> Inherited by: Compound, Table, Part, Track, AudioTrack, CommentTrack, DrumTrack, MasterTrack, ScoreTrack, Song, Vector, Selection, Atoma, Ornament, Bow, Expression, Lyrics, Stem, Reference, Event, Note, Symbol, MasterEvent, MidiEvent, Operation, AddElement, Addon, AddOrnament, AddSymbol, AddToSelection, ChangeNote, ConvertTrack, CopySelection, CutSelection, DeleteSelection, GlueParts, MoveEvent, MovePart, NewSelection, PasteSelection, RemoveElement, RemoveFromSelection, SelectLeft, SelectRight, SplitPart, Unselect, Position, String |
The class Element is the most essentail class (similar to javas object-class). Further more, elements may have a successor and a predecessor. These are needed when elements are arranged with compound objects.
Element ()
only used internally
~Element () [virtual]
the destructor contains code only in debugging mode
int total ()
for debugging purposes only
void dump ()
for debugging purposes only
void exchange (Element * e1, Element * e2) [protected static]
This method exchanges the contexts of e1 and e2: before: a1 <=> e1 <=> b1 a2 <=> e2 <=> b2 after: a1 <=> e2 <=> b1 a2 <=> e1 <=> b2
bool member (Compound*)
checks whether an element is member of a compound
int ord (Compound*)
if member of a compound, this method returns the element position within the compound, and -1 otherwise
const char * ctype ()
returns the type of an element as char*
Type isA ()
returns the type of an element as a constant integer
bool isEvent () [pure virtual]
returns true if the element is an event (Note, etc.)
bool operator== (Element*) [virtual]
checks whether two elements are equal
bool operator== (const char*) [virtual]
checks whether two elements are equal
void show () [virtual]
overload this, if this element has a presentation, and delegate to it
void hide () [virtual]
overload this, if this element has a presentation, and delegate to it
ostream & print (int,ostream&) [pure virtual]
implement this to define output for each element
void flush (char*) [pure virtual]
implement this to define short output for each element
Element * copy () [pure virtual]
implement this to define the copy process for each element
Generated by: wuerthne@clouseau on Fri Jan 19 23:08:00 200. |