torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
build/SharedFunctions.hpp
Go to the documentation of this file.
1 /*
2  * SharedFunctions.hpp
3  *
4  * Created on: Aug 9, 2012
5  * Author: rsoni
6  */
7 
8 #ifndef SHAREDFUNCTIONS_HPP_
9 #define SHAREDFUNCTIONS_HPP_
10 
11 #include <iostream>
12 #include <vector>
13 #include <map>
14 #include <stdint.h>
15 
16 // Typedefs
17 typedef std::map<const std::string, std::vector<std::string> > CompoundSettingMap;
18 typedef std::map<const std::string, std::vector<uint32_t> > ConfigBitMap;
19 typedef std::map<const std::string, ConfigBitMap> ElementConfigMap;
20 typedef std::map<const std::string, ElementConfigMap> TiletypeElementMap;
21 
22 
23 // Shared constants
24 extern const std::string kNameSeparator;
25 extern const std::string kFamily;
26 extern const std::string kConfigOff;
27 extern const std::string kArchitectureName;
28 extern const std::string kXDLExtension;
29 
30 // Shared global variables
32 
34 bool DSPMaskOrPatternConfig(const std::string &siteType, const std::string &elementName);
36 
37 
38 #endif /* SHAREDFUNCTIONS_HPP_ */
void InitializeCompoundSettingsMap()
const std::string kFamily
std::map< const std::string, std::vector< std::string > > CompoundSettingMap
std::map< const std::string, std::vector< uint32_t > > ConfigBitMap
std::map< const std::string, ConfigBitMap > ElementConfigMap
const std::string kConfigOff
std::string string
CompoundSettingMap gCompoundSettingsMap
const std::string kArchitectureName
bool ElementNeedsCompoundSetting(std::string elementName)
bool DSPMaskOrPatternConfig(const std::string &siteType, const std::string &elementName)
const std::string kXDLExtension
std::map< const std::string, ElementConfigMap > TiletypeElementMap
const std::string kNameSeparator