|
DCMTK
Version 3.6.1 20131114
OFFIS DICOM Toolkit
|
This implements a search predicate for findItem which looks for some object attribute via the equality operator. More...
Collaboration diagram for DRTSearch::searchPropertyEqual< IOD, Item, type, arg2, argument2 >:Public Types | |
| typedef OFCondition(Item::* | funcType )(type &, arg2) const |
| Type of the getter-function that is used for getting the value. | |
Public Member Functions | |
| searchPropertyEqual (const type &expected, funcType func) | |
| Constructor. More... | |
| OFBool | operator() (const Item &item) |
Private Attributes | |
| type | m_expected |
| The expected value of an item. | |
| funcType | m_func |
| Getter function which gets the actual value from an item. | |
This implements a search predicate for findItem which looks for some object attribute via the equality operator.
| IOD | the type of the IOD that should be checked |
| Item | this should always be IOD::Item. Sadly, MSC6 can't figure that out by itself and so we must explicitly tell it about this type. |
| type | the type that is being searched for |
| arg2 | the type of the second argument to the getter function |
| argument2 | the value of the second argument to the getter function |
|
inline |
Constructor.
| expected | the expected value that we are searching for |
| func | member function that gets us the value from the object |
|
inline |
References OFCondition::good(), DRTSearch::searchPropertyEqual< IOD, Item, type, arg2, argument2 >::m_expected, and DRTSearch::searchPropertyEqual< IOD, Item, type, arg2, argument2 >::m_func.