Added Container template argument for e.g. construct from faceList

This commit is contained in:
mattijs
2009-11-04 11:40:12 +00:00
parent 151f30e779
commit 2268ea38a0
8 changed files with 160 additions and 117 deletions

View File

@ -34,6 +34,7 @@ Description
#include "IOstreams.H"
#include "OStringStream.H"
#include "IStringStream.H"
#include "faceList.H"
using namespace Foam;
@ -139,6 +140,18 @@ int main(int argc, char *argv[])
Info<< "cll5 = " << cll5 << endl;
}
{
faceList fcs(2);
fcs[0] = face(labelList(1, 111));
fcs[1] = face(labelList(2, 222));
CompactListList<label, face> compactFcs(fcs);
Info<< "comactFcs:" << compactFcs << endl;
faceList fcs2 = compactFcs();
Info<< "fcs2:" << fcs2 << endl;
}
return 0;
}