PageRenderTime 24ms CodeModel.GetById 14ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/MapView/GTM/GTMNSNumber+64Bit.h

http://github.com/route-me/route-me
C Header | 38 lines | 13 code | 6 blank | 19 comment | 0 complexity | 629ba1fe078e7529af2f0923785d18be MD5 | raw file
 1//
 2//  GTMNSNumber+64Bit.h
 3//
 4//  Copyright 2009 Google Inc.
 5//
 6//  Licensed under the Apache License, Version 2.0 (the "License"); you may not
 7//  use this file except in compliance with the License.  You may obtain a copy
 8//  of the License at
 9// 
10//  http://www.apache.org/licenses/LICENSE-2.0
11// 
12//  Unless required by applicable law or agreed to in writing, software
13//  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14//  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
15//  License for the specific language governing permissions and limitations under
16//  the License.
17//
18
19#import <Foundation/Foundation.h>
20#import "GTMDefines.h"
21
22// Adds support for working with NSIntegers, 
23// NSUIntegers, CGFloats and NSNumbers (rdar://5812091)
24@interface NSNumber (GTM64BitAdditions)
25
26+ (NSNumber *)gtm_numberWithCGFloat:(CGFloat)value;
27+ (NSNumber *)gtm_numberWithInteger:(NSInteger)value;
28+ (NSNumber *)gtm_numberWithUnsignedInteger:(NSUInteger)value;
29
30- (id)gtm_initWithCGFloat:(CGFloat)value;
31- (id)gtm_initWithInteger:(NSInteger)value;
32- (id)gtm_initWithUnsignedInteger:(NSUInteger)value;
33
34- (CGFloat)gtm_cgFloatValue;
35- (NSInteger)gtm_integerValue;
36- (NSUInteger)gtm_unsignedIntegerValue;
37
38@end