STYLE: find(), cfind() methods instead of lookupPtr()

- coordinateSystems, DictionaryBase
This commit is contained in:
Mark Olesen
2020-03-11 21:28:01 +01:00
parent a18617bbd1
commit 8e27022ea2
13 changed files with 70 additions and 38 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2019 OpenCFD Ltd.
Copyright (C) 2019-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -94,7 +94,7 @@ bool Foam::DictionaryBase<IDLListType, T>::found(const word& keyword) const
template<class IDLListType, class T>
const T* Foam::DictionaryBase<IDLListType, T>::lookupPtr
const T* Foam::DictionaryBase<IDLListType, T>::cfind
(
const word& keyword
) const
@ -111,7 +111,7 @@ const T* Foam::DictionaryBase<IDLListType, T>::lookupPtr
template<class IDLListType, class T>
T* Foam::DictionaryBase<IDLListType, T>::lookupPtr(const word& keyword)
T* Foam::DictionaryBase<IDLListType, T>::find(const word& keyword)
{
auto iter = hashedTs_.find(keyword);