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
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
C规则涉及到 队列(QUEUE) 分类器(CLASS) 过滤器(FILTER),filter划分的标志位可用U32或iptables的set-mark来实现 ) 一般是"控发"不控收 linux下有两块网卡,一个eth1是外网,另一块eth0是内网.在eth0上做HTB。(注 意:filter划分标...
分类:
系统相关 时间:
2014-06-14 15:35:43
阅读次数:
359
linux网络的配置一、配置网络vi /etc/sysconfig/network 配置网络vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0:0" IPADDR="192.168.1.100" NETMASK="255.255...
分类:
系统相关 时间:
2014-06-14 12:25:46
阅读次数:
291
区间搜索问题就是给定一系列区间,和一个待测区间,求与待测区间相交的区间。
为了解决这个问题,需要专门编写一个类,这个类的接口如下:
public interface IntervalST, Value> {
void put(Key lo, Key hi, Value value);
Value get(Key lo, Key hi)
voi...
分类:
其他好文 时间:
2014-06-14 10:36:17
阅读次数:
182
虚方法:可以重写,也可以不重写,英文名:virtual
抽象方法:必须重写,必须放在抽象类中,英文名:abstract
重写:可以重写三种方法:virtual,abstract,override,英文名:override
抽象类:可以有抽象方法,也可以有非抽象方法,英文名:abstract
接口:和抽象类相似,但是里面只有未实现的方法,英文名:interface...
分类:
其他好文 时间:
2014-06-14 09:34:42
阅读次数:
222