Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tc::autotune::RangeParameter Class Reference

#include <parameters.h>

Collaboration diagram for tc::autotune::RangeParameter:

Public Member Functions

 RangeParameter (std::vector< size_t > values, const std::string &name)
 
 RangeParameter (const RangeParameter &)
 
 RangeParameter ()=default
 
RangeParameteroperator= (const RangeParameter &)
 
size_t numberOptions () const
 
void selectOption (size_t idx)
 
void selectFromValue (size_t v)
 
void fixValue (size_t v)
 
size_t value () const
 
void apply (const std::function< void(ParameterView &)> &f)
 

Public Attributes

std::string name
 

Private Attributes

size_t selected_ = 0
 
std::vector< size_t > values_
 
llvm::Optional< size_t > fixedValue_
 

Friends

class ParameterView
 

Constructor & Destructor Documentation

tc::autotune::RangeParameter::RangeParameter ( std::vector< size_t >  values,
const std::string &  name 
)
tc::autotune::RangeParameter::RangeParameter ( const RangeParameter )
tc::autotune::RangeParameter::RangeParameter ( )
default

Member Function Documentation

void tc::autotune::RangeParameter::apply ( const std::function< void(ParameterView &)> &  f)
void tc::autotune::RangeParameter::fixValue ( size_t  v)
size_t tc::autotune::RangeParameter::numberOptions ( ) const
RangeParameter& tc::autotune::RangeParameter::operator= ( const RangeParameter )
void tc::autotune::RangeParameter::selectFromValue ( size_t  v)
void tc::autotune::RangeParameter::selectOption ( size_t  idx)
size_t tc::autotune::RangeParameter::value ( ) const

Friends And Related Function Documentation

friend class ParameterView
friend

Member Data Documentation

llvm::Optional<size_t> tc::autotune::RangeParameter::fixedValue_
private
std::string tc::autotune::RangeParameter::name
size_t tc::autotune::RangeParameter::selected_ = 0
private
std::vector<size_t> tc::autotune::RangeParameter::values_
private

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