torc-master
|
Utility class for exploring database contents. More...
#include <ArchitectureBrowser.hpp>
Public Member Functions | |
ArchitectureBrowser (DDB &inDB) | |
Constructor. More... | |
~ArchitectureBrowser () | |
Destructor. More... | |
void | browse () |
Function to begin an interactive browsing session. More... | |
void | functionPrompt (const char *inPrompt, BrowserFunction f) |
Secondary menu loop to remain in a particular function. More... | |
void | deviceSummary () |
A brief summary of device information. More... | |
void | getTileList () |
List all tiles. More... | |
void | getFilteredTileList (const string &inString) |
Filtered list of all tiles. More... | |
void | getSiteList () |
List of all sites. More... | |
void | getFilteredSiteList (const string &inString) |
Filtered list of all sites. More... | |
void | getSiteDetail (const string &inString) |
brief Site detail function. More... | |
void | displaySitesOfType (const string &inString) |
brief Sites of a particular type function. More... | |
void | getTilewireDetail (const string &inString) |
Tilewire detail function. More... | |
void | displaySegmentSources (const string &inString) |
Display source Tilewires of a segment. More... | |
void | displaySegmentSinks (const string &inString) |
Display sink Tilewires of a segment. More... | |
void | displayFullSegment (const string &inString) |
Display segment connectivity. More... | |
void | displayFullSegmentFANCY (const string &inString) |
Display segment connectivity. More... | |
void | getWireListForTileType (const string &inString) |
List all wires for a given tile type. More... | |
void | enumerateSiteTypes () |
Tilewire | stringToTilewire (const string &inString) |
Convert user input to a Tilewire. More... | |
void | printFullMenu () |
Print the full menu of browser functions. More... | |
void | setupFunctionMap () |
Prepare function map to lookup what the user asks for. More... | |
Protected Attributes | |
DDB & | mDB |
Database Reference. More... | |
const Segments & | mSegments |
Segments reference from the database. More... | |
const Sites & | mSites |
Site data reference from the database. More... | |
const Tiles & | mTiles |
Tile data reference from the database. More... | |
ArcUsage & | mArcUsage |
Pip usage information from the database. More... | |
WireUsage & | mWireUsage |
Wire usage information from the database. More... | |
std::map< string, EFunctionMap > | mFunctionMap |
Mapping from function to index. More... | |
Static Protected Attributes | |
static boost::regex | sTilewireRegEx |
Regular expression for Tilewire form. More... | |
static boost::regex | sIndexRegEx |
Regular expression for nonnegative integers. More... | |
static boost::regex | sNameRegEx |
Regular expression for a name. More... | |
Utility class for exploring database contents.
Definition at line 37 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 53 of file ArchitectureBrowser.hpp.
|
protected |
Type for member function pointers.
Definition at line 73 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 43 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 45 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 47 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 71 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 49 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 41 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 65 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 63 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 51 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 69 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 57 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 59 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 67 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 61 of file ArchitectureBrowser.hpp.
|
protected |
Imported type name.
Definition at line 55 of file ArchitectureBrowser.hpp.
|
protected |
Enumeration of menu selection options.
Definition at line 96 of file ArchitectureBrowser.hpp.
|
inline |
Constructor.
Definition at line 109 of file ArchitectureBrowser.hpp.
|
inline |
|
inline |
Function to begin an interactive browsing session.
Definition at line 118 of file ArchitectureBrowser.hpp.
|
inline |
A brief summary of device information.
Definition at line 258 of file ArchitectureBrowser.hpp.
|
inline |
Display segment connectivity.
Definition at line 556 of file ArchitectureBrowser.hpp.
|
inline |
Display segment connectivity.
Definition at line 625 of file ArchitectureBrowser.hpp.
|
inline |
Display sink Tilewires of a segment.
Definition at line 519 of file ArchitectureBrowser.hpp.
|
inline |
Display source Tilewires of a segment.
Definition at line 482 of file ArchitectureBrowser.hpp.
|
inline |
brief Sites of a particular type function.
Definition at line 413 of file ArchitectureBrowser.hpp.
|
inline |
Definition at line 793 of file ArchitectureBrowser.hpp.
|
inline |
Secondary menu loop to remain in a particular function.
Definition at line 240 of file ArchitectureBrowser.hpp.
|
inline |
Filtered list of all sites.
Definition at line 339 of file ArchitectureBrowser.hpp.
|
inline |
Filtered list of all tiles.
Definition at line 291 of file ArchitectureBrowser.hpp.
|
inline |
brief Site detail function.
Definition at line 373 of file ArchitectureBrowser.hpp.
|
inline |
List of all sites.
Definition at line 327 of file ArchitectureBrowser.hpp.
|
inline |
List all tiles.
Definition at line 277 of file ArchitectureBrowser.hpp.
|
inline |
Tilewire detail function.
Definition at line 428 of file ArchitectureBrowser.hpp.
|
inline |
List all wires for a given tile type.
Definition at line 730 of file ArchitectureBrowser.hpp.
void torc::ArchitectureBrowser::printFullMenu | ( | ) |
Print the full menu of browser functions.
Definition at line 27 of file ArchitectureBrowser.cpp.
void torc::ArchitectureBrowser::setupFunctionMap | ( | ) |
Prepare function map to lookup what the user asks for.
Definition at line 48 of file ArchitectureBrowser.cpp.
Convert user input to a Tilewire.
Definition at line 805 of file ArchitectureBrowser.hpp.
|
protected |
Pip usage information from the database.
Definition at line 84 of file ArchitectureBrowser.hpp.
|
protected |
Database Reference.
Definition at line 76 of file ArchitectureBrowser.hpp.
|
protected |
Mapping from function to index.
Definition at line 103 of file ArchitectureBrowser.hpp.
|
protected |
Segments reference from the database.
Definition at line 78 of file ArchitectureBrowser.hpp.
|
protected |
Site data reference from the database.
Definition at line 80 of file ArchitectureBrowser.hpp.
|
protected |
Tile data reference from the database.
Definition at line 82 of file ArchitectureBrowser.hpp.
|
protected |
Wire usage information from the database.
Definition at line 86 of file ArchitectureBrowser.hpp.
|
staticprotected |
Regular expression for nonnegative integers.
Definition at line 91 of file ArchitectureBrowser.hpp.
|
staticprotected |
Regular expression for a name.
Definition at line 93 of file ArchitectureBrowser.hpp.
|
staticprotected |
Regular expression for Tilewire form.
Definition at line 89 of file ArchitectureBrowser.hpp.