From RTSC-Pedia

Jump to: navigation, search
revision tip
—— LANDSCAPE orientation
[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 UTC

C - Handle upCast

unconditionally move one level up the inheritance hierarchy

Contents

Synopsis

 
 
 
#include <«pkg»/«Mod».h>
 
«IMod»_Handle «Mod»_Handle_upCast(«Mod»_Handle handle);

Description

This function is automatically defined for all target modules that support instances and inherit from an interface, where «Mod» is the name of some module and «IMod» is the name of some interface. This function simply casts handle to be of type «IMod»_Handle and should be used in-lieu of directly casting handle; there is no additional overhead associated with this operation and it allows the compiler to validate the types used.

See also

C - Handle_downCast conditionally move one level down the inheritance hierarchy
xdc.runtime.HeapMin.Handle_upCast Client documentation for xdc.runtime.HeapMin.Handle_upCast
[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 UTC
Copyright © 2008 The Eclipse Foundation. All Rights Reserved


Views
Personal tools
package reference