SOL9 2.0 Class: IntegerList

 SOL9 C++ Class Library  SOL9 Samples  SOL9 Tutorial  SOL9 FAQ  SOL9 ClassTree 

Source code

/*
 * 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);
    }
};

}



Last modified: 1 Feb 2012

Copyright (c) 2009-2012 Antillia.com ALL RIGHTS RESERVED.