Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::accu::shape::bbox< P > Struct Template Reference

Generic bounding box accumulator class. More...

#include <bbox.hh>

Inherits mln::accu::internal::base< const box< P > &, bbox< P > >.

Public Member Functions

bool is_valid () const
 Check whether this accu is able to return a result.
 
void take_as_init (const T &t)
 Take as initialization the value t.
 
void take_n_times (unsigned n, const T &t)
 Take n times the value t.
 
const box< P > & to_result () const
 Get the value of the accumulator.
 
void init ()
 Manipulators.
 

Detailed Description

template<typename P>
struct mln::accu::shape::bbox< P >

Generic bounding box accumulator class.

The parameter P is the type of points.

Definition at line 55 of file accu/shape/bbox.hh.

Member Function Documentation

template<typename P >
void bbox< P >::init ( )
inline

Manipulators.

Definition at line 124 of file accu/shape/bbox.hh.

template<typename P >
bool bbox< P >::is_valid ( ) const
inline

Check whether this accu is able to return a result.

Always true here.

Definition at line 224 of file accu/shape/bbox.hh.

void mln::Accumulator< bbox< P > >::take_as_init ( const T &  t)
inherited

Take as initialization the value t.

Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').

void mln::Accumulator< bbox< P > >::take_n_times ( unsigned  n,
const T &  t 
)
inherited

Take n times the value t.

Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').

template<typename P >
const box< P > & bbox< P >::to_result ( ) const
inline

Get the value of the accumulator.

Definition at line 215 of file accu/shape/bbox.hh.

Referenced by mln::geom::rotate().