Top Up Prev Next Bottom Contents Index Search

14.3 Buffer Embedding

Although many of the methods related to buffer embedding are actually implemented in the CG domain, only the CGC domain makes use of them at this time. The following function is defined as a method of the CGPortHole class.

void embed (CGPortHole port, int location = -1)
Embed the buffer of port in the buffer of this porthole with offset location. The default location of -1 indicates that the offset is not yet determined.
For example, the following statements appear in the setup method of the Switch block. This causes the buffers of trueOutput and falseOutput to be embedded within the buffer of input.

input.embed(trueOutput,0);
input.embed(falseOutput,0);


Top Up Prev Next Bottom Contents Index Search

Copyright © 1990-1997, University of California. All rights reserved.