PCL
IndirectSortedArray.h
Go to the documentation of this file.
1 // ____ ______ __
2 // / __ \ / ____// /
3 // / /_/ // / / /
4 // / ____// /___ / /___ PixInsight Class Library
5 // /_/ \____//_____/ PCL 2.9.3
6 // ----------------------------------------------------------------------------
7 // pcl/IndirectSortedArray.h - Released 2025-02-21T12:13:32Z
8 // ----------------------------------------------------------------------------
9 // This file is part of the PixInsight Class Library (PCL).
10 // PCL is a multiplatform C++ framework for development of PixInsight modules.
11 //
12 // Copyright (c) 2003-2025 Pleiades Astrophoto S.L. All Rights Reserved.
13 //
14 // Redistribution and use in both source and binary forms, with or without
15 // modification, is permitted provided that the following conditions are met:
16 //
17 // 1. All redistributions of source code must retain the above copyright
18 // notice, this list of conditions and the following disclaimer.
19 //
20 // 2. All redistributions in binary form must reproduce the above copyright
21 // notice, this list of conditions and the following disclaimer in the
22 // documentation and/or other materials provided with the distribution.
23 //
24 // 3. Neither the names "PixInsight" and "Pleiades Astrophoto", nor the names
25 // of their contributors, may be used to endorse or promote products derived
26 // from this software without specific prior written permission. For written
27 // permission, please contact info@pixinsight.com.
28 //
29 // 4. All products derived from this software, in any form whatsoever, must
30 // reproduce the following acknowledgment in the end-user documentation
31 // and/or other materials provided with the product:
32 //
33 // "This product is based on software from the PixInsight project, developed
34 // by Pleiades Astrophoto and its contributors (https://pixinsight.com/)."
35 //
36 // Alternatively, if that is where third-party acknowledgments normally
37 // appear, this acknowledgment must be reproduced in the product itself.
38 //
39 // THIS SOFTWARE IS PROVIDED BY PLEIADES ASTROPHOTO AND ITS CONTRIBUTORS
40 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
41 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
42 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PLEIADES ASTROPHOTO OR ITS
43 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
44 // EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, BUSINESS
45 // INTERRUPTION; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; AND LOSS OF USE,
46 // DATA OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
47 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
49 // POSSIBILITY OF SUCH DAMAGE.
50 // ----------------------------------------------------------------------------
51 
52 #ifndef __PCL_IndirectSortedArray_h
53 #define __PCL_IndirectSortedArray_h
54 
56 
57 #include <pcl/Defs.h>
58 #include <pcl/Diagnostics.h>
59 
60 #include <pcl/IndirectArray.h>
61 #include <pcl/SortedArray.h>
62 
63 namespace pcl
64 {
65 
66 // ----------------------------------------------------------------------------
67 
90 template <class T, class A = StandardAllocator>
91 class PCL_CLASS IndirectSortedArray : public IndirectSortedContainer<T>
92 {
93 public:
94 
98 
102 
106 
110 
114 
118 
122 
126 
130 
134 
138 
142 
143  // -------------------------------------------------------------------------
144 
148  IndirectSortedArray() = default;
149 
154  explicit
156  : m_array( n )
157  {
158  }
159 
165  : m_array( n, p )
166  {
167  }
168 
174  template <class FI>
175  IndirectSortedArray( FI i, FI j )
176  : m_array( i, j )
177  {
178  Sort();
179  }
180 
185 
190 
199  {
200  }
201 
206  bool IsUnique() const
207  {
208  return m_array.IsUnique();
209  }
210 
218  bool IsAliasOf( const IndirectSortedArray& x ) const
219  {
220  return m_array.IsAliasOf( x.m_array );
221  }
222 
232  {
233  m_array.EnsureUnique();
234  }
235 
240  size_type Size() const
241  {
242  return m_array.Size();
243  }
244 
248  {
249  return m_array.Length();
250  }
251 
255  {
256  return m_array.Capacity();
257  }
258 
262  {
263  return m_array.Available();
264  }
265 
268  bool IsValid() const
269  {
270  return m_array.IsValid();
271  }
272 
275  bool IsEmpty() const
276  {
277  return m_array.IsEmpty();
278  }
279 
283  {
284  return m_array.LowerBound();
285  }
286 
290  {
291  return m_array.UpperBound();
292  }
293 
296  const allocator& Allocator() const
297  {
298  return m_array.Allocator();
299  }
300 
303  void SetAllocator( const allocator& a )
304  {
305  m_array.SetAllocator( a );
306  }
307 
311  {
312  return m_array.At( i );
313  }
314 
318  {
319  return m_array.At( i );
320  }
321 
325  {
326  return m_array.MutableIterator( i );
327  }
328 
331  const T* operator []( size_type i ) const
332  {
333  return m_array[i];
334  }
335 
338  const T* operator *() const
339  {
340  return *Begin();
341  }
342 
346  {
347  return m_array.ConstBegin();
348  }
349 
353  {
354  return m_array.Begin();
355  }
356 
360  {
361  return m_array.ConstEnd();
362  }
363 
367  {
368  return m_array.End();
369  }
370 
374  {
375  return m_array.ConstReverseBegin();
376  }
377 
381  {
382  return m_array.ReverseBegin();
383  }
384 
388  {
389  return m_array.ConstReverseEnd();
390  }
391 
395  {
396  return m_array.ReverseEnd();
397  }
398 
401  const T* First() const
402  {
403  return m_array.First();
404  }
405 
408  T* MutableFirst()
409  {
410  return IsEmpty() ? nullptr : *MutableBegin();
411  }
412 
415  const T* Last() const
416  {
417  return m_array.Last();
418  }
419 
422  T* MutableLast()
423  {
424  return IsEmpty() ? nullptr : *MutableReverseBegin();
425  }
426 
436  {
437  m_array.UniquifyIterator( i );
438  }
439 
450  {
451  m_array.UniquifyIterators( i, j );
452  }
453 
454 #ifndef __PCL_NO_STL_COMPATIBLE_ITERATORS
459  {
460  return Begin();
461  }
462 
467  {
468  return End();
469  }
470 #endif // !__PCL_NO_STL_COMPATIBLE_ITERATORS
471 
478  IndirectSortedArray& operator =( const IndirectSortedArray& x )
479  {
480  Assign( x );
481  return *this;
482  }
483 
486  void Assign( const IndirectSortedArray& x )
487  {
488  m_array.Assign( x.m_array );
489  }
490 
495  {
496  Transfer( x );
497  return *this;
498  }
499 
503  {
504  m_array.Transfer( x.m_array );
505  }
506 
510  {
511  m_array.Transfer( x.m_array );
512  }
513 
517  {
518  Assign( x );
519  return *this;
520  }
521 
524  void Assign( const array_implementation& x )
525  {
526  m_array.Assign( x );
527  Sort();
528  }
529 
533  {
534  Transfer( x );
535  return *this;
536  }
537 
541  {
542  m_array.Transfer( x );
543  Sort();
544  }
545 
549  {
550  m_array.Transfer( x );
551  Sort();
552  }
553 
556  void Assign( const T* p, size_type n = 1 )
557  {
558  m_array.Assign( p, n );
559  }
560 
563  template <class FI>
564  void Assign( FI i, FI j )
565  {
566  m_array.Assign( i, j );
567  Sort();
568  }
569 
572  template <class C>
573  void CloneAssign( const C& x )
574  {
575  m_array.CloneAssign( x );
576  Sort();
577  }
578 
582  {
583  m_array.CloneAssign( x );
584  }
585 
589  {
590  m_array.CloneAssign( x );
591  }
592 
595  void Import( iterator i, iterator j )
596  {
597  m_array.Import( i, j );
598  Sort();
599  }
600 
604  {
605  return m_array.Release();
606  }
607 
612  {
613  return m_array;
614  }
615 
618  void Add( const IndirectSortedArray& x )
619  {
620  const_iterator p = x.m_array.Begin(), q = x.m_array.End();
621  less cmp;
622  for ( iterator i = m_array.Begin(); i < m_array.End() && p < q; ++i )
623  if ( cmp( *p, *i ) )
624  i = m_array.Insert( i, *p++ );
625  if ( p < q )
626  m_array.Append( p, q );
627  }
628 
631  void Add( const IndirectArray<T,A>& x )
632  {
633  Add( x.Begin(), x.End() );
634  }
635 
638  const_iterator Add( const T* p, size_type n = 1 )
639  {
640  return m_array.Insert( pcl::InsertionPoint( m_array.Begin(), m_array.End(), p, less() ), p, n );
641  }
642 
645  template <class FI>
646  void Add( FI i, FI j )
647  {
648  if ( i != j )
649  {
650  m_array.EnsureUnique();
651  for ( const_iterator l = m_array.Begin(), r = m_array.End(); ; )
652  {
653  FI h = i;
654  const_iterator m = m_array.Insert( pcl::InsertionPoint( l, r, *i, less() ), *i );
655 
656  if ( ++i == j )
657  break;
658 
659  if ( less()( *i, *h ) )
660  {
661  l = m_array.Begin();
662  r = m;
663  }
664  else
665  {
666  l = m+1;
667  r = m_array.End();
668  }
669  }
670  }
671  }
672 
675  void Remove( const_iterator i, size_type n = 1 )
676  {
677  m_array.Remove( i, n );
678  }
679 
683  {
684  m_array.Remove( i, j );
685  }
686 
699  void RemoveFirst( size_type n = 1 )
700  {
701  m_array.RemoveFirst( n );
702  }
703 
716  void RemoveLast( size_type n = 1 )
717  {
718  m_array.RemoveLast( n );
719  }
720 
735  {
736  m_array.Truncate( i );
737  }
738 
743  void Shrink( size_type n = 1 )
744  {
745  m_array.Shrink( n );
746  }
747 
750  void Remove( const T& v )
751  {
752  const_iterator i = pcl::BinarySearch( Begin(), End(), &v, less() );
753  if ( i != End() )
754  m_array.Remove( i, pcl::InsertionPoint( i+1, End(), &v, less() ) );
755  }
756 
759  template <class BP>
760  void Remove( const T& v, BP p )
761  {
762  m_array.Remove( v, p );
763  }
764 
767  void Remove( const T* p )
768  {
769  m_array.Remove( p );
770  }
771 
774  void Clear()
775  {
776  m_array.Clear();
777  }
778 
781  void Delete( iterator i, size_type n = 1 )
782  {
783  Delete( i, i+n );
784  }
785 
788  void Delete( iterator i, iterator j )
789  {
790  // NB: Copy-on-write must *not* happen in this function.
791  if ( i < End() )
792  {
793  i = pcl::Max( const_cast<iterator>( Begin() ), i );
794  j = pcl::Min( j, const_cast<iterator>( End() ) );
795  m_array.Delete( i, j );
796  if ( j < End() )
797  pcl::Fill( pcl::Copy( i, j, const_cast<iterator>( End() ) ),
798  const_cast<iterator>( End() ),
799  static_cast<T*>( nullptr ) );
800  }
801  }
802 
805  void Delete( const T& v )
806  {
807  // NB: Copy-on-write must *not* happen in this function.
808  const_iterator i = pcl::BinarySearch( Begin(), End(), &v, less() );
809  if ( i != End() )
810  Delete( const_cast<iterator>( i ),
811  const_cast<iterator>( pcl::InsertionPoint( i+1, Begin(), &v, less() ) ) );
812  }
813 
816  template <class BP>
817  void Delete( const T& v, BP p )
818  {
819  // NB: Copy-on-write must *not* happen in this function.
820  m_array.Delete( v, p );
821  pcl::QuickSort( Begin(), End(), less() );
822  }
823 
826  void Delete()
827  {
828  m_array.Delete();
829  }
830 
833  void Destroy( iterator i, size_type n = 1 )
834  {
835  m_array.Destroy( i, n );
836  }
837 
840  void Destroy( iterator i, iterator j )
841  {
842  m_array.Destroy( i, j );
843  }
844 
847  void Destroy( const T& v )
848  {
849  const_iterator i = pcl::BinarySearch( Begin(), End(), &v, less() );
850  if ( i != End() )
851  Destroy( const_cast<iterator>( i ),
852  const_cast<iterator>( pcl::InsertionPoint( i+1, End(), &v, less() ) ) );
853  }
854 
857  template <class BP>
858  void Destroy( const T& v, BP p )
859  {
860  m_array.Destroy( v, p );
861  pcl::QuickSort( Begin(), End(), less() );
862  }
863 
866  void Destroy()
867  {
868  m_array.Destroy();
869  }
870 
873  void Pack()
874  {
875  m_array.Pack();
876  }
877 
880  void Reserve( size_type n )
881  {
882  m_array.Reserve( n );
883  }
884 
887  void Squeeze()
888  {
889  m_array.Squeeze();
890  }
891 
895  void Fill( const T& v )
896  {
897  m_array.Fill( v );
898  }
899 
902  template <class F>
903  void Apply( F f ) const
904  {
905  m_array.Apply( f );
906  }
907 
910  template <class F>
912  {
913  return m_array.FirstThat( f );
914  }
915 
918  template <class F>
920  {
921  return m_array.LastThat( f );
922  }
923 
926  size_type Count( const T& v ) const
927  {
928  const_iterator i = pcl::BinarySearch( Begin(), End(), &v, less() );
929  return (i != End()) ? pcl::InsertionPoint( i+1, End(), &v, less() ) - i : 0;
930  }
931 
934  size_type Count( const T* p ) const
935  {
936  return m_array.Count( p );
937  }
938 
941  template <class BP>
942  size_type Count( const T& v, BP p ) const
943  {
944  return m_array.Count( v, p );
945  }
946 
949  template <class UP>
950  size_type CountIf( UP p ) const
951  {
952  return m_array.CountIf( p );
953  }
954 
958  {
959  return Begin();
960  }
961 
964  template <class BP>
965  const_iterator MinItem( BP p ) const
966  {
967  return m_array.MinItem( p );
968  }
969 
973  {
974  return IsEmpty() ? End() : End()-1;
975  }
976 
979  template <class BP>
980  const_iterator MaxItem( BP p ) const
981  {
982  return m_array.MaxItem( p );
983  }
984 
987  const_iterator Search( const T& v ) const
988  {
989  return pcl::BinarySearch( Begin(), End(), &v, less() );
990  }
991 
994  const_iterator Search( const T* p ) const
995  {
996  return m_array.Search( p );
997  }
998 
1001  template <class BP>
1002  const_iterator Search( const T& v, BP p ) const
1003  {
1004  return m_array.Search( v, p );
1005  }
1006 
1009  const_iterator SearchLast( const T& v ) const
1010  {
1011  return pcl::BinarySearchLast( Begin(), End(), &v, less() );
1012  }
1013 
1016  const_iterator SearchLast( const T* p ) const
1017  {
1018  return m_array.SearchLast( p );
1019  }
1020 
1023  template <class BP>
1024  const_iterator SearchLast( const T& v, BP p ) const
1025  {
1026  return m_array.SearchLast( v, p );
1027  }
1028 
1031  bool Contains( const T& v ) const
1032  {
1033  return Search( v ) != End();
1034  }
1035 
1038  bool Contains( const T* p ) const
1039  {
1040  return m_array.Contains( p );
1041  }
1042 
1045  template <class BP>
1046  bool Contains( const T& v, BP p ) const
1047  {
1048  return Search( v, p ) != End();
1049  }
1050 
1053  void Sort()
1054  {
1055  m_array.Sort();
1056  }
1057 
1062  {
1063  pcl::Swap( x1.m_array, x2.m_array );
1064  }
1065 
1071  friend bool operator ==( const IndirectSortedArray& x1, const IndirectSortedArray& x2 )
1072  {
1073  return x1.m_array == x2.m_array;
1074  }
1075 
1081  friend bool operator ==( const IndirectSortedArray& x1, const array_implementation& x2 )
1082  {
1083  return x1.m_array == x2;
1084  }
1085 
1091  friend bool operator ==( const array_implementation& x1, const IndirectSortedArray& x2 )
1092  {
1093  return x1 == x2.m_array;
1094  }
1095 
1101  friend bool operator <( const IndirectSortedArray& x1, const IndirectSortedArray& x2 )
1102  {
1103  return x1.m_array < x2.m_array;
1104  }
1105 
1111  friend bool operator <( const IndirectSortedArray& x1, const array_implementation& x2 )
1112  {
1113  return x1.m_array < x2;
1114  }
1115 
1121  friend bool operator <( const array_implementation& x1, const IndirectSortedArray& x2 )
1122  {
1123  return x1 < x2.m_array;
1124  }
1125 
1142  template <class S, typename SP>
1143  S& ToSeparated( S& s, SP separator ) const
1144  {
1145  return m_array.ToSeparated( s, separator );
1146  }
1147 
1170  template <class S, typename SP, class AF>
1171  S& ToSeparated( S& s, SP separator, AF append ) const
1172  {
1173  return m_array.ToSeparated( s, separator, append );
1174  }
1175 
1184  template <class S>
1185  S& ToCommaSeparated( S& s ) const
1186  {
1187  return m_array.ToCommaSeparated( s );
1188  }
1189 
1198  template <class S>
1199  S& ToSpaceSeparated( S& s ) const
1200  {
1201  return m_array.ToSpaceSeparated( s );
1202  }
1203 
1212  template <class S>
1213  S& ToTabSeparated( S& s ) const
1214  {
1215  return m_array.ToTabSeparated( s );
1216  }
1217 
1228  uint64 Hash64( uint64 seed = 0 ) const
1229  {
1230  return m_array.Hash64( seed );
1231  }
1232 
1243  uint32 Hash32( uint32 seed = 0 ) const
1244  {
1245  return m_array.Hash32( seed );
1246  }
1247 
1252  uint64 Hash( uint64 seed = 0 ) const
1253  {
1254  return Hash64( seed );
1255  }
1256 
1257  // -------------------------------------------------------------------------
1258 
1259 private:
1260 
1261  array_implementation m_array;
1262 };
1263 
1264 // ----------------------------------------------------------------------------
1265 
1273 template <class T, class A, class V> inline
1274 IndirectSortedArray<T,A>& operator <<( IndirectSortedArray<T,A>& x, const V* p )
1275 {
1276  x.Add( static_cast<const T*>( p ) );
1277  return x;
1278 }
1279 
1287 template <class T, class A, class V> inline
1288 IndirectSortedArray<T,A>& operator <<( IndirectSortedArray<T,A>&& x, const V* p )
1289 {
1290  x.Add( static_cast<const T*>( p ) );
1291  return x;
1292 }
1293 
1299 template <class T, class A> inline
1300 IndirectSortedArray<T,A>& operator <<( IndirectSortedArray<T,A>& x1, const IndirectSortedArray<T,A>& x2 )
1301 {
1302  x1.Add( x2 );
1303  return x1;
1304 }
1305 
1311 template <class T, class A> inline
1312 IndirectSortedArray<T,A>& operator <<( IndirectSortedArray<T,A>&& x1, const IndirectSortedArray<T,A>& x2 )
1313 {
1314  x1.Add( x2 );
1315  return x1;
1316 }
1317 
1323 template <class T, class A> inline
1324 IndirectSortedArray<T,A>& operator <<( IndirectSortedArray<T,A>& x1, const IndirectArray<T,A>& x2 )
1325 {
1326  x1.Add( x2 );
1327  return x1;
1328 }
1329 
1335 template <class T, class A> inline
1336 IndirectSortedArray<T,A>& operator <<( IndirectSortedArray<T,A>&& x1, const IndirectArray<T,A>& x2 )
1337 {
1338  x1.Add( x2 );
1339  return x1;
1340 }
1341 
1342 // ----------------------------------------------------------------------------
1343 
1344 } // pcl
1345 
1346 #endif // __PCL_IndirectSortedArray_h
1347 
1348 // ----------------------------------------------------------------------------
1349 // EOF pcl/IndirectSortedArray.h - Released 2025-02-21T12:13:32Z
Provides memory allocation for PCL containers.
Definition: Allocator.h:132
Generic dynamic array of pointers to objects.
Definition: IndirectArray.h:92
T *const * const_iterator
const T * const_item_type
Definition: Container.h:109
Generic dynamic sorted array of pointers to objects.
bool Contains(const T *p) const
const_iterator Search(const T &v, BP p) const
void Import(iterator i, iterator j)
reverse_iterator MutableReverseEnd()
IndirectSortedArray(const IndirectSortedArray &)=default
iterator MutableAt(size_type i)
const_iterator Add(const T *p, size_type n=1)
iterator MutableIterator(const_iterator i)
reverse_iterator MutableReverseBegin()
typename array_implementation::const_reverse_iterator const_reverse_iterator
typename array_implementation::reverse_iterator reverse_iterator
const_iterator MinItem(BP p) const
size_type Count(const T &v, BP p) const
void UniquifyIterators(iterator &i, iterator &j)
void Add(const IndirectSortedArray &x)
const_iterator At(size_type i) const
void Delete(iterator i, iterator j)
const_iterator Begin() const
IndirectSortedArray(size_type n, const T *p)
uint32 Hash32(uint32 seed=0) const
void Remove(const_iterator i, size_type n=1)
const_iterator Search(const T *p) const
const_reverse_iterator ReverseEnd() const
const_iterator SearchLast(const T *p) const
void RemoveFirst(size_type n=1)
IndirectSortedArray(IndirectSortedArray &&)=default
bool Contains(const T &v, BP p) const
const_iterator SearchLast(const T &v, BP p) const
void Destroy(iterator i, iterator j)
void Add(const IndirectArray< T, A > &x)
typename array_implementation::equal equal
void Delete(iterator i, size_type n=1)
const_iterator MaxItem() const
void RemoveLast(size_type n=1)
void Delete(const T &v, BP p)
typename array_implementation::less less
size_type Count(const T &v) const
const_iterator begin() const
void Remove(const T &v, BP p)
array_implementation ToUnsorted() const
size_type Count(const T *p) const
typename array_implementation::block_allocator block_allocator
friend void Swap(IndirectSortedArray &x1, IndirectSortedArray &x2)
typename array_implementation::iterator iterator
void Destroy(const T &v, BP p)
const_iterator LastThat(F f) const
const_reverse_iterator ReverseBegin() const
const allocator & Allocator() const
const_iterator MinItem() const
void Assign(const array_implementation &x)
void Truncate(const_iterator i)
void Transfer(IndirectSortedArray &x)
void Transfer(IndirectSortedArray &&x)
typename array_implementation::const_iterator const_iterator
const_iterator end() const
void CloneAssign(SortedArray< T, A > &x)
uint64 Hash(uint64 seed=0) const
const_iterator MaxItem(BP p) const
void Destroy(iterator i, size_type n=1)
const_iterator End() const
bool IsAliasOf(const IndirectSortedArray &x) const
void Remove(const_iterator i, const_iterator j)
void Transfer(array_implementation &x)
void UniquifyIterator(iterator &i)
uint64 Hash64(uint64 seed=0) const
void CloneAssign(IndirectSortedArray &x)
size_type CountIf(UP p) const
const_iterator FirstThat(F f) const
bool Contains(const T &v) const
const_iterator Search(const T &v) const
typename array_implementation::allocator allocator
void Assign(const T *p, size_type n=1)
void Shrink(size_type n=1)
const_iterator SearchLast(const T &v) const
void SetAllocator(const allocator &a)
void Assign(const IndirectSortedArray &x)
void Transfer(array_implementation &&x)
Root base class of all PCL sorted containers of pointers to objects.
Definition: Container.h:138
typename IndirectContainer< T >::item_type item_type
Definition: Container.h:144
typename IndirectContainer< T >::const_item_type const_item_type
Definition: Container.h:149
Reverse random access iterator.
Definition: Iterator.h:420
Generic dynamic sorted array.
Definition: SortedArray.h:83
Array< T, A > & operator<<(Array< T, A > &x, const V &v)
Definition: Array.h:2313
bool operator==(const Array< T, A > &x1, const Array< T, A > &x2) noexcept
Definition: Array.h:2285
bool operator<(const Array< T, A > &x1, const Array< T, A > &x2) noexcept
Definition: Array.h:2296
Complex< T1 > operator*(const Complex< T1 > &c1, const Complex< T2 > &c2) noexcept
Definition: Complex.h:562
uint64 Hash64(const void *data, size_type size, uint64 seed=0) noexcept
Definition: Math.h:4830
void Destroy(T *p)
Definition: Allocator.h:277
void Swap(GenericPoint< T > &p1, GenericPoint< T > &p2) noexcept
Definition: Point.h:1459
unsigned long long uint64
Definition: Defs.h:682
unsigned int uint32
Definition: Defs.h:666
FI BinarySearch(FI i, FI j, const T &v) noexcept
Definition: Search.h:170
FI BinarySearchLast(FI i, FI j, const T &v) noexcept
Definition: Search.h:238
FI1 Search(FI1 i1, FI1 j1, FI2 i2, FI2 j2) noexcept
Definition: Search.h:397
FI InsertionPoint(FI i, FI j, const T &v) noexcept
Definition: Search.h:326
size_t size_type
Definition: Defs.h:609
void Sort(BI i, BI j)
Definition: Sort.h:520
void QuickSort(RI i, RI j)
Definition: Sort.h:236
constexpr const T & Min(const T &a, const T &b) noexcept
Definition: Utility.h:90
constexpr const T & Max(const T &a, const T &b) noexcept
Definition: Utility.h:119
PCL root namespace.
Definition: AbstractImage.h:77
A functional class that tests two pointers for equality of the pointed objects.
Definition: Indirect.h:278
A functional class that applies the less than relational operator to the objects pointed to by two po...
Definition: Indirect.h:300