TVM  0.9.4
tvm::scheme::internal::LevelAbilities Class Reference

#include <tvm/scheme/internal/SchemeAbilities.h>

Public Member Functions

 LevelAbilities (bool inequality, const std::vector< requirements::ViolationEvaluationType > &types)
 
template<class RequirementsPtr >
void check (const ConstraintPtr &c, const RequirementsPtr &req, bool emitWarnings=true) const
 

Detailed Description

A class to describe what type of constraint and solving requirements a level of a resolution scheme can handle.

Constructor & Destructor Documentation

◆ LevelAbilities()

tvm::scheme::internal::LevelAbilities::LevelAbilities ( bool  inequality,
const std::vector< requirements::ViolationEvaluationType > &  types 
)
Parameters
inequalityTrue if the level is able to handle inequality constraints.
typesThe types of violation evaluation that can be handled at this level.

Member Function Documentation

◆ check()

template<class RequirementsPtr >
void tvm::scheme::internal::LevelAbilities::check ( const ConstraintPtr c,
const RequirementsPtr &  req,
bool  emitWarnings = true 
) const
inline

Check that the given constraint and requirements \req can be handled by this level.

Exceptions
std::runtime_errorif the level cannot handled them.

The documentation for this class was generated from the following file: