te::common::BaseVisitable< T, R > Class Template Referenceabstract

The root of all hierarchies that can be visited. More...

#include <BaseVisitable.h>

Public Types

typedef R ReturnType
 
typedef T VisitorType
 

Public Member Functions

virtual ReturnType accept (VisitorType &guest) const =0
 It call the visit method from the guest object. More...
 

Protected Member Functions

virtual ~BaseVisitable ()
 Destructor. More...
 

Detailed Description

template<class T, class R = void>
class te::common::BaseVisitable< T, R >

The root of all hierarchies that can be visited.

This class defines a pure virtual function that subclasses must implement in order to be visited.

This function may return values (see the R type in template declaration).

Requirements on types:

  • T: the type of visitor;
  • R: the return type for the accept method.
See also
BaseVisitor, Visitor

Definition at line 53 of file BaseVisitable.h.

Member Typedef Documentation

template<class T, class R = void>
typedef R te::common::BaseVisitable< T, R >::ReturnType

Definition at line 58 of file BaseVisitable.h.

template<class T, class R = void>
typedef T te::common::BaseVisitable< T, R >::VisitorType

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

template<class T, class R = void>
virtual te::common::BaseVisitable< T, R >::~BaseVisitable ( )
inlineprotectedvirtual

Destructor.

Definition at line 72 of file BaseVisitable.h.

Member Function Documentation

template<class T, class R = void>
virtual ReturnType te::common::BaseVisitable< T, R >::accept ( VisitorType &  guest) const
pure virtual

It call the visit method from the guest object.

Parameters
guestThe guest or visitor.
Returns
Any valid value define by the template type R.

Referenced by te::sqlite::BatchExecutor::add(), te::qt::widgets::ChartConfigurer::config(), te::map::CanvasConfigurer::config(), te::ogr::Transactor::execute(), te::sqlite::DataSourceTransactor::execute(), te::ado::Transactor::execute(), te::pgis::Transactor::execute(), te::se::SymbolizerColorFinder::find(), te::da::SpatialQueryProcessor::getAttrRestrictions(), te::da::SpatialQueryProcessor::getDataSet(), te::sqlite::EWKBSize::getEWKBSize(), te::map::QueryEncoder::getExpression(), te::da::SpatialQueryProcessor::getOIDSet(), te::qt::widgets::WhereClauseWidget::getWhereString(), te::pgis::PreparedQuery::prepare(), te::sqlite::PreparedQuery::prepare(), te::ogr::Transactor::query(), te::sqlite::DataSourceTransactor::query(), te::wfs::Transactor::query(), te::ado::Transactor::query(), te::pgis::Transactor::query(), te::gm::WKBSize::size(), te::da::BinaryOpEncoder::toSQL(), te::da::UnaryOpEncoder::toSQL(), te::da::FunctionEncoder::toSQL(), te::da::TemplateEncoder::toSQL(), te::sqlite::EWKBSize::visit(), te::ogr::SQLVisitor::visit(), te::gm::WKBSize::visit(), te::da::SQLVisitor::visit(), te::fe::serialize::Expression::visit(), te::da::AttributeRestrictionVisitor::visit(), te::da::SpatialRestrictionVisitor::visit(), te::gm::WKBWriter::visit(), te::pgis::EWKBWriter::visit(), te::map::QueryEncoder::visit(), te::gm::WKBWriter::write(), te::fe::serialize::Expression::write(), te::pgis::EWKBWriter::write(), and te::gm::WKTWriter::write().


The documentation for this class was generated from the following file: