23 #include <boost/assign/list_of.hpp>
24 #include <boost/assign/list_inserter.hpp>
25 #include <boost/bimap/bimap.hpp>
26 #include <boost/bimap/multiset_of.hpp>
27 #include <boost/bimap/list_of.hpp>
29 using namespace boost::bimaps;
30 using namespace boost;
35 typedef bimap< multiset_of< EDevice >, list_of< std::string > > bm_type;
36 bm_type bm = assign::list_of< bm_type::relation >
68 DeviceVector& inCombinedDeviceVector) : mDeviceMap(inDeviceMap),
69 mDeviceVector(inDeviceVector), mCombinedDeviceVector(inCombinedDeviceVector) {}
76 mDeviceMap[sDevice] = rhs;
77 mDeviceVector.push_back(sDevice);
78 mCombinedDeviceVector[rhs] = sDevice;
84 Devices Devices::sDevices;
86 Devices::Devices(
void) {
218 addToSupportedDevices(mVirtexDevices);
219 addToSupportedDevices(mVirtexEDevices);
220 addToSupportedDevices(mVirtex2Devices);
221 addToSupportedDevices(mVirtex2PDevices);
222 addToSupportedDevices(mVirtex4Devices);
223 addToSupportedDevices(mVirtex5Devices);
224 addToSupportedDevices(mVirtex6Devices);
225 addToSupportedDevices(mVirtex7Devices);
226 addToSupportedDevices(mKintex7Devices);
227 addToSupportedDevices(mArtix7Devices);
228 addToSupportedDevices(mZynq7000Devices);
229 addToSupportedDevices(mSpartan3EDevices);
230 addToSupportedDevices(mSpartan6Devices);
233 mUnitTestDevices.push_back(mVirtexDevices.front());
234 mUnitTestDevices.push_back(mVirtexEDevices.front());
235 mUnitTestDevices.push_back(mVirtex2Devices.front());
236 mUnitTestDevices.push_back(mVirtex2PDevices.front());
237 mUnitTestDevices.push_back(mVirtex4Devices.front());
238 mUnitTestDevices.push_back(mVirtex5Devices.front());
239 mUnitTestDevices.push_back(mVirtex6Devices.front());
240 mUnitTestDevices.push_back(mVirtex7Devices.front());
241 mUnitTestDevices.push_back(mKintex7Devices.front());
242 mUnitTestDevices.push_back(mArtix7Devices.front());
243 mUnitTestDevices.push_back(mZynq7000Devices.front());
244 mUnitTestDevices.push_back(mSpartan3EDevices.front());
245 mUnitTestDevices.push_back(mSpartan6Devices.front());
Helper class to initialize device map and list information.
std::string string
Imported name.
DeviceNameMap & mDeviceMap
The map from device name to device enumeration.
EDevice
Enumeration of all supported devices.
Encapsulation of filesystem paths that are used by the library.
std::ostream & operator<<(std::ostream &os, const DDB &ddb)
std::map< std::string, enum EDevice > DeviceNameMap
Map of device names.
DeviceVector & mCombinedDeviceVector
The list of devices for all families.
DeviceFamilyHelper(DeviceNameMap &inDeviceMap, DeviceVector &inDeviceVector, DeviceVector &inCombinedDeviceVector)
Protected constructor.
Header for the Devices class.
DeviceVector & mDeviceVector
The list of devices for a particular family.
static string sDevice
Convenience storage for the last inserted device name.
std::vector< std::string > DeviceVector
Vector of device names.