Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // BlockEnumerator.h
- // Ross Utils Library
- //
- // Created by Richard Ross on 2/1/11.
- // Copyright 2011 Ultimate Computer Services Inc. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import "RossEnumerator.h"
- typedef BOOL (^MoveNextBlock)();
- typedef id (^CurrentBlock)();
- typedef void (^ResetBlock)();
- typedef void (^DeallocBlock)();
- OBJC_EXPORT MoveNextBlock MOVENEXT_NULL_BLOCK;
- OBJC_EXPORT CurrentBlock CURRENT_NULL_BLOCK;
- OBJC_EXPORT ResetBlock RESET_NULL_BLOCK;
- OBJC_EXPORT DeallocBlock DEALLOC_NULL_BLOCK;
- @interface BlockEnumerator : NSObject<RossEnumerator> {
- MoveNextBlock m_moveNext;
- CurrentBlock m_current;
- ResetBlock m_reset;
- DeallocBlock m_dealloc;
- }
- @property(readwrite, copy, getter=getMoveNext) MoveNextBlock moveNext;
- @property(readwrite, copy, getter=getCurrent) CurrentBlock current;
- @property(readwrite, copy, getter=getReset) ResetBlock reset;
- @property(readwrite, copy, getter=getDealloc) DeallocBlock dealloc;
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement