Top Up Prev Next Bottom Contents Index Search

18.4 Other CGCPortHole members

CGCPortHole is derived from CGPortHole class. It has a constructor with no argument. In the constructor, we initialize the default properties of a CGCPortHole: static buffering and linear buffering flags are set TRUE, buffer size is set to 1. These properties are also initialized in initialize method. In the destructor, it deallocates the name of the buffer if stored in this class (when this porthole is disconnected). All members described in this section are public.

CGCPortHole* getForkSrc(); 
const CGCPortHole* getForkSrc() const;
These methods return the fork input porthole (forkSrc) if this porthole is a fork destination. The second method is the const version of the first method.

CGCPortHole* realFarPort(); 
const CGCPortHole* realFarPort() const;
These method return the far side porthole. If the far side porthole is a fork destination, they return the far side porthole of the fork input, thus bypassing fork stars. The second is the const version of the first method.

CGCGeodesic& geo(); 
const CGCGeodesic& geo() const;
Return the geodesic connected to this PortHole, type cast. The second is the const version of the first method.

Geodesic* allocateGeodesic(); 
Allocates a CGCGeodesic.

void setupForkDests(); 
If this method is called for a fork input porthole, make a complete list of forkDests considering all cascaded forks.

int inBufSize() const; 
This method returns the bufferSize of this porthole.

CGCPortHole has an iterator called ForkDestIter. It returns fork destinations one at a time. The return type is CGCPortHole.

The derived classes of CGCPortHole in the CGC domain are InCGCPort, OutCGCPort, MultiCGCPort, MultiInCGCPort, and MultiOutCGCPort.



Top Up Prev Next Bottom Contents Index Search

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