1
0
mirror of https://github.com/thes3m/XNI synced 2024-12-26 13:26:06 +01:00
XNI/Classes/System/Collection.h
Matej Jan d5b2897d8b Added 3D Model support.
git-svn-id: http://xni.googlecode.com/svn/XNI@42 ac433895-eea3-a490-d80a-17149a75e588
2010-11-30 23:26:03 +00:00

39 lines
654 B
Objective-C

//
// Collection.h
// XNI
//
// Created by Matej Jan on 26.11.10.
// Copyright 2010 Retronator. All rights reserved.
//
#import <Foundation/Foundation.h>
// #define Collection CollectionName
// #define T DataType
@interface Collection : NSObject <NSFastEnumeration> {
NSMutableArray *collection;
#ifdef Variables
Variables
#endif
}
@property (nonatomic, readonly) int count;
- (T)itemAt:(int)index;
- (void)setItem:(T)item at:(int)index;
- (void)add:(T)item;
- (void)addRange:(NSArray*)items;
- (void)insert:(T)item at:(int)index;
- (void)remove:(T)item;
- (void)removeAt:(int)index;
- (void) clear;
@end
// #undef Collection
// #undef T