|
libbio
|
#include <Class.h>

Public Member Functions | |
| SymmetryFactory (Symmetry *(*f)()) | |
Public Attributes | |
| Symmetry *(* | fn )() |
Tiny wrapper carrying a lazy-Symmetry factory (argument-free function returning a fresh Symmetry address). Used to disambiguate the Class<T> factory ctor from the eager Class(T*, Symmetry*) ctor: a bare function pointer or NULL would be ambiguous against Symmetry*, but a NULL prefers the standard NULL->Symmetry* conversion over this user-defined wrapper, so the eager Class(this, NULL) call sites are unaffected. The implicit ctor lets call sites pass &Foo::MakeSymmetry directly.
|
inline |
| Symmetry *(* bio::physical::SymmetryFactory::fn) () |