Objective-C++ Preprocessor  5.0 with ARC & GC
C++ classes to enhance syntax and manage reference counting.
Public Member Functions | List of all members
OOObjects< RTYPE > Class Template Reference

#include <objvec.h>

Inheritance diagram for OOObjects< RTYPE >:
OOVector< OOReference< RTYPE > > OOPointer< OOBuffer< OOReference< RTYPE > > * > OOReference< NSValue * >

Public Member Functions

oo_inline OOObjects ()
 
oo_inline OOObjects (int size)
 
oo_inline OOObjects (const OOArray< RTYPE > array)
 
oo_inline OOObjects (NSMutableArray *arr)
 
oo_inline OOObjects (const OOObjects &val)
 
oo_inline OOObjectsoperator= (const OOObjects &val)
 
oo_inline OOObjectsoperator= (NSValue *val)
 
oo_inline OOObjectsoperator= (NSArray *array)
 
oo_inline OOArray< RTYPE > array ()
 
oo_inline operator OOArray< RTYPE > ()
 
- Public Member Functions inherited from OOVector< OOReference< RTYPE > >
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< OOReference< RTYPE > > &array)
 
oo_inline OOVector (const NSArray *array)
 
oo_inline void reserve (NSUInteger size)
 
oo_inline NSUInteger size ()
 
oo_inline OOReference< RTYPE > * begin ()
 
oo_inline OOReference< RTYPE > * end ()
 
oo_inline OOVectoroperator= (NSValue *val)
 
oo_inline OOVectoroperator= (const OOVector &val)
 
oo_inline operator int ()
 
oo_inline OOReference< RTYPE > & operator[] (int sub)
 
oo_inline OOVectoroperator+= (OOReference< RTYPE >value)
 

Additional Inherited Members

- Protected Member Functions inherited from OOPointer< OOBuffer< OOReference< RTYPE > > * >
oo_inline NSValue * pset (NSValue *val) OO_RETURNS
 
oo_inline OOBuffer
< OOReference< RTYPE > > * 
pset (OOBuffer< OOReference< RTYPE > > *ptr)
 
oo_inline OOBuffer
< OOReference< RTYPE > > * 
pget ()
 

Detailed Description

template<typename RTYPE>
class OOObjects< RTYPE >

A faster NSMutableArray replacement that correctly ref counts and releases Objective-C objects.

Usage:

OOObjects<NSString *> var;
var[99] = "THIS";

Definition at line 347 of file objvec.h.

Constructor & Destructor Documentation

template<typename RTYPE >
oo_inline OOObjects< RTYPE >::OOObjects ( )
inline

Definition at line 349 of file objvec.h.

template<typename RTYPE >
oo_inline OOObjects< RTYPE >::OOObjects ( int  size)
inline

Definition at line 350 of file objvec.h.

template<typename RTYPE >
oo_inline OOObjects< RTYPE >::OOObjects ( const OOArray< RTYPE >  array)
inline

Definition at line 351 of file objvec.h.

template<typename RTYPE >
oo_inline OOObjects< RTYPE >::OOObjects ( NSMutableArray *  arr)
inline

Definition at line 352 of file objvec.h.

template<typename RTYPE >
oo_inline OOObjects< RTYPE >::OOObjects ( const OOObjects< RTYPE > &  val)
inline

Definition at line 353 of file objvec.h.

Member Function Documentation

template<typename RTYPE >
oo_inline OOArray<RTYPE> OOObjects< RTYPE >::array ( )
inline

Definition at line 363 of file objvec.h.

template<typename RTYPE >
oo_inline OOObjects< RTYPE >::operator OOArray< RTYPE > ( )
inline

Definition at line 371 of file objvec.h.

template<typename RTYPE >
oo_inline OOObjects& OOObjects< RTYPE >::operator= ( const OOObjects< RTYPE > &  val)
inline

Definition at line 355 of file objvec.h.

template<typename RTYPE >
oo_inline OOObjects& OOObjects< RTYPE >::operator= ( NSValue *  val)
inline

Definition at line 356 of file objvec.h.

template<typename RTYPE >
oo_inline OOObjects& OOObjects< RTYPE >::operator= ( NSArray *  array)
inline

Definition at line 357 of file objvec.h.


The documentation for this class was generated from the following file: