Coolquest, Inc. Home Products Support About Contact
cbold_logo_gif C++BOLD Reference Manual cbold_logo_gif

<<< Previous CBOLD Reference Home Next >>>

 

7.3.2. ^ operator

This section is under construction. See the Practical Guide to Connecting for connection examples.

The ^ operator is used only to create connections to two-port modules/parts. At least one of its operands must be two-port ModPar. The ^ operator can make connections to two-port parts more concise. For example, consider the following two equivalent code samples:

WE_N << Ram.WE_N << Rpullup.B;  Rpullup.A << VCC;
WE_N << Ram.WE_N  ^ Rpullup ^ VCC;
Operator Declaration from cb_shorthand.h Example Use
TModPar&   operator^(  TPortRange PortRange,  TModPar&   ModPar     );
TPortRange operator^(  TModPar&   ModPar,     TPortRange PortRange  );
TModPar&   operator^(  char*      CP,         TModPar&   ModPar     );
char*      operator^(  TModPar&   ModPar,     char*      CP         );
TModPar&   operator^(  TModPar&   ModPar_L,   TModPar&   ModPar_R   );
FooPort ^ BarPart;
FooPart ^ BarPort;
"FOO"   ^ BarPart;
FooPart ^ "BAR";
FooPart ^ BarPart;

 

<<< Previous CBOLD Reference Home Next >>>

Legal Copyright © 2007 by Coolquest, Inc. Contact