DCMTK  Version 3.6.1 20170228
OFFIS DICOM Toolkit
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Static Public Member Functions | List of all members
DRTSearch::searchPropertyEqualHelper< IOD, Item, type, arg2, argument2 > Class Template Reference

Helper class which wraps searchPropertyEqual and findItem to make it easier to search through an IOD. More...

Public Types

typedef searchPropertyEqual
< IOD, Item, type, arg2,
argument2 > 
searchType
 Typedef for simplifying usage of searchPropertyEqual.
 

Static Public Member Functions

static IOD::Item & search (IOD &seq, const type &wanted, typename searchType::funcType func)
 Find an item in a sequence. More...
 

Detailed Description

template<typename IOD, typename Item, typename type, typename arg2, arg2 argument2>
class DRTSearch::searchPropertyEqualHelper< IOD, Item, type, arg2, argument2 >

Helper class which wraps searchPropertyEqual and findItem to make it easier to search through an IOD.

Template Parameters
IODthe type of the IOD that should be checked
Itemthis should always be IOD::Item. Sadly, MSC6 can't figure that out by itself and so we must explicitly tell it about this type.
typethe type that is being searched for
arg2the type of the second argument to the getter function
argument2the value of the second argument to the getter function

Member Function Documentation

template<typename IOD , typename Item , typename type , typename arg2 , arg2 argument2>
static IOD::Item& DRTSearch::searchPropertyEqualHelper< IOD, Item, type, arg2, argument2 >::search ( IOD &  seq,
const type &  wanted,
typename searchType::funcType  func 
)
inlinestatic

Find an item in a sequence.

Parameters
seqthe sequence to search through
wantedthe value that should be found
funcfunction that gets a value from a sequence item
Returns
Reference to the first item that matches or to the empty default item.

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


Generated on Tue Feb 28 2017 for DCMTK Version 3.6.1 20170228 by Doxygen 1.8.8