Class p.c.p.NamedSets(object):

Part of pida.core.plugins View In Hierarchy

Known subclasses: pida.core.plugins.DynamicNamedSets, pida.core.plugins.StrictNamedSets

The theory of the plugin architecture has its foundations on this simple structure which is a simple collection of named sets.

Each key is associated to a set and the available operations are: to add elements to the named set or to remove them.

Line # Kind Name Docs
110 Method __getitem__ Returns the named set.
119 Method add Add one one value to the named set.
128 Method remove Remove the value from the set named name.
137 Method keys Return a collection of the names of the existing sets.
145 Method __delitem__ Remove the named set.
154 Class Method __repr__ Undocumented
160 Class Method __len__ Undocumented
164 Class Method __iter__ Undocumented
def __getitem__(self, name):
Returns the named set.

@param name: the name of the set @return: an iterator to the named set.

def add(self, name, value):
Add one one value to the named set.

@param name: the name of the set @param value: the value to be added to the set

def remove(self, name, value):
Remove the value from the set named name.

@param name: the name of the set to remove the value from @param value: the value to remove from the named set

def keys(self):
Return a collection of the names of the existing sets.
def __delitem__(self, name):
Remove the named set.

@param name: the name of the set to be removed.

@classmethod
def __repr__(self):
Undocumented
@classmethod
def __len__(self):
Undocumented
@classmethod
def __iter__(self):
Undocumented
API Documentation for PIDA, generated by pydoctor.