IMP  2.0.0
The Integrative Modeling Platform
IMP.isd.utils.Pipe Class Reference

implements a FIFO pipe that merges lists (see self.put) More...

Inherits object.

Public Member Functions

def append
 x must be a list and will be appended to the end of the pipe, dropping rightmost elements if necessary
 
def get
 returns the oldest element, without popping it out of the pipe. More...
 
def put
 if x is subscriptable, insert its contents at the beginning of the pipe. More...
 

Detailed Description

Note
This class is only available in Python.

Definition at line 4 of file utils.py.

Member Function Documentation

def IMP.isd.utils.Pipe.get (   self)

Popping occurs in the put() method

Definition at line 18 of file utils.py.

+ Here is the call graph for this function:

def IMP.isd.utils.Pipe.put (   self,
  x 
)

Else insert the element itself. If the pipe is full, drop the oldest element.

Definition at line 8 of file utils.py.


The documentation for this class was generated from the following file: