Sequence diagrams Љ CALL . Use this macro if you cannot change the operation code or if you want to animate return values only on specific calls to the operation. Note that this macro can handle only primitive types. Example: Int test(int n) {return n*5;} void callingFunction() { int v; CALL (v, f00(10)); // after the call v equals 50 } Љ CALL_INST . Same as CALL , but use CALL_INST when the return value is of a complex type, such as a class or a union. Example: A* test() {return new A();} void callingFunction() { A *a; CALL_INST(a, test()); // after the call a equals new A[0] } Љ CALL_SER . Use this macro when the type has a user-defined serialization function. Examples:
– char* serializeMe(A*) {...} – A* test() {return new A();} void callingFunction() { A *a; CALL_SER(a, test(), serializeME);} // after the call v equals } Note that even if you choose not to embed these macros in your application, you can still see animated return values by explicitly calling an operation through the Operations window. To call an operation, click the Call operations tool in the Animation toolbar. 692 User Guide