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
pkgCacheGenerator Class Reference

#include <pkgcachegen.h>

Collaboration diagram for pkgCacheGenerator:

Classes

class  Dynamic
 
class  ListParser
 

Public Member Functions

 pkgCacheGenerator (DynamicMMap *Map, OpProgress *Progress)
 
 ~pkgCacheGenerator ()
 
void DropProgress ()
 
__deprecated bool FinishCache (OpProgress *Progress)
 
pkgCacheGetCache ()
 
pkgCache::PkgFileIterator GetCurFile ()
 
bool HasFileDeps ()
 
bool MergeFileProvides (ListParser &List)
 
bool MergeList (ListParser &List, pkgCache::VerIterator *Ver=0)
 
void ReMap (void const *const oldMap, void const *const newMap)
 
bool SelectFile (const std::string &File, const std::string &Site, pkgIndexFile const &Index, unsigned long Flags=0)
 
unsigned long WriteUniqString (const char *S, unsigned int Size)
 
unsigned long WriteUniqString (const std::string &S)
 

Static Public Member Functions

static DynamicMMapCreateDynamicMMap (FileFd *CacheF, unsigned long Flags=0)
 
static bool MakeOnlyStatusCache (OpProgress *Progress, DynamicMMap **OutMap)
 
static bool MakeStatusCache (pkgSourceList &List, OpProgress *Progress, MMap **OutMap=0, bool AllowMem=false)
 

Protected Member Functions

bool NewDepends (pkgCache::PkgIterator &Pkg, pkgCache::VerIterator &Ver, std::string const &Version, unsigned int const &Op, unsigned int const &Type, map_ptrloc *&OldDepLast)
 
map_ptrloc NewDescription (pkgCache::DescIterator &Desc, const std::string &Lang, const MD5SumValue &md5sum, map_ptrloc Next)
 
bool NewFileDesc (pkgCache::DescIterator &Desc, ListParser &List)
 
bool NewFileVer (pkgCache::VerIterator &Ver, ListParser &List)
 
bool NewGroup (pkgCache::GrpIterator &Grp, const std::string &Name)
 
bool NewPackage (pkgCache::PkgIterator &Pkg, const std::string &Name, const std::string &Arch)
 
unsigned long NewVersion (pkgCache::VerIterator &Ver, const std::string &VerStr, unsigned long Next)
 

Protected Attributes

pkgCache Cache
 
pkgCache::PackageFileCurrentFile
 
bool FoundFileDeps
 
DynamicMMapMap
 
std::string PkgFileName
 
OpProgressProgress
 

Private Member Functions

bool AddImplicitDepends (pkgCache::GrpIterator &G, pkgCache::PkgIterator &P, pkgCache::VerIterator &V)
 
bool AddImplicitDepends (pkgCache::VerIterator &V, pkgCache::PkgIterator &D)
 
map_ptrloc AllocateInMap (const unsigned long &size)
 
bool MergeListGroup (ListParser &List, std::string const &GrpName)
 
bool MergeListPackage (ListParser &List, pkgCache::PkgIterator &Pkg)
 
bool MergeListVersion (ListParser &List, pkgCache::PkgIterator &Pkg, std::string const &Version, pkgCache::VerIterator *&OutVer)
 
map_ptrloc WriteStringInMap (std::string const &String)
 
map_ptrloc WriteStringInMap (const char *String)
 
map_ptrloc WriteStringInMap (const char *String, const unsigned long &Len)
 

Private Attributes

pkgCache::StringItemUniqHash [26]
 

Friends

class ListParser
 

Constructor & Destructor Documentation

pkgCacheGenerator::pkgCacheGenerator ( DynamicMMap Map,
OpProgress Progress 
)
pkgCacheGenerator::~pkgCacheGenerator ( )

Member Function Documentation

bool pkgCacheGenerator::AddImplicitDepends ( pkgCache::GrpIterator G,
pkgCache::PkgIterator P,
pkgCache::VerIterator V 
)
private
bool pkgCacheGenerator::AddImplicitDepends ( pkgCache::VerIterator V,
pkgCache::PkgIterator D 
)
private
map_ptrloc pkgCacheGenerator::AllocateInMap ( const unsigned long &  size)
private
static DynamicMMap* pkgCacheGenerator::CreateDynamicMMap ( FileFd CacheF,
unsigned long  Flags = 0 
)
static
void pkgCacheGenerator::DropProgress ( )
inline

