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

Predicates.h File Reference

Useful XMLObject predicates for use with STL algorithms. More...

#include <xmltooling/XMLObject.h>
#include <functional>

Namespaces

namespace  xmltooling

Classes

class  xmltooling::hasQName
 Predicate that checks the QName of an XMLObject. More...
class  xmltooling::hasSchemaType
 Predicate that checks the xsi:type of an XMLObject. More...

Functions

template<typename Container, typename Predicate>
Container::value_type find_if (const Container &c, const Predicate &p)
 Template algorithm returns first pointer element from a container that matches a predicate.
template<typename Container, typename Predicate>
Container::value_type find_if (Container &c, const Predicate &p)
 Template algorithm returns first pointer element from a container that matches a predicate.


Detailed Description

Useful XMLObject predicates for use with STL algorithms.


Function Documentation

template<typename Container, typename Predicate>
Container::value_type find_if (  Container &  c,
const Predicate &  p
) 
 

Template algorithm returns first pointer element from a container that matches a predicate.

Parameters:
c read-only container of pointer-based objects
p a predicate function
Returns:
the first object in the container matching the predicate, or NULL

template<typename Container, typename Predicate>
Container::value_type find_if (  const Container &  c,
const Predicate &  p
) 
 

Template algorithm returns first pointer element from a container that matches a predicate.

Parameters:
c read-only container of pointer-based objects
p a predicate function
Returns:
the first object in the container matching the predicate, or NULL


Generated on Mon Jun 22 13:37:15 2009 for xmltooling by  doxygen 1.3.9.1