From 72ac1c7328796fe598c119dd3828ff5041918786 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs@hunt.opencfd.co.uk> Date: Fri, 19 Jun 2009 12:02:10 +0100 Subject: [PATCH] ptrList test app replaced by PtrList test app --- applications/test/ptrList/Make/files | 3 -- applications/test/ptrList/Make/options | 0 applications/test/ptrList/ptrListTest.C | 60 ------------------------- 3 files changed, 63 deletions(-) delete mode 100644 applications/test/ptrList/Make/files delete mode 100644 applications/test/ptrList/Make/options delete mode 100644 applications/test/ptrList/ptrListTest.C diff --git a/applications/test/ptrList/Make/files b/applications/test/ptrList/Make/files deleted file mode 100644 index 2a4e0ad01b0..00000000000 --- a/applications/test/ptrList/Make/files +++ /dev/null @@ -1,3 +0,0 @@ -ptrListTest.C - -EXE = $(FOAM_USER_APPBIN)/ptrListTest diff --git a/applications/test/ptrList/Make/options b/applications/test/ptrList/Make/options deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/applications/test/ptrList/ptrListTest.C b/applications/test/ptrList/ptrListTest.C deleted file mode 100644 index 7b2f6722bcc..00000000000 --- a/applications/test/ptrList/ptrListTest.C +++ /dev/null @@ -1,60 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -#include "PtrList.H" -#include "scalar.H" - -using namespace Foam; - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// Main program: - -int main(int argc, char *argv[]) -{ - PtrList<scalar> list(10); - - forAll(list, i) - { - list.set(i, new scalar(i)); - } - - for - ( - PtrList<scalar>::iterator iter = list.begin(); - iter != list.end(); - ++iter - ) - { - Info<< *iter << endl; - } - - Info<< list << endl; - - return 0; -} - - -// ************************************************************************* // -- GitLab