Advertisement
Guest User

Untitled

a guest
May 23rd, 2011
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. //
  2. // BlockEnumerator.h
  3. // Ross Utils Library
  4. //
  5. // Created by Richard Ross on 2/1/11.
  6. // Copyright 2011 Ultimate Computer Services Inc. All rights reserved.
  7. //
  8.  
  9. #import <Foundation/Foundation.h>
  10. #import "RossEnumerator.h"
  11.  
  12. typedef BOOL (^MoveNextBlock)();
  13. typedef id (^CurrentBlock)();
  14. typedef void (^ResetBlock)();
  15. typedef void (^DeallocBlock)();
  16.  
  17. OBJC_EXPORT MoveNextBlock MOVENEXT_NULL_BLOCK;
  18. OBJC_EXPORT CurrentBlock CURRENT_NULL_BLOCK;
  19. OBJC_EXPORT ResetBlock RESET_NULL_BLOCK;
  20. OBJC_EXPORT DeallocBlock DEALLOC_NULL_BLOCK;
  21.  
  22. @interface BlockEnumerator : NSObject<RossEnumerator> {
  23. MoveNextBlock m_moveNext;
  24. CurrentBlock m_current;
  25. ResetBlock m_reset;
  26. DeallocBlock m_dealloc;
  27. }
  28.  
  29. @property(readwrite, copy, getter=getMoveNext) MoveNextBlock moveNext;
  30. @property(readwrite, copy, getter=getCurrent) CurrentBlock current;
  31. @property(readwrite, copy, getter=getReset) ResetBlock reset;
  32. @property(readwrite, copy, getter=getDealloc) DeallocBlock dealloc;
  33.  
  34. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement