Class HostFunctionDescription

Inheritance Relationships

Base Type

Class Documentation

class HostFunctionDescription : public DependencyNode

Within the model hierarchy, this class represents a host function for a FLAMEGPU model

Public Functions

HostFunctionDescription(std::string host_function_name, FLAMEGPU_HOST_FUNCTION_POINTER host_function)

Constructors

HostFunctionDescription(std::string host_function_name, HostFunctionCallback *func_callback)
bool operator==(const HostFunctionDescription &rhs) const

Equality operator, checks whether HostFunctionDescription hierarchies are functionally the same

Note

Instead compare pointers if you wish to check that they are the same instance

Returns

True when agent functions are the same

bool operator!=(const HostFunctionDescription &rhs) const

Equality operator, checks whether HostFunctionDescription hierarchies are functionally different

Note

Instead compare pointers if you wish to check that they are not the same instance

Returns

True when agent functions are not the same

FLAMEGPU_HOST_FUNCTION_POINTER getFunctionPtr() const
Returns

The cuda kernel entry point for executing the agent function

HostFunctionCallback *getCallbackObject()
std::string getName()

Accessors