Permalink
Browse files

implement 'elements' in Hash

  • Loading branch information...
1 parent 1f0df66 commit 87b72f66aceea466d0e438187811bfa3bf17b002 @NotFound committed Jun 3, 2012
Showing with 6 additions and 0 deletions.
  1. +5 −0 winxedxx_classes.cxx
  2. +1 −0 winxedxx_integer.h
View
@@ -78,6 +78,11 @@ WxxHash &WxxHash::set(const std::string &key, WxxObjectPtr value)
return *this;
}
+int WxxHash::elements() const
+{
+ return hsh.size();
+}
+
WxxObjectPtr WxxHash::get_pmc_keyed(const std::string &s)
{
return hsh[s];
View
@@ -198,6 +198,7 @@ class WxxHash : public WxxDefault
public:
WxxHash();
WxxHash & set(const std::string &key, WxxObjectPtr value);
+ int elements() const;
using WxxDefault::set_pmc_keyed;
WxxObjectPtr &set_pmc_keyed(const std::string &s, const WxxObjectPtr &value);
WxxObjectPtr get_pmc_keyed(const std::string &s);

0 comments on commit 87b72f6

Please sign in to comment.