diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-15 12:15:33 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-15 12:15:33 -0700 |
commit | 7590f187d0414fd05e23828488166bc4bc88df26 (patch) | |
tree | 20eb597e4614276120814b727486c50e95f234fd /host/include/uhd/dict.hpp | |
parent | 1ba6aafa678cdf61aef44de1d22ec72653e87ec7 (diff) | |
download | uhd-7590f187d0414fd05e23828488166bc4bc88df26.tar.gz uhd-7590f187d0414fd05e23828488166bc4bc88df26.tar.bz2 uhd-7590f187d0414fd05e23828488166bc4bc88df26.zip |
Device sub classes can register themselves. Simplifies device.cpp internals.
Added static instance macro for lazy instantiation of static variables.
Diffstat (limited to 'host/include/uhd/dict.hpp')
-rw-r--r-- | host/include/uhd/dict.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/host/include/uhd/dict.hpp b/host/include/uhd/dict.hpp index 1ed28551a..2224a0063 100644 --- a/host/include/uhd/dict.hpp +++ b/host/include/uhd/dict.hpp @@ -57,6 +57,14 @@ namespace uhd{ } /*! + * Get the number of elements in this dict. + * \param the number of elements + */ + std::size_t size(void) const{ + return _map.size(); + } + + /*! * Get a list of the keys in this dict. * \return vector of keys */ |