SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Base for all generators. More...
#include <Generator.h>
Public Member Functions | |
template<typename... T> | |
GeneratorBase (T &&... all) | |
virtual bool | valid (const Input &) const =0 |
A discriminating method to determine whether or not the input should be considered for use as input by a generator type. More... | |
virtual Output | operator() (const Input &)=0 |
Function call operator for generating Output-s. More... | |
Base for all generators.
Describes the two methods used for generator selection and object generation.
|
pure virtual |
Function call operator for generating Output-s.
Implementations of this method may throw exceptions, facilitating the use of valid() as a quick check for input validity without necessarily guaranteeing the class's success.
Implemented in smtk::extension::vtk::mesh::PointCloudFromVTKFile, smtk::mesh::PointCloudFromCSV, smtk::common::Generator< std::string, StructuredGrid >, smtk::common::Generator< std::string, PointCloud >, smtk::extension::vtk::io::ImportAsVTKDataType< Self >, smtk::common::Generator< std::pair< std::string, std::string >, vtkSmartPointer< vtkDataObject >, detail::ImportAsVTKDataBase >, smtk::extension::vtk::mesh::PointCloudFromVTKAuxiliaryGeometry, smtk::common::Generator< smtk::model::AuxiliaryGeometry, PointCloud >, smtk::common::Generator< smtk::model::AuxiliaryGeometry, StructuredGrid >, smtk::extension::vtk::mesh::StructuredGridFromVTKAuxiliaryGeometry, and smtk::common::Generator< Input, Output, Base >.
|
pure virtual |
A discriminating method to determine whether or not the input should be considered for use as input by a generator type.
If this method returns false, the generator type will not be considered. If this method returns true, the class will be considered for generation but may still fail (see the description of the function call operator).
Implemented in smtk::extension::vtk::mesh::PointCloudFromVTKFile, smtk::mesh::PointCloudFromCSV, smtk::common::Generator< std::string, StructuredGrid >, smtk::common::Generator< std::string, PointCloud >, smtk::extension::vtk::io::ImportAsVTKDataType< Self >, smtk::common::Generator< std::pair< std::string, std::string >, vtkSmartPointer< vtkDataObject >, detail::ImportAsVTKDataBase >, smtk::extension::vtk::mesh::PointCloudFromVTKAuxiliaryGeometry, smtk::common::Generator< smtk::model::AuxiliaryGeometry, PointCloud >, smtk::common::Generator< smtk::model::AuxiliaryGeometry, StructuredGrid >, smtk::extension::vtk::mesh::StructuredGridFromVTKAuxiliaryGeometry, and smtk::common::Generator< Input, Output, Base >.