oln::w_window1d< T > Class Template Reference

Window 1 dimension with weight. More...

#include <w_window1d.hh>

Inheritance diagram for oln::w_window1d< T >:

Inheritance graph
[legend]
Collaboration diagram for oln::w_window1d< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef w_window1d< T > self_type
 The self type.
typedef struct_elt_traits<
self_type >::iter_type 
iter_type
 The associate image's type of iterator.
typedef struct_elt_traits<
self_type >::neighb_type 
neighb_type
 Type of neighbor.
typedef struct_elt_traits<
self_type >::dpoint_type 
dpoint_type
 The associate image's type of dpoint (move point).
typedef struct_elt_traits<
self_type >::weight_type 
weight_type
 Type of weight.

Public Member Functions

 w_window1d ()
 Construct a w_window of 1 dimension.
 w_window1d (unsigned size)
 Construct a w_window of 1 dimension.
w_window1d< T > & add (const dpoint_type &dp, const weight_type &w)
 Add a dpoint (move point) to the w_window.
w_window1d< T > & add (coord col, const weight_type &weight)
 Add a point by coordinates to the w_window.
const weight_typeset (const dpoint_type &dp, const weight_type &weight)
 Set the weight of a point.
const weight_typeset (coord col, const weight_type &weight)
 Set the weight of a point by coordinates.

Static Public Member Functions

static std::string name ()
 Return the name of the type.

Protected Member Functions

coord delta_update_ (const dpoint_type &dp)
 Update delta.

Friends

class abstract::window_base< abstract::w_window< w_window1d >, w_window1d >

Detailed Description

template<class T>
class oln::w_window1d< T >

Window 1 dimension with weight.

A window is a set of points. This class defines how to deal with. These points have 1 dimension.

Definition at line 67 of file w_window1d.hh.


Member Typedef Documentation

template<class T>
typedef struct_elt_traits< self_type >::iter_type oln::w_window1d< T >::iter_type

The associate image's type of iterator.

Warning:
Prefer the macros oln_iter_type(Iterable) and oln_iter_type_(Iterable) (the same without the 'typename' keyword)

Definition at line 82 of file w_window1d.hh.

template<class T>
typedef struct_elt_traits< self_type >::dpoint_type oln::w_window1d< T >::dpoint_type

The associate image's type of dpoint (move point).

Warning:
Prefer the macros oln_dpoint_type(Pointable) and oln_dpoint_type_(Pointable) (the same without the 'typename' keyword)

Reimplemented from oln::abstract::w_windownd< Exact >.

Definition at line 92 of file w_window1d.hh.


Constructor & Destructor Documentation

template<class T>
oln::w_window1d< T >::w_window1d ( unsigned  size  )  [inline]

Construct a w_window of 1 dimension.

Definition at line 109 of file w_window1d.hh.

00109                               : super_type(size)
00110     {}


Member Function Documentation

template<class T>
w_window1d<T>& oln::w_window1d< T >::add ( const dpoint_type dp,
const weight_type w 
) [inline]

Add a dpoint (move point) to the w_window.

Add a new member to the w_window. This point must be of 1 dimension.

Definition at line 121 of file w_window1d.hh.

Referenced by oln::w_window1d< T >::add().

00122     {
00123       return this->exact().add_(dp, w);
00124     }

template<class T>
w_window1d<T>& oln::w_window1d< T >::add ( coord  col,
const weight_type weight 
) [inline]

Add a point by coordinates to the w_window.

Add a new member by its coordinates to the w_window. The coordinates are only the column number because the w_window is of 1 dimension.

Definition at line 136 of file w_window1d.hh.

References oln::w_window1d< T >::add().

00137     {
00138       return add(dpoint_type(col), weight);
00139     }

template<class T>
const weight_type& oln::w_window1d< T >::set ( const dpoint_type dp,
const weight_type weight 
) [inline]

Set the weight of a point.

Definition at line 147 of file w_window1d.hh.

Referenced by oln::w_window1d< T >::set().

00148     {
00149       return this->exact().set_(dp, weight);
00150     }

template<class T>
const weight_type& oln::w_window1d< T >::set ( coord  col,
const weight_type weight 
) [inline]

Set the weight of a point by coordinates.

The coordinates are only the column number because the w_window is of 1 dimension.

Definition at line 161 of file w_window1d.hh.

References oln::w_window1d< T >::set().

00162     {
00163       return set(dpoint_type(col), weight);
00164     }

template<class T>
coord oln::w_window1d< T >::delta_update_ ( const dpoint_type dp  )  [inline, protected]

Update delta.

Definition at line 184 of file w_window1d.hh.

References oln::abstract::window_base< Sup, Exact >::delta_.

00185     {
00186       delta_(abs(dp.col()));
00187       return this->delta_;
00188     }


The documentation for this class was generated from the following file:
Generated on Tue Feb 20 20:24:20 2007 for Olena by  doxygen 1.5.1