//
// Created by Jake Close on 3/13/18.
//

#pragma once

#include "ISR.h"
#include <vector>

using namespace std;
//Find occurrences of all child ISRs within a single document

class ISROr : public ISR
	{
public:
	vector<ISR*>Terms;
	unsigned NumberOfTerms;

	ISROr ( vector<ISR * > InputTerms );

	Location Seek ( Location target ) override;
	ISREndDoc * GetEndDocument ( ) override;



private:
	ISR *nearestTerm;

	};