All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
actions::Optimize< T > Class Template Reference
Inheritance diagram for actions::Optimize< T >:
actions::BaseAction< T >

Public Types

using Base_t = BaseAction< T >
 
typedef TestManagerClass< T > TestClass_t
 
typedef TestClass_t::Data_t Data_t
 type stored More...
 
typedef TestClass_t::Vector_t Vector_t
 type of STL vector More...
 
typedef TestClass_t::SparseVector_t SparseVector_t
 type of sparse vector More...
 
- Public Types inherited from actions::BaseAction< T >
using This_t = BaseAction< T >
 
typedef TestManagerClass< T > TestClass_t
 
typedef TestClass_t::Data_t Data_t
 type stored More...
 
typedef TestClass_t::Vector_t Vector_t
 type of STL vector More...
 
typedef TestClass_t::SparseVector_t SparseVector_t
 type of sparse vector More...
 

Public Member Functions

 Optimize (int param)
 
- Public Member Functions inherited from actions::BaseAction< T >
 BaseAction ()
 
 BaseAction (int exp_err)
 
virtual ~BaseAction ()
 
This_tset_expected_errors (int exp_err)
 
void describe (TestClass_t &tc, std::ostream &out) const
 Print a description of this action into the specified steam. More...
 
void describe (TestClass_t &tc) const
 Print a description of this action in the test class stream. More...
 
std::string description (TestClass_t &tc) const
 Returns a string with a description of this action. More...
 
void operator() (Vector_t &v) const
 Action performed on a STL vector. More...
 
void operator() (SparseVector_t &v) const
 Action performed on a sparse vector. More...
 

Public Attributes

int opt_param
 
- Public Attributes inherited from actions::BaseAction< T >
int expected_errors {0}
 number of errors expected for this action More...
 

Protected Member Functions

virtual void actionOnSparseVector (SparseVector_t &v) const override
 
virtual void doDescribe (TestClass_t &, std::ostream &out) const override
 
- Protected Member Functions inherited from actions::BaseAction< T >
virtual void actionOnVector (Vector_t &) const
 

Additional Inherited Members

- Protected Types inherited from actions::BaseAction< T >
using v_citer_t = typename Vector_t::const_iterator
 
- Static Protected Member Functions inherited from actions::BaseAction< T >
template<typename ITER >
static ITER skipRange (ITER start, ITER const end)
 
template<typename ITER >
static ITER skipVoid (ITER start, ITER const end)
 
template<typename ITER >
static ITER rangeStart (ITER const begin, ITER last)
 
template<typename ITER >
static ITER voidStart (ITER const begin, ITER last)
 
template<typename Vector >
static auto findRangeBorders (Vector &v, std::size_t pos)
 
template<typename ITER >
static ITER findRangeStart (Vector_t const &v, std::size_t i, ITER start)
 Returns iterator to the first element of the i-th range after start. More...
 
template<typename ITER >
static ITER findRangeStart (Vector_t const &v, std::size_t i)
 
template<typename ITER >
static ITER findVoidStart (Vector_t const &v, std::size_t i, ITER start)
 
static bool isVoid (Data_t value)
 

Detailed Description

template<typename T>
class actions::Optimize< T >

Definition at line 978 of file sparse_vector_test.cc.

Member Typedef Documentation

template<typename T >
using actions::Optimize< T >::Base_t = BaseAction<T>

Definition at line 980 of file sparse_vector_test.cc.

template<typename T >
typedef TestClass_t::Data_t actions::BaseAction< T >::Data_t

type stored

Definition at line 278 of file sparse_vector_test.cc.

template<typename T >
typedef TestClass_t::SparseVector_t actions::BaseAction< T >::SparseVector_t

type of sparse vector

Definition at line 280 of file sparse_vector_test.cc.

template<typename T >
typedef TestManagerClass<T> actions::BaseAction< T >::TestClass_t

Definition at line 277 of file sparse_vector_test.cc.

template<typename T >
typedef TestClass_t::Vector_t actions::BaseAction< T >::Vector_t

type of STL vector

Definition at line 279 of file sparse_vector_test.cc.

Constructor & Destructor Documentation

template<typename T >
actions::Optimize< T >::Optimize ( int  param)
inline

Definition at line 988 of file sparse_vector_test.cc.

988 : opt_param(param) {}

Member Function Documentation

template<typename T >
virtual void actions::Optimize< T >::actionOnSparseVector ( SparseVector_t v) const
inlineoverrideprotectedvirtual

Reimplemented from actions::BaseAction< T >.

Definition at line 991 of file sparse_vector_test.cc.

992  {
993  if (opt_param < 0) v.optimize();
994  else v.optimize(opt_param);
995  }
template<typename T >
virtual void actions::Optimize< T >::doDescribe ( TestClass_t ,
std::ostream &  out 
) const
inlineoverrideprotectedvirtual

Reimplemented from actions::BaseAction< T >.

Definition at line 997 of file sparse_vector_test.cc.

998  {
999  out << "optimize the sparse vector (";
1000  if (opt_param < 0) out << "default settings";
1001  else out << "optimization parameter: " << opt_param;
1002  out << ")";
1003  }

Member Data Documentation

template<typename T >
int actions::Optimize< T >::opt_param

Definition at line 986 of file sparse_vector_test.cc.


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