Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
set_cover_views.h File Reference
#include <absl/meta/type_traits.h>
#include "ortools/set_cover/base_types.h"
#include "ortools/set_cover/set_cover_model.h"
#include "views.h"

Go to the source code of this file.

Classes

class  operations_research::StrongModelView
class  operations_research::IndexListModelView
class  operations_research::FilterModelView

Namespaces

namespace  operations_research
 In SWIG mode, we don't want anything besides these top-level includes.

Macros

#define ENABLE_EXPLICIT_STRONG_TYPE_CAST(FROM, TO)

Typedefs

using operations_research::FullElementCostVector = util_intops::StrongVector<FullElementIndex, Cost>
using operations_research::FullSubsetCostVector = util_intops::StrongVector<FullSubsetIndex, Cost>
using operations_research::FullElementBoolVector = util_intops::StrongVector<FullElementIndex, bool>
using operations_research::FullSubsetBoolVector = util_intops::StrongVector<FullSubsetIndex, bool>
using operations_research::FullElementToIntVector
using operations_research::FullSubsetToIntVector
using operations_research::FullToCoreElementMapVector
using operations_research::CoreToFullElementMapVector
using operations_research::FullToCoreSubsetMapVector
using operations_research::CoreToFullSubsetMapVector

Functions

 operations_research::DEFINE_STRONG_INT_TYPE (FullSubsetIndex, BaseInt)
 operations_research::DEFINE_STRONG_INT_TYPE (FullElementIndex, BaseInt)
 operations_research::ENABLE_EXPLICIT_STRONG_TYPE_CAST (SubsetIndex, FullSubsetIndex)
 operations_research::ENABLE_EXPLICIT_STRONG_TYPE_CAST (FullSubsetIndex, SubsetIndex)
 operations_research::ENABLE_EXPLICIT_STRONG_TYPE_CAST (ElementIndex, FullElementIndex)
 operations_research::ENABLE_EXPLICIT_STRONG_TYPE_CAST (FullElementIndex, ElementIndex)

Macro Definition Documentation

◆ ENABLE_EXPLICIT_STRONG_TYPE_CAST

#define ENABLE_EXPLICIT_STRONG_TYPE_CAST ( FROM,
TO )
Value:
constexpr TO StrongIntConvert(FROM j, TO* /*unused*/) { \
return TO(static_cast<FROM::ValueType>(j)); \
}

Syntactic sugar to define strong typed indices casts.

Note
look at strong_int.h for more details about StrongIntConvert

Definition at line 46 of file set_cover_views.h.