src/sparse-array-node.cpp

00001 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
00018 /*
00019  * frpuniverse
00020  * Copyright (C) Peter L. Berghold 2008 <Peter@Berghold.net>
00021  * 
00022  * frpuniverse is free software.
00023  * 
00024  * You may redistribute it and/or modify it under the terms of the
00025  * GNU General Public License, as published by the Free Software
00026  * Foundation; either version 2 of the License, or (at your option)
00027  * any later version.
00028  * 
00029  * frpuniverse is distributed in the hope that it will be useful,
00030  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00031  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00032  * See the GNU General Public License for more details.
00033  * 
00034  * You should have received a copy of the GNU General Public License
00035  * along with frpuniverse.  If not, write to:
00036  *      The Free Software Foundation, Inc.,
00037  *      51 Franklin Street, Fifth Floor
00038  *      Boston, MA  02110-1301, USA.
00039  */
00040 
00041 #include "sparse-array-node.hpp"
00042 
00043 
00044 sparseArrayNode::sparseArrayNode(){
00045         right=0;
00046         down=0;
00047         row=-1;
00048         column=-1;
00049         
00050 };
00051 
00052 sparseArrayNode::sparseArrayNode(int r,int c){
00053         row=r;
00054         column=c;
00055         right=0;
00056         down=0;
00057 }
00058 
00059 void sparseArrayNode::setColumn(int c){
00060         column=c;
00061 }
00062 
00063 int sparseArrayNode::getColumn(){
00064         return column;
00065 }
00066 
00067 void sparseArrayNode::setRow(int r){
00068         row=r;
00069 }
00070 
00071 int sparseArrayNode::getRow(){
00072         return row;
00073 }
00074 
00075 void sparseArrayNode::setDown(sparseArrayNode* d){
00076         down=d;
00077 }
00078 
00079 sparseArrayNode* sparseArrayNode::getDown(){
00080         return down;
00081 }
00082 
00083 void sparseArrayNode::setRight(sparseArrayNode* r){
00084         right=r;
00085 }
00086 
00087 sparseArrayNode* sparseArrayNode::getRight(){
00088         return right;
00089 }

Generated on Fri Mar 7 16:40:53 2008 for frpuniverse by  doxygen 1.4.7