Lodestar
An integrated real-time control package in C++
|
|
5 #ifndef LODESTAR_EMPTYSET_HPP
6 #define LODESTAR_EMPTYSET_HPP
10 #include "SetExpression.hpp"
11 #include "SetUnion.hpp"
12 #include "SetComplement.hpp"
15 namespace primitives {
36 template<
typename TExpression>
39 return std::is_same<TExpression, type>::value || expr.isEmpty();
51 template<
typename TExpression>
67 template<
typename TExpression>
70 return std::is_same<type, TExpression>::value || expr.isEmpty();
82 template<
typename TElementType>
86 return std::is_same<type, TElementType>::value ||
87 std::is_same<SetExpression<type>, TElementType>::value;
101 template<
typename TElementType>
117 template<
typename TExpression>
120 return std::is_same<type, TExpression>::value || expr.isEmpty();
186 template<
typename TExpression>
212 template<
typename TExpression>
231 template<
typename TDerived>
232 double sdf(Eigen::MatrixBase<TDerived> &p)
const
234 return std::numeric_limits<double>::infinity();
241 #endif //LODESTAR_EMPTYSET_HPP
bool contains(const SetExpression< TExpression > &expr) const
Returns true if this expression contains expr.
Definition: EmptySet.hpp:68
bool isEmpty() const
Returns true if the expression is the empty set.
Definition: EmptySet.hpp:198
Definition: SetExpression.hpp:15
The empty set.
Definition: EmptySet.hpp:20
Relative complement of two SetExpressions.
Definition: SetComplement.hpp:28
Main Lodestar code.
Definition: BilinearTransformation.hpp:12
bool operator==(const SetExpression< TExpression > &expr) const
Checks if this expression is equal to \expr.
Definition: EmptySet.hpp:37
SetComplement< type, TExpression > relComplement(const SetExpression< TExpression > &expr)
**
Definition: EmptySet.hpp:187
Union of two SetExpressions.
Definition: SetUnion.hpp:28
bool contains(const TElementType &el) const
Returns true if this expression contains expr.
Definition: EmptySet.hpp:84
bool isSubset(const TElementType &el) const
Checks if this expression is a subset of expr.
Definition: EmptySet.hpp:103
bool operator!=(const SetExpression< TExpression > &expr) const
Checks if this expression is not equal to \expr.
Definition: EmptySet.hpp:52
bool isSuperset(const SetExpression< TExpression > &expr) const
Checks if this expression is a superset of expr.
Definition: EmptySet.hpp:118
EmptySet()=default
Expression type.
SetUnion< type, TExpression > unionize(const SetExpression< TExpression > &expr)
Creates a union between this expression and another SetExpression.
Definition: EmptySet.hpp:213
double sdf(Eigen::MatrixBase< TDerived > &p) const
Returns signed distance to p.
Definition: EmptySet.hpp:232