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

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

#include <algo.hpp>

List of all members.

Public Types

typedef NodeT node_type
typedef
::s11n::node_traits
< NodeT > 
traits_t

Public Member Functions

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


Detailed Description

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

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

NodeT must be compatible with node_traits<NodeT>.

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

Definition at line 406 of file algo.hpp.


Member Typedef Documentation

template<typename NodeT>
typedef NodeT s11n::Detail::same_name< NodeT >::node_type

Definition at line 408 of file algo.hpp.

template<typename NodeT>
typedef ::s11n::node_traits< NodeT > s11n::Detail::same_name< NodeT >::traits_t

Definition at line 409 of file algo.hpp.


Constructor & Destructor Documentation

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

Definition at line 410 of file algo.hpp.


Member Function Documentation

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

Definition at line 413 of file algo.hpp.

References s11n::node_traits< NodeT >::name().


The documentation for this struct was generated from the following file:
Generated on Wed Jun 4 21:45:47 2008 for libs11n-1.2.7 by  doxygen 1.5.3