7#ifndef __IPFILTER_HPP__
8#define __IPFILTER_HPP__
26 const std::vector<Number>& vals,
40 std::vector<Number> vals
48 for(
Index i = 0; i < ncoor; i++ )
50 if( vals[i] <=
vals_[i] )
65 std::vector<Number> vals
72 for(
Index i = 0; i < ncoor; i++ )
74 if( vals[i] >
vals_[i] )
157 std::vector<Number> vals
166 std::vector<Number> vals,
177 std::vector<Number> vals(2);
190 std::vector<Number> vals(2);
Class for one filter entry.
~FilterEntry()
Destructor.
FilterEntry(const std::vector< Number > &vals, Index iter)
Constructor with the two components and the current iteration count.
FilterEntry()
Default Constructor.
std::vector< Number > vals_
values defining the coordinates of the entry
FilterEntry(const FilterEntry &)
Copy Constructor.
const Index iter_
iteration number in which this entry was added to filter
Number val(Index i) const
void operator=(const FilterEntry &)
Default Assignment Operator.
bool Dominated(std::vector< Number > vals) const
Check if this entry is dominated by given coordinates.
bool Acceptable(std::vector< Number > vals) const
Check acceptability of pair (phi,theta) with respect to this filter entry.
std::list< FilterEntry * > filter_list_
List storing the filter entries.
void AddEntry(std::vector< Number > vals, Index iteration)
Add filter entry for given coordinates.
Filter()
Default Constructor.
Index dim_
Dimension of the filter (number of coordinates per entry)
bool Acceptable(Number val1, Number val2) const
void Clear()
Delete all filter entries.
Filter(const Filter &)
Copy Constructor.
bool Acceptable(std::vector< Number > vals) const
Check acceptability of given coordinates with respect to the filter.
Filter(Index dim)
Default Constructor.
void AddEntry(Number val1, Number val2, Index iteration)
void Print(const Journalist &jnlst)
Print current filter entries.
void operator=(const Filter &)
Default Assignment Operator.
Class responsible for all message output.
This file contains a base class for all exceptions and a set of macros to help with exceptions.
ipindex Index
Type of all indices of vectors, matrices etc.
ipnumber Number
Type of all numbers.