OpenMM
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends
KernelImpl Class Reference

A KernelImpl defines the internal implementation of a Kernel object. More...

#include <KernelImpl.h>

Public Member Functions

 KernelImpl (std::string name, const Platform &platform)
 Create a KernelImpl.
 
virtual ~KernelImpl ()
 
std::string getName () const
 Get the name of this kernel.
 
const PlatformgetPlatform ()
 Get the Platform that created this KernelImpl.
 

Friends

class Kernel
 

Detailed Description

A KernelImpl defines the internal implementation of a Kernel object.

A subclass will typically declare an abstract execute() method which defines the API for executing the kernel. Other classes will in turn subclass it and provide concrete implementations of the execute() method.

Constructor & Destructor Documentation

KernelImpl ( std::string  name,
const Platform platform 
)

Create a KernelImpl.

Parameters
namethe name of the kernel to create
platformthe Platform that created this kernel
virtual ~KernelImpl ( )
inlinevirtual

Member Function Documentation

std::string getName ( ) const

Get the name of this kernel.

Referenced by Kernel::getName().

const Platform & getPlatform ( )

Get the Platform that created this KernelImpl.

Friends And Related Function Documentation

friend class Kernel
friend

The documentation for this class was generated from the following files: