All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
MBSim::AllocateBase Struct Referenceabstract

#include <objectfactory_part.h>

Inheritance diagram for MBSim::AllocateBase:
MBSim::Allocate< CreateType > MBSim::GetSingleton< CreateType >

Public Member Functions

virtual fmatvec::Atomoperator() () const =0
 Implement this function to allocate a new object.
 
virtual bool operator== (const AllocateBase &other) const =0
 

Detailed Description

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==.

Member Function Documentation

virtual bool MBSim::AllocateBase::operator== ( const AllocateBase other) const
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 >.


The documentation for this struct was generated from the following file:

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML