torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::common::DeviceFamilyHelper Class Reference

Helper class to initialize device map and list information. More...

Protected Types

typedef std::string string
 Imported name. More...
 

Protected Member Functions

 DeviceFamilyHelper (DeviceNameMap &inDeviceMap, DeviceVector &inDeviceVector, DeviceVector &inCombinedDeviceVector)
 Protected constructor. More...
 
DeviceFamilyHelperoperator<< (const string &rhs)
 Convenience operator to retain the last device name inserted. More...
 
DeviceFamilyHelperoperator<< (enum EDevice rhs)
 Operator to propagate an enumeration and the previously inserted device name to the device map and lists. More...
 

Protected Attributes

DeviceNameMapmDeviceMap
 The map from device name to device enumeration. More...
 
DeviceVectormDeviceVector
 The list of devices for a particular family. More...
 
DeviceVectormCombinedDeviceVector
 The list of devices for all families. More...
 

Static Protected Attributes

static string sDevice
 Convenience storage for the last inserted device name. More...
 

Friends

class Devices
 Only the Devices class has access to our internals. More...
 

Detailed Description

Helper class to initialize device map and list information.

Definition at line 48 of file Devices.cpp.

Member Typedef Documentation

typedef std::string torc::common::DeviceFamilyHelper::string
protected

Imported name.

Definition at line 55 of file Devices.cpp.

Constructor & Destructor Documentation

torc::common::DeviceFamilyHelper::DeviceFamilyHelper ( DeviceNameMap inDeviceMap,
DeviceVector inDeviceVector,
DeviceVector inCombinedDeviceVector 
)
inlineprotected

Protected constructor.

Definition at line 67 of file Devices.cpp.

68  : mDeviceMap(inDeviceMap),
69  mDeviceVector(inDeviceVector), mCombinedDeviceVector(inCombinedDeviceVector) {}
DeviceNameMap & mDeviceMap
The map from device name to device enumeration.
Definition: Devices.cpp:58
DeviceVector & mCombinedDeviceVector
The list of devices for all families.
Definition: Devices.cpp:62
DeviceVector & mDeviceVector
The list of devices for a particular family.
Definition: Devices.cpp:60

Member Function Documentation

DeviceFamilyHelper& torc::common::DeviceFamilyHelper::operator<< ( const string rhs)
inlineprotected

Convenience operator to retain the last device name inserted.

Definition at line 72 of file Devices.cpp.

72 { sDevice = rhs; return *this; }
static string sDevice
Convenience storage for the last inserted device name.
Definition: Devices.cpp:64
DeviceFamilyHelper& torc::common::DeviceFamilyHelper::operator<< ( enum EDevice  rhs)
inlineprotected

Operator to propagate an enumeration and the previously inserted device name to the device map and lists.

Definition at line 75 of file Devices.cpp.

75  {
76  mDeviceMap[sDevice] = rhs;
77  mDeviceVector.push_back(sDevice);
79  return *this;
80  }
DeviceNameMap & mDeviceMap
The map from device name to device enumeration.
Definition: Devices.cpp:58
DeviceVector & mCombinedDeviceVector
The list of devices for all families.
Definition: Devices.cpp:62
DeviceVector & mDeviceVector
The list of devices for a particular family.
Definition: Devices.cpp:60
static string sDevice
Convenience storage for the last inserted device name.
Definition: Devices.cpp:64

Friends And Related Function Documentation

friend class Devices
friend

Only the Devices class has access to our internals.

Definition at line 52 of file Devices.cpp.

Field Documentation

DeviceVector& torc::common::DeviceFamilyHelper::mCombinedDeviceVector
protected

The list of devices for all families.

Definition at line 62 of file Devices.cpp.

DeviceNameMap& torc::common::DeviceFamilyHelper::mDeviceMap
protected

The map from device name to device enumeration.

Definition at line 58 of file Devices.cpp.

DeviceVector& torc::common::DeviceFamilyHelper::mDeviceVector
protected

The list of devices for a particular family.

Definition at line 60 of file Devices.cpp.

std::string torc::common::DeviceFamilyHelper::sDevice
staticprotected

Convenience storage for the last inserted device name.

Definition at line 64 of file Devices.cpp.


The documentation for this class was generated from the following file: