|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
#include "ami_sort_impl.h"

Go to the source code of this file.
Macros | |
| #define | SORT_DEBUG if (0) |
Functions | |
| template<class T , class Compare > | |
| AMI_err | AMI_sort (AMI_STREAM< T > *instream, AMI_STREAM< T > **outstream, Compare *cmp, int deleteInputStream=0) |
| template<class T , class Compare > | |
| int | isSorted (AMI_STREAM< T > *str, Compare cmp) |
Definition at line 41 of file ami_sort.h.
| AMI_err AMI_sort | ( | AMI_STREAM< T > * | instream, |
| AMI_STREAM< T > ** | outstream, | ||
| Compare * | cmp, | ||
| int | deleteInputStream = 0 |
||
| ) |
Definition at line 85 of file ami_sort.h.
References AMI_ERROR_NO_ERROR, assert, MM_manager, AMI_STREAM< T >::name(), name, NULL, MM_register::print(), runFormation(), SORT_DEBUG, and AMI_STREAM< T >::stream_len().
Referenced by EMPQueueAdaptive< T, Key >::makeExternal().
| int isSorted | ( | AMI_STREAM< T > * | str, |
| Compare | cmp | ||
| ) |
Definition at line 156 of file ami_sort.h.
References AMI_ERROR_NO_ERROR, assert, AMI_STREAM< T >::read_item(), AMI_STREAM< T >::seek(), and AMI_STREAM< T >::stream_len().