PROJProjections
Objective-C
@interface PROJProjections : NSObject
Swift
class PROJProjections : NSObject
Collection of projections by authority
-
Initialize
Declaration
Objective-C
- (instancetype)init;Swift
init!()Return Value
new projections
-
Get the authority projections
Declaration
Objective-C
- (PROJAuthorityProjections *)projectionsForAuthority:(NSString *)authority;Swift
func projections(forAuthority authority: String!) -> PROJAuthorityProjections!Parameters
authoritycoordinate authority
Return Value
authority projections
-
Get the projection for the authority and code
Declaration
Objective-C
- (PROJProjection *)projectionForAuthority:(NSString *)authority andCode:(NSString *)code;Swift
func projection(forAuthority authority: String!, andCode code: String!) -> PROJProjection!Parameters
authoritycoordinate authority
codecoordinate code
Return Value
projection
-
Check if the collection contains the projection
Declaration
Objective-C
- (BOOL)hasProjection:(PROJProjection *)projection;Swift
func hasProjection(_ projection: PROJProjection!) -> BoolParameters
projectionprojection
Return Value
true if has the projection
-
Check if the collection contains a projection for the authority and code
Declaration
Objective-C
- (BOOL)hasProjectionWithAuthority:(NSString *)authority andCode:(NSString *)code;Swift
func hasProjection(withAuthority authority: String!, andCode code: String!) -> BoolParameters
authoritycoordinate authority
codecoordinate code
Return Value
true if has a projection
-
Add the projection
Declaration
Objective-C
- (void)addProjection:(PROJProjection *)projection;Swift
func add(_ projection: PROJProjection!)Parameters
projectionprojection
-
Clear all projections
Declaration
Objective-C
- (void)clear;Swift
func clear() -
Clear all projections for the authority
Declaration
Objective-C
- (void)clearAuthority:(NSString *)authority;Swift
func clearAuthority(_ authority: String!)Parameters
authoritycoordinate authority
-
Remove the projection for the authority and code
Declaration
Objective-C
- (void)removeAuthority:(NSString *)authority andNumberCode:(NSNumber *)code;Swift
func removeAuthority(_ authority: String!, andNumberCode code: NSNumber!)Parameters
authoritycoordinate authority
codecoordinate code
-
Remove the projection for the authority and code
Declaration
Objective-C
- (void)removeAuthority:(NSString *)authority andCode:(NSString *)code;Swift
func removeAuthority(_ authority: String!, andCode code: String!)Parameters
authoritycoordinate authority
codecoordinate code
-
Remove the projection
Declaration
Objective-C
- (void)removeProjection:(PROJProjection *)projection;Swift
func remove(_ projection: PROJProjection!)Parameters
projectionprojection
-
Get the count of authorities
Declaration
Objective-C
- (int)authorityCount;Swift
func authorityCount() -> Int32Return Value
count
-
Get the authorities
Declaration
Objective-C
- (NSArray<NSString *> *)authorities;Swift
func authorities() -> [String]!Return Value
authorities
-
Get the count of projections
Declaration
Objective-C
- (int)projectionCount;Swift
func projectionCount() -> Int32Return Value
count
-
Is the collection empty?
Declaration
Objective-C
- (BOOL)isEmpty;Swift
func isEmpty() -> BoolReturn Value
true if empty
View on GitHub
PROJProjections Class Reference