/home/coin/SVN-release/OS-2.4.0/OS/applications/columnGen/code/OSNode.cpp

Go to the documentation of this file.
00001 /* $Id: OSNode.cpp 3186 2010-02-06 23:38:35Z kmartin $ */
00013 #include "OSNode.h"
00014 #include <iostream>
00015 
00016 
00017 
00018         OSNode::OSNode(){
00019                 
00020                 rowIdxNumNonz = 0;
00021                 nodeID = -99999;
00022                 
00023         }//end default constructor
00024         
00025         
00026         OSNode::OSNode(int rowIdxNumNonz_,  int thetaNumNonz_){
00027                 
00028                 rowIdxNumNonz = rowIdxNumNonz_;
00029                 rowIdx = new int[ rowIdxNumNonz] ;
00030                 rowUB = new double[ rowIdxNumNonz] ;
00031                 rowLB = new double[ rowIdxNumNonz] ;
00032                 
00033                 thetaNumNonz = thetaNumNonz_;
00034                 thetaIdx = new int[ thetaNumNonz] ;
00035                 theta = new double[ thetaNumNonz] ;
00036                 
00037                 nodeID = -99999;
00038                 
00039 
00040                 
00041                 
00042         }//end constructor for allocating arrays
00043         
00044         
00045 
00046         OSNode::~OSNode(){
00047                 
00048                 //garbage collection
00049                 
00050                 delete[] rowIdx;
00051                 rowIdx = NULL;
00052                 
00053                 delete[] rowUB;
00054                 rowUB = NULL;
00055                 
00056                 delete[] rowLB;
00057                 rowLB = NULL;
00058                 
00059                 delete[] thetaIdx;
00060                 thetaIdx = NULL;
00061                 
00062                 delete[] theta;
00063                 theta = NULL;
00064                 
00065                 
00066                 std::cout << "I AM DELETING A NODE IN OSNODE DESTRUCTOR" << std::endl;
00067         }//end default destructor
00068         
00069         

Generated on Thu Sep 22 03:06:00 2011 by  doxygen 1.4.7