mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: define nameOp<>, typeOp<>, sizeOp<> functors (issue #1013)
This commit is contained in:
@ -87,12 +87,12 @@ static const Enum<restoreMethod> methodEndings
|
||||
|
||||
|
||||
// Files in given directory at time instant
|
||||
wordList getFiles(const fileName& dir, const word& instance)
|
||||
inline wordList getFiles(const fileName& dir, const word& instance)
|
||||
{
|
||||
return ListOps::create<word>
|
||||
(
|
||||
Foam::readDir(dir/instance, fileName::FILE),
|
||||
[](const fileName& f){ return f.name(); }
|
||||
nameOp<fileName>()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user