#include <w_window.hh>
Inheritance diagram for oln::abstract::w_window< Exact >:
Public Types | |
typedef Exact | exact_type |
Set the exact type. | |
typedef struct_elt< Exact > | super_type |
Set the super type. | |
typedef struct_elt_traits< Exact >::dpoint_type | dpoint_type |
The associate image's type of dpoint (move point). | |
typedef struct_elt_traits< Exact >::weight_type | weight_type |
Set the type of weight. | |
Public Member Functions | |
exact_type & | add (const abstract::dpoint< dpoint_type > &dp, const weight_type &w=1) |
Add a point (with weight) to the w_window. | |
weight_type | w (unsigned i) const |
Get the weight of a point.
| |
const weight_type & | set (const abstract::dpoint< dpoint_type > &dp, const weight_type &weight) |
Set the weight of a point if it exists. Otherwise create a new entry.
| |
Static Public Member Functions | |
std::string | name () |
Return the name of the type. | |
Protected Member Functions | |
exact_type & | add_dp (const abstract::dpoint< dpoint_type > &dp) |
Add a new point with a weight of 1.
| |
w_window () | |
Do nothing, used only by sub-classes. | |
Friends | |
class | struct_elt< exact_type > |
A w_window is a set of points associated with a weight. This class defines how to deal with.
Definition at line 62 of file w_window.hh.
|
The associate image's type of dpoint (move point).
Reimplemented from oln::abstract::struct_elt< Exact >. Reimplemented in oln::abstract::w_windownd< Exact >, oln::w_window1d< T >, oln::w_window2d< T >, oln::w_window3d< T >, oln::abstract::w_windownd< w_window2d< T2 > >, oln::abstract::w_windownd< w_window2d< T > >, oln::abstract::w_windownd< w_window1d< T > >, oln::abstract::w_windownd< w_window3d< T > >, oln::abstract::window_base< w_window< w_window1d< T > >, w_window1d< T > >, oln::abstract::window_base< w_window< Exact >, Exact >, oln::abstract::window_base< w_window< w_window2d< T2 > >, w_window2d< T2 > >, oln::abstract::window_base< w_window< w_window2d< T > >, w_window2d< T > >, oln::abstract::window_base< w_window< w_window3d< T > >, w_window3d< T > >, and oln::w_window2d< T2 >. Definition at line 72 of file w_window.hh. |
|
Add a point (with weight) to the w_window. Add a new member to the w_window.
Definition at line 94 of file w_window.hh. Referenced by oln::abstract::w_window< w_window3d< T > >::add_dp(), and oln::abstract::w_windownd< w_window3d< T > >::set_().
00095 {
00096 return this->exact().add_(dp.exact(), w);
00097 }
|
|
Add a new point with a weight of 1.
Definition at line 134 of file w_window.hh.
00135 { 00136 return this->add(dp.exact(), 1); 00137 } |
|
Set the weight of a point if it exists. Otherwise create a new entry.
Definition at line 118 of file w_window.hh.
00120 {
00121 return this->exact().set_(dp.exact(), weight);
00122 }
|
|
Get the weight of a point.
Definition at line 105 of file w_window.hh. Referenced by oln::convol::slow::convolve().
00106 {
00107 return this->exact().get_weight(i);
00108 }
|