go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Data Structures | Namespaces | Macros
itkOpenCLMacro.h File Reference
#include "itkMacro.h"
#include "itkOpenCLExport.h"
#include <string>
#include <sstream>
+ Include dependency graph for itkOpenCLMacro.h:

Go to the source code of this file.

Data Structures

class  itk::OpenCLCompileError
 

Namespaces

namespace  itk
 

Macros

#define itkOpenCLDebugMacro(x)    itkOpenCLDebugWithObjectMacro( this, x )
 
#define itkOpenCLDebugMacroGeneric(x)
 
#define itkOpenCLDebugWithObjectMacro(self, x)
 
#define itkOpenCLErrorMacro(x)    itkOpenCLErrorWithObjectMacro( this, x )
 
#define itkOpenCLErrorMacroGeneric(x)
 
#define itkOpenCLErrorWithObjectMacro(self, x)
 
#define itkOpenCLWarningMacro(x)    itkOpenCLWarningWithObjectMacro( this, x )
 
#define itkOpenCLWarningMacroGeneric(x)
 
#define itkOpenCLWarningWithObjectMacro(self, x)
 

Macro Definition Documentation

◆ itkOpenCLDebugMacro

#define itkOpenCLDebugMacro (   x)     itkOpenCLDebugWithObjectMacro( this, x )

itkOpenCLMacro.h defines standard OpenCL macros, constants, and other parameters. Macros are available for built-in types; for string classes; vector arrays; object pointers; and debug, warning, and error printout information. This macro is used to print out debug message to the current message handler in instance methods itkOpenCLDebugMacro(<< "Debug message" << this->SomeVariable);

Definition at line 37 of file itkOpenCLMacro.h.

◆ itkOpenCLDebugMacroGeneric

#define itkOpenCLDebugMacroGeneric (   x)
Value:
{ \
std::stringstream itkmsg; \
itkmsg << __FILE__ \
<< "(" << __LINE__ << "): itkOpenCL generic debug." \
<< "\nDebug: in function: " << __FUNCTION__ \
<< "\nDetails: " x << "\n\n"; \
::itk::OutputWindowDisplayDebugText( itkmsg.str().c_str() ); \
}

This macro is used to print out debug message to the current message handler in main() function or generic functions itkOpenCLDebugMacroGeneric(<< "Debug message generic" << SomeVariable);

Definition at line 55 of file itkOpenCLMacro.h.

◆ itkOpenCLDebugWithObjectMacro

#define itkOpenCLDebugWithObjectMacro (   self,
 
)
Value:
{ \
std::stringstream itkmsg; \
itkmsg << __FILE__ \
<< "(" << __LINE__ << "): itkOpenCL debug." \
<< "\nDebug: in function: " << __FUNCTION__ \
<< "; Name: " << self->GetNameOfClass() << " (" << self << ")" \
<< "\nDetails: " x << "\n\n"; \
::itk::OutputWindowDisplayDebugText( itkmsg.str().c_str() ); \
}

This macro is used to print out debug statements. For example:

itkOpenCLDebugWithObjectMacro(self, "Debug message" << variable);
#define itkOpenCLDebugWithObjectMacro(self, x)

File and line information will be printed in Visual Studio format.

See also
itkOpenCLWarningWithObjectMacro(), itkOpenCLErrorWithObjectMacro()

Definition at line 97 of file itkOpenCLMacro.h.

◆ itkOpenCLErrorMacro

#define itkOpenCLErrorMacro (   x)     itkOpenCLErrorWithObjectMacro( this, x )

This macro is used to print out error message to the current message handler in instance methods itkOpenCLErrorMacro(<< "Error message" << this->SomeVariable);

Definition at line 49 of file itkOpenCLMacro.h.

◆ itkOpenCLErrorMacroGeneric

#define itkOpenCLErrorMacroGeneric (   x)
Value:
{ \
std::stringstream itkmsg; \
itkmsg << __FILE__ \
<< "(" << __LINE__ << "): itkOpenCL generic error." \
<< "\nError: in function: " << __FUNCTION__ \
<< "\nDetails: " x << "\n\n"; \
::itk::OutputWindowDisplayErrorText( itkmsg.str().c_str() ); \
}

This macro is used to print out error message to the current message handler in main() function or generic functions itkOpenCLErrorMacroGeneric(<< "Error message generic" << SomeVariable);

Definition at line 81 of file itkOpenCLMacro.h.

◆ itkOpenCLErrorWithObjectMacro

#define itkOpenCLErrorWithObjectMacro (   self,
 
)
Value:
{ \
std::stringstream itkmsg; \
itkmsg << __FILE__ \
<< "(" << __LINE__ << "): itkOpenCL error." \
<< "\nError: in function: " << __FUNCTION__ \
<< "; Name: " << self->GetNameOfClass() << " (" << self << ")" \
<< "\nDetails: " x << "\n\n"; \
::itk::OutputWindowDisplayErrorText( itkmsg.str().c_str() ); \
}

This macro is used to print out errors. For example:

itkOpenCLErrorWithObjectMacro(self, "Error message" << variable);
#define itkOpenCLErrorWithObjectMacro(self, x)

File and line information will be printed in Visual Studio format.

See also
itkOpenCLWarningWithObjectMacro(), itkOpenCLDebugWithObjectMacro()

Definition at line 131 of file itkOpenCLMacro.h.

◆ itkOpenCLWarningMacro

#define itkOpenCLWarningMacro (   x)     itkOpenCLWarningWithObjectMacro( this, x )

This macro is used to print out warning message to the current message handler in instance methods itkOpenCLWarningMacro(<< "Warning message" << this->SomeVariable);

Definition at line 43 of file itkOpenCLMacro.h.

◆ itkOpenCLWarningMacroGeneric

#define itkOpenCLWarningMacroGeneric (   x)
Value:
{ \
std::stringstream itkmsg; \
itkmsg << __FILE__ \
<< "(" << __LINE__ << "): itkOpenCL generic warning." \
<< "\nWarning: in function: " << __FUNCTION__ \
<< "\nDetails: " x << "\n\n"; \
::itk::OutputWindowDisplayWarningText( itkmsg.str().c_str() ); \
}

This macro is used to print out warning message to the current message handler in main() function or generic functions itkOpenCLWarningMacroGeneric(<< "Warning message generic" << SomeVariable);

Definition at line 68 of file itkOpenCLMacro.h.

◆ itkOpenCLWarningWithObjectMacro

#define itkOpenCLWarningWithObjectMacro (   self,
 
)
Value:
{ \
std::stringstream itkmsg; \
itkmsg << __FILE__ \
<< "(" << __LINE__ << "): itkOpenCL warning." \
<< "\nWarning: in function: " << __FUNCTION__ \
<< "; Name: " << self->GetNameOfClass() << " (" << self << ")" \
<< "\nDetails: " x << "\n\n"; \
::itk::OutputWindowDisplayWarningText( itkmsg.str().c_str() ); \
}

This macro is used to print out warnings. For example:

itkOpenCLWarningWithObjectMacro(self, "Warning message" << variable);
#define itkOpenCLWarningWithObjectMacro(self, x)

File and line information will be printed in Visual Studio format.

See also
itkOpenCLDebugWithObjectMacro(), itkOpenCLErrorWithObjectMacro()

Definition at line 114 of file itkOpenCLMacro.h.



Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo