45 const searchableSurface& surface,
49 const word modelType(
surface.type() +
"Features");
51 auto* ctorPtr = dictConstructorTable(modelType);
58 "searchableSurfaceFeatures",
60 *dictConstructorTablePtr_
64 return autoPtr<searchableSurfaceFeatures>(ctorPtr(
surface,
dict));
70Foam::searchableSurfaceFeatures::searchableSurfaceFeatures
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Decorator that returns the features of a searchable surface.
static autoPtr< searchableSurfaceFeatures > New(const searchableSurface &surface, const dictionary &dict)
Return a reference to the selected searchableSurfaceFeatures.
const dictionary & dict() const
Return a reference to the dictionary.
virtual ~searchableSurfaceFeatures()
Destructor.
const searchableSurface & surface() const
Return a reference to the searchable surface.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
const wordList surface
Standard surface field types (scalar, vector, tensor, etc).
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.