SYCompositeSequentialSearch Class Reference

Performs search using all search objects it contains, sequentially, until one of them finds something. Composite search object can be a part of other composite search objects. The same search object can be used in more than one composite searches. More...

#import <SYSearch.h>

Inheritance diagram for SYCompositeSequentialSearch:
Collaboration diagram for SYCompositeSequentialSearch:

Instance Methods

(nonnull instancetype) - initWithSearches:
 Creates composite sequential search. More...
 
((unavailable("Use initWithSearches: instead.") - __attribute__
 
- Instance Methods inherited from SYSearchBase
(nonnull SYSearchSession *) - startNewSession
 Creates a new search session associated with this search instance. More...
 

Class Methods

((unavailable("Use initWithSearches: instead.") + __attribute__
 

Properties

NSArray< SYSearchBase * > * searches
 Search objects passed during initialization. More...
 

Detailed Description

Performs search using all search objects it contains, sequentially, until one of them finds something. Composite search object can be a part of other composite search objects. The same search object can be used in more than one composite searches.

Method Documentation

◆ initWithSearches:

- (nonnull instancetype) initWithSearches: (nonnull NSArray< SYSearchBase * > *)  searches

Creates composite sequential search.

Parameters
searchesArray of search objects which will perform search sequentially one by one. The order is important, if one search object returns results, next searches will NOT be called. The same search object can be used in more than one composite searches.

◆ __attribute__ [1/2]

- ((unavailable("Use) initWithSearches:

Implements SYSearchBase.

◆ __attribute__ [2/2]

+ ((unavailable("Use) initWithSearches:

Implements SYSearchBase.

Property Documentation

◆ searches

- (NSArray<SYSearchBase*>*) searches
readnonatomicstrong

Search objects passed during initialization.


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