triqs.gfs.gf.AddMethod
- class triqs.gfs.gf.AddMethod(name, bases, dct)[source]
Bases:
typeMetaclass that injects every callable in
triqs.gfs.gf_fntas aGfmethod.At class-creation time, iterates over every callable in
triqs.gfs.gf_fntand, for names not already defined on the new class, sets the attribute to the wrapper produced byadd_method_helper(). Dispatch by mesh and target type is handled in C++.- Parameters:
- clstype
The class being created (i.e.
Gfor a subclass).- namestr
Name of the class being created.
- basestuple of type
Base classes of
cls.- dctdict
Class body namespace.