Object graph

Object graph

1In an object-oriented program, groups of objects form a network through their relationships with each other—either through a direct reference to another object or through a chain of intermediate references. 

在面向对象的项目中,很多的对象通过关系跟其他对象形成了网络,要么通过直接的关系跟另一个对象建立联系,要么通过中间的关系。

2These groups of objects are referred to as object graphs. Object graphs may be small or large, simple or complex. An array object that contains a single string object represents a small, simple object graph.

这些对象组成的群体被称为对象图表,对象图表可小可大,可简单可复杂,一个包含字符串对象的数组对象就代表一个小的、简单的对象图表。

3A group of objects containing an application object, with references to the windows, menus and their views, and other supporting objects, may represent a large, complex object graph.

一组包含应用对象的群组对象,这些对象跟窗口、菜单、视图以及其他支持的对象建立联系,这个也许可以代表一个复杂的对象图表。

4Sometimes you may want to convert an object graph—usually just a section of the full object graph in the application—into a form that can be saved to a file or transmitted to another process or machine and then reconstructed. This process is known as archiving.

有时,也许你想要转换一个对象图表(这个图表通常是应用全部对象图表的一个章节)为一种能被保存进文件或者被传输到另一个程序、机器然后重构的格式,这个程序很熟悉的就是打包。

Some object graphs may be incomplete—these are often referred to as partial object graphs. Partial object graphs have placeholder objects that represent the boundaries of the graph and that may be filled in at a later stage. An example is a nib file that includes a placeholder for the File’s Owner.

5、一些对象图表可能不是完整的,这些通常指部分对象图表。部分对象图表有占位符对象,这些占位符对象代表图表的边界,在以后的更大阶段被填充,一个例子nib文件,就包含文件拥有者的一个占位符。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值