HighlightSearchResultsIterator

class HPS.HighlightSearchResultsIterator : public HPS.Object

An iterator used for traversing results from a search on an associated HighlightSearchResults object.

Public Functions

override void Dispose ()
HPS.KeyPath GetItem ()

Returns the item that this iterator is currently pointing at. Throws an InvalidObjectException if the iterator is not valid. This method is functionally equivalent to the overloaded operator*.

Return

The current item.

HPS.Drawing.Overlay GetOverlay ()

Returns the overlay type for the key path that this iterator is currently pointing at. Throws an InvalidObjectException if the iterator is not valid.

Return

The overlay type.

bool GetPassive ()

Indicates whether the highlight associated with this iterator is passive. Throws an InvalidObjectException if the iterator is not valid.

Return

Whether the highlight is passive.

string GetStyleName ()

Returns the highlight style for the key path that this iterator is currently pointing at. Throws an InvalidObjectException if the iterator is not valid.

Return

The highlight style.

HighlightSearchResultsIterator ()

The default constructor creates a new HighlightSearchResultsIterator object that is not associated with any HighlightSearchResults object.

HighlightSearchResultsIterator (HPS.HighlightSearchResultsIterator in_search_results_iterator)

The copy constructor initializes a new HighlightSearchResultsIterator object that is associated with the same HighlightSearchResults object as the source and at the same location in the results. Subsequent changes to either iterator will not affect the other.

Param in_search_results_iterator

The source of the copy.

bool IsValid ()

Queries the validity of this iterator location. Invalid locations would include uninitialized iterators and iterators that had walked past the last element.

Return

true if this iterator is pointing to a valid item, false otherwise.

void Next ()

Advances the iterator to the next search result item

override HPS.Type ObjectType ()

This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).

Return

The declared type of the object in question, which may differ from the true, underlying type.

override void Reset ()

Resets iterator to the beginning of the associated search results.

void Set (HPS.HighlightSearchResultsIterator in_search_results_iterator)

Copies a HighlightSearchResultsIterator object, associating this object with the same HighlightSearchResults object as the source and at the same location in the results. Subsequent changes to either iterator will not affect the other. This method is functionally equivalent to the overloaded assignment operator except for the return value.

Param in_search_results_iterator

The source of the copy.