References Progress.

__deprecated bool pkgCacheGenerator::FinishCache ( OpProgress Progress)
pkgCache& pkgCacheGenerator::GetCache ( )
inline

References Cache.

pkgCache::PkgFileIterator pkgCacheGenerator::GetCurFile ( )
inline

References Cache, and CurrentFile.

bool pkgCacheGenerator::HasFileDeps ( )
inline

References FoundFileDeps.

static bool pkgCacheGenerator::MakeOnlyStatusCache ( OpProgress Progress,
DynamicMMap **  OutMap 
)
static
static bool pkgCacheGenerator::MakeStatusCache ( pkgSourceList List,
OpProgress Progress,
MMap **  OutMap = 0,
bool  AllowMem = false 
)
static
bool pkgCacheGenerator::MergeFileProvides ( ListParser List)
bool pkgCacheGenerator::MergeList ( ListParser List,
pkgCache::VerIterator Ver = 0 
)
bool pkgCacheGenerator::MergeListGroup ( ListParser List,
std::string const &  GrpName 
)
private
bool pkgCacheGenerator::MergeListPackage ( ListParser List,
pkgCache::PkgIterator Pkg 
)
private
bool pkgCacheGenerator::MergeListVersion ( ListParser List,
pkgCache::PkgIterator Pkg,
std::string const &  Version,
pkgCache::VerIterator *&  OutVer 
)
private
bool pkgCacheGenerator::NewDepends ( pkgCache::PkgIterator Pkg,
pkgCache::VerIterator Ver,
std::string const &  Version,
unsigned int const &  Op,
unsigned int const &  Type,
map_ptrloc *&  OldDepLast 
)
protected
map_ptrloc pkgCacheGenerator::NewDescription ( pkgCache::DescIterator Desc,
const std::string &  Lang,
const MD5SumValue md5sum,
map_ptrloc  Next 
)
protected
bool pkgCacheGenerator::NewFileDesc ( pkgCache::DescIterator Desc,
ListParser List 
)
protected
bool pkgCacheGenerator::NewFileVer ( pkgCache::VerIterator Ver,
ListParser List 
)
protected
bool pkgCacheGenerator::NewGroup ( pkgCache::GrpIterator Grp,
const std::string &  Name 
)
protected
bool pkgCacheGenerator::NewPackage ( pkgCache::PkgIterator Pkg,
const std::string &  Name,
const std::string &  Arch 
)
protected
unsigned long pkgCacheGenerator::NewVersion ( pkgCache::VerIterator Ver,
const std::string &  VerStr,
unsigned long  Next 
)
protected
void pkgCacheGenerator::ReMap ( void const *const  oldMap,
void const *const  newMap 
)
bool pkgCacheGenerator::SelectFile ( const std::string &  File,
const std::string &  Site,
pkgIndexFile const &  Index,
unsigned long  Flags = 0 
)
map_ptrloc pkgCacheGenerator::WriteStringInMap ( std::string const &  String)
inlineprivate

References WriteStringInMap().

Referenced by pkgCacheGenerator::ListParser::WriteString(), and WriteStringInMap().

Here is the call graph for this function:

Here is the caller graph for this function:

map_ptrloc pkgCacheGenerator::WriteStringInMap ( const char *  String)
private
map_ptrloc pkgCacheGenerator::WriteStringInMap ( const char *  String,
const unsigned long &  Len 
)
private
unsigned long pkgCacheGenerator::WriteUniqString ( const char *  S,
unsigned int  Size 
)

Referenced by pkgCacheGenerator::ListParser::WriteUniqString().

Here is the caller graph for this function:

unsigned long pkgCacheGenerator::WriteUniqString ( const std::string &  S)
inline

References WriteUniqString().

Referenced by WriteUniqString().

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class ListParser
friend

Member Data Documentation

pkgCache pkgCacheGenerator::Cache
protected

Referenced by GetCache(), and GetCurFile().

pkgCache::PackageFile* pkgCacheGenerator::CurrentFile
protected

Referenced by GetCurFile().

bool pkgCacheGenerator::FoundFileDeps
protected

Referenced by HasFileDeps().

DynamicMMap& pkgCacheGenerator::Map
protected
std::string pkgCacheGenerator::PkgFileName
protected
OpProgress* pkgCacheGenerator::Progress
protected

Referenced by DropProgress().

pkgCache::StringItem* pkgCacheGenerator::UniqHash[26]
private

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