aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-14 15:32:35 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-14 15:32:35 +0000
commita026f1fd0025c786ac16460c9fe06e1d75c9785e (patch)
tree8c36ff852385879c2f9c1939cfdd1e3c3471badd
parentce053167d479d063581cf91525580de348ebd94f (diff)
downloadpaludis-a026f1fd0025c786ac16460c9fe06e1d75c9785e.tar.gz
paludis-a026f1fd0025c786ac16460c9fe06e1d75c9785e.tar.xz
More doxygen work
-rw-r--r--paludis/contents.cc17
-rw-r--r--paludis/contents.hh15
-rw-r--r--paludis/dep_spec.cc24
-rw-r--r--paludis/dep_spec.hh20
-rw-r--r--paludis/dep_tag.cc30
-rw-r--r--paludis/dep_tag.hh25
6 files changed, 83 insertions, 48 deletions
diff --git a/paludis/contents.cc b/paludis/contents.cc
index b271fd3..17681c3 100644
--- a/paludis/contents.cc
+++ b/paludis/contents.cc
@@ -28,10 +28,21 @@
using namespace paludis;
+ContentsEntry::ContentsEntry(const std::string & n) :
+ _name(n)
+{
+}
+
ContentsEntry::~ContentsEntry()
{
}
+std::string
+ContentsEntry::name() const
+{
+ return _name;
+}
+
ContentsFileEntry::ContentsFileEntry(const std::string & our_name) :
ContentsEntry(our_name)
{
@@ -63,6 +74,12 @@ ContentsSymEntry::ContentsSymEntry(const std::string & our_name, const std::stri
{
}
+std::string
+ContentsSymEntry::target() const
+{
+ return _target;
+}
+
namespace paludis
{
/**
diff --git a/paludis/contents.hh b/paludis/contents.hh
index 6de6b13..e4023e5 100644
--- a/paludis/contents.hh
+++ b/paludis/contents.hh
@@ -69,10 +69,7 @@ namespace paludis
///\name Basic operations
///\{
- ContentsEntry(const std::string & our_name) :
- _name(our_name)
- {
- }
+ ContentsEntry(const std::string & our_name);
///\}
@@ -85,10 +82,7 @@ namespace paludis
///\}
/// Our name.
- std::string name() const
- {
- return _name;
- }
+ std::string name() const PALUDIS_ATTRIBUTE((warn_unused_result));
};
/**
@@ -208,10 +202,7 @@ namespace paludis
///\}
/// Our target (as per readlink).
- std::string target() const
- {
- return _target;
- }
+ std::string target() const PALUDIS_ATTRIBUTE((warn_unused_result));
};
/**
diff --git a/paludis/dep_spec.cc b/paludis/dep_spec.cc
index a3ff70b..d88aa20 100644
--- a/paludis/dep_spec.cc
+++ b/paludis/dep_spec.cc
@@ -154,6 +154,24 @@ UseDepSpec::as_use_dep_spec() const
return this;
}
+UseFlagName
+UseDepSpec::flag() const
+{
+ return _flag;
+}
+
+bool
+UseDepSpec::inverse() const
+{
+ return _inverse;
+}
+
+std::string
+StringDepSpec::text() const
+{
+ return _str;
+}
+
const PackageDepSpec *
PackageDepSpec::as_package_dep_spec() const
{
@@ -735,3 +753,9 @@ PackageDepSpec::_make_unique()
_imp->unique = true;
}
+std::tr1::shared_ptr<const PackageDepSpec>
+BlockDepSpec::blocked_spec() const
+{
+ return _spec;
+}
+
diff --git a/paludis/dep_spec.hh b/paludis/dep_spec.hh
index 4c3bd9e..4f2f0cc 100644
--- a/paludis/dep_spec.hh
+++ b/paludis/dep_spec.hh
@@ -217,18 +217,12 @@ namespace paludis
/**
* Fetch our use flag name.
*/
- const UseFlagName & flag() const
- {
- return _flag;
- }
+ UseFlagName flag() const;
/**
* Fetch whether we are a ! flag.
*/
- bool inverse() const
- {
- return _inverse;
- }
+ bool inverse() const;
virtual const UseDepSpec * as_use_dep_spec() const;
};
@@ -262,10 +256,7 @@ namespace paludis
/**
* Fetch our text.
*/
- const std::string & text() const
- {
- return _str;
- }
+ std::string text() const;
};
/**
@@ -514,10 +505,7 @@ namespace paludis
/**
* Fetch the spec we're blocking.
*/
- std::tr1::shared_ptr<const PackageDepSpec> blocked_spec() const
- {
- return _spec;
- }
+ std::tr1::shared_ptr<const PackageDepSpec> blocked_spec() const;
};
}
diff --git a/paludis/dep_tag.cc b/paludis/dep_tag.cc
index 77c6885..2e966f7 100644
--- a/paludis/dep_tag.cc
+++ b/paludis/dep_tag.cc
@@ -100,6 +100,36 @@ DepTagCategory::DepTagCategory(
{
}
+bool
+DepTagCategory::visible() const
+{
+ return _visible;
+}
+
+std::string
+DepTagCategory::id() const
+{
+ return _id;
+}
+
+std::string
+DepTagCategory::title() const
+{
+ return _title;
+}
+
+std::string
+DepTagCategory::pre_text() const
+{
+ return _pre_text;
+}
+
+std::string
+DepTagCategory::post_text() const
+{
+ return _post_text;
+}
+
NoSuchDepTagCategory::NoSuchDepTagCategory(const std::string & s) throw () :
Exception("No such dep tag category '" + s + "'")
{
diff --git a/paludis/dep_tag.hh b/paludis/dep_tag.hh
index 19abb52..4e121c1 100644
--- a/paludis/dep_tag.hh
+++ b/paludis/dep_tag.hh
@@ -77,43 +77,28 @@ namespace paludis
/**
* Should we be displayed in a tag category summary?
*/
- bool visible() const
- {
- return _visible;
- }
+ bool visible() const;
/**
* Fetch our short ID (for example, 'GLSA').
*/
- std::string id() const
- {
- return _id;
- }
+ std::string id() const;
/**
* Fetch our title (for example, 'Security advisories'), or an
* empty string if we're untitled.
*/
- std::string title() const
- {
- return _title;
- }
+ std::string title() const;
/**
* Fetch our pre list text, or an empty string.
*/
- std::string pre_text() const
- {
- return _pre_text;
- }
+ std::string pre_text() const;
/**
* Fetch our post list text, or an empty string.
*/
- std::string post_text() const
- {
- return _post_text;
- }
+ std::string post_text() const;
};
/**