VTK
Macros
vtkAutoInit.h File Reference
#include "vtkDebugLeaksManager.h"
#include "vtkTimeStamp.h"
Include dependency graph for vtkAutoInit.h:

Go to the source code of this file.

Macros

#define VTK_AUTOINIT(M)   VTK_AUTOINIT0(M,M##_AUTOINIT)
 
#define VTK_AUTOINIT0(M, T)   VTK_AUTOINIT1(M,T)
 
#define VTK_AUTOINIT1(M, T)
 
#define VTK_AUTOINIT_DECLARE_0()
 
#define VTK_AUTOINIT_DECLARE_1(t1)   VTK_AUTOINIT_DECLARE_0() VTK_AUTOINIT_DECLARE(t1)
 
#define VTK_AUTOINIT_DECLARE_2(t1, t2)   VTK_AUTOINIT_DECLARE_1(t1) VTK_AUTOINIT_DECLARE(t2)
 
#define VTK_AUTOINIT_DECLARE_3(t1, t2, t3)   VTK_AUTOINIT_DECLARE_2(t1,t2) VTK_AUTOINIT_DECLARE(t3)
 
#define VTK_AUTOINIT_DECLARE_4(t1, t2, t3, t4)   VTK_AUTOINIT_DECLARE_3(t1,t2,t3) VTK_AUTOINIT_DECLARE(t4)
 
#define VTK_AUTOINIT_DECLARE_5(t1, t2, t3, t4, t5)   VTK_AUTOINIT_DECLARE_4(t1,t2,t3,t4) VTK_AUTOINIT_DECLARE(t5)
 
#define VTK_AUTOINIT_DECLARE_6(t1, t2, t3, t4, t5, t6)   VTK_AUTOINIT_DECLARE_5(t1,t2,t3,t4,t5) VTK_AUTOINIT_DECLARE(t6)
 
#define VTK_AUTOINIT_DECLARE_7(t1, t2, t3, t4, t5, t6, t7)   VTK_AUTOINIT_DECLARE_6(t1,t2,t3,t4,t5,t6) VTK_AUTOINIT_DECLARE(t7)
 
#define VTK_AUTOINIT_DECLARE_8(t1, t2, t3, t4, t5, t6, t7, t8)   VTK_AUTOINIT_DECLARE_7(t1,t2,t3,t4,t5,t6,t7) VTK_AUTOINIT_DECLARE(t8)
 
#define VTK_AUTOINIT_DECLARE_9(t1, t2, t3, t4, t5, t6, t7, t8, t9)   VTK_AUTOINIT_DECLARE_8(t1,t2,t3,t4,t5,t6,t7,t8) VTK_AUTOINIT_DECLARE(t9)
 
#define VTK_AUTOINIT_DECLARE(M)
 
#define VTK_AUTOINIT_CONSTRUCT_0()
 
#define VTK_AUTOINIT_CONSTRUCT_1(t1)   VTK_AUTOINIT_CONSTRUCT_0() VTK_AUTOINIT_CONSTRUCT(t1)
 
#define VTK_AUTOINIT_CONSTRUCT_2(t1, t2)   VTK_AUTOINIT_CONSTRUCT_1(t1) VTK_AUTOINIT_CONSTRUCT(t2)
 
#define VTK_AUTOINIT_CONSTRUCT_3(t1, t2, t3)   VTK_AUTOINIT_CONSTRUCT_2(t1,t2) VTK_AUTOINIT_CONSTRUCT(t3)
 
#define VTK_AUTOINIT_CONSTRUCT_4(t1, t2, t3, t4)   VTK_AUTOINIT_CONSTRUCT_3(t1,t2,t3) VTK_AUTOINIT_CONSTRUCT(t4)
 
#define VTK_AUTOINIT_CONSTRUCT_5(t1, t2, t3, t4, t5)   VTK_AUTOINIT_CONSTRUCT_4(t1,t2,t3,t4) VTK_AUTOINIT_CONSTRUCT(t5)
 
#define VTK_AUTOINIT_CONSTRUCT_6(t1, t2, t3, t4, t5, t6)   VTK_AUTOINIT_CONSTRUCT_5(t1,t2,t3,t4,t5) VTK_AUTOINIT_CONSTRUCT(t6)
 
#define VTK_AUTOINIT_CONSTRUCT_7(t1, t2, t3, t4, t5, t6, t7)   VTK_AUTOINIT_CONSTRUCT_6(t1,t2,t3,t4,t5,t6) VTK_AUTOINIT_CONSTRUCT(t7)
 
#define VTK_AUTOINIT_CONSTRUCT_8(t1, t2, t3, t4, t5, t6, t7, t8)   VTK_AUTOINIT_CONSTRUCT_7(t1,t2,t3,t4,t5,t6,t7) VTK_AUTOINIT_CONSTRUCT(t8)
 
#define VTK_AUTOINIT_CONSTRUCT_9(t1, t2, t3, t4, t5, t6, t7, t8, t9)   VTK_AUTOINIT_CONSTRUCT_8(t1,t2,t3,t4,t5,t6,t7,t8) VTK_AUTOINIT_CONSTRUCT(t9)
 
#define VTK_AUTOINIT_CONSTRUCT(M)   M##_AutoInit_Construct();
 
#define VTK_AUTOINIT_DESTRUCT_0()
 
#define VTK_AUTOINIT_DESTRUCT_1(t1)   VTK_AUTOINIT_DESTRUCT_0() VTK_AUTOINIT_DESTRUCT(t1)
 
#define VTK_AUTOINIT_DESTRUCT_2(t1, t2)   VTK_AUTOINIT_DESTRUCT_1(t1) VTK_AUTOINIT_DESTRUCT(t2)
 
#define VTK_AUTOINIT_DESTRUCT_3(t1, t2, t3)   VTK_AUTOINIT_DESTRUCT_2(t1,t2) VTK_AUTOINIT_DESTRUCT(t3)
 
#define VTK_AUTOINIT_DESTRUCT_4(t1, t2, t3, t4)   VTK_AUTOINIT_DESTRUCT_3(t1,t2,t3) VTK_AUTOINIT_DESTRUCT(t4)
 
#define VTK_AUTOINIT_DESTRUCT_5(t1, t2, t3, t4, t5)   VTK_AUTOINIT_DESTRUCT_4(t1,t2,t3,t4) VTK_AUTOINIT_DESTRUCT(t5)
 
#define VTK_AUTOINIT_DESTRUCT_6(t1, t2, t3, t4, t5, t6)   VTK_AUTOINIT_DESTRUCT_5(t1,t2,t3,t4,t5) VTK_AUTOINIT_DESTRUCT(t6)
 
#define VTK_AUTOINIT_DESTRUCT_7(t1, t2, t3, t4, t5, t6, t7)   VTK_AUTOINIT_DESTRUCT_6(t1,t2,t3,t4,t5,t6) VTK_AUTOINIT_DESTRUCT(t7)
 
#define VTK_AUTOINIT_DESTRUCT_8(t1, t2, t3, t4, t5, t6, t7, t8)   VTK_AUTOINIT_DESTRUCT_7(t1,t2,t3,t4,t5,t6,t7) VTK_AUTOINIT_DESTRUCT(t8)
 
#define VTK_AUTOINIT_DESTRUCT_9(t1, t2, t3, t4, t5, t6, t7, t8, t9)   VTK_AUTOINIT_DESTRUCT_8(t1,t2,t3,t4,t5,t6,t7,t8) VTK_AUTOINIT_DESTRUCT(t9)
 
#define VTK_AUTOINIT_DESTRUCT(M)   M##_AutoInit_Destruct();
 
#define VTK_MODULE_INIT(M)
 

Macro Definition Documentation

#define VTK_AUTOINIT (   M)    VTK_AUTOINIT0(M,M##_AUTOINIT)

Definition at line 21 of file vtkAutoInit.h.

#define VTK_AUTOINIT0 (   M,
 
)    VTK_AUTOINIT1(M,T)

Definition at line 22 of file vtkAutoInit.h.

#define VTK_AUTOINIT1 (   M,
 
)
Value:
/* Declare every <mod>_AutoInit_(Construct|Destruct) function. */ \
VTK_AUTOINIT_DECLARE_##T \
static struct M##_AutoInit { \
/* Call every <mod>_AutoInit_Construct during initialization. */ \
M##_AutoInit() { VTK_AUTOINIT_CONSTRUCT_##T } \
/* Call every <mod>_AutoInit_Destruct during finalization. */ \
~M##_AutoInit() { VTK_AUTOINIT_DESTRUCT_##T } \
} M##_AutoInit_Instance;

Definition at line 23 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DECLARE_0 ( )

Definition at line 33 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DECLARE_1 (   t1)    VTK_AUTOINIT_DECLARE_0() VTK_AUTOINIT_DECLARE(t1)

Definition at line 34 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DECLARE_2 (   t1,
  t2 
)    VTK_AUTOINIT_DECLARE_1(t1) VTK_AUTOINIT_DECLARE(t2)

Definition at line 35 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DECLARE_3 (   t1,
  t2,
  t3 
)    VTK_AUTOINIT_DECLARE_2(t1,t2) VTK_AUTOINIT_DECLARE(t3)

Definition at line 36 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DECLARE_4 (   t1,
  t2,
  t3,
  t4 
)    VTK_AUTOINIT_DECLARE_3(t1,t2,t3) VTK_AUTOINIT_DECLARE(t4)

Definition at line 37 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DECLARE_5 (   t1,
  t2,
  t3,
  t4,
  t5 
)    VTK_AUTOINIT_DECLARE_4(t1,t2,t3,t4) VTK_AUTOINIT_DECLARE(t5)

Definition at line 38 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DECLARE_6 (   t1,
  t2,
  t3,
  t4,
  t5,
  t6 
)    VTK_AUTOINIT_DECLARE_5(t1,t2,t3,t4,t5) VTK_AUTOINIT_DECLARE(t6)

Definition at line 39 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DECLARE_7 (   t1,
  t2,
  t3,
  t4,
  t5,
  t6,
  t7 
)    VTK_AUTOINIT_DECLARE_6(t1,t2,t3,t4,t5,t6) VTK_AUTOINIT_DECLARE(t7)

Definition at line 40 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DECLARE_8 (   t1,
  t2,
  t3,
  t4,
  t5,
  t6,
  t7,
  t8 
)    VTK_AUTOINIT_DECLARE_7(t1,t2,t3,t4,t5,t6,t7) VTK_AUTOINIT_DECLARE(t8)

Definition at line 41 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DECLARE_9 (   t1,
  t2,
  t3,
  t4,
  t5,
  t6,
  t7,
  t8,
  t9 
)    VTK_AUTOINIT_DECLARE_8(t1,t2,t3,t4,t5,t6,t7,t8) VTK_AUTOINIT_DECLARE(t9)

Definition at line 42 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DECLARE (   M)
Value:
void M##_AutoInit_Construct(); \
void M##_AutoInit_Destruct();

Definition at line 43 of file vtkAutoInit.h.

#define VTK_AUTOINIT_CONSTRUCT_0 ( )

Definition at line 47 of file vtkAutoInit.h.

#define VTK_AUTOINIT_CONSTRUCT_1 (   t1)    VTK_AUTOINIT_CONSTRUCT_0() VTK_AUTOINIT_CONSTRUCT(t1)

Definition at line 48 of file vtkAutoInit.h.

#define VTK_AUTOINIT_CONSTRUCT_2 (   t1,
  t2 
)    VTK_AUTOINIT_CONSTRUCT_1(t1) VTK_AUTOINIT_CONSTRUCT(t2)

Definition at line 49 of file vtkAutoInit.h.

#define VTK_AUTOINIT_CONSTRUCT_3 (   t1,
  t2,
  t3 
)    VTK_AUTOINIT_CONSTRUCT_2(t1,t2) VTK_AUTOINIT_CONSTRUCT(t3)

Definition at line 50 of file vtkAutoInit.h.

#define VTK_AUTOINIT_CONSTRUCT_4 (   t1,
  t2,
  t3,
  t4 
)    VTK_AUTOINIT_CONSTRUCT_3(t1,t2,t3) VTK_AUTOINIT_CONSTRUCT(t4)

Definition at line 51 of file vtkAutoInit.h.

#define VTK_AUTOINIT_CONSTRUCT_5 (   t1,
  t2,
  t3,
  t4,
  t5 
)    VTK_AUTOINIT_CONSTRUCT_4(t1,t2,t3,t4) VTK_AUTOINIT_CONSTRUCT(t5)

Definition at line 52 of file vtkAutoInit.h.

#define VTK_AUTOINIT_CONSTRUCT_6 (   t1,
  t2,
  t3,
  t4,
  t5,
  t6 
)    VTK_AUTOINIT_CONSTRUCT_5(t1,t2,t3,t4,t5) VTK_AUTOINIT_CONSTRUCT(t6)

Definition at line 53 of file vtkAutoInit.h.

#define VTK_AUTOINIT_CONSTRUCT_7 (   t1,
  t2,
  t3,
  t4,
  t5,
  t6,
  t7 
)    VTK_AUTOINIT_CONSTRUCT_6(t1,t2,t3,t4,t5,t6) VTK_AUTOINIT_CONSTRUCT(t7)

