Source Code for the Active Containers Toolkit


Download Complete Source Code (acsource.zip)

View Individual Source Files

AC Source Code
File Description
cCriticalSection.h General purpose guard for critical sections.
Used by: cFifo, cHashTable, cQueue,
cS_Factory, cS_Reader, and cS_Writer
cHashTable.h
cHashTable.cpp
General purpose hash table.
Used by: cS_Factory
cMutex.h General purpose semaphore.
Used by: cS_Factory and cS_Writer
cQueue.h
cQueue.cpp
General purpose FIFO queue.
Used by: cS_Reader and cS_Writer
cS_Factory.h
cS_Factory.cpp
Creates reader and writer active containers.
cS_FactoryHandlers.cpp Active message handlers for cS_Factory.
cS_Reader.h
cS_Reader.cpp
Active reader container.
cShareException.h Share Exception class.
cstdCont.h Interface for sharable data structures, cS_Reader,
and cS_Writer
cS_Writer.h
cS_Writer.cpp
Active Writer Container.
DeMarshallStream.h
DeMarshallStream.cpp
Places a stream of data into a given buffer.
MarshallStream.h
MarshallStream.cpp
Places bytes of data into a stream.
Node.h General purpose structure. Includes pointers
to a key, data, next node and previous node.
Used by: FIFO and cHashTable
Object.h Standard interface for function arguements
of sharable objects.
sharedDefs.h Standard defines.
stdrw.h List of commonly included header files.
Debugging can be turned on/off here.


ACTest Source Code
File Description
actest.h
actest.cpp
Test application in which a writer changes the colors
of blocks on a grid and then updates the readers.
actest.mak mak file to build the test application.
cGrid.h
cGrid.cpp
The grid container that the test application shares.
It implements the toolkit's cStdCont interface.
cGridData.h Stores the attributes for a block of the grid.
It implements the toolkit's Object interface.
cGridKey.h Stores the position of a block on the grid.
It implements the toolkit's Object interface.

Back to Main Page
Website created by: Ted Bonkenburg ( tb@cs.cornell.edu ) and Vicky Weissman ( vickyw@cs.cornell.edu )