ENH: minor improvements, cleanup of token class
- relax casting rules * down-cast of labelToken to boolToken * up-cast of wordToken to stringToken. Can use isStringType() test for word or string types - simplify constructors, move construct etc. - expose reset() method as public, which resets to UNDEFINED and clears allocated storage etc. DEFEATURE: remove assign from word or string pointer. - This was deprecated 2017-11 and now removed. For this type of content transfer, move assignment should be used instead of stealing pointers.
Showing
- applications/test/dictionaryTokens/dictionaryTokens.C 1 addition, 1 deletionapplications/test/dictionaryTokens/dictionaryTokens.C
- src/OpenFOAM/db/IOstreams/IOstreams/Istream.C 1 addition, 1 deletionsrc/OpenFOAM/db/IOstreams/IOstreams/Istream.C
- src/OpenFOAM/db/IOstreams/Tstreams/ITstream.C 3 additions, 3 deletionssrc/OpenFOAM/db/IOstreams/Tstreams/ITstream.C
- src/OpenFOAM/db/IOstreams/token/token.C 0 additions, 1 deletionsrc/OpenFOAM/db/IOstreams/token/token.C
- src/OpenFOAM/db/IOstreams/token/token.H 78 additions, 82 deletionssrc/OpenFOAM/db/IOstreams/token/token.H
- src/OpenFOAM/db/IOstreams/token/tokenI.H 107 additions, 139 deletionssrc/OpenFOAM/db/IOstreams/token/tokenI.H
- src/OpenFOAM/db/IOstreams/token/tokenIO.C 2 additions, 5 deletionssrc/OpenFOAM/db/IOstreams/token/tokenIO.C
Please register or sign in to comment