Definition at line 54 of file vtkAutoInit.h.

#define VTK_AUTOINIT_CONSTRUCT_8 (   t1,
  t2,
  t3,
  t4,
  t5,
  t6,
  t7,
  t8 
)    VTK_AUTOINIT_CONSTRUCT_7(t1,t2,t3,t4,t5,t6,t7) VTK_AUTOINIT_CONSTRUCT(t8)

Definition at line 55 of file vtkAutoInit.h.

#define VTK_AUTOINIT_CONSTRUCT_9 (   t1,
  t2,
  t3,
  t4,
  t5,
  t6,
  t7,
  t8,
  t9 
)    VTK_AUTOINIT_CONSTRUCT_8(t1,t2,t3,t4,t5,t6,t7,t8) VTK_AUTOINIT_CONSTRUCT(t9)

Definition at line 56 of file vtkAutoInit.h.

#define VTK_AUTOINIT_CONSTRUCT (   M)    M##_AutoInit_Construct();

Definition at line 57 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DESTRUCT_0 ( )

Definition at line 60 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DESTRUCT_1 (   t1)    VTK_AUTOINIT_DESTRUCT_0() VTK_AUTOINIT_DESTRUCT(t1)

Definition at line 61 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DESTRUCT_2 (   t1,
  t2 
)    VTK_AUTOINIT_DESTRUCT_1(t1) VTK_AUTOINIT_DESTRUCT(t2)

Definition at line 62 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DESTRUCT_3 (   t1,
  t2,
  t3 
)    VTK_AUTOINIT_DESTRUCT_2(t1,t2) VTK_AUTOINIT_DESTRUCT(t3)

Definition at line 63 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DESTRUCT_4 (   t1,
  t2,
  t3,
  t4 
)    VTK_AUTOINIT_DESTRUCT_3(t1,t2,t3) VTK_AUTOINIT_DESTRUCT(t4)

Definition at line 64 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DESTRUCT_5 (   t1,
  t2,
  t3,
  t4,
  t5 
)    VTK_AUTOINIT_DESTRUCT_4(t1,t2,t3,t4) VTK_AUTOINIT_DESTRUCT(t5)

Definition at line 65 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DESTRUCT_6 (   t1,
  t2,
  t3,
  t4,
  t5,
  t6 
)    VTK_AUTOINIT_DESTRUCT_5(t1,t2,t3,t4,t5) VTK_AUTOINIT_DESTRUCT(t6)

Definition at line 66 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DESTRUCT_7 (   t1,
  t2,
  t3,
  t4,
  t5,
  t6,
  t7 
)    VTK_AUTOINIT_DESTRUCT_6(t1,t2,t3,t4,t5,t6) VTK_AUTOINIT_DESTRUCT(t7)

Definition at line 67 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DESTRUCT_8 (   t1,
  t2,
  t3,
  t4,
  t5,
  t6,
  t7,
  t8 
)    VTK_AUTOINIT_DESTRUCT_7(t1,t2,t3,t4,t5,t6,t7) VTK_AUTOINIT_DESTRUCT(t8)

Definition at line 68 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DESTRUCT_9 (   t1,
  t2,
  t3,
  t4,
  t5,
  t6,
  t7,
  t8,
  t9 
)    VTK_AUTOINIT_DESTRUCT_8(t1,t2,t3,t4,t5,t6,t7,t8) VTK_AUTOINIT_DESTRUCT(t9)

Definition at line 69 of file vtkAutoInit.h.

#define VTK_AUTOINIT_DESTRUCT (   M)    M##_AutoInit_Destruct();

Definition at line 70 of file vtkAutoInit.h.

#define VTK_MODULE_INIT (   M)
Value:
static struct M##_ModuleInit { \
/* Call <mod>_AutoInit_Construct during initialization. */ \
M##_ModuleInit() { VTK_AUTOINIT_CONSTRUCT(M) } \
/* Call <mod>_AutoInit_Destruct during finalization. */ \
~M##_ModuleInit() { VTK_AUTOINIT_DESTRUCT(M) } \
} M##_ModuleInit_Instance;
#define VTK_AUTOINIT_DESTRUCT(M)
Definition: vtkAutoInit.h:70
#define VTK_AUTOINIT_DECLARE(M)
Definition: vtkAutoInit.h:43
#define VTK_AUTOINIT_CONSTRUCT(M)
Definition: vtkAutoInit.h:57

Definition at line 86 of file vtkAutoInit.h.