#include <IPVolume_predicates.h>
Collaboration diagram for IPVolume_fromReplica:
Public Member Functions | |
IPVolume_fromReplica (const ILVolume *LV) | |
constructor | |
const IPVolume * | operator() (const ILVolume::ReplicaType &replica) const |
get pointer to physical volume by replica number | |
Private Attributes | |
const ILVolume * | m_lv |
Definition at line 106 of file IPVolume_predicates.h.
IPVolume_fromReplica::IPVolume_fromReplica | ( | const ILVolume * | LV | ) | [inline] |
constructor
LV | pointer to Logical Volume |
Definition at line 113 of file IPVolume_predicates.h.
00114 : m_lv ( LV ) {};
const IPVolume* IPVolume_fromReplica::operator() | ( | const ILVolume::ReplicaType & | replica | ) | const [inline] |
get pointer to physical volume by replica number
replica | replica number |
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 }
const ILVolume* IPVolume_fromReplica::m_lv [mutable, private] |
Definition at line 131 of file IPVolume_predicates.h.