ENH: coding cleanup for memory streams
- simplify structure. - protect against nullptr when resetting memory streams - make UIListStream swappable - add uiliststream as an example of using a plain std::istream
Showing
- applications/test/IListStream/Test-IListStream.C 25 additions, 15 deletionsapplications/test/IListStream/Test-IListStream.C
- applications/test/OCountStream/Test-OCountStream.C 12 additions, 3 deletionsapplications/test/OCountStream/Test-OCountStream.C
- applications/test/UIListStream/Test-UIListStream.C 90 additions, 7 deletionsapplications/test/UIListStream/Test-UIListStream.C
- src/OpenFOAM/db/IOstreams/memory/IListStream.H 27 additions, 21 deletionssrc/OpenFOAM/db/IOstreams/memory/IListStream.H
- src/OpenFOAM/db/IOstreams/memory/OCountStream.H 36 additions, 61 deletionssrc/OpenFOAM/db/IOstreams/memory/OCountStream.H
- src/OpenFOAM/db/IOstreams/memory/OListStream.H 74 additions, 82 deletionssrc/OpenFOAM/db/IOstreams/memory/OListStream.H
- src/OpenFOAM/db/IOstreams/memory/UIListStream.H 50 additions, 62 deletionssrc/OpenFOAM/db/IOstreams/memory/UIListStream.H
- src/OpenFOAM/db/IOstreams/memory/UOListStream.H 25 additions, 80 deletionssrc/OpenFOAM/db/IOstreams/memory/UOListStream.H
- src/OpenFOAM/db/IOstreams/memory/memoryStreamBuffer.H 105 additions, 11 deletionssrc/OpenFOAM/db/IOstreams/memory/memoryStreamBuffer.H
Please register or sign in to comment