class Compound

The compound class is an abstract class to provide some list features. More...

Contains pure virtuals
Definition#include <compound.h>
InheritsElement [public ]
Inherited byPart, Song, Table, Track, Vector
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

The compound class is an abstract class to provide some list features. The simplest implementation is the vector.

ostream &  printContent (int,ostream&)

printContent

[protected const]

 Compound ()

Compound

 Compound (const Compound& c,Type)

Compound

 ~Compound ()

~Compound

[virtual]

void  scratch ()

scratch

removes and(!) deletes all elements from the compound (using the element's remove() method and calling delete). Caution: The table class has an own scratch method, but don't make this method virtual!

Element *  content ()

content

[const]

Element *  get (int n)

get

[const]

Reimplemented from Element.

Element *  next (Element * e)

next

[const]

Reimplemented from Element.

Element *  prev (Element * e)

prev

[const]

Reimplemented from Element.

void  splitBefore (Element * e)

splitBefore

[const]

Reimplemented from Element.

Element *  first ()

first

[const]

Reimplemented from Element.

Element *  last ()

last

[const]

Reimplemented from Element.

int  size ()

size

[const]

bool  empty ()

empty

[const]

void  add (Element * e)

add

[virtual]

this method appends an element to the compound at the very end. It is declared virtual to allow special compound to implement a more sophisticated add method, e.g. the Part wants to have the events time ordered!

void  push (Element * e)

push

void  insertBefore (Element * ne, Element * base)

insertBefore

Reimplemented from Element.

void  insertAfter (Element * ne, Element * base)

insertAfter

[const]

Reimplemented from Element.

void  insertAt (int i, Element *e )

insertAt

void  replace (Element * e1, Element * e2)

replace

This method replaces the elements e1 and e2. e1 has to belong to the content of the compound object. e2 may not(!) be the first element in any compound object. In most cases, e2 is free (does not belong to a compound), but it still works fine, if it is just not the first element in a compound

void  remove (Element *)

remove

Reimplemented from Element.

Element *  cutFirst ()

cutFirst

Element *  cutLast ()

cutLast

void  setContent (Element*)

setContent

void  hide ()

hide

[virtual]

Reimplemented from Element.

void  show ()

show

[virtual]

Reimplemented from Element.

ostream &  print (int,ostream&)

print

[const pure virtual]

Reimplemented from Element.

void  flush (const char*)

flush

[const virtual]

Reimplemented from Element.

Element *  copy ()

copy

[const pure virtual]

Reimplemented from Element.

bool  isEvent ()

isEvent

[const virtual]

Reimplemented from Element.

bool  isTrack ()

isTrack

[const virtual]

Reimplemented from Element.


Generated by: wuerthne on al on Sun Jan 6 22:32:42 2002, using kdoc 2.0a53.