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();These methods return the fork input porthole (
const CGCPortHole* getForkSrc() const;
forkSrc)
if this porthole is a fork destination. The second method is the const
version of the first method.
CGCPortHole* realFarPort();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 CGCPortHole* realFarPort() const;
const
version of the first method.
CGCGeodesic& geo();Return the geodesic connected to this PortHole, type cast. The second is the
const CGCGeodesic& geo() const;
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.