Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use compiler, not introspection, to find nested typedefs
- Loading branch information
Showing
24 changed files
with
337 additions
and
314 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
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,26 @@ | ||
#ifndef DataFormats_Provenance_ViewTypeChecker_h | ||
#define DataFormats_Provenance_ViewTypeChecker_h | ||
|
||
/*---------------------------------------------------------------------- | ||
Checks for "value_type" and "member_type" typedefs inside T (of Wrapper<T>). | ||
----------------------------------------------------------------------*/ | ||
|
||
#include <typeinfo> | ||
|
||
namespace edm { | ||
class ViewTypeChecker { | ||
public: | ||
ViewTypeChecker(); | ||
virtual ~ViewTypeChecker(); | ||
|
||
std::type_info const& valueTypeInfo() const {return valueTypeInfo_();} | ||
std::type_info const& memberTypeInfo() const {return memberTypeInfo_();} | ||
|
||
private: | ||
virtual std::type_info const& valueTypeInfo_() const = 0; | ||
virtual std::type_info const& memberTypeInfo_() const = 0; | ||
}; | ||
} | ||
#endif |
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.