@@ -1,7 +1,7 @@ /* - * Copyright (c) 2008 - 2009 + * Copyright (c) 2008 - 2010 * Jonathan Schleifer * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the @@ -11,17 +11,16 @@ #include #import "OFObject.h" #import "OFEnumerator.h" -#import "OFFastEnumeration.h" @class OFDataArray; @class OFString; /** - * The OFArray class is a class for storing objects in an array. + * \brief A class for storing objects in an array. */ @interface OFArray: OFObject { OFDataArray *array; } @@ -48,11 +47,11 @@ + arrayWithObjects: (OFObject*)first, ...; /** * Creates a new OFArray with the objects from the specified C array. * - * \param objs A C array of objects. + * \param objs A C array of objects, terminated with nil * \return A new autoreleased OFArray */ + arrayWithCArray: (OFObject**)objs; /** @@ -82,11 +81,11 @@ argList: (va_list)args; /** * Initializes an OFArray with the objects from the specified C array. * - * \param objs A C array of objects + * \param objs A C array of objects, terminated with nil * \return An initialized OFArray */ - initWithCArray: (OFObject**)objs; /** @@ -148,10 +147,11 @@ * \return An OFEnumerator to enumarate through the array's objects */ - (OFEnumerator*)enumerator; @end +/// \cond internal @interface OFArrayEnumerator: OFEnumerator { OFDataArray *array; size_t count; unsigned long mutations; @@ -160,7 +160,8 @@ } - initWithDataArray: (OFDataArray*)data mutationsPointer: (unsigned long*)mutations_ptr; @end +/// \endcond #import "OFMutableArray.h"