Public Types | Public Member Functions | Public Attributes | List of all members
Data Struct Reference

Public Types

using begin_iterator = begin_iterator_t
 
using end_iterator = end_iterator_t
 
using begin_const_iterator = begin_const_iterator_t
 
using end_const_iterator = end_const_iterator_t
 

Public Member Functions

 Data (std::initializer_list< int > data)
 
begin_const_iterator begin () const
 
begin_iterator begin ()
 
end_const_iterator end () const
 
end_iterator end ()
 
bool empty () const
 
auto size () const
 
auto operator[] (std::size_t index) -> decltype(auto)
 
auto operator[] (std::size_t index) const -> decltype(auto)
 

Public Attributes

std::vector< int > data
 

Detailed Description

Definition at line 73 of file RangeForWrapper_test.cc.

Member Typedef Documentation

using Data::begin_const_iterator = begin_const_iterator_t

Definition at line 78 of file RangeForWrapper_test.cc.

using Data::begin_iterator = begin_iterator_t

Definition at line 76 of file RangeForWrapper_test.cc.

using Data::end_const_iterator = end_const_iterator_t

Definition at line 79 of file RangeForWrapper_test.cc.

using Data::end_iterator = end_iterator_t

Definition at line 77 of file RangeForWrapper_test.cc.

Constructor & Destructor Documentation

Data::Data ( std::initializer_list< int >  data)
inline

Definition at line 81 of file RangeForWrapper_test.cc.

81 : data(data) {}
std::vector< int > data

Member Function Documentation

begin_const_iterator Data::begin ( ) const
inline

Definition at line 83 of file RangeForWrapper_test.cc.

83 { return { &*data.cbegin() }; }
std::vector< int > data
begin_iterator Data::begin ( )
inline

Definition at line 84 of file RangeForWrapper_test.cc.

84 { return { &*data.begin() }; }
std::vector< int > data
bool Data::empty ( ) const
inline

Definition at line 88 of file RangeForWrapper_test.cc.

88 { return data.empty(); }
std::vector< int > data
end_const_iterator Data::end ( ) const
inline

Definition at line 85 of file RangeForWrapper_test.cc.

85 { return { &*data.cend() }; }
std::vector< int > data
end_iterator Data::end ( )
inline

Definition at line 86 of file RangeForWrapper_test.cc.

86 { return { &*data.end() }; }
std::vector< int > data
auto Data::operator[] ( std::size_t  index) -> decltype(auto)
inline

Definition at line 90 of file RangeForWrapper_test.cc.

91  { return data[index]; }
std::vector< int > data
auto Data::operator[] ( std::size_t  index) const -> decltype(auto)
inline

Definition at line 92 of file RangeForWrapper_test.cc.

93  { return data[index]; }
std::vector< int > data
auto Data::size ( void  ) const
inline

Definition at line 89 of file RangeForWrapper_test.cc.

89 { return data.size(); }
std::vector< int > data

Member Data Documentation

std::vector<int> Data::data

Definition at line 74 of file RangeForWrapper_test.cc.


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