文件名称:persistent.objc:Objective-C 中的持久化数据结构
文件大小:56KB
文件格式:ZIP
更新时间:2024-08-02 13:21:22
Objective-C
Objective-C 的持久化数据结构 该项目的目标是为 Objective-C 实现。 现在,有 Vector、Set 和 HashMap。 安装 使用 CocoaPods,就像添加一样简单 pod 'Persistent' 到您的Podfile 。 用法 目前,它是和的一个端口。 它是一个持久的位分区向量树,它使用与 Clojure 和 Dart 中使用的相同的优化 - 尾部和瞬态。 基本上有addObject: / removeLastObject和objectAtIndex: / replaceObjectAtIndex:withObject:操作,还有withTransient方法,它允许您临时使向量可变并进行修改,而无需每次对其进行操作时都创建实例。 它没有在向量中间插入/删除元素的方法。 不幸的是,您必须以缓慢的方式做到这一点 - 通过从头开始创建一个带有(或 -
【文件预览】:
persistent.objc-master
----.gitignore(495B)
----README.md(11KB)
----Persistent()
--------AAPersistentUtils.h(722B)
--------Vector()
--------main.m(325B)
--------Set()
--------Map()
--------AAPersistentUtils.m(3KB)
--------Headers()
----Persistent.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(37KB)
----LICENSE(1KB)
----Persistent.podspec(630B)
----PersistentTests()
--------AAPersistentVectorClass.m(5KB)
--------AAPersistentFunctions.m(3KB)
--------AAPersistentHashMapClass.m(8KB)
--------Info.plist(751B)
--------AASameHashObject.m(724B)
--------AASameHashObject.h(345B)
--------AAPersistentSetClass.m(4KB)