Interior-point-optimisation  1.0-1
Interior-pointoptimisationlibrary
ipo_function::detail::FunctionBase Class Referenceabstract

Base class for Function and DerivativesEstimates. More...

#include <FunctionBase.hpp>

Inheritance diagram for ipo_function::detail::FunctionBase:
Inheritance graph
Collaboration diagram for ipo_function::detail::FunctionBase:
Collaboration graph

Public Member Functions

 FunctionBase (size_t const size=0)
 Constructor. More...
 
virtual ~FunctionBase ()=0
 Make the class abstract. More...
 
size_t getSize () const
 Get size of vector for function arguments or zero for arbitrary size. More...
 

Protected Attributes

size_t const size
 Size of vector arguments to supply to subclass functions. More...
 

Detailed Description

Base class for Function and DerivativesEstimates.

This class allows you to specify a size for the vectors passed to a Function or DerivativesEstimates object. If no size or size zero (default) is set then the vector size is not checked. Generally, you should set a size unless, for example, you wish to define a function that can act on arbitarily-size vectors.

Definition at line 41 of file FunctionBase.hpp.

Constructor & Destructor Documentation

FunctionBase::FunctionBase ( size_t const  size = 0)

Constructor.

The size should be set to the size of vector the class takes unless you wish to define a function that can act on any size of vector.

Parameters
sizeThe size of vector for subclass functions.

Definition at line 28 of file FunctionBase.cc.

FunctionBase::~FunctionBase ( )
pure virtual

Make the class abstract.

Definition at line 30 of file FunctionBase.cc.

Member Function Documentation

Member Data Documentation

size_t const ipo_function::detail::FunctionBase::size
protected

Size of vector arguments to supply to subclass functions.

Initialise to zero for arbitrary size.

Definition at line 63 of file FunctionBase.hpp.

Referenced by getSize(), ipo_function::concrete::LinearCombination::resize(), and ipo_function::concrete::QuadraticCombination::resize().


The documentation for this class was generated from the following files: