GObject对象系统(1) 介绍



Most modern programming languages come with their own native object systems and additional fundamental algorithmic language constructs. Just as GLib serves as an implementation of such fundamental types and algorithms (linked lists, hash tables and so forth), the GLib Object System provides the required implementations of a flexible, extensible, and intentionally easy to map (into other languages) object-oriented framework for C. The substantial elements that are provided can be summarized as:
大多数现代的编程语言拥有它们自己原生的面向对象系统,并在基础的语法层面上提供了对面向对象设计思想的支持。GLib为C语言提供了基础的数据结构,如链表、哈希表的实现,而GLib对象系统为C语言实现了一个灵活的、可扩展的、并且可以方便的绑定到其他语言的面向对象框架。GLib对象系统所实现的功能可以总结为以下几点:
  • A generic type system to register arbitrary single-inherited flat and deep derived types as well as interfaces for structured types. It takes care of creation, initialization and memory management of the assorted object and class structures, maintains parent/child relationships and deals with dynamic implementations of such types. That is, their type specific implementations are relocatable/unloadable during runtime.

* 一个用于注册单继承类型以及接口的类型系统。它负责对象和类结构的创建、初始化和内存管理,维护父类和字类的关系,以及管理类型的实现。该系统中,类型在运行时可以动态的重定位和卸载。
  • A collection of fundamental type implementations, such as integers, doubles, enums and structured types, to name a few.

* 一系列基础类型的实现,如整数、浮点数、枚举和结构类型。
  • A signal system that allows very flexible user customization of virtual/overridable object methods and can serve as a powerful notification mechanism.

* 一个非常灵活的信号系统,可以用于实现强大的通知机制。
  • An extensible parameter/value system, supporting all the provided fundamental types that can be used to generically handle object properties or otherwise parameterized types.

* 一个可扩展的参数/值系统,允许所有的基础类型数据作为对象的属性或用作参数类型。
 

转载于:https://my.oschina.net/wsgalaxy/blog/3008506

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值