TridModel.h File Reference

#include <iostream>
#include "Conventions/CalDigitType.h"
#include "Conventions/CalStripType.h"
#include "Conventions/CalTimeType.h"
#include "Midad/Base/DigitText.h"
#include "Plex/PlexStripEndId.h"
#include "Candidate/CandHandle.h"
#include <set>
#include <vector>

Go to the source code of this file.

Classes

class  TridModel

Functions

template<typename _InputIterator1 , typename _InputIterator2 >
bool test_set_intersection (_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2)

Function Documentation

template<typename _InputIterator1 , typename _InputIterator2 >
bool test_set_intersection ( _InputIterator1  __first1,
_InputIterator1  __last1,
_InputIterator2  __first2,
_InputIterator2  __last2 
) [inline]

Definition at line 113 of file TridModel.h.

Referenced by TridModel::Intersects().

00115 {
00116   // concept requirements
00117   // Doesn't compile on MacOSX and isn't strictly neccessary, so I'll leave
00118   // it commented out. May cause problems if this algorithm is ever used wrongly.
00119   //__glibcxx_function_requires(_InputIteratorConcept <_InputIterator1> )
00120   //__glibcxx_function_requires(_InputIteratorConcept <_InputIterator2> )
00121   //__glibcxx_function_requires(_SameTypeConcept<
00122   //                  typename iterator_traits <_InputIterator1>::value_type,
00123   //                  typename iterator_traits <_InputIterator2>::value_type>)
00124   //__glibcxx_function_requires(_LessThanComparableConcept<
00125   //                   typename iterator_traits<_InputIterator1>::value_type>)
00126   //__glibcxx_requires_sorted(__first1, __last1);
00127   //__glibcxx_requires_sorted(__first2, __last2);
00128 
00129   while (__first1 != __last1 && __first2 != __last2)
00130     if (*__first1 < *__first2)
00131       ++__first1;
00132     else if (*__first2 < *__first1)
00133       ++__first2;
00134     else
00135       {
00136         return true;
00137       }
00138    return false;
00139 }


Generated on 8 Jul 2019 for loon by  doxygen 1.6.1