Class ChainBase

Inheritance Relationships

Derived Type

Class Documentation

class ChainBase

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

Subclassed by message_filters::Chain< M >

Public Functions

inline virtual ~ChainBase()
template<typename F>
inline std::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.

Parameters:
  • F – [template] The type of the filter

  • index – The index of the filter (returned by addFilter())

Protected Functions

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