/*
* IntegerList.h
* Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL++2000
#pragma once
#include <sol\LinkedList.h>
#include <sol\Integer.h>
namespace SOL {
class IntegerList :public LinkedList {
public:
IntegerList() { }
Boolean add(int value) {
return LinkedList::addLast(new Integer(value));
}
Boolean addLast(int value) {
return LinkedList::addLast(new Integer(value));
}
Boolean addFirst(int value) {
return LinkedList::addFirst(new Integer(value));
}
Integer* getNth(int n) {
return (Integer*)LinkedList::getNth(n);
}
};
}
|