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

 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

#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.

#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.

#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:

1 itkOpenCLDebugWithObjectMacro(self, "Debug message" << variable);

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

See also
itkOpenCLWarningWithObjectMacro(), itkOpenCLErrorWithObjectMacro()

Definition at line 97 of file itkOpenCLMacro.h.

#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.

#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.

#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:

1 itkOpenCLErrorWithObjectMacro(self, "Error message" << variable);

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

See also
itkOpenCLWarningWithObjectMacro(), itkOpenCLDebugWithObjectMacro()

Definition at line 131 of file itkOpenCLMacro.h.

#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.

#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.

#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:

1 itkOpenCLWarningWithObjectMacro(self, "Warning message" << variable);

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 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo