#include <AnnotationIndex.h>
Collaboration diagram for AnnotationIndex:

Public Methods | |
| AnnotationIndex () | |
| A constructor. Create an AnnotationIndex with an empty set of indexes. More... | |
| ~AnnotationIndex () | |
| A destructor. More... | |
| void | add (Annotation *a) | 
| add an annotation to the indexes. More... | |
| void | deleteAnnotation (Annotation *a) | 
| delete an annotation from the indexes. More... | |
| void | addFeature (Annotation *a, const String &feature, const String &value) | 
| add a feature to the indexes. More... | |
| void | deleteFeature (Annotation *a, const String &feature) | 
| delete a feature from the indexes. More... | |
| AnnotationSet | getByOffset (Offset offset) | 
| Annotation* | getAnnotationByOffset (Offset offset) | 
| bool | existsAnnotation (const Id &id) | 
| Test if the specified annotation exists. More... | |
| bool | existsAnchor (const Id &id) | 
| Test if the specified anchor exists. More... | |
| Offset | getNearestOffset (Offset o) | 
| get the nearest used offset to the specified offset. More... | |
      
  | 
  
| 
 A constructor. Create an AnnotationIndex with an empty set of indexes. 
  | 
  
      
  | 
  
| 
 A destructor. 
  | 
  
      
  | 
  
| 
 add an annotation to the indexes. 
  | 
  
      
  | 
  
| 
 add a feature to the indexes. 
  | 
  
      
  | 
  
| 
 delete an annotation from the indexes. 
  | 
  
      
  | 
  
| 
 delete a feature from the indexes. 
  | 
  
      
  | 
  
| 
 Test if the specified anchor exists. 
  | 
  
      
  | 
  
| 
 Test if the specified annotation exists. 
  | 
  
      
  | 
  
| 
 Get one of the annotations which overlap a particular time offset. Same as getByOffset except that getAnnotationByOffset returns only one qualified annotation while getByOffset returns all of them. getAnnotationByOffset is signaficantly faster than getByOffset. Should be favored over getByOffset whenever possible. 
  | 
  
      
  | 
  
| 
 Get the annotations that overlap a particular time offset. Get all annotations whose start anchor offset is smaller than or equal to the given offset AND end anchor offset is greater than or equal to the given offet.  | 
  
      
  | 
  
| 
 get the nearest used offset to the specified offset. 
  | 
  
      
  | 
  
| 
 
  | 
  
1.2.7 written by Dimitri van Heesch,
 © 1997-2001