refactor ExtractorStructs.h for faster compiles. achieves approx. 10 secs

This commit is contained in:
Dennis Luxen
2014-01-09 16:13:35 +01:00
parent ce60af5029
commit 046fe93f1f
15 changed files with 418 additions and 176 deletions
+9 -6
View File
@@ -105,13 +105,16 @@ struct InputRestrictionContainer {
return InputRestrictionContainer(0, 0, 0, 0);
}
static InputRestrictionContainer max_value() {
return InputRestrictionContainer(UINT_MAX, UINT_MAX, UINT_MAX, UINT_MAX);
return InputRestrictionContainer(
UINT_MAX,
UINT_MAX,
UINT_MAX,
UINT_MAX
);
}
};
struct CmpRestrictionContainerByFrom :
public std::binary_function<InputRestrictionContainer, InputRestrictionContainer, bool>
{
struct CmpRestrictionContainerByFrom {
typedef InputRestrictionContainer value_type;
inline bool operator()(
const InputRestrictionContainer & a,
@@ -127,9 +130,9 @@ struct CmpRestrictionContainerByFrom :
}
};
struct CmpRestrictionContainerByTo: public std::binary_function<InputRestrictionContainer, InputRestrictionContainer, bool> {
struct CmpRestrictionContainerByTo {
typedef InputRestrictionContainer value_type;
inline bool operator ()(
inline bool operator()(
const InputRestrictionContainer & a,
const InputRestrictionContainer & b
) const {