grepros 1.3.0
grep for ROS bag files and live topics
Loading...
Searching...
No Matches
LenIterable Class Reference
Inheritance diagram for LenIterable:
Inheritance graph

Public Member Functions

 __init__ (self, iterable, count)
 
 __iter__ (self)
 
 __len__ (self)
 
 __next__ (self)
 

Detailed Description

Wrapper for iterable value with specified fixed length.

Definition at line 655 of file common.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  iterable,
  count 
)
@param   iterable  any iterable value
@param   count     value to return for len(self), or callable to return value from

Definition at line 658 of file common.py.

Member Function Documentation

◆ __iter__()

__iter__ (   self)

Definition at line 666 of file common.py.

◆ __len__()

__len__ (   self)

Definition at line 670 of file common.py.

◆ __next__()

__next__ (   self)

Definition at line 668 of file common.py.


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