[Libmesh-devel] Assembling from a method rather than a function (was [Libmesh-users] function pointer)

2008-01-14 Thread Benjamin Kirk
> In general, using pointers to class methods doesn't really work like > you would expect the reason? Because you have to have a class > instance to call it on... meaning you have to store two pieces of > data... the pointer to the method and a pointer to a class instance. > Here is some readi

[Libmesh-devel] function pointer

2008-01-14 Thread Mathias Nenning
Hello! I'm programming a Newmarksystem... My question is, if it is possible to attach a "assemble function" which is a method of a class... Example: PoroNewmark { private: // declaration of a function pointer void (PoroNewmark::*funcP)( EquationSystems &es, const std::string& system_name ); p