TimespanCollectionDriverEx

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph cluster_builtins { graph [label=builtins]; node [color=1]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } subgraph "cluster_supriya.time" { graph [label="supriya.time"]; node [color=2]; "supriya.time.TimespanCollectionDriverEx.TimespanCollectionDriverEx" [URL="../api/supriya/time/TimespanCollectionDriverEx.html#supriya.time.TimespanCollectionDriverEx.TimespanCollectionDriverEx", label="Timespan\nCollection\nDriver\nEx", target=_top]; } "builtins.object" -> "supriya.time.TimespanCollectionDriverEx.TimespanCollectionDriverEx"; }

class supriya.time.TimespanCollectionDriverEx.TimespanCollectionDriverEx

A mutable always-sorted collection of timespans.

>>> import abjad.timespans
>>> import supriya.time
>>> timespans = (
...     abjad.timespans.Timespan(0, 3),
...     abjad.timespans.Timespan(1, 3),
...     abjad.timespans.Timespan(1, 2),
...     abjad.timespans.Timespan(2, 5),
...     abjad.timespans.Timespan(6, 9),
...     )
>>> timespan_collection = supriya.time.TimespanCollectionDriverEx(timespans)

Attributes Summary

__contains__ Return key in self.
__getitem__ Return self[key].
__iter__ Implement iter(self).
__len__ Return len(self).
__new__ Create and return a new object.
find_timespans_intersecting_offset
find_timespans_intersecting_timespan
find_timespans_starting_at
find_timespans_stopping_at
get_start_offset_after
get_start_offset_before
index
insert
remove

Special methods

__contains__()

Return key in self.

__getitem__()

Return self[key].

__iter__()

Implement iter(self).

__len__()

Return len(self).

__new__()

Create and return a new object. See help(type) for accurate signature.


Methods

find_timespans_intersecting_offset()
find_timespans_intersecting_timespan()
find_timespans_starting_at()
find_timespans_stopping_at()
get_start_offset_after()
get_start_offset_before()
index()
insert()
remove()