PARCIterator *
ccnxManifestHashGroup_Iterator(const CCNxManifestHashGroup *group)
{
    PARCIterator *iterator = parcIterator_Create((void *) group,
                                                 (void *(*)(PARCObject *)) _ccnxManifestHashGroupIterator_Init,
                                                 (bool  (*)(PARCObject *, void *)) _ccnxManifestHashGroupIterator_HasNext,
                                                 (void *(*)(PARCObject *, void *)) _ccnxManifestHashGroupIterator_Next,
                                                 (void  (*)(PARCObject *, void **)) _ccnxManifestHashGroupIterator_RemoveAt,
                                                 (void *(*)(PARCObject *, void *)) _ccnxManifestHashGroupIterator_GetElement,
                                                 (void  (*)(PARCObject *, void *)) _ccnxManifestHashGroupIterator_Finish,
                                                 (void  (*)(const void *)) _ccnxManifestHashGroupIterator_AssertValid);

    return iterator;
}
Ejemplo n.º 2
0
PARCIterator *
parcFileChunker_ReverseIterator(const PARCFileChunker *chunker)
{
    PARCIterator *iterator = parcIterator_Create((void *) chunker,
                                                 (void *(*)(PARCObject *))_InitReverse,
                                                 (bool (*)(PARCObject *, void *))_parcChunker_HasNext,
                                                 (void *(*)(PARCObject *, void *))_parcChunker_Next,
                                                 (void (*)(PARCObject *, void **))_parcChunker_RemoveAt,
                                                 (void *(*)(PARCObject *, void *))_parcChunker_GetElement,
                                                 (void (*)(PARCObject *, void *))_parcChunker_Finish,
                                                 (void (*)(const void *))_parcChunker_AssertValid);

    return iterator;
}
Ejemplo n.º 3
0
static PARCIterator *
_mock_ReverseIterator(const void *chunker)
{
    PARCIterator *iterator = parcIterator_Create((void *) chunker,
                                                 (void *(*)(PARCObject *))_InitForward,
                                                 (bool (*)(PARCObject *, void *))_hasNext,
                                                 (void *(*)(PARCObject *, void *))_next,
                                                 NULL,
                                                 (void *(*)(PARCObject *, void *))_get,
                                                 (void (*)(void *, void *))_finish,
                                                 NULL);

    return iterator;
}
Ejemplo n.º 4
0
PARCIterator *
parcBufferChunker_ReverseIterator(const PARCBufferChunker *chunker)
{
    PARCIterator *iterator = parcIterator_Create((void *) chunker,
                                                 (void *(*)(PARCObject *))_InitReverse,
                                                 (bool (*)(PARCObject *, void *))_ccnxChunker_HasNext,
                                                 (void *(*)(PARCObject *, void *))_ccnxChunker_Next,
                                                 NULL,
                                                 (void *(*)(PARCObject *, void *))_ccnxChunker_GetElement,
                                                 (void (*)(PARCObject *, void *))_ccnxChunker_Finish,
                                                 (void (*)(const void *))_ccnxChunker_AssertValid);

    return iterator;
}