forked from artivis/manif
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
173 additions
and
1 deletion.
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
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,37 @@ | ||
#ifndef _MANIF_MANIF_IMPL_VEE_H_ | ||
#define _MANIF_MANIF_IMPL_VEE_H_ | ||
|
||
namespace manif { | ||
namespace internal { | ||
|
||
template <typename Derived> | ||
struct VeeEvaluatorImpl { | ||
template <typename TL, typename TR> | ||
static void run(TL& t, const TR&) { | ||
static_assert( | ||
constexpr_false<Derived>(), "VeeEvaluator not overloaded for Derived type!" | ||
); | ||
// t.setRandom(); | ||
} | ||
}; | ||
|
||
template <typename Derived> | ||
struct VeeEvaluator : VeeEvaluatorImpl<Derived> { | ||
using Base = VeeEvaluatorImpl<Derived>; | ||
|
||
VeeEvaluator(Derived& xptr) : xptr_(xptr) {} | ||
|
||
template <typename T> | ||
void run(const T& t) { | ||
Base::run(xptr_, t); | ||
} | ||
|
||
protected: | ||
|
||
Derived& xptr_; | ||
}; | ||
|
||
} // namespace internal | ||
} // namespace manif | ||
|
||
#endif // _MANIF_MANIF_IMPL_VEE_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