27 #ifndef MPBLOCKS_DUBINS_CURVES_RESULT_H_
28 #define MPBLOCKS_DUBINS_CURVES_RESULT_H_
43 template <
typename Format_t>
58 operator Format_t()
const {
return d; }
61 operator bool()
const {
return f; }
81 template <
typename Format_t>
94 operator bool()
const {
return (
id !=
INVALID); }
98 void set(Format_t d_in,
int id_in) {
115 #endif // MPBLOCKS_DUBINS_CURVES_RESULT_H_
__device__ __host__ Result< Format_t > & operator=(const Result< Format_t > &other)
__device__ __host__ Result< Format_t > & operator=(const Result< Format_t > &other)
__device__ __host__ Result()
the default constructor is for infeasible
__device__ __host__ DistanceAndId()
__device__ __host__ Result(Format_t d, bool f=true)
we only use this constructor when it's feasible
Encapsulates the solution distance along with a feasibility bit for a particular primitive solution...
BinaryKey other(const BinaryKey &key)
__device__ __host__ DistanceAndId(Format_t d, SolutionId id)
__device__ __host__ Result< Format_t > & operator=(Format_t d_in)
SolutionId
enumerates solution types
__device__ __host__ void set(Format_t d_in, int id_in)
set the storage and make the flag true
Encapsulates a solution distance along with the id of the path type, identifying the nature of the th...