MoochoPack_ActSetStats.hpp

Go to the documentation of this file.
00001 // @HEADER
00002 // ***********************************************************************
00003 // 
00004 // Moocho: Multi-functional Object-Oriented arCHitecture for Optimization
00005 //                  Copyright (2003) Sandia Corporation
00006 // 
00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00008 // license for use of this work by or on behalf of the U.S. Government.
00009 // 
00010 // This library is free software; you can redistribute it and/or modify
00011 // it under the terms of the GNU Lesser General Public License as
00012 // published by the Free Software Foundation; either version 2.1 of the
00013 // License, or (at your option) any later version.
00014 //  
00015 // This library is distributed in the hope that it will be useful, but
00016 // WITHOUT ANY WARRANTY; without even the implied warranty of
00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 // Lesser General Public License for more details.
00019 //  
00020 // You should have received a copy of the GNU Lesser General Public
00021 // License along with this library; if not, write to the Free Software
00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023 // USA
00024 // Questions? Contact Roscoe A. Bartlett (rabartl@sandia.gov) 
00025 // 
00026 // ***********************************************************************
00027 // @HEADER
00028 
00029 #ifndef ACT_SET_STATS_H
00030 #define ACT_SET_STATS_H
00031 
00032 #include "MoochoPack_Types.hpp"
00033 
00034 namespace MoochoPack {
00035 
00039 class ActSetStats {
00040 public:
00041 
00042   // Public types
00043 
00045   enum { NOT_KNOWN = -1 };
00046 
00047   // Public interface
00048 
00050   ActSetStats()
00051     : num_active_(NOT_KNOWN), num_adds_(NOT_KNOWN), num_drops_(NOT_KNOWN)
00052     , num_active_indep_(NOT_KNOWN), num_adds_indep_(NOT_KNOWN), num_drops_indep_(NOT_KNOWN)
00053   {}
00054 
00056   void set_stats(
00057     int num_active, int num_adds, int num_drops
00058     ,int num_active_indep, int num_adds_indep, int num_drops_indep
00059     )
00060   {
00061     num_active_        = num_active;
00062     num_adds_          = num_adds;
00063     num_drops_         = num_drops;
00064     num_active_indep_  = num_active_indep;
00065     num_adds_indep_    = num_adds_indep;
00066     num_drops_indep_   = num_drops_indep;
00067   }
00068 
00070   int num_active() const
00071   {
00072     return num_active_;
00073   }
00075   int num_adds() const
00076   {
00077     return num_adds_;
00078   }
00080   int num_drops() const
00081   {
00082     return num_drops_;
00083   }
00084 
00086   int num_active_indep() const
00087   {
00088     return num_active_indep_;
00089   }
00091   int num_adds_indep() const
00092   {
00093     return num_adds_indep_;
00094   }
00096   int num_drops_indep() const
00097   {
00098     return num_drops_indep_;
00099   }
00100 
00101 private:
00102   int num_active_;
00103   int num_adds_;
00104   int num_drops_;
00105   int num_active_indep_;
00106   int num_adds_indep_;
00107   int num_drops_indep_;
00108 
00109 };  // end class ActSetStats
00110 
00111 } // end namespace MoochoPack
00112 
00113 #endif  // ACT_SET_STATS_H

Generated on Tue Jul 13 09:30:52 2010 for MOOCHO (Single Doxygen Collection) by  doxygen 1.4.7