libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pkgOrderList Class Reference

#include <orderlist.h>

Inheritance diagram for pkgOrderList:
Collaboration diagram for pkgOrderList:

Public Types

enum  Flags {
  Added = (1 << 0),
  AddPending = (1 << 1),
  Immediate = (1 << 2),
  Loop = (1 << 3),
  UnPacked = (1 << 4),
  Configured = (1 << 5),
  Removed = (1 << 6),
  InList = (1 << 7),
  After = (1 << 8),
  States = (UnPacked | Configured | Removed)
}
 
typedef Package ** iterator
 

Public Member Functions

 pkgOrderList (pkgDepCache *Cache)
 
 ~pkgOrderList ()
 
iterator begin ()
 
bool empty ()
 
iterator end ()
 
void Flag (PkgIterator Pkg, unsigned long State, unsigned long F)
 
void Flag (PkgIterator Pkg, unsigned long F)
 
void Flag (Package *Pkg, unsigned long F)
 
bool IsFlag (PkgIterator Pkg, unsigned long F)
 
bool IsFlag (Package *Pkg, unsigned long F)
 
bool IsMissing (PkgIterator Pkg)
 
bool IsNow (PkgIterator Pkg)
 
bool OrderConfigure ()
 
bool OrderCritical ()
 
bool OrderUnpack (std::string *FileList=0)
 
void pop_back ()
 
void push_back (Package *Pkg)
 
void push_back (PkgIterator Pkg)
 
void RmFlag (Package *Pkg, unsigned long F)
 
int Score (PkgIterator Pkg)
 
void SetFileList (std::string *FileList)
 
unsigned int size ()
 
void WipeFlags (unsigned long F)
 

Protected Types

typedef pkgCache::Dep Dep
 
typedef bool(pkgOrderList::* DepFunc )(DepIterator D)
 
typedef pkgCache::DepIterator DepIterator
 
typedef pkgCache::DescIterator DescIterator
 
typedef pkgCache::Description Description
 
typedef pkgCache::Flag Flag
 
typedef pkgCache::GrpIterator GrpIterator
 
typedef pkgCache::Header Header
 
typedef pkgCache::Package Package
 
typedef pkgCache::PkgFileIterator PkgFileIterator
 
typedef pkgCache::PkgIterator PkgIterator
 
typedef pkgCache::PrvIterator PrvIterator
 
typedef pkgCache::VerFileIterator VerFileIterator
 
typedef pkgCache::VerIterator VerIterator
 
typedef pkgCache::Version Version
 

Protected Member Functions

bool AddLoop (DepIterator D)
 
bool CheckDep (DepIterator D)
 
bool DepConfigure (DepIterator D)
 
bool DepRemove (DepIterator D)
 
bool DepUnPackCrit (DepIterator D)
 
bool DepUnPackDep (DepIterator D)
 
bool DepUnPackPre (DepIterator D)
 
bool DepUnPackPreD (DepIterator D)
 
bool DoRun ()
 
int FileCmp (PkgIterator A, PkgIterator B)
 
bool VisitDeps (DepFunc F, PkgIterator Pkg)
 
__deprecated bool VisitNode (PkgIterator Pkg)
 
bool VisitNode (PkgIterator Pkg, char const *from)
 
bool VisitProvides (DepIterator Pkg, bool Critical)
 
bool VisitRDeps (DepFunc F, PkgIterator Pkg)
 
bool VisitRProvides (DepFunc F, VerIterator Ver)
 

Static Protected Member Functions

static int OrderCompareA (const void *a, const void *b)
 
static int OrderCompareB (const void *a, const void *b)
 

Protected Attributes

Package ** AfterEnd
 
pkgDepCacheCache
 
bool Debug
 
int Depth
 
Package ** End
 
std::string * FileList
 
unsigned short * Flags
 
Package ** List
 
int LoopCount
 
DepIterator Loops [20]
 
DepFunc Primary
 
DepFunc Remove
 
DepFunc RevDepends
 
DepFunc Secondary
 

Static Protected Attributes

static pkgOrderListMe
 

Member Typedef Documentation

typedef bool(pkgOrderList::* pkgOrderList::DepFunc)(DepIterator D)
protected

Member Enumeration Documentation

Enumerator
Added 
AddPending 
Immediate 
Loop 
UnPacked 
Configured 
Removed 
InList 
After 
States 

Constructor & Destructor Documentation

