point_algorithm Struct Reference

#include <point_algorithm.hpp>

Inheritance diagram for point_algorithm:

algorithm observer subject free_point_algorithm lines_meet_algorithm List of all members.

Public Member Functions

 point_algorithm ()
virtual ~point_algorithm ()
virtual void update ()
 uses the "template method"-pattern.
point get_point ()
virtual bool is_free ()

Protected Member Functions

virtual point calculate ()=0

Protected Attributes

boost::shared_ptr< pointm_calculated_point

Detailed Description

Definition at line 30 of file point_algorithm.hpp.


Constructor & Destructor Documentation

point_algorithm::point_algorithm  ) 
 

Definition at line 23 of file point_algorithm.cpp.

point_algorithm::~point_algorithm  )  [virtual]
 

Definition at line 27 of file point_algorithm.cpp.


Member Function Documentation

virtual point point_algorithm::calculate  )  [protected, pure virtual]
 

Implemented in free_point_algorithm, and lines_meet_algorithm.

Referenced by update().

point point_algorithm::get_point  ) 
 

Definition at line 39 of file point_algorithm.cpp.

References m_calculated_point.

bool point_algorithm::is_free  )  [virtual]
 

Reimplemented in free_point_algorithm.

Definition at line 44 of file point_algorithm.cpp.

void point_algorithm::update  )  [virtual]
 

uses the "template method"-pattern.

Implements algorithm.

Definition at line 33 of file point_algorithm.cpp.

References calculate(), m_calculated_point, and subject::notice_all_observers().


Member Data Documentation

boost::shared_ptr<point> point_algorithm::m_calculated_point [protected]
 

Definition at line 34 of file point_algorithm.hpp.

Referenced by get_point(), and update().


The documentation for this struct was generated from the following files:
Generated on Fri May 19 19:30:29 2006 for geometria by  doxygen 1.4.6-NO