Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

LoopCo Class Reference

#include <LoopCo.h>

Inheritance diagram for LoopCo:

Container List of all members.

Public Member Functions

 LoopCo (Storage *const s, bool detect)
 LoopCo (const LoopCo &rhs)
virtual ~LoopCo ()
int createLoop (const string &file, bool reuseExisting, unsigned long long sizeK, string &device)
int removeLoop (const string &file, bool removeFile=false)
int removeVolume (Volume *v)
bool equalContent (const LoopCo &rhs) const
void logDifference (const LoopCo &d) const

Static Public Member Functions

static storage::CType const 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
 LoopCo (Storage *const s, const string &File)
void getLoopData ()
bool findLoop (unsigned num, LoopIter &i)
bool findLoop (unsigned num)
bool findLoop (const string &dev, LoopIter &i)
bool findLoop (const string &dev)
void addLoop (Loop *m)
void checkLoop (Loop *m)
void updateEntry (const Loop *m)
void init ()
virtual void print (std::ostream &s) const
virtual ContainergetCopy () const
int doCreate (Volume *v)
int doRemove (Volume *v)
void logData (const string &Dir)

Static Protected Member Functions

static int getFreeLoop (string &dev)

Friends

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

Classes

struct  LoopCPI
struct  LoopPI

Member Typedef Documentation

typedef CheckFnc<const Loop> LoopCo::CheckFncLoop [protected]
 

typedef DerefIterator<LoopCPIterator,const Loop> LoopCo::ConstLoopIter [protected]
 

typedef IterPair<ConstLoopIter> LoopCo::ConstLoopPair [protected]
 

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

typedef CheckerIterator< CheckFncLoop, LoopCPI<CheckFncLoop>::type, LoopCInter, const Loop > LoopCo::LoopCPIterator [protected]
 

typedef CastIterator<VIter, Loop *> LoopCo::LoopInter [protected]
 

typedef DerefIterator<LoopPIterator,Loop> LoopCo::LoopIter [protected]
 

typedef IterPair<LoopIter> LoopCo::LoopPair [protected]
 

typedef CheckerIterator< CheckFncLoop, LoopPI<CheckFncLoop>::type, LoopInter, Loop > LoopCo::LoopPIterator [protected]
 


Constructor & Destructor Documentation

LoopCo::LoopCo Storage *const   s,
bool  detect
 

LoopCo::LoopCo const LoopCo rhs  ) 
 

LoopCo::~LoopCo  )  [virtual]
 

LoopCo::LoopCo Storage *const   s,
const string &  File
[protected]
 


Member Function Documentation

void LoopCo::addLoop Loop m  )  [protected]
 

void LoopCo::checkLoop Loop m  )  [protected]
 

int LoopCo::createLoop const string &  file,
bool  reuseExisting,
unsigned long long  sizeK,
string &  device
 

int LoopCo::doCreate Volume v  )  [protected, virtual]
 

Reimplemented from Container.

int LoopCo::doRemove Volume v  )  [protected, virtual]
 

Reimplemented from Container.

bool LoopCo::equalContent const LoopCo rhs  )  const
 

bool LoopCo::findLoop const string &  dev  )  [protected]
 

bool LoopCo::findLoop const string &  dev,
LoopIter i
[protected]
 

bool LoopCo::findLoop unsigned  num  )  [protected]
 

bool LoopCo::findLoop unsigned  num,
LoopIter i
[protected]
 

virtual Container* LoopCo::getCopy  )  const [inline, protected, virtual]
 

Reimplemented from Container.

static int LoopCo::getFreeLoop string &  dev  )  [static, protected]
 

void LoopCo::getLoopData  )  [protected]
 

void LoopCo::init  )  [protected]
 

void LoopCo::logData const string &  Dir  )  [protected, virtual]
 

Reimplemented from Container.

void LoopCo::logDifference const LoopCo d  )  const
 

ConstLoopIter LoopCo::loopBegin bool(*)(const Loop &)  Check = NULL  )  const [inline, protected]
 

LoopIter LoopCo::loopBegin bool(*)(const Loop &)  Check = NULL  )  [inline, protected]
 

ConstLoopIter LoopCo::loopEnd bool(*)(const Loop &)  Check = NULL  )  const [inline, protected]
 

LoopIter LoopCo::loopEnd bool(*)(const Loop &)  Check = NULL  )  [inline, protected]
 

ConstLoopPair LoopCo::loopPair bool(*)(const Loop &)  Check = NULL  )  const [inline, protected]
 

LoopPair LoopCo::loopPair bool(*)(const Loop &)  Check = NULL  )  [inline, protected]
 

virtual void LoopCo::print std::ostream &  s  )  const [inline, protected, virtual]
 

Reimplemented from Container.

int LoopCo::removeLoop const string &  file,
bool  removeFile = false
 

int LoopCo::removeVolume Volume v  )  [virtual]
 

Reimplemented from Container.

static storage::CType const LoopCo::staticType  )  [inline, static]
 

Reimplemented from Container.

void LoopCo::updateEntry const Loop m  )  [protected]
 


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  s,
const LoopCo d
[friend]
 

friend class Storage [friend]
 

Reimplemented from Container.


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 11:27:08 2005 for yast2-storage by  doxygen 1.4.4