pkgOrderList::pkgOrderList ( pkgDepCache Cache)
pkgOrderList::~pkgOrderList ( )

Member Function Documentation

bool pkgOrderList::AddLoop ( DepIterator  D)
protected
iterator pkgOrderList::begin ( )
inline

References List.

bool pkgOrderList::CheckDep ( DepIterator  D)
protected
bool pkgOrderList::DepConfigure ( DepIterator  D)
protected
bool pkgOrderList::DepRemove ( DepIterator  D)
protected
bool pkgOrderList::DepUnPackCrit ( DepIterator  D)
protected
bool pkgOrderList::DepUnPackDep ( DepIterator  D)
protected
bool pkgOrderList::DepUnPackPre ( DepIterator  D)
protected
bool pkgOrderList::DepUnPackPreD ( DepIterator  D)
protected
bool pkgOrderList::DoRun ( )
protected
bool pkgOrderList::empty ( )
inline

References End, and List.

iterator pkgOrderList::end ( )
inline

References End.

int pkgOrderList::FileCmp ( PkgIterator  A,
PkgIterator  B 
)
protected
void pkgOrderList::Flag ( PkgIterator  Pkg,
unsigned long  State,
unsigned long  F 
)
inline
void pkgOrderList::Flag ( PkgIterator  Pkg,
unsigned long  F 
)
inline
void pkgOrderList::Flag ( Package Pkg,
unsigned long  F 
)
inline
bool pkgOrderList::IsFlag ( PkgIterator  Pkg,
unsigned long  F 
)
inline
bool pkgOrderList::IsFlag ( Package Pkg,
unsigned long  F 
)
inline
bool pkgOrderList::IsMissing ( PkgIterator  Pkg)
bool pkgOrderList::IsNow ( PkgIterator  Pkg)
inline

References Removed, and States.

static int pkgOrderList::OrderCompareA ( const void *  a,
const void *  b 
)
staticprotected
static int pkgOrderList::OrderCompareB ( const void *  a,
const void *  b 
)
staticprotected
bool pkgOrderList::OrderConfigure ( )
bool pkgOrderList::OrderCritical ( )
bool pkgOrderList::OrderUnpack ( std::string *  FileList = 0)
void pkgOrderList::pop_back ( )
inline

References End.

void pkgOrderList::push_back ( Package Pkg)
inline

References End.

void pkgOrderList::push_back ( PkgIterator  Pkg)
inline

References End.

void pkgOrderList::RmFlag ( Package Pkg,
unsigned long  F 
)
inline
int pkgOrderList::Score ( PkgIterator  Pkg)
void pkgOrderList::SetFileList ( std::string *  FileList)
inline

References FileList.

unsigned int pkgOrderList::size ( )
inline

References End, and List.

bool pkgOrderList::VisitDeps ( DepFunc  F,
PkgIterator  Pkg 
)
protected
__deprecated bool pkgOrderList::VisitNode ( PkgIterator  Pkg)
inlineprotected

References VisitNode().

Referenced by VisitNode().

Here is the call graph for this function:

Here is the caller graph for this function:

bool pkgOrderList::VisitNode ( PkgIterator  Pkg,
char const *  from 
)
protected
bool pkgOrderList::VisitProvides ( DepIterator  Pkg,
bool  Critical 
)
protected
bool pkgOrderList::VisitRDeps ( DepFunc  F,
PkgIterator  Pkg 
)
protected
bool pkgOrderList::VisitRProvides ( DepFunc  F,
VerIterator  Ver 
)
protected
void pkgOrderList::WipeFlags ( unsigned long  F)

Member Data Documentation

Package** pkgOrderList::AfterEnd
protected
pkgDepCache& pkgOrderList::Cache
protected
bool pkgOrderList::Debug
protected
int pkgOrderList::Depth
protected
Package** pkgOrderList::End
protected

Referenced by empty(), end(), pop_back(), push_back(), and size().

std::string* pkgOrderList::FileList
protected

Referenced by SetFileList().

unsigned short* pkgOrderList::Flags
protected
Package** pkgOrderList::List
protected

Referenced by begin(), empty(), and size().

int pkgOrderList::LoopCount
protected
DepIterator pkgOrderList::Loops[20]
protected
pkgOrderList* pkgOrderList::Me
staticprotected
DepFunc pkgOrderList::Primary
protected
DepFunc pkgOrderList::Remove
protected
DepFunc pkgOrderList::RevDepends
protected
DepFunc pkgOrderList::Secondary
protected

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