Apache Mesos
Public Member Functions | Protected Attributes | List of all members
mesos::IDAcceptor< T > Class Template Reference

Used to filter results for API handlers. More...

#include <http.hpp>

Public Member Functions

 IDAcceptor (const Option< std::string > &id=None())
 
bool accept (const T &candidateId) const
 

Protected Attributes

Option< T > targetId
 

Detailed Description

template<typename T>
class mesos::IDAcceptor< T >

Used to filter results for API handlers.

Provides the 'accept()' method to test whether the supplied ID is equal to a stored target ID. If no target ID is provided when the acceptor is constructed, it will accept all inputs.

Constructor & Destructor Documentation

template<typename T >
mesos::IDAcceptor< T >::IDAcceptor ( const Option< std::string > &  id = None())
inline

Member Function Documentation

template<typename T >
bool mesos::IDAcceptor< T >::accept ( const T &  candidateId) const
inline

Member Data Documentation

template<typename T >
Option<T> mesos::IDAcceptor< T >::targetId
protected

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