#include <objectfactory_part.h>
Public Member Functions | |
virtual fmatvec::Atom * | operator() () const =0 |
Implement this function to allocate a new object. | |
virtual bool | operator== (const AllocateBase &other) const =0 |
Base wrapper class to allocate an object derived from fmatvec::Atom. We can use just a function pointer, fmatvec::Atom* (*allocateFct)(), for the same purpose. But for other more complex allocator functions (e.g. Python objects using swig directors) this is not flexible enought since we need to proved a custom operator==.
|
pure virtual |
Implement this function to compare whether this class and the instance other allocate the same object type when calling operator().
Implemented in MBSim::GetSingleton< CreateType >, and MBSim::Allocate< CreateType >.