MCPcopy Create free account
hub / github.com/avaneev/biteopt / CBiteOptBase

Class CBiteOptBase

biteaux.h:1744–2307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1742
1743template< typename ptype >
1744class CBiteOptBase : public CBiteOptInterface,
1745 virtual protected CBiteParPops< ptype >
1746{
1747private:
1748 CBiteOptBase( const CBiteOptBase& )
1749 {
1750 // Copy-construction unsupported.
1751 }
1752
1753 CBiteOptBase& operator = ( const CBiteOptBase& )
1754 {
1755 // Copying unsupported.
1756 return( *this );
1757 }
1758
1759public:
1760 static const int MaxSelCount = 64; ///< The maximal number of selectors
1761 ///< that can be added to *this object (for static arrays).
1762
1763 CBiteOptBase()
1764 : MinValues( NULL )
1765 , MaxValues( NULL )
1766 , DiffValues( NULL )
1767 , DiffValuesI( NULL )
1768 , StartParams( NULL )
1769 , BestValues( NULL )
1770 , NewValues( NULL )
1771 , SelCount( 0 )
1772 {
1773 }
1774
1775 virtual ~CBiteOptBase()
1776 {
1777 delete[] MinValues;
1778 delete[] MaxValues;
1779 delete[] DiffValues;
1780 delete[] DiffValuesI;
1781 delete[] StartParams;
1782 delete[] BestValues;
1783 delete[] NewValues;
1784 }
1785
1786 virtual const double* getBestParams() const
1787 {
1788 return( BestValues );
1789 }
1790
1791 virtual double getBestCost() const
1792 {
1793 return( BestCost );
1794 }
1795
1796 virtual const double* getLastCosts() const
1797 {
1798 return( LastCosts );
1799 }
1800
1801 virtual const double* getLastValues() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected