pdfobjects::DictIdxComparator Class Reference

#include <cdict.h>

Inherits boost::noncopyable.

List of all members.

Public Member Functions

 DictIdxComparator (const std::string &s)
boost::shared_ptr< IPropertygetIProperty ()
bool operator() (const CDict::Value::value_type &item)

Private Attributes

const std::string str
boost::shared_ptr< IPropertyip

Detailed Description

This functor is used as a parameter to a function equal to std::find_if algorithm.

Finds out an item specified by its name. std::find_if() CANNOT be used, because in c++ specification two important requirements are missing.

This functor relies on the first one.

REMARK: More effective algorithms could be used but this approach is more generic.


Constructor & Destructor Documentation

pdfobjects::DictIdxComparator::DictIdxComparator ( const std::string &  s  )  [inline]

Member Function Documentation

boost::shared_ptr<IProperty> pdfobjects::DictIdxComparator::getIProperty (  )  [inline]
bool pdfobjects::DictIdxComparator::operator() ( const CDict::Value::value_type &  item  )  [inline]

References ip, and str.


Member Data Documentation

boost::shared_ptr<IProperty> pdfobjects::DictIdxComparator::ip [private]

Referenced by getIProperty(), and operator()().

const std::string pdfobjects::DictIdxComparator::str [private]

Referenced by operator()().


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