Blame view

DUREX tests/Stack.m 559 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
//  Stack.m
//  DUREX test
//
//  Created by Imanol Barba on 5/23/14.
//  Copyright (c) 2014 Emmoco. All rights reserved.retur
//

#import "Stack.h"

@interface Stack ()

@property (strong,nonatomic) NSMutableArray *dataArray;
@property (strong,nonatomic) NSIndex *lastPosition;
@end

@implementation Stack

- (void) push: (id) element
{
    [[self dataArray] addObject:element];
}
- (id) pop
{
    [[self dataArray] obj]
    [[self dataArray] removeLastObject];
}
- (NSInteger) count
{
    return [[self dataArray] count];
}
- (void) clear
{

}

@end