grepros 1.2.2
grep for ROS bag files and live topics
Loading...
Searching...
No Matches
LenIterable Class Reference

Wrapper for iterable value with specified fixed length. More...

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 666 of file common.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  iterable,
  count 
)
Parameters
iterableany iterable value
countvalue to return for len(self), or callable to return value from

Definition at line 674 of file common.py.

Member Function Documentation

◆ __iter__()

__iter__ (   self)

Definition at line 678 of file common.py.

◆ __len__()

__len__ (   self)

Definition at line 682 of file common.py.

◆ __next__()

__next__ (   self)

Definition at line 680 of file common.py.


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