Open CASCADE Technology  7.2.0
Macros
MoniTool_Macros.hxx File Reference

Macros

#define GetCasted(atype, start)   Handle(atype)::DownCast(start)
 
#define DeclareAndCast(atype, result, start)   Handle(atype) result = Handle(atype)::DownCast(start)
 
#define FastCast(atype, result, start)   Handle(atype) result; result = (*(Handle(atype)*))& start
 

Macro Definition Documentation

◆ DeclareAndCast

#define DeclareAndCast (   atype,
  result,
  start 
)    Handle(atype) result = Handle(atype)::DownCast(start)

◆ FastCast

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

◆ GetCasted

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