|
Objective-C++ Preprocessor
5.0 with ARC & GC
C++ classes to enhance syntax and manage reference counting.
|
#include <objvec.h>
Public Member Functions | |
| oo_inline | OOVector () |
| oo_inline | OOVector (const OOVector &val) |
| oo_inline | OOVector (int size) |
| oo_inline OOVector( OOClassPtr<OOVector<ETYPE> > &val ) { *this = val.cget(); } | |
| oo_inline | OOVector (const OOArray< ETYPE > &array) |
| oo_inline | OOVector (const NSArray *array) |
| oo_inline void | reserve (NSUInteger size) |
| oo_inline NSUInteger | size () |
| oo_inline ETYPE * | begin () |
| oo_inline ETYPE * | end () |
| oo_inline OOVector & | operator= (NSValue *val) |
| oo_inline OOVector & | operator= (const OOVector &val) |
| oo_inline | operator int () |
| oo_inline ETYPE & | operator[] (int sub) |
| oo_inline OOVector & | operator+= (ETYPE value) |
Additional Inherited Members | |
Protected Member Functions inherited from OOPointer< OOBuffer< ETYPE > * > | |
| oo_inline NSValue * | pset (NSValue *val) OO_RETURNS |
| oo_inline OOBuffer< ETYPE > * | pset (OOBuffer< ETYPE > *ptr) |
| oo_inline OOBuffer< ETYPE > * | pget () |
A more efficient buff class than NSArray for any element type (int, id, OOReference<NSString> etc.). Memory is allocated on deamnd when _refd by the subscipt operator and if the type is a class its constructors and destructors will be called by the underlying OOBuffer class.
Usage:
OOVector<double> array; array[99] = 43. OOVector<OOString> strarry; array[99] = "THIS";
1.8.2