Function: eieio-singleton--eieio-childp

eieio-singleton--eieio-childp is a byte-compiled function defined in eieio-base.el.gz.

Signature

(eieio-singleton--eieio-childp OBJ)

Documentation

Return non-nil if OBJ is an object of type eieio-singleton(var)/eieio-singleton(fun) or a subclass.

Aliases

eieio-singleton-child-p (obsolete since 25.1)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio-base.el.gz
;;; eieio-singleton
;;
;; The singleton Design Pattern specifies that there is but one object
;; of a given class ever created.  The EIEIO singleton base class defines
;; a CLASS allocated slot which contains the instance used.  All calls to
;; `make-instance' will either create a new instance and store it in this
;; slot, or it will just return what is there.
(defclass eieio-singleton ()
  ((singleton :type eieio-singleton
	      :allocation :class
	      :documentation
	      "The only instance of this class that will be instantiated.
Multiple calls to `make-instance' will return this object."))
  "This special class causes subclasses to be singletons.
A singleton is a class which will only ever have one instance."
  :abstract t)