#include <cdict.h>
Inherits boost::noncopyable.
Public Member Functions | |
| DictIdxComparator (const std::string &s) | |
| boost::shared_ptr< IProperty > | getIProperty () |
| bool | operator() (const CDict::Value::value_type &item) |
Private Attributes | |
| const std::string | str |
| boost::shared_ptr< IProperty > | ip |
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.
| pdfobjects::DictIdxComparator::DictIdxComparator | ( | const std::string & | s | ) | [inline] |
| boost::shared_ptr<IProperty> pdfobjects::DictIdxComparator::getIProperty | ( | ) | [inline] |
References ip.
Referenced by pdfobjects::CDict::delProperty(), pdfobjects::CDict::getProperty(), and pdfobjects::CDict::setProperty().
| bool pdfobjects::DictIdxComparator::operator() | ( | const CDict::Value::value_type & | item | ) | [inline] |
boost::shared_ptr<IProperty> pdfobjects::DictIdxComparator::ip [private] |
Referenced by getIProperty(), and operator()().
const std::string pdfobjects::DictIdxComparator::str [private] |
Referenced by operator()().