paludis  Version 2.0.0
Public Member Functions | List of all members
paludis::NDBAM Class Reference

#include <ndbam.hh>

Public Member Functions

void parse_contents (const PackageID &, const std::function< void(const std::shared_ptr< const ContentsEntry > &)> &on_file, const std::function< void(const std::shared_ptr< const ContentsEntry > &)> &on_dir, const std::function< void(const std::shared_ptr< const ContentsEntry > &)> &on_sym) const
 
void index (const QualifiedPackageName &, const std::string &) const
 
void deindex (const QualifiedPackageName &) const
 

Basic operations

 NDBAM (const FSPath &, const std::function< bool(const std::string &)> &check_format, const std::string &preferred_format, const VersionSpecOptions &version_options)
 
 ~NDBAM ()
 

Repository method implementations

std::shared_ptr< const
CategoryNamePartSet
category_names () PALUDIS_ATTRIBUTE((warn_unused_result))
 
std::shared_ptr< const
QualifiedPackageNameSet
package_names (const CategoryNamePart &c) PALUDIS_ATTRIBUTE((warn_unused_result))
 
std::shared_ptr< const
CategoryNamePartSet
category_names_containing_package (const PackageNamePart &) const PALUDIS_ATTRIBUTE((warn_unused_result))
 
bool has_package_named (const QualifiedPackageName &) PALUDIS_ATTRIBUTE((warn_unused_result))
 
bool has_category_named (const CategoryNamePart &) PALUDIS_ATTRIBUTE((warn_unused_result))
 
std::shared_ptr
< NDBAMEntrySequence
entries (const QualifiedPackageName &) PALUDIS_ATTRIBUTE((warn_unused_result))
 
void add_entry (const QualifiedPackageName &, const FSPath &)
 
void remove_entry (const QualifiedPackageName &, const FSPath &)
 

Detailed Description

NDBAM provides a partial implementation of a Repository for installed packages using a Paludis-defined on-disk format. It is used by unpackaged repositories and exndbam, where the format can be defined by us. NDBAM is designed to reduce unnecessary disk access and to reduce the need for global locking.

Since
0.26

Constructor & Destructor Documentation

paludis::NDBAM::NDBAM ( const FSPath ,
const std::function< bool(const std::string &)> &  check_format,
const std::string &  preferred_format,
const VersionSpecOptions version_options 
)

Constructor.

Parameters
version_options
Since
0.38

Member Function Documentation

void paludis::NDBAM::deindex ( const QualifiedPackageName ) const

Deindex a QualifiedPackageName that no longer has any versions installed.

void paludis::NDBAM::index ( const QualifiedPackageName ,
const std::string &   
) const

Index a newly added QualifiedPackageName, using the provided data directory name part.

void paludis::NDBAM::parse_contents ( const PackageID ,
const std::function< void(const std::shared_ptr< const ContentsEntry > &)> &  on_file,
const std::function< void(const std::shared_ptr< const ContentsEntry > &)> &  on_dir,
const std::function< void(const std::shared_ptr< const ContentsEntry > &)> &  on_sym 
) const

Parse the contents file for a given ID, using the provided callbacks.


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