MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ sort_implementation()

template<ComputeData InputType = Kakshya::DataVariant, ComputeData OutputType = InputType>
output_type MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_implementation ( const input_type &  input)
inlineoverrideprotectedvirtual

Main sorting implementation with type dispatch.

Implements MayaFlux::Yantra::UniversalSorter< InputType, OutputType >.

Definition at line 115 of file StandardSorter.hpp.

116 {
117 switch (this->get_strategy()) {
119 return sort_in_place(input);
121 return sort_copy(input);
123 return sort_indices_only(input);
125 return sort_partial(input);
127 return sort_chunked(input);
129 return sort_parallel(input);
130 default:
131 return sort_copy(input);
132 }
133 }
Core::GlobalInputConfig input
Definition Config.cpp:42
output_type sort_parallel(const input_type &input)
Parallel sorting.
output_type sort_indices_only(const input_type &input)
Generate sort indices only.
output_type sort_chunked(const input_type &data)
Chunked sorting implementation.
output_type sort_partial(const input_type &input)
Partial sorting (top-K elements)
output_type sort_in_place(const input_type &input)
In-place sorting (modifies input)
output_type sort_copy(const input_type &input)
Copy-based sorting (preserves input)
SortingStrategy get_strategy() const
@ PARTIAL_SORT
Sort only top-K elements.
@ IN_PLACE
Sort data in-place (modifies input)
@ COPY_SORT
Create sorted copy (preserves input)
@ CHUNKED_SORT
Sort in chunks for large datasets.
@ PARALLEL_SORT
Parallel/concurrent sorting.
@ INDEX_ONLY
Generate sort indices only.

References MayaFlux::Yantra::CHUNKED_SORT, MayaFlux::Yantra::COPY_SORT, MayaFlux::Yantra::UniversalSorter< InputType, OutputType >::get_strategy(), MayaFlux::Yantra::IN_PLACE, MayaFlux::Yantra::INDEX_ONLY, input, MayaFlux::Yantra::PARALLEL_SORT, MayaFlux::Yantra::PARTIAL_SORT, MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_chunked(), MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_copy(), MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_in_place(), MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_indices_only(), MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_parallel(), and MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_partial().

+ Here is the call graph for this function: