-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Line info fixes: nwchem is now running clean. There's a good bit of r…
…oom for performance improvements (notably in ensuring that we don't have redundant module intervals).
- Loading branch information
1 parent
0dee1c8
commit 4e4a375
Showing
18 changed files
with
524 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// | ||
// Created by bill on 8/29/16. | ||
// | ||
|
||
#ifndef DYNINST_STRINGTABLE_H | ||
#define DYNINST_STRINGTABLE_H | ||
|
||
#include <boost/shared_ptr.hpp> | ||
#include <boost/multi_index_container.hpp> | ||
#include <boost/multi_index/random_access_index.hpp> | ||
#include <boost/multi_index/identity.hpp> | ||
#include <boost/multi_index/ordered_index.hpp> | ||
|
||
namespace Dyninst { | ||
namespace SymtabAPI { | ||
struct StringTableEntry { | ||
std::string str; | ||
StringTableEntry(const char* s) : str(s) {} | ||
StringTableEntry(std::string s) : str(s) {} | ||
bool operator==(std::string s) const { | ||
return s == str || | ||
s == str.substr(str.rfind("/")); | ||
} | ||
}; | ||
typedef boost::multi_index_container<StringTableEntry, | ||
boost::multi_index::indexed_by< | ||
boost::multi_index::random_access<>, | ||
boost::multi_index::ordered_non_unique< | ||
boost::multi_index::member<StringTableEntry, const std::string, &StringTableEntry::str> | ||
> | ||
> | ||
> StringTable; | ||
|
||
typedef boost::shared_ptr<StringTable> StringTablePtr; | ||
|
||
} | ||
} | ||
|
||
|
||
|
||
#endif //DYNINST_STRINGTABLE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.