UList.H 13.1 KB
 OpenFOAM-admin committed Apr 15, 2008 1 2 3 4 /*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration |  mattijs committed Feb 14, 2012 5  \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation  OpenFOAM-admin committed Apr 15, 2008 6 7 8 9 10  \\/ M anipulation | ------------------------------------------------------------------------------- License This file is part of OpenFOAM.  Mark Olesen committed Mar 29, 2010 11 12 13 14  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 3 of the License, or (at your option) any later version.  OpenFOAM-admin committed Apr 15, 2008 15 16 17 18 19 20 21  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  Mark Olesen committed Mar 29, 2010 22  along with OpenFOAM. If not, see .  OpenFOAM-admin committed Apr 15, 2008 23 24 25 26 27 28  Class Foam::UList Description A 1D vector of objects of type \, where the size of the vector is  Mark Olesen committed Feb 06, 2009 29  known and can be used for subscript bounds checking, etc.  OpenFOAM-admin committed Apr 15, 2008 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45  Storage is not allocated during construction or use but is supplied to the constructor as an argument. This type of list is particularly useful for lists that refer to parts of existing lists such as SubList. SourceFiles UList.C UListI.H UListIO.C \*---------------------------------------------------------------------------*/ #ifndef UList_H #define UList_H #include "bool.H"  Mark Olesen committed Feb 27, 2009 46 47 #include "label.H" #include "uLabel.H"  OpenFOAM-admin committed Apr 15, 2008 48 49 50 51 52 53  // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam {  Mark Olesen committed Jan 05, 2009 54 55 56 // Forward declaration of friend classes template class List; template class SubList;  OpenFOAM-admin committed Apr 15, 2008 57 58 59 60 61  // Forward declaration of friend functions and operators template class UList; template Ostream& operator<<(Ostream&, const UList&);  Mark Olesen committed Oct 13, 2010 62 typedef UList