Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

s11n::Detail::same_name< NameableT > Struct Template Reference

Functor to return true if given NameableT objects match a certain name. More...

#include <algo.hpp>

List of all members.

Public Types

typedef NameableT nameable_type

Public Member Functions

 same_name (const std::string &n)
bool operator() (const nameable_type *x) const


Detailed Description

template<typename NameableT>
struct s11n::Detail::same_name< NameableT >

Functor to return true if given NameableT objects match a certain name.

NameableT must support:

std::string name() const;

This class is admittedly to avoid the use of bind1st/bind2nd :/.

Definition at line 407 of file algo.hpp.


Member Typedef Documentation

template<typename NameableT>
typedef NameableT s11n::Detail::same_name< NameableT >::nameable_type
 

Definition at line 409 of file algo.hpp.


Constructor & Destructor Documentation

template<typename NameableT>
s11n::Detail::same_name< NameableT >::same_name const std::string &  n  )  [inline, explicit]
 

Definition at line 410 of file algo.hpp.


Member Function Documentation

template<typename NameableT>
bool s11n::Detail::same_name< NameableT >::operator() const nameable_type x  )  const [inline]
 

Definition at line 413 of file algo.hpp.


The documentation for this struct was generated from the following file:
Generated on Sat Dec 10 13:33:59 2005 for libs11n-1.2.1 by  doxygen 1.4.4