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

In This Package:

IPVolume_fromReplica Class Reference

used for transformation of ILVolume::ReplicaPath into ILVolume::PVolumePath used for "std::transform" algorithm More...

#include <IPVolume_predicates.h>

Collaboration diagram for IPVolume_fromReplica:

[legend]
List of all members.

Public Member Functions

 IPVolume_fromReplica (const ILVolume *LV)
 constructor
const IPVolumeoperator() (const ILVolume::ReplicaType &replica) const
 get pointer to physical volume by replica number

Private Attributes

const ILVolumem_lv

Detailed Description

used for transformation of ILVolume::ReplicaPath into ILVolume::PVolumePath used for "std::transform" algorithm

Author:
Vanya Belyaev Ivan.Belyaev@itep.ru

Definition at line 106 of file IPVolume_predicates.h.


Constructor & Destructor Documentation

IPVolume_fromReplica::IPVolume_fromReplica ( const ILVolume LV  )  [inline]

constructor

Parameters:
LV pointer to Logical Volume

Definition at line 113 of file IPVolume_predicates.h.

00114     : m_lv ( LV ) {};


Member Function Documentation

const IPVolume* IPVolume_fromReplica::operator() ( const ILVolume::ReplicaType replica  )  const [inline]

get pointer to physical volume by replica number

Parameters:
replica replica number
Returns:
pointer to physical volume

Definition at line 121 of file IPVolume_predicates.h.

00122   {
00123     if( 0 == m_lv ) {            return 0 ; }  
00124     const IPVolume* pv = (*m_lv)[replica]; 
00125     if( 0 == pv   ) { m_lv = 0 ; return 0 ; } 
00126     m_lv = pv->lvolume(); 
00127     return pv; 
00128   }


Member Data Documentation

const ILVolume* IPVolume_fromReplica::m_lv [mutable, private]

Definition at line 131 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