Open CASCADE Technology 7.9.0
MoniTool_Macros.hxx File Reference

Macros

#define GetCasted(atype, start)
 
#define DeclareAndCast(atype, result, start)
 
#define FastCast(atype, result, start)
 

Macro Definition Documentation

◆ DeclareAndCast

#define DeclareAndCast ( atype,
result,
start )
Value:
Handle(atype) result = Handle(atype)::DownCast(start)
#define Handle(Class)
Define Handle() macro.
Definition Standard_Handle.hxx:403

◆ FastCast

#define FastCast ( atype,
result,
start )
Value:
Handle(atype) result; \
result = (*(Handle(atype)*)) & start

◆ GetCasted

#define GetCasted ( atype,
start )
Value:
Handle(atype)::DownCast(start)