paludis Version 3.0.2
The one true package mangler
paludis::ContentsEntry Class Referenceabstract

#include <contents.hh>

Inheritance diagram for paludis::ContentsEntry:

Protected Member Functions

void need_keys_added () const override
Protected Member Functions inherited from paludis::MetadataKeyHolder
virtual void clear_metadata_keys () const

Basic operations

 ContentsEntry (const FSPath &path)

Specific metadata keys

const std::shared_ptr< const MetadataValueKey< FSPath > > location_key () const

Metadata key operations

virtual void add_metadata_key (const std::shared_ptr< const MetadataKey > &) const

Additional Inherited Members

typedef WrappedForwardIterator< MetadataConstIteratorTag, const std::shared_ptr< const MetadataKey > > MetadataConstIterator
Public Types inherited from paludis::DeclareAbstractAcceptMethods< ContentsEntry, MakeTypeList< ContentsFileEntry, ContentsDirEntry, ContentsSymEntry, ContentsOtherEntry >::Type >
typedef MakeTypeList< ContentsFileEntry, ContentsDirEntry, ContentsSymEntry, ContentsOtherEntry >::Type VisitableTypeList
typedef ContentsEntry VisitableBaseClass
MetadataConstIterator begin_metadata () const PALUDIS_ATTRIBUTE((warn_unused_result))
MetadataConstIterator end_metadata () const PALUDIS_ATTRIBUTE((warn_unused_result))
IteratorRange< MetadataConstIterator > metadata () const
MetadataConstIterator find_metadata (const std::string &) const PALUDIS_ATTRIBUTE((warn_unused_result))
Public Member Functions inherited from paludis::DeclareAbstractAcceptMethods< ContentsEntry, MakeTypeList< ContentsFileEntry, ContentsDirEntry, ContentsSymEntry, ContentsOtherEntry >::Type >
void accept (UnwrappedVisitor_ &v)
Result_ accept_returning (UnwrappedVisitor_ &v, const Result_ &r=Result_())
auto make_accept_returning (const Case_ &firstcase, const Cases_ &... cases) const -> CallResultType< Case_ >
void make_accept (const Cases_ &... cases) const

Detailed Description

Base class for a contents entry.

Since
0.36 for MetadataKeyHolder methods.

Member Function Documentation

◆ add_metadata_key()

virtual void paludis::MetadataKeyHolder::add_metadata_key ( const std::shared_ptr< const MetadataKey > & ) const
virtual

Must be called straight after construction.

Since
0.36

Reimplemented from paludis::MetadataKeyHolder.

◆ location_key()

const std::shared_ptr< const MetadataValueKey< FSPath > > paludis::ContentsEntry::location_key ( ) const

Our path on disk. Must not be zero. Not modified for root.

Since
0.36
Examples
example_contents.cc.

◆ need_keys_added()

void paludis::ContentsEntry::need_keys_added ( ) const
overrideprotectedvirtual

This method will be called before any of the metadata key iteration methods does its work. It can be used by subclasses to implement as-needed loading of keys.

Implements paludis::MetadataKeyHolder.

References paludis::MetadataKeyHolder::add_metadata_key().


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