diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-21 00:58:34 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-21 00:58:34 -0700 |
commit | d1ecc555e53770f1a5608000352f56f48c36c310 (patch) | |
tree | ccccaac506fa6fe0812fce202121a4ad85d3f752 /host/include/uhd/dict.hpp | |
parent | 26ada5ee709fc4d7e195d19720b467c14368bc05 (diff) | |
download | uhd-d1ecc555e53770f1a5608000352f56f48c36c310.tar.gz uhd-d1ecc555e53770f1a5608000352f56f48c36c310.tar.bz2 uhd-d1ecc555e53770f1a5608000352f56f48c36c310.zip |
Moved typedefs from props.hpp into new file types.hpp.
Created structs to replace range tuples, and clock config struct.
Merged clock config props into one property using config struct.
Added templated dict construction to use the assign::map_list_of.
Added gcc flag to set visibility to hidden and use the api macro.
Diffstat (limited to 'host/include/uhd/dict.hpp')
-rw-r--r-- | host/include/uhd/dict.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/host/include/uhd/dict.hpp b/host/include/uhd/dict.hpp index 8f7cd5a0f..f08493952 100644 --- a/host/include/uhd/dict.hpp +++ b/host/include/uhd/dict.hpp @@ -40,6 +40,19 @@ namespace uhd{ } /*! + * Input iterator constructor: + * Makes boost::assign::map_list_of work. + * \param first the begin iterator + * \param last the end iterator + */ + template <class InputIterator> + dict(InputIterator first, InputIterator last){ + for(InputIterator it = first; it != last; it++){ + _map.push_back(*it); + } + } + + /*! * Destroy this dict. */ ~dict(void){ |