aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-22 23:23:34 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-22 23:23:34 +0000
commitc05f56916407d1730903472718fed9576bd214c9 (patch)
tree4ee1d0cc171813a37e889e15acedaeca3d3aa50e /doc
parentd145928e6b0283eb9816d34332d4d062b21598b3 (diff)
downloadpaludis-c05f56916407d1730903472718fed9576bd214c9.tar.gz
paludis-c05f56916407d1730903472718fed9576bd214c9.tar.xz
Don't store keys, IDs in masks
Diffstat (limited to 'doc')
-rw-r--r--doc/api/cplusplus/examples/example_mask.cc9
-rw-r--r--doc/api/ruby/example_mask.rb6
2 files changed, 6 insertions, 9 deletions
diff --git a/doc/api/cplusplus/examples/example_mask.cc b/doc/api/cplusplus/examples/example_mask.cc
index de3de72f2..fe98d6fa9 100644
--- a/doc/api/cplusplus/examples/example_mask.cc
+++ b/doc/api/cplusplus/examples/example_mask.cc
@@ -43,15 +43,13 @@ namespace
void visit(const UnacceptedMask & mask)
{
cout << left << setw(30) << " Class:" << " " << "UnacceptedMask" << endl;
- if (mask.unaccepted_key())
- cout << left << setw(30) << " Unaccepted key:" << " " << mask.unaccepted_key()->raw_name() << endl;
+ cout << left << setw(30) << " Unaccepted key:" << " " << mask.unaccepted_key_name() << endl;
}
void visit(const RepositoryMask & mask)
{
cout << left << setw(30) << " Class:" << " " << "RepositoryMask" << endl;
- if (mask.mask_key())
- cout << left << setw(30) << " Mask key:" << " " << mask.mask_key()->raw_name() << endl;
+ cout << left << setw(30) << " Mask key:" << " " << mask.mask_key_name() << endl;
}
void visit(const UnsupportedMask & mask)
@@ -63,8 +61,7 @@ namespace
void visit(const AssociationMask & mask)
{
cout << left << setw(30) << " Class:" << " " << "AssociationMask" << endl;
- if (mask.associated_package())
- cout << left << setw(30) << " Associated package:" << " " << *mask.associated_package() << endl;
+ cout << left << setw(30) << " Associated package:" << " " << mask.associated_package_spec() << endl;
}
};
}
diff --git a/doc/api/ruby/example_mask.rb b/doc/api/ruby/example_mask.rb
index e63aa9207..d8724db8a 100644
--- a/doc/api/ruby/example_mask.rb
+++ b/doc/api/ruby/example_mask.rb
@@ -32,16 +32,16 @@ ids.each do | id |
puts " Class: ".ljust(31) + 'UserMask'
elsif mask.kind_of? UnacceptedMask
puts " Class: ".ljust(31) + 'UnacceptedMask'
- puts " Unaccepted key: ".ljust(31) + mask.unaccepted_key.raw_name unless mask.unaccepted_key.nil?
+ puts " Unaccepted key: ".ljust(31) + mask.unaccepted_key_name
elsif mask.kind_of? RepositoryMask
puts " Class: ".ljust(31) + 'RepositoryMask'
- puts " Mask key: ".ljust(31) + mask.mask_key.raw_name unless mask.mask_key.nil?
+ puts " Mask key: ".ljust(31) + mask.mask_key_name
elsif mask.kind_of? UnsupportedMask
puts " Class: ".ljust(31) + 'UnsupportedMask'
puts " Explanation: ".ljust(31) + mask.explanation
elsif mask.kind_of? AssociationMask
puts " Class: ".ljust(31) + 'AssociationMask'
- puts " Associated package: ".ljust(31) + mask.associated_package.to_s unless mask.associated_package.nil?
+ puts " Associated package: ".ljust(31) + mask.associated_package_spec.to_s
else
puts " Class: ".ljust(31) + 'Unknown'
end