首页> 外文OA文献 >User-defined Types and Procedural Data Structures as Complementary Approaches to Data Abstraction
【2h】

User-defined Types and Procedural Data Structures as Complementary Approaches to Data Abstraction

机译:用户定义的类型和过程数据结构作为数据抽象的补充方法

摘要

User-defined types (or modes) and procedural (or functional) data structures are complementary methods for data abstraction, each providing a capability lacked by the other. With user-defined types, all information about the representation of a particular kind of data is centralized in a type definition and hidden from the rest of the program. With procedural data structures, each part of the program which creates data can specify its own representation, independently of any representations used elsewhere for the same kind of data. However, this decentralization of the description of data is achieved at the cost of prohibiting primitive operations from accessing the representations of more than one data item. The contract between these approaches is illustrated by a simple example.
机译:用户定义的类型(或模式)和过程(或功能)数据结构是数据抽象的补充方法,每种方法都提供了彼此所缺乏的功能。对于用户定义的类型,有关特定类型数据表示的所有信息都集中在类型定义中,并在程序的其余部分中隐藏。使用过程数据结构,程序中创建数据的每个部分都可以指定自己的表示形式,而与其他地方用于相同类型数据的表示形式无关。但是,这种数据描述的分散性是以禁止原始操作访问一个以上数据项的表示为代价的。这些方法之间的契约通过一个简单的例子说明。

著录项

  • 作者

    Reynolds John C;

  • 作者单位
  • 年度 1975
  • 总页数
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号