aboutsummaryrefslogtreecommitdiff
path: root/paludis/contents.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-10 00:58:57 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-10 00:58:57 +0000
commiteeb5737b9fb8b6589d95f3f36b2609f439d82f1a (patch)
tree715188ecc7d9eb2c4a41f069e3587d6bcdada0fa /paludis/contents.hh
parent33015df117c4eae6afac1bfda0dca56d8ca96c08 (diff)
downloadpaludis-eeb5737b9fb8b6589d95f3f36b2609f439d82f1a.tar.gz
paludis-eeb5737b9fb8b6589d95f3f36b2609f439d82f1a.tar.xz
More code and doxygen cleanups. Remove DepAtomDumper class.
Diffstat (limited to 'paludis/contents.hh')
-rw-r--r--paludis/contents.hh49
1 files changed, 40 insertions, 9 deletions
diff --git a/paludis/contents.hh b/paludis/contents.hh
index bfdb9e0b5..8674c9a68 100644
--- a/paludis/contents.hh
+++ b/paludis/contents.hh
@@ -62,16 +62,24 @@ namespace paludis
std::string _name;
protected:
- /// Constructor.
+ ///\name Basic operations
+ ///\{
+
ContentsEntry(const std::string & name) :
_name(name)
{
}
+ ///\}
+
public:
- /// Destructor.
+ ///\name Basic operations
+ ///\{
+
virtual ~ContentsEntry();
+ ///\}
+
/// Our name.
std::string name() const
{
@@ -89,8 +97,12 @@ namespace paludis
public Visitable<ContentsFileEntry, ContentsVisitorTypes>
{
public:
- /// Constructor.
+ ///\name Basic operations
+ ///\{
+
ContentsFileEntry(const std::string & name);
+
+ ///\}
};
/**
@@ -103,8 +115,12 @@ namespace paludis
public Visitable<ContentsDirEntry, ContentsVisitorTypes>
{
public:
- /// Constructor.
+ ///\name Basic operations
+ ///\{
+
ContentsDirEntry(const std::string & name);
+
+ ///\}
};
/**
@@ -117,8 +133,12 @@ namespace paludis
public Visitable<ContentsMiscEntry, ContentsVisitorTypes>
{
public:
- /// Constructor.
+ ///\name Basic operations
+ ///\{
+
ContentsMiscEntry(const std::string & name);
+
+ ///\}
};
/**
@@ -134,9 +154,13 @@ namespace paludis
std::string _target;
public:
- /// Constructor.
+ ///\name Basic operations
+ ///\{
+
ContentsSymEntry(const std::string & name, const std::string & target);
+ ///\}
+
/// Our target (as per readlink).
std::string target() const
{
@@ -157,28 +181,35 @@ namespace paludis
std::list<ContentsEntry::ConstPointer> _c;
public:
+ ///\name Basic operations
+ ///\{
+
Contents();
+ ///\}
+
/// Add a new entry.
void add(ContentsEntry::ConstPointer c)
{
_c.push_back(c);
}
- /// Iterator over our entries.
+ ///\name Iterate over our entries
+ ///\{
+
typedef std::list<ContentsEntry::ConstPointer>::const_iterator Iterator;
- /// Start of our entries.
Iterator begin() const
{
return _c.begin();
}
- /// End of our entries.
Iterator end() const
{
return _c.end();
}
+
+ ///\}
};
}