% GPUDeviceEventData Event data for events fired by GPUDeviceManager.
%
%    parallel.gpu.GPUDeviceEventData properties:
%        DeviceIndex - Index of the GPU device that was selected or deselected
%
%    See also parallel.gpu.GPUDeviceManager.

% Copyright 2015 The MathWorks, Inc.
classdef GPUDeviceEventData < event.EventData
    properties (SetAccess = immutable)
        % This is the index of the GPU device that was either selected or deselected.
        DeviceIndex
    end
    methods (Access = ?parallel.gpu.GPUDeviceManager)
        function obj = GPUDeviceEventData(idx)
            obj.DeviceIndex = idx;
        end
    end
end
