ManaPlus
Public Member Functions | Private Attributes
Catch::ValuesGenerator< T > Class Template Reference

#include <catch.hpp>

Inheritance diagram for Catch::ValuesGenerator< T >:
Catch::IGenerator< T >

Public Member Functions

 ValuesGenerator ()
 
void add (T value)
 
virtual T getValue (std::size_t index) const
 
virtual std::size_t size () const
 
- Public Member Functions inherited from Catch::IGenerator< T >
virtual ~IGenerator ()
 

Private Attributes

std::vector< T > m_values
 

Detailed Description

template<typename T>
class Catch::ValuesGenerator< T >

Definition at line 2372 of file catch.hpp.

Constructor & Destructor Documentation

◆ ValuesGenerator()

template<typename T >
Catch::ValuesGenerator< T >::ValuesGenerator ( )
inline

Definition at line 2374 of file catch.hpp.

2374 {}

Member Function Documentation

◆ add()

template<typename T >
void Catch::ValuesGenerator< T >::add ( value)
inline

Definition at line 2376 of file catch.hpp.

2376  {
2377  m_values.push_back( value );
2378  }
std::vector< T > m_values
Definition: catch.hpp:2389

Referenced by Catch::CompositeGenerator< T >::then(), and Catch::Generators::values().

◆ getValue()

template<typename T >
virtual T Catch::ValuesGenerator< T >::getValue ( std::size_t  index) const
inlinevirtual

Implements Catch::IGenerator< T >.

Definition at line 2380 of file catch.hpp.

2380  {
2381  return m_values[index];
2382  }

◆ size()

template<typename T >
virtual std::size_t Catch::ValuesGenerator< T >::size ( ) const
inlinevirtual

Implements Catch::IGenerator< T >.

Definition at line 2384 of file catch.hpp.

2384  {
2385  return m_values.size();
2386  }

Field Documentation

◆ m_values

template<typename T >
std::vector<T> Catch::ValuesGenerator< T >::m_values
private

Definition at line 2389 of file catch.hpp.


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