yast2-storage
Classes | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Private Member Functions | Friends

storage::LoopCo Class Reference

#include <LoopCo.h>

Inheritance diagram for storage::LoopCo:
storage::Container storage::Device

List of all members.

Classes

struct  LoopCPI
struct  LoopPI

Public Member Functions

 LoopCo (Storage *const s)
 LoopCo (Storage *const s, SystemInfo &systeminfo)
 LoopCo (const LoopCo &c)
virtual ~LoopCo ()
int createLoop (const string &file, bool reuseExisting, unsigned long long sizeK, bool dmcr, string &device)
int updateLoop (const string &device, const string &file, bool reuseExisting, unsigned long long sizeK)
int removeLoop (const string &file, bool removeFile=false)
list< unsigned > usedNumbers () const
int removeVolume (Volume *v)
bool equalContent (const Container &rhs) const
virtual void logDifferenceWithVolumes (std::ostream &log, const Container &rhs) const

Static Public Member Functions

static storage::CType staticType ()

Protected Types

typedef CastIterator< VIter,
Loop * > 
LoopInter
typedef CastIterator< CVIter,
const Loop * > 
LoopCInter
typedef CheckFnc< const LoopCheckFncLoop
typedef CheckerIterator
< CheckFncLoop, LoopPI
< CheckFncLoop >::type,
LoopInter, Loop
LoopPIterator
typedef CheckerIterator
< CheckFncLoop, LoopCPI
< CheckFncLoop >::type,
LoopCInter, const Loop
LoopCPIterator
typedef DerefIterator
< LoopPIterator, Loop
LoopIter
typedef DerefIterator
< LoopCPIterator, const Loop
ConstLoopIter
typedef IterPair< LoopIterLoopPair
typedef IterPair< ConstLoopIterConstLoopPair

Protected Member Functions

LoopPair loopPair (bool(*Check)(const Loop &)=NULL)
LoopIter loopBegin (bool(*Check)(const Loop &)=NULL)
LoopIter loopEnd (bool(*Check)(const Loop &)=NULL)
ConstLoopPair loopPair (bool(*Check)(const Loop &)=NULL) const
ConstLoopIter loopBegin (bool(*Check)(const Loop &)=NULL) const
ConstLoopIter loopEnd (bool(*Check)(const Loop &)=NULL) const
void getLoopData (SystemInfo &systeminfo)
bool findLoop (unsigned num, LoopIter &i)
bool findLoop (unsigned num)
bool findLoop (const string &file, LoopIter &i)
bool findLoop (const string &file)
bool findLoopDev (const string &dev, LoopIter &i)
void addLoop (Loop *m)
virtual void print (std::ostream &s) const
virtual ContainergetCopy () const
int doCreate (Volume *v)
int doRemove (Volume *v)

Private Member Functions

LoopCooperator= (const LoopCo &)

Friends

class Storage
std::ostream & operator<< (std::ostream &, const LoopCo &)

Member Typedef Documentation

typedef CheckFnc<const Loop> storage::LoopCo::CheckFncLoop [protected]
typedef CastIterator<CVIter, const Loop *> storage::LoopCo::LoopCInter [protected]

Constructor & Destructor Documentation

storage::LoopCo::LoopCo ( Storage *const  s)

References y2deb.

Referenced by getCopy().

storage::LoopCo::LoopCo ( Storage *const  s,
SystemInfo systeminfo 
)

References y2deb.

storage::LoopCo::LoopCo ( const LoopCo c)
storage::LoopCo::~LoopCo ( ) [virtual]

References y2deb.


Member Function Documentation

void storage::LoopCo::addLoop ( Loop m) [protected]
int storage::LoopCo::createLoop ( const string &  file,
bool  reuseExisting,
unsigned long long  sizeK,
bool  dmcr,
string &  device 
)
int storage::LoopCo::doCreate ( Volume v) [protected, virtual]
int storage::LoopCo::doRemove ( Volume v) [protected, virtual]
bool storage::LoopCo::equalContent ( const Container rhs) const [virtual]
bool storage::LoopCo::findLoop ( unsigned  num) [protected]
bool storage::LoopCo::findLoop ( const string &  file,
LoopIter i 
) [protected]
bool storage::LoopCo::findLoop ( const string &  file) [protected]
bool storage::LoopCo::findLoop ( unsigned  num,
LoopIter i 
) [protected]
bool storage::LoopCo::findLoopDev ( const string &  dev,
LoopIter i 
) [protected]
virtual Container* storage::LoopCo::getCopy ( ) const [inline, protected, virtual]

Implements storage::Container.

References LoopCo().

void storage::LoopCo::getLoopData ( SystemInfo systeminfo) [protected]
void storage::LoopCo::logDifferenceWithVolumes ( std::ostream &  log,
const Container rhs 
) const [virtual]
LoopIter storage::LoopCo::loopBegin ( bool(*)(const Loop &)  Check = NULL) [inline, protected]
ConstLoopIter storage::LoopCo::loopBegin ( bool(*)(const Loop &)  Check = NULL) const [inline, protected]
ConstLoopIter storage::LoopCo::loopEnd ( bool(*)(const Loop &)  Check = NULL) const [inline, protected]
LoopIter storage::LoopCo::loopEnd ( bool(*)(const Loop &)  Check = NULL) [inline, protected]
LoopPair storage::LoopCo::loopPair ( bool(*)(const Loop &)  Check = NULL) [inline, protected]
ConstLoopPair storage::LoopCo::loopPair ( bool(*)(const Loop &)  Check = NULL) const [inline, protected]

References loopBegin(), and loopEnd().

LoopCo& storage::LoopCo::operator= ( const LoopCo ) [private]
virtual void storage::LoopCo::print ( std::ostream &  s) const [inline, protected, virtual]

Reimplemented from storage::Container.

int storage::LoopCo::removeLoop ( const string &  file,
bool  removeFile = false 
)
int storage::LoopCo::removeVolume ( Volume v) [virtual]
static storage::CType storage::LoopCo::staticType ( ) [inline, static]

Reimplemented from storage::Container.

References storage::LOOP.

int storage::LoopCo::updateLoop ( const string &  device,
const string &  file,
bool  reuseExisting,
unsigned long long  sizeK 
)
list< unsigned > storage::LoopCo::usedNumbers ( ) const

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const LoopCo d 
) [friend]
friend class Storage [friend]

Reimplemented from storage::Container.


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