The cl-mop Reference Manual

This is the cl-mop Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 05:10:42 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 cl-mop

Simple, portable tools for dealing with CLOS objects.

Author

Inaimathi <>

License

Expat (MIT-style)

Source

cl-mop.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


3.1 Lisp


3.1.1 cl-mop/cl-mop.asd

Source

cl-mop.asd.

Parent Component

cl-mop (system).

ASDF Systems

cl-mop.


3.1.2 cl-mop/package.lisp

Source

cl-mop.asd.

Parent Component

cl-mop (system).

Packages

cl-mop.


3.1.3 cl-mop/cl-mop.lisp

Dependency

package.lisp (file).

Source

cl-mop.asd.

Parent Component

cl-mop (system).

Public Interface

4 Packages

Packages are listed by definition order.


4.1 cl-mop

Source

package.lisp.

Use List

common-lisp.

Public Interface

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


5.1 Public Interface


5.1.1 Generic functions

Generic Function: deep-copy (object)

Does a general deep-copy on the given object and sub-pieces.
Returns atoms, numbers and chars.
Runs copy-tree on lists, and copy-seq on other sequences.
Runs copy-structure on pathnames, hash tables and other structure-objects

Package

cl-mop.

Source

cl-mop.lisp.

Methods
Method: deep-copy ((object structure-object))

A deep copy of a structure-object is (copy-structure object).

Method: deep-copy ((object list))

A deep copy of a list is (copy-tree list)

Method: deep-copy ((object sequence))

A deep copy of a general sequence is merely (copy-seq sequence).

Method: deep-copy ((object standard-object))

The default deep copy specializes on STANDARD-OBJECT. It takes an object and returns a deep copy.

Method: deep-copy (object)

The default unspecialized case should only catch atoms, numbers and characters. It merely returns its results.

Generic Function: map-slots (function instance)

Takes a binary function and an instance.
Returns the sequence resulting from calling the function on each bound (slot-name slot-value) of instance

Package

cl-mop.

Source

cl-mop.lisp.

Methods
Method: map-slots ((fn function) (instance standard-object))

The default case of map-slots specializes on STANDARD-OBJECT.

Method: map-slots ((fn function) (instance error))
Generic Function: shallow-copy (object)

Provides a general shallow-copy function for CLOS objects. If you’ve got a special case, write a new defmethod.

Package

cl-mop.

Source

cl-mop.lisp.

Methods
Method: shallow-copy ((object standard-object))

The default shallow copy specializes on STANDARD-OBJECT. It takes an object and returns a shallow copy.

Generic Function: slot-names (object)
Package

cl-mop.

Methods
Method: slot-names ((class standard-class))
Source

cl-mop.lisp.

Method: slot-names ((object standard-object))
Source

cl-mop.lisp.

Method: slot-names ((object error))
Source

cl-mop.lisp.

Generic Function: to-alist (instance)
Package

cl-mop.

Methods
Method: to-alist ((instance standard-object))

Returns an assoc list of (k . v) pairs from the given instances’ slots and slot-values. This is meant to provide an easy way of showing

Source

cl-mop.lisp.

Method: to-alist ((instance error))
Source

cl-mop.lisp.


Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   D   G   M   S   T  
Index Entry  Section

D
deep-copy: Public generic functions
deep-copy: Public generic functions
deep-copy: Public generic functions
deep-copy: Public generic functions
deep-copy: Public generic functions
deep-copy: Public generic functions

G
Generic Function, deep-copy: Public generic functions
Generic Function, map-slots: Public generic functions
Generic Function, shallow-copy: Public generic functions
Generic Function, slot-names: Public generic functions
Generic Function, to-alist: Public generic functions

M
map-slots: Public generic functions
map-slots: Public generic functions
map-slots: Public generic functions
Method, deep-copy: Public generic functions
Method, deep-copy: Public generic functions
Method, deep-copy: Public generic functions
Method, deep-copy: Public generic functions
Method, deep-copy: Public generic functions
Method, map-slots: Public generic functions
Method, map-slots: Public generic functions
Method, shallow-copy: Public generic functions
Method, slot-names: Public generic functions
Method, slot-names: Public generic functions
Method, slot-names: Public generic functions
Method, to-alist: Public generic functions
Method, to-alist: Public generic functions

S
shallow-copy: Public generic functions
shallow-copy: Public generic functions
slot-names: Public generic functions
slot-names: Public generic functions
slot-names: Public generic functions
slot-names: Public generic functions

T
to-alist: Public generic functions
to-alist: Public generic functions
to-alist: Public generic functions


A.3 Variables