#include <w_windownd.hh>
Inheritance diagram for oln::abstract::w_windownd< Exact >:


Public Types | |
|
typedef window_base< abstract::w_window< Exact >, Exact > | super_type |
| Set the super type. | |
| typedef w_windownd< Exact > | self_type |
| Set the self type. | |
| typedef Exact | exact_type |
| Set the exact type. | |
|
typedef struct_elt_traits< Exact >::weight_type | weight_type |
| Set the type of weight. | |
| typedef struct_elt_traits< Exact >::dpoint_type | dpoint_type |
| The associate image's type of dpoint (move point). | |
Static Public Member Functions | |
| std::string | name () |
| Return the name of the type. | |
Protected Member Functions | |
| weight_type | get_weight (unsigned i) const |
Get the weight of the nth point of the window.
| |
| exact_type & | add_ (const dpoint_type &dp, const weight_type &w) |
Add a point (with weight) to the window.
| |
| const weight_type & | set_ (const dpoint_type &dp, const weight_type &w) |
Set the weight of a point if it exists. Otherwise create a new entry.
| |
| w_windownd () | |
| Construct a w_window. | |
| w_windownd (unsigned size) | |
Construct a w_window of 'size' elements.
| |
Protected Attributes | |
| std::vector< weight_type > | w_ |
| List of point's weight. | |
Friends | |
| class | w_window< exact_type > |
A w_window is a set of points associated with a weight. This class defines how to deal with. These points have N dimensions.
Definition at line 59 of file w_windownd.hh.
|
|||||
|
The associate image's type of dpoint (move point).
Reimplemented from oln::abstract::window_base< w_window< Exact >, Exact >. Reimplemented in oln::w_window1d< T >, oln::w_window2d< T >, oln::w_window3d< T >, and oln::w_window2d< T2 >. Definition at line 73 of file w_windownd.hh. |
|
||||||||||||||||
|
Add a point (with weight) to the window.
Definition at line 108 of file w_windownd.hh.
00109 {
00110 precondition(! has_(dp));
00111 if (w == 0) // Don't add 0 weighted entries
00112 return this->exact();
00113 if (dp.is_centered())
00114 this->centered_ = true;
00115 this->dp_.push_back(dp);
00116 delta_update(dp);
00117 w_.push_back(w);
00118 return this->exact();
00119 }
|
|
||||||||||
|
Get the weight of the nth point of the window.
Definition at line 93 of file w_windownd.hh.
|
|
||||||||||||||||
|
Set the weight of a point if it exists. Otherwise create a new entry.
Definition at line 129 of file w_windownd.hh.
|
1.3.6-20040222