OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

CompactListList.H File Reference


Detailed Description

View CompactListList.H
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
Description
CompactListList<T> is a packed storage unstructured matrix of objects
of type T using an offset table for access.

The offset table is the size of the number of rows whose elements are the
accumulated sizes of the rows, i.e.

offset[i] gives the index of first element of row i + 1

offset[i] - offset[i-1] is the number of elements in row i

and for i = 0, offset[i-1] = 0.

Storage is allocated on free-store during construction.

Source files

Definition in file CompactListList.H.

Go to the source code of this file.


Namespaces

namespace  Foam

Classes

class  CompactListList

Functions

template<class T>
Istream & operator>> (Istream &, CompactListList< T > &)
template<class T>
Ostream & operator<< (Ostream &, const CompactListList< T > &)
Copyright © 2000-2007 OpenCFD Ltd