class LockSegList |
Segment list class.
| LockSegList (const char* lid, const char* file=0) Segment list constructor | |
| ~LockSegList (void) Segment list destructor | |
| LockSegList (void) Segment default constructor | |
| check (void) const Check that segments are inserted in order. | |
| clear (void) Erase all the segments in the list | |
| coalesce (void) Coalesce overlapping segments | |
| find (const Time& t) const throw(std::domain_error) Look for the segment containing the specified time | |
| findafter (const Time& t) const Find the first segment that ends after the specified time. | |
| getListID (void) const Return the list title | |
| inSegment (const Time& t) const Test whether the specified time is within one of the segments in the list | |
| inSegment (const Time& t, const Time& t2) const Test whether any time between the specified start and end time is within one or more of the list segments | |
| insert (const LockSegment& l) Insert a copy of the specified segment into the list. | |
| invert (void) Invert the segment list. | |
| live (Time start=Time(0), Time end=Time(SEGMENT_TINF)) const Calculate the "live time" of the segments list. Return the sum of all segment durations between the start and the end time. | |
| merge (const LockSegment& seg) Insert a segment into the list. | |
| pad (Interval pFront=0, Interval pBack=0) Pad the front and back of each segment in the list by pFront and pBack. | |
| read (const std::string& file) Fill segment list from the contents of the specified file | |
| setDebug (int lvl) Set the debug printout level | |
| size (void) const Return the number of segments in the list | |
| sort (void) Sort the list | |
| stuff (const LockSegment& seg) Add an segment to the end of the list (unsorted insertion) | |
| operator[] (size_type seg) const Return a constant reference to the specified segment | |
| operator[] (const Time& t) const throw(std::domain_error) Return a constant reference to the segment containing the specified time | |
| operator|= (const LockSegList& t) Replace the current list with the union of the list and the argument | |
| operator&= (const LockSegList& t) Replace the current list with the intersection of the list and the argument | |
| operator^= (const LockSegList& t) Replace the current list with the differences between the current list and the argument list argument | |
| overlap (const Time& t, const Time& t2) const Test whether any segments in the list overlap the specified time span | |
| putID (std::ostream& out, size_type inx) const Write a segment specifier to the list. |
LockSegList is a list of LockSegment objects ordered by Start Time.
Alphabetic index HTML hierarchy of classes or Java
Please send questions and comments to zweizig_j@ligo-wa.caltech.edu