📄 swarm.objectbase.probe.protocol.html
字号:
<HTML><HEAD><TITLE>Probe</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.53"><LINKREL="HOME"TITLE="Documentation Set for Swarm 2.1.1"HREF="set.html"><LINKREL="UP"TITLE="Objectbase Library"HREF="swarm.objectbase.sgml.reference.html"><LINKREL="PREVIOUS"TITLE="MessageProbe"HREF="swarm.objectbase.messageprobe.protocol.html"><LINKREL="NEXT"TITLE="ProbeConfig"HREF="swarm.objectbase.probeconfig.protocol.html"></HEAD><BODYCLASS="REFENTRY"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Documentation Set for Swarm 2.1.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="swarm.objectbase.messageprobe.protocol.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Reference IV. Objectbase Library</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="swarm.objectbase.probeconfig.protocol.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SWARM.OBJECTBASE.PROBE.PROTOCOL">Probe</A></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN11948"></A><H2>Name</H2>Probe -- An abstract superclass of both VarProbe and MessageProbe.</DIV><DIVCLASS="REFSECT1"><ANAME="AEN11951"></A><H2>Description</H2><P> A Probe is simply an object that contains pointers to an element (instance variable or message description) of another object. The Probe contains instance variables that describe the referent's class and type. It's actually an abstract class that is further subdivided into VarProbe and MessageProbe, which represent the two basic types of elements of any object. The Probes are collected into a ProbeMap and subsequently installed in the ProbeLibrary. </P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN11954"></A><H2>Protocols adopted by Probe</H2><P> <AHREF="swarm.objectbase.swarmobject.protocol.html">SwarmObject</A> <AHREF="swarm.objectbase.probeconfig.protocol.html">ProbeConfig</A></P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN11959"></A><H2>Methods</H2><DIVCLASS="REFSECT2"><ANAME="AEN11961"></A><H3>Phase: Creating</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBE.METHOD.PC.M832"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setProbedClass:</B> (Class)<VARCLASS="PDPARAM">class</VAR> <BR> The setProbedClass: method sets the class of the object the probe points at and must be called at create time.<P></P></DIV></LI></UL></DIV><DIVCLASS="REFSECT2"><ANAME="AEN11973"></A><H3>Phase: Setting</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBE.METHOD.PS.M848"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setSafety</B><BR> The setSafety method turns on the option of checking the compatibility of the class of the object before any actions are performed on the object. <P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBE.METHOD.PS.M934"></A><P></P>- <BCLASS="FUNCPROTOTYPE">unsetSafety</B><BR> The unsetSafety method turns off the option of checking the compatibility of the class of the object before any actions are performed on the object.<P></P></DIV></LI></UL></DIV><DIVCLASS="REFSECT2"><ANAME="AEN11992"></A><H3>Phase: Using</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBE.METHOD.PU.M197"></A><P></P>- <BCLASS="FUNCPROTOTYPE">clone:</B> (id <Zone>)<VARCLASS="PDPARAM">aZone</VAR> <BR> The clone: method returns a clone of the probe. If the initial probe was created by Library Generation or by the default version of Object generation, the probe should be cloned prior to making changes to it to avoid having the changes affect the other potential users of the probe.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBE.METHOD.PU.M463"></A><P></P>- (Class)<BCLASS="FUNCPROTOTYPE">getProbedClass</B><BR> The getProbedClass method returns the class of the object the probe points at as a Class pointer.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBE.METHOD.PU.M466"></A><P></P>- (const char *)<BCLASS="FUNCPROTOTYPE">getProbedType</B><BR> The getProbedType method returns the typing of the probed variable or message. The typing is represented using the string-format provided by the Objective-C runtime system.<P></P></DIV></LI></UL></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="swarm.objectbase.messageprobe.protocol.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="set.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="swarm.objectbase.probeconfig.protocol.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">MessageProbe</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.objectbase.sgml.reference.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">ProbeConfig</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -