Public Member Functions | Protected Member Functions | List of all members
message_filters::ChainBase Class Referenceabstract

Base class for Chain, allows you to store multiple chains in the same container. Provides filter retrieval by index. More...

#include <chain.h>

Inheritance diagram for message_filters::ChainBase:
Inheritance graph
[legend]

Public Member Functions

template<typename F >
boost::shared_ptr< F > getFilter (size_t index) const
 Retrieve a filter from this chain by index. Returns an empty shared_ptr if the index is greater than the size of the chain. NOT type-safe. More...
 
virtual ~ChainBase ()
 

Protected Member Functions

virtual boost::shared_ptr< void > getFilterForIndex (size_t index) const =0
 

Detailed Description

Base class for Chain, allows you to store multiple chains in the same container. Provides filter retrieval by index.

Definition at line 50 of file chain.h.

Constructor & Destructor Documentation

virtual message_filters::ChainBase::~ChainBase ( )
inlinevirtual

Definition at line 53 of file chain.h.

Member Function Documentation

template<typename F >
boost::shared_ptr<F> message_filters::ChainBase::getFilter ( size_t  index) const
inline

Retrieve a filter from this chain by index. Returns an empty shared_ptr if the index is greater than the size of the chain. NOT type-safe.

Parameters
F[template] The type of the filter
indexThe index of the filter (returned by addFilter())

Definition at line 63 of file chain.h.

virtual boost::shared_ptr<void> message_filters::ChainBase::getFilterForIndex ( size_t  index) const
protectedpure virtual

Implemented in message_filters::Chain< M >.


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


message_filters
Author(s): Josh Faust, Vijay Pradeep
autogenerated on Wed Mar 21 2018 07:13:44