ATL: Active Template Library(活动模板库) 一种开发框架,通过它可以快速建立基于COM的组件基本特征: 1.对低级别COM功能的内置式支持:IUnknown, 类工厂, self-registration 2.支持IDL(interface definition l...
分类:
其他好文 时间:
2014-06-19 09:09:26
阅读次数:
265
ChangeQueue类实现ChangeSource接口,声明了拉取下一条Change对象的方法 * A source of {@link Change} objects. * * @since 2.8 */public interface ChangeSource { /** * @retu...
分类:
其他好文 时间:
2014-06-19 06:07:09
阅读次数:
264
连接器里面采用的什么样的数据结构,我们先从Document迭代器开始入手,具体的Document迭代器类都实现了DocumentList接口,该接口定义了两个方法public interface DocumentList { public Document nextDocument() throw....
分类:
其他好文 时间:
2014-06-18 23:45:48
阅读次数:
345
①error接口Go语言中的error类型实际上是抽象了Error()方法的error接口type error interface { Error() string}Go语言使用该接口进行标准的错误处理。对于大多数函数,如果要返回错误,大致上都可以定义为如下模式,将error作为多种返回值中的...
分类:
其他好文 时间:
2014-06-18 23:37:33
阅读次数:
263
1、定义接口 使用interface来定义一个接口。接口定义同类的定义类似,也是分为接口的声明和接口体,当中接口体由常量定义和方法定义两部分组成。定义接口的基本格式例如以下:[修饰符] interface 接口名 [extends 父接口名列表]{[public] [static] [final]....
分类:
编程语言 时间:
2014-06-17 00:56:12
阅读次数:
287
vi编辑器是一个处理ASCII数据的文本工具。大多数linux发行版都已经默认安装了vi编辑器。vi是visual interface的缩写vim是 visual interface improved即增强版的vi,vim默认支持代码命令加亮,这样使得文本更易看懂。vi有两种配置文件一种是全局配置文件 /etc/vimrc,全局配置文件的设置对所有用户都生效。另一种是用户配置文件,这个配置文件需要...
分类:
系统相关 时间:
2014-06-16 22:17:05
阅读次数:
281
本文参考《Android系统源代码情景分析》,作者罗升阳
一、架构代码:
~/Android/frameworks/base/core/java/android/os
----IInterface.java (Interface)
----IServiceManager.java (IServiceManager)
-...
分类:
编程语言 时间:
2014-06-16 22:06:54
阅读次数:
281
Java 中数组声明后不可修改 –跟C一样 ,C中往往会增加定义HASHTABLE,链表等结构来实现动态的数组 但在java中,已经有现成的,称为集合 Collection (interface,有迭代器)├List (interface)│├LinkedList (class)│├ArrayLis...
分类:
编程语言 时间:
2014-06-15 13:12:19
阅读次数:
210
个人写的一些例子:
//
// ViewController.m
// CABasicAnimationDemo
//
// Created by haotian on 14-6-13.
// Copyright (c) 2014年 Baseus. All rights reserved.
//
#import "ViewController.h"
@interface ViewCo...
分类:
其他好文 时间:
2014-06-15 11:17:24
阅读次数:
215
虚方法:可以重写,也可以不重写,英文名:virtual
抽象方法:必须重写,必须放在抽象类中,英文名:abstract
重写:可以重写三种方法:virtual,abstract,override,英文名:override
抽象类:可以有抽象方法,也可以有非抽象方法,英文名:abstract
接口:和抽象类相似,但是里面只有未实现的方法,英文名:interface...
分类:
其他好文 时间:
2014-06-14 09:34:42
阅读次数:
222