classdef (Hidden = true, Abstract) BaseAdaptor < handle & matlab.mixin.Heterogeneous
% BaseAdaptor - Adaptor class from a coder.descriptor. object to 
% to a RTW. object.
% This is an interface class to be used as super class for other adapters.
%
%   This is an undocumented class. Its methods and properties are likely to
%   change without warning from one release to the next.

%   Copyright 2018-2019 The MathWorks, Inc.
    
    properties (Access = protected)
        CodeDescObj;
    end
    
    methods (Sealed)
        function result = isa(this, aClass)
            % forward isa call to the CodeDescObj
            
            % 'this' can be an array, call isa on each CodeDescObj object  
            isaObj = false(1, numel(this));
            for idx = 1:numel(this)
                isaObj(idx) = isa(this(idx).CodeDescObj, aClass);
            end
            result = all(isaObj);
        end
    end
    
end
