SepFunc Class Reference

Abstract base class for a separable function. More...

#include <func.h>

Inheritance diagram for SepFunc:

Inheritance graph
[legend]
Collaboration diagram for SepFunc:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SepFunc (int n, Pointer< ostream > out_func_p_=out_out_p, Pointer< ostream > out_func_log_p_=out_log_p)
 Constructor for one block.
 SepFunc (const vector< ivector > &block_, Pointer< ostream > out_func_p_=out_out_p, Pointer< ostream > out_func_log_p_=out_log_p)
 Constructor for a block-structure.
 SepFunc (const SepFunc &f)
 Copy constructor.
void set_dim ()
 Sets the dimension to the correct value.
virtual void print (ostream &out) const
 Print's out information about this function.

Public Attributes

vector< ivectorblock
 The block's of indices.

Detailed Description

Abstract base class for a separable function.

See also:
Func

Definition at line 740 of file func.h.


Constructor & Destructor Documentation

SepFunc::SepFunc ( int  n,
Pointer< ostream >  out_func_p_ = out_out_p,
Pointer< ostream >  out_func_log_p_ = out_log_p 
) [inline]

Constructor for one block.

Parameters:
n The size of the first block.
out_func_p_ An ostream to print function-related output to, default is out_out_p.
out_func_log_p_ An ostream to print function-related logging-output to, default is out_func_p.

Definition at line 751 of file func.h.

References block.

SepFunc::SepFunc ( const vector< ivector > &  block_,
Pointer< ostream >  out_func_p_ = out_out_p,
Pointer< ostream >  out_func_log_p_ = out_log_p 
) [inline]

Constructor for a block-structure.

Parameters:
block_ The block-structure.
out_func_p_ An ostream to print function-related output to, default is out_out_p.
out_func_log_p_ An ostream to print function-related logging-output to, default is out_func_p.
See also:
set_dim()

Definition at line 763 of file func.h.

References set_dim().

SepFunc::SepFunc ( const SepFunc f  )  [inline]

Copy constructor.

Definition at line 770 of file func.h.


Member Function Documentation

void SepFunc::set_dim (  )  [inline]

Sets the dimension to the correct value.

Sets dim_ to sum of the sizes of each block.

See also:
dim()

Definition at line 778 of file func.h.

References block, and Func::dim_.

Referenced by SepFunc().

virtual void SepFunc::print ( ostream &  out  )  const [inline, virtual]

Print's out information about this function.

Print's the dimension and the block-structure.

Parameters:
out The ostream to print to.
See also:
block

Reimplemented from Func.

Reimplemented in SepQcFunc.

Definition at line 788 of file func.h.

References block, and Func::dim().


Member Data Documentation

vector<ivector> SepFunc::block

The block's of indices.

Definition at line 744 of file func.h.

Referenced by SepQcFunc::VariableIterator::operator()(), print(), SepFunc(), and set_dim().


The documentation for this class was generated from the following file:
Generated on Tue Oct 21 03:12:41 2008 for LaGO by  doxygen 1.4.7