paludis  Version 2.6.0
Classes | Functions
Visitors

Classes

class  paludis::AcceptVisitor< Visitor_ >
 
class  paludis::AcceptVisitorReturning< Visitor_, Returning_ >
 

Functions

template<typename Visitor_ >
AcceptVisitor< Visitor_ > PALUDIS_VISIBLE paludis::accept_visitor (Visitor_ &v)
 
template<typename Returning_ , typename Visitor_ >
AcceptVisitorReturning< Visitor_, Returning_ > PALUDIS_VISIBLE paludis::accept_visitor_returning (Visitor_ &v)
 

Detailed Description

Visitors are a way of providing subtype-polymorphic behaviour without modifying the visitable class.

Examples

Function Documentation

template<typename Visitor_ >
AcceptVisitor<Visitor_> PALUDIS_VISIBLE paludis::accept_visitor ( Visitor_ &  v)

Convenience function for using a visitor with a standard algorithm.

Examples:
example_contents.cc, and example_dep_label.cc.
template<typename Returning_ , typename Visitor_ >
AcceptVisitorReturning<Visitor_, Returning_> PALUDIS_VISIBLE paludis::accept_visitor_returning ( Visitor_ &  v)

Convenience function for using a visitor with a standard algorithm.