COItemGraph class documentation
COItemGraph : NSObject <COItemGraph>Overview
COItemGraph is allowed to contain broken references (i.e. it can contain COItems which have ETUUID references to items not in the COItemGraph, or even be missing the COItem for the root item UUID) - this is to allow COItemGraph to act as a simple delta mechanism, so you can compute (COItemGraph + COItemGraph) = a new COItemGraph .
Initialization
- + (COItemGraph *) itemGraphWithItemsRootFirst: (NSArray *)items
- Description forthcoming.
- - (id) initWithItemForUUID: (NSDictionary *)itemForUUID rootItemUUID: (ETUUID *)root
N.B. items doesn't need to contain rootItemUUID.
- - (id) initWithItems: (NSArray *)items rootItemUUID: (ETUUID *)root
N.B. items doesn't need to contain rootItemUUID.
- - (id) initWithItemGraph: (id <COItemGraph>)aGraph
- Description forthcoming.
Item Graph Protocol and Additionss
- - (COMutableItem *) itemForUUID: (ETUUID *)aUUID
- - (NSArray *) itemUUIDs
See -[COItemGraph itemUUIDs] .
- - (void) addItemGraph: (id <COItemGraph>)aGraph
Adds the items from the given item graph to the receiver.
If two items have the same UUID, the added item replaces the one in the receiver.