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

#include <parameters.h>

Collaboration diagram for tc::autotune::BoolParameter:

Public Member Functions

 BoolParameter (const std::string &name)
 
 BoolParameter ()=default
 
 BoolParameter (const BoolParameter &)
 
BoolParameteroperator= (const BoolParameter &)
 
size_t numberOptions () const
 
void selectOption (size_t idx)
 
void selectValue (bool val)
 
void fixValue (bool val)
 
void apply (const std::function< void(ParameterView &)> &f)
 
bool value () const
 

Public Attributes

std::string name
 

Private Attributes

bool value_
 
llvm::Optional< bool > fixedValue_
 

Friends

class ParameterView
 

Constructor & Destructor Documentation

tc::autotune::BoolParameter::BoolParameter ( const std::string &  name)
tc::autotune::BoolParameter::BoolParameter ( )
default
tc::autotune::BoolParameter::BoolParameter ( const BoolParameter )

Member Function Documentation

void tc::autotune::BoolParameter::apply ( const std::function< void(ParameterView &)> &  f)
void tc::autotune::BoolParameter::fixValue ( bool  val)
size_t tc::autotune::BoolParameter::numberOptions ( ) const
BoolParameter& tc::autotune::BoolParameter::operator= ( const BoolParameter )
void tc::autotune::BoolParameter::selectOption ( size_t  idx)
void tc::autotune::BoolParameter::selectValue ( bool  val)
bool tc::autotune::BoolParameter::value ( ) const

Friends And Related Function Documentation

friend class ParameterView
friend

Member Data Documentation

llvm::Optional<bool> tc::autotune::BoolParameter::fixedValue_
private
std::string tc::autotune::BoolParameter::name
bool tc::autotune::BoolParameter::value_
private

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