diff --git a/applications/test/List/Test-List.C b/applications/test/List/Test-List.C index 04c12e91b7..7a49f2fdc8 100644 --- a/applications/test/List/Test-List.C +++ b/applications/test/List/Test-List.C @@ -132,35 +132,6 @@ int main(int argc, char *argv[]) << "-wordList: " << wLst << nl << "-stringList: " << sLst << endl; - - Info<< nl - << "Test List Iterator Constuctor" << endl; - - List initialList(IStringStream("((0 1 2) (3 4 5) (6 7 8))")()); - - Info<< " Initial List: " << initialList << endl; - - List iteratorList(initialList.begin(), initialList.end()); - - Info<< " Foam::List constructed from Foam::List: " - << iteratorList << endl; - - std::list stlList(initialList.begin(), initialList.end()); - - Info<< " std::list constructed from Foam::List: "; - - std::list::iterator it; - for (it=stlList.begin(); it != stlList.end(); ++it) - { - Info<< *it << " "; - } - Info<< endl; - - List iteratorSTLList(stlList.begin(), stlList.end()); - - Info<< " Foam::List constructed from std::list: " - << iteratorList << endl; - return 0; } diff --git a/src/OpenFOAM/containers/Lists/List/List.C b/src/OpenFOAM/containers/Lists/List/List.C index 34cc05ee8d..62f988b9db 100644 --- a/src/OpenFOAM/containers/Lists/List/List.C +++ b/src/OpenFOAM/containers/Lists/List/List.C @@ -25,7 +25,6 @@ License #include "List.H" #include "ListLoopM.H" - #include "FixedList.H" #include "PtrList.H" #include "SLList.H" @@ -189,37 +188,6 @@ Foam::List::List(const UList& a, const labelUList& map) } -template -template -Foam::List::List(InputIterator first, InputIterator last) -{ - label s = 0; - for - ( - InputIterator iter = first; - iter != last; - ++iter - ) - { - s++; - } - - setSize(s); - - s = 0; - - for - ( - InputIterator iter = first; - iter != last; - ++iter - ) - { - this->operator[](s++) = *iter; - } -} - - template template Foam::List::List(const FixedList& lst) @@ -534,6 +502,7 @@ void Foam::List::operator=(const BiIndirectList& lst) } } + // * * * * * * * * * * * * * * * * IOStream operators * * * * * * * * * * * // #include "ListIO.C" diff --git a/src/OpenFOAM/containers/Lists/List/List.H b/src/OpenFOAM/containers/Lists/List/List.H index a4f342cc4a..77c9a5e40a 100644 --- a/src/OpenFOAM/containers/Lists/List/List.H +++ b/src/OpenFOAM/containers/Lists/List/List.H @@ -61,8 +61,10 @@ template Istream& operator>>(Istream&, List&); template class FixedList; template class PtrList; template class SLList; + template - class DynamicList; +class DynamicList; + template class SortableList; template class IndirectList; template class UIndirectList; @@ -120,10 +122,6 @@ public: //- Construct as subset. List(const UList&, const labelUList& mapAddressing); - //- Construct given start and end iterators. - template - List(InputIterator first, InputIterator last); - //- Construct as copy of FixedList template explicit List(const FixedList&); @@ -262,7 +260,7 @@ List readList(Istream&); // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - #include "ListI.H" +#include "ListI.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //