Loading...
Searching...
No Matches
itkOpenCLUserEvent.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef itkOpenCLUserEvent_h
#define itkOpenCLUserEvent_h
#include "itkOpenCLEvent.h"
namespace itk
{
// Forward declaration
class OpenCLContext;
class ITKOpenCL_EXPORT OpenCLUserEvent : public OpenCLEvent
{
public:
using Self = OpenCLUserEvent;
OpenCLUserEvent()
: OpenCLEvent()
{}
OpenCLUserEvent(cl_event id);
OpenCLUserEvent(const OpenCLEvent & other);
OpenCLUserEvent &
operator=(const OpenCLEvent & other);
void
SetComplete();
void
SetStatus(const cl_int status);
private:
void
ReleaseIfNotUserEvent();
// Used by OpenCLContext::CreateUserEvent() to avoid ReleaseIfNotUserEvent().
OpenCLUserEvent(cl_event id, bool)
: OpenCLEvent(id)
{}
friend class OpenCLContext;
};
} // end namespace itk
#endif /* itkOpenCLUserEvent_h */
itk::OpenCLContext
The OpenCLContext class represents an OpenCL context.
Definition itkOpenCLContext.h:77
itk::OpenCLEvent::OpenCLEvent
OpenCLEvent()
itk::OpenCLUserEvent::ReleaseIfNotUserEvent
void ReleaseIfNotUserEvent()
itk::OpenCLUserEvent::OpenCLUserEvent
OpenCLUserEvent(cl_event id, bool)
Definition itkOpenCLUserEvent.h:116
itk::OpenCLUserEvent::Self
OpenCLUserEvent Self
Definition itkOpenCLUserEvent.h:70
itk::OpenCLUserEvent::OpenCLContext
friend class OpenCLContext
Definition itkOpenCLUserEvent.h:121
itk::OpenCLUserEvent::SetComplete
void SetComplete()
itk::OpenCLUserEvent::operator=
OpenCLUserEvent & operator=(const OpenCLEvent &other)
itk::OpenCLUserEvent::OpenCLUserEvent
OpenCLUserEvent(cl_event id)
itk::OpenCLUserEvent::OpenCLUserEvent
OpenCLUserEvent()
Definition itkOpenCLUserEvent.h:73
itk::OpenCLUserEvent::SetStatus
void SetStatus(const cl_int status)
itk::OpenCLUserEvent::OpenCLUserEvent
OpenCLUserEvent(const OpenCLEvent &other)
itkOpenCLEvent.h
ITKOpenCL_EXPORT
#define ITKOpenCL_EXPORT
Definition itkOpenCLExport.h:33
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |