Public Types | Static Public Member Functions | List of all members
TestDataMakerClass< std::array< T, N > > Struct Template Reference
Inheritance diagram for TestDataMakerClass< std::array< T, N > >:
TestDataMakerBase

Public Types

using Container_t = std::array< T, N >
 

Static Public Member Functions

static Container_t make ()
 
- Static Public Member Functions inherited from TestDataMakerBase
static constexpr std::size_t sourceSize ()
 

Additional Inherited Members

- Static Public Attributes inherited from TestDataMakerBase
static constexpr std::size_t Dim = 10U
 
static std::array< int, Dim > const sourceValues {{ 0, -1, -2, -3, -4, -5, -6, -7, -8, -9 }}
 

Detailed Description

template<typename T, std::size_t N>
struct TestDataMakerClass< std::array< T, N > >

Definition at line 57 of file MappedContainer_test.cc.

Member Typedef Documentation

template<typename T , std::size_t N>
using TestDataMakerClass< std::array< T, N > >::Container_t = std::array<T, N>

Definition at line 58 of file MappedContainer_test.cc.

Member Function Documentation

template<typename T , std::size_t N>
static Container_t TestDataMakerClass< std::array< T, N > >::make ( )
inlinestatic

Definition at line 59 of file MappedContainer_test.cc.

60  {
61  static_assert(N >= sourceSize());
63  std::copy(sourceValues.cbegin(), sourceValues.cend(), data.begin());
64  return data;
65  }
static constexpr std::size_t sourceSize()
static std::array< int, Dim > const sourceValues
T copy(T const &v)

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