| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

IPVolume_byName Class Reference

This predicate allows search from a sequence of IPVolume for a IPVolume by name (container)<IPVolume*> volumes = . More...

#include <IPVolume_predicates.h>

List of all members.


Public Member Functions

 IPVolume_byName (const std::string &Name)
 explicit constructor
bool operator() (const IPVolume *pv) const
 find physical volume by name

Private Attributes

std::string m_name
 name

Detailed Description

This predicate allows search from a sequence of IPVolume for a IPVolume by name (container)<IPVolume*> volumes = .

.. (container)<IPvolume*>const_ietartor ci = std::find_if( volumes.begin() , volumes.end() , IPVolume_byName(name) );

Author:
Vanya Belyaev Ivan.Belyaev@itep.ru

Definition at line 60 of file IPVolume_predicates.h.


Constructor & Destructor Documentation

IPVolume_byName::IPVolume_byName ( const std::string &  Name  )  [inline, explicit]

explicit constructor

Parameters:
Name name of physical volume

Definition at line 67 of file IPVolume_predicates.h.

00068     : m_name( Name ){};


Member Function Documentation

bool IPVolume_byName::operator() ( const IPVolume pv  )  const [inline]

find physical volume by name

Parameters:
pv pointer to physical volume
Returns:
true if name matches the given name

Definition at line 73 of file IPVolume_predicates.h.

00074   { return ( ( 0 == pv ) ? false : ( pv->name() == m_name) ) ; }


Member Data Documentation

std::string IPVolume_byName::m_name [private]

name

Definition at line 77 of file IPVolume_predicates.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:00:18 2011 for DetDesc by doxygen 1.4.7