Open CASCADE Technology  7.1.0.beta
Macros
Interface_Statics.hxx File Reference

Macros

#define StaticHandle(type, var)   static struct type##_struc { Handle(type) H; } *var##_s = NULL
 
#define StaticHandleA(type, var)   static struct type##_struc *var##_s = NULL
 
#define UseHandle(type, var)   Handle(type)& var = var##_s->H
 
#define InitHandle(type, var)
 
#define InitHandleVoid(type, var)
 
#define InitHandleArgs(type, var, args)
 
#define InitHandleVal(type, var, value)
 

Macro Definition Documentation

#define InitHandle (   type,
  var 
)
Value:
if(!var##_s) { var##_s=new type##_struc; }\
Handle(type)& var = var##_s->H;
#define Handle(Class)
Define Handle() macro.
Definition: Standard_Handle.hxx:398
#define InitHandleArgs (   type,
  var,
  args 
)
Value:
if(!var##_s) { var##_s=new type##_struc; var##_s->H=new type args; }\
Handle(type)& var = var##_s->H;
#define Handle(Class)
Define Handle() macro.
Definition: Standard_Handle.hxx:398
#define InitHandleVal (   type,
  var,
  value 
)
Value:
if(!var##_s) { var##_s=new type##_struc; var##_s->H=value; }\
Handle(type)& var = var##_s->H;
#define Handle(Class)
Define Handle() macro.
Definition: Standard_Handle.hxx:398
#define InitHandleVoid (   type,
  var 
)
Value:
if(!var##_s) { var##_s=new type##_struc; var##_s->H=new type; }\
Handle(type)& var = var##_s->H;
#define Handle(Class)
Define Handle() macro.
Definition: Standard_Handle.hxx:398
#define StaticHandle (   type,
  var 
)    static struct type##_struc { Handle(type) H; } *var##_s = NULL
#define StaticHandleA (   type,
  var 
)    static struct type##_struc *var##_s = NULL
#define UseHandle (   type,
  var 
)    Handle(type)& var = var##_s->H