From 68d5fd192fee358ad195c32b47333f8f87ae13f2 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Mon, 7 Aug 2000 23:42:40 +0000 Subject: General cleanup: - Corrected some operators of bufferArray - Added more constructors to PsiTime - Added one more fallback for Timezone calculation in PsiTime - Use PsiTime in rfsv - Moved some common methods from rfsv16/32 to rfsv - Added more kdoc comments. - Made interface more robust (added const whereever possible, changed pointer arguments to references) --- lib/bufferarray.h | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) (limited to 'lib/bufferarray.h') diff --git a/lib/bufferarray.h b/lib/bufferarray.h index 7389ab6..b43dcbd 100644 --- a/lib/bufferarray.h +++ b/lib/bufferarray.h @@ -48,19 +48,40 @@ public: bufferStore &operator [](const unsigned long index); /** - * Appends a bufferStore. + * Appends a bufferStore to a bufferArray. + * + * @param s The bufferStore to be appended. + * + * @returns A new bufferArray with bufferStore appended to. */ - bufferArray &operator +(const bufferStore &); + bufferArray operator +(const bufferStore &s); /** * Concatenates two bufferArrays. + * + * @param a The bufferArray to be appended. + * + * @returns A new bufferArray consisting with a appended. */ - bufferArray &operator +(const bufferArray &); + bufferArray operator +(const bufferArray &a); /** - * Appends a bufferStore. + * Appends a bufferStore to current instance. + * + * @param s The bufferStore to append. + * + * @returns A reference to the current instance with s appended. + */ + bufferArray &operator +=(const bufferStore &s); + + /** + * Appends a bufferArray to current instance. + * + * @param a The bufferArray to append. + * + * @returns A reference to the current instance with a appended. */ - bufferArray &operator +=(const bufferStore &b); + bufferArray &operator +=(const bufferArray &a); /** * Removes the first bufferStore. -- cgit v1.2.3