www.gusucode.com > bigdata 工具箱 matlab源码程序 > bigdata/+matlab/+bigdata/+internal/+lazyeval/KeyValueMapBroadcast.m

    %KeyValueMapBroadcast
% A broadcasted map from a set of keys to a set of values.
%
% This is used by splitapply when reduction within a group generates a
% single slice that through singleton expansion can be reused with the
% group.
%

% Copyright 2016 The MathWorks, Inc.

classdef KeyValueMapBroadcast < handle
    properties (SetAccess = immutable)
        % An array of slices that represent the keys.
        Keys
        
        % An array of slices that represent the values. Each value is
        % associated with one key.
        Values
    end
    
    methods
        % The main constructor.
        function obj = KeyValueMapBroadcast(keys, values)
            obj.Keys = keys;
            obj.Values = values;
        end
    end
end