aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-03 18:36:04 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-03 18:36:04 +0000
commitfc37dc73312185e512e30ab66aa6d4b5ba866478 (patch)
tree5991b38be62cc7bcd060f8256fbea1d314b0ac52
parentdd853f00740903cd7603ae90daa14805810bdfd2 (diff)
downloadpaludis-fc37dc73312185e512e30ab66aa6d4b5ba866478.tar.gz
paludis-fc37dc73312185e512e30ab66aa6d4b5ba866478.tar.xz
Specify typedefs for child pointer types
-rw-r--r--paludis/contents.hh16
1 files changed, 16 insertions, 0 deletions
diff --git a/paludis/contents.hh b/paludis/contents.hh
index 8ddbbdc..fa3b20e 100644
--- a/paludis/contents.hh
+++ b/paludis/contents.hh
@@ -107,6 +107,10 @@ namespace paludis
ContentsFileEntry(const std::string & name);
///\}
+
+ typedef CountedPtr<ContentsFileEntry, count_policy::InternalCountTag> Pointer;
+
+ typedef CountedPtr<const ContentsFileEntry, count_policy::InternalCountTag> ConstPointer;
};
/**
@@ -126,6 +130,10 @@ namespace paludis
ContentsDirEntry(const std::string & name);
///\}
+
+ typedef CountedPtr<ContentsDirEntry, count_policy::InternalCountTag> Pointer;
+
+ typedef CountedPtr<const ContentsDirEntry, count_policy::InternalCountTag> ConstPointer;
};
/**
@@ -145,6 +153,10 @@ namespace paludis
ContentsMiscEntry(const std::string & name);
///\}
+
+ typedef CountedPtr<ContentsMiscEntry, count_policy::InternalCountTag> Pointer;
+
+ typedef CountedPtr<const ContentsMiscEntry, count_policy::InternalCountTag> ConstPointer;
};
/**
@@ -173,6 +185,10 @@ namespace paludis
{
return _target;
}
+
+ typedef CountedPtr<ContentsSymEntry, count_policy::InternalCountTag> Pointer;
+
+ typedef CountedPtr<const ContentsSymEntry, count_policy::InternalCountTag> ConstPointer;
};
/**