triqs.gfs.gf.AddMethod

class triqs.gfs.gf.AddMethod(name, bases, dct)[source]

Bases: type

Metaclass that injects every callable in triqs.gfs.gf_fnt as a Gf method.

At class-creation time, iterates over every callable in triqs.gfs.gf_fnt and, for names not already defined on the new class, sets the attribute to the wrapper produced by add_method_helper(). Dispatch by mesh and target type is handled in C++.

Parameters:
clstype

The class being created (i.e. Gf or a subclass).

namestr

Name of the class being created.

basestuple of type

Base classes of cls.

dctdict

Class body namespace.