Open-RJ C/C++ User's Journal Synesis Software STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ...

record_has_field Struct Reference

#include <openrj/stl/functional.hpp>

List of all members.


Detailed Description

Predicate which detects whether a record contains one of more fields of a given name.


Public Member Functions

Construction
 record_has_field (char const *fieldName)
 Constructs an instance with the given field name.
template<typename S>
 record_has_field (S const &fieldName)
 Constructs an instance with the given field name.
Operators
template<typename R>
bool operator() (R const &record) const
 Tests the given record to see whether it contains (one or more of) the required field.


Constructor & Destructor Documentation

record_has_field ( char const *  fieldName  )  [inline, explicit]

Constructs an instance with the given field name.

Parameters:
fieldName The name of the field against which records will be tested

record_has_field ( S const &  fieldName  )  [inline, explicit]

Constructs an instance with the given field name.

Parameters:
fieldName The name of the field against which records will be tested


Member Function Documentation

bool operator() ( R const &  record  )  const [inline]

Tests the given record to see whether it contains (one or more of) the required field.


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

Open-RJ Library documentation © Synesis Software Pty Ltd, 2004-2005