classdef  CodeGenerator < SwigRef
    %CODEGENERATOR Helper class for C code generation.
    %
    %
    %
    %Joel Andersson
    %
    %C++ includes: code_generator.hpp 
    %
  methods
    function this = swig_this(self)
      this = casadiMEX(3, self);
    end
    function self = CodeGenerator(varargin)
    %CODEGENERATOR Constructor.
    %
    %  new_obj = CODEGENERATOR()
    %
    %
    %
    %
      if nargin==1 && strcmp(class(varargin{1}),'SwigRef')
        if ~isnull(varargin{1})
          self.swigPtr = varargin{1}.swigPtr;
        end
      else
        tmp = casadiMEX(937, varargin{:});
        self.swigPtr = tmp.swigPtr;
        tmp.SwigClear();
      end
    end
    function varargout = add(self,varargin)
    %ADD Add a function (name generated)
    %
    %  ADD(self, Function f, bool with_jac_sparsity)
    %
    %
    %
    %
      [varargout{1:nargout}] = casadiMEX(938, self, varargin{:});
    end
    function varargout = dump(self,varargin)
    %DUMP Generate a file, return code as string.
    %
    %  char = DUMP(self)
    %
    %
    %
    %
      [varargout{1:nargout}] = casadiMEX(939, self, varargin{:});
    end
    function varargout = generate(self,varargin)
    %GENERATE Generate file(s) The "prefix" argument will be prepended to the generated
    %
    %  char = GENERATE(self, char prefix)
    %
    %files and may be a directory or a file prefix. returns the filename.
    %
    %
    %
      [varargout{1:nargout}] = casadiMEX(940, self, varargin{:});
    end
    function varargout = add_include(self,varargin)
    %ADD_INCLUDE Add an include file optionally using a relative path "..." instead of an
    %
    %  ADD_INCLUDE(self, char new_include, bool relative_path, char use_ifdef)
    %
    %absolute path <...>
    %
    %
    %
      [varargout{1:nargout}] = casadiMEX(941, self, varargin{:});
    end
    function delete(self)
        if self.swigPtr
          casadiMEX(942, self);
          self.SwigClear();
        end
    end
  end
  methods(Static)
  end
end
