@@ -6,10 +6,12 @@ * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ + +#include #import "OFObject.h" #import "OFDataArray.h" /** @@ -23,10 +25,48 @@ /** * \return A new autoreleased OFArray */ + array; +/** + * \param obj An object + * \return A new autoreleased OFArray + */ ++ arrayWithObject: (OFObject*)obj; + +/** + * \param first The first object in the array + * \return A new autoreleased OFArray + */ ++ arrayWithObjects: (OFObject*)first, ...; + +/** + * Initializes an OFArray with the specified object. + * + * \param obj An object + * \return An initialized OFArray + */ +- initWithObject: (OFObject*)obj; + +/** + * Initializes an OFArray with the specified objects. + * + * \param obj The first object + * \return An initialized OFArray + */ +- initWithObjects: (OFObject*)first, ...; + +/** + * Initializes an OFArray with the specified object and a va_list. + * + * \param first The first object + * \param args A va_list + * \return An initialized OFArray + */ +- initWithObject: (OFObject*)first + andArgList: (va_list)args; + /** * \return The number of objects in the OFArray */ - (size_t)count;