Samond Classes Library 1.2.6-STABLE build 219
SCSorter.h
Go to the documentation of this file.
1 //
2 // SCSorter.h
3 // scl
4 //
5 // Created by Viacheslav Smolensky on 25.05.12.
6 // Copyright (c) 2007 - 2018 by Samond Development Corporation. All rights reserved.
7 //
8 
22 #import <Foundation/Foundation.h>
24 #import <scl/SCObject.h>
25 
26 @class SCStrings;
27 
28 #pragma mark -
29 #pragma mark Protocol SCSorter Declaration
30 
43 @protocol SCSorter
44 
45 #pragma mark -
46 #pragma mark Sorting Objects
47 
62 - (void)ascendingSortCollection:(id<SCMutableIndexedCollection>)collection;
63 
74 - (void)descendingSortCollection:(id<SCMutableIndexedCollection>)collection;
75 
76 #pragma mark -
77 #pragma mark Sorting Strings
78 
93 - (void)ascendingSortText:(SCStrings *)text;
94 
105 - (void)descendingSortText:(SCStrings *)text;
106 
107 @end
108 
109 #pragma mark -
110 #pragma mark Class Constants
111 
120 #define SCSorterClass @"SCSorter"
121 
122 
123 #pragma mark -
124 #pragma mark Class SCSorter Declaration
125 
138 @interface SCSorter : SCObject <SCSorter>
139 
140 #pragma mark -
141 #pragma mark Sorting Objects
142 - (void)ascendingSortCollection:(id<SCMutableIndexedCollection>)collection;
143 - (void)descendingSortCollection:(id<SCMutableIndexedCollection>)collection;
144 
145 #pragma mark -
146 #pragma mark Sorting Strings
147 - (void)ascendingSortText:(SCStrings *)text;
148 - (void)descendingSortText:(SCStrings *)text;
149 
150 @end
Class SCObject header file.
Mutable indexed collection protocol.
Definition: SCCollectionProtocols.h:887
Strings list class.
Definition: SCStrings.h:74
Parent class of all library classes.
Definition: SCObject.h:61
Abstract implementation of the protocol SCSorter.
Definition: SCSorter.h:138
Collection types protocols header file.
Sorting algorithm protocol.
Definition: SCSorter.h:43