Top Up Prev Next Bottom Contents Index Search

1.4 Generic Data Structures

As Ptolemy does not use templates, our generic lists use the generic pointer technique, with

typedef void * Pointer; 
The most commonly used generic data structure in Ptolemy is SequentialList. Other lists are, as a rule, privately inherited from this class, so that type safety can be preserved. It is possible to insert and retrieve items at either the head or the tail of the list.



Top Up Prev Next Bottom Contents Index Search

ptolemy@eecs.berkeley.edu
Copyright © 1990-1997, University of California. All rights reserved.