Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
arttest::HMLargeData Class Reference

#include <HMLargeData.h>

Public Member Functions

HMLargeDataoperator+= (HMLargeData const &other)
 
float * data ()
 
float const * data () const
 
void aggregate (HMLargeData const &other)
 

Static Public Member Functions

static constexpr size_t size ()
 

Private Attributes

std::vector< float > data_
 

Static Private Attributes

static const int data_size_ = 32 * 12 * 32 * 100 * 3 * 5
 

Detailed Description

Definition at line 15 of file HMLargeData.h.

Member Function Documentation

void arttest::HMLargeData::aggregate ( HMLargeData const &  other)

Definition at line 43 of file HMLargeData.h.

44 {
45  (void)operator+=(other);
46 }
float * arttest::HMLargeData::data ( )

Definition at line 55 of file HMLargeData.h.

56 {
57  if (data_.size() < data_size_) {
58  data_.resize(data_size_);
59  }
60  return data_.data();
61 }
static const int data_size_
Definition: HMLargeData.h:25
std::vector< float > data_
Definition: HMLargeData.h:26
float const * arttest::HMLargeData::data ( ) const

Definition at line 65 of file HMLargeData.h.

66 {
67  assert(!(data_.size() < data_size_));
68  return data_.data();
69 }
static const int data_size_
Definition: HMLargeData.h:25
std::vector< float > data_
Definition: HMLargeData.h:26
arttest::HMLargeData & arttest::HMLargeData::operator+= ( HMLargeData const &  other)

Definition at line 33 of file HMLargeData.h.

34 {
35  auto o = std::begin(other.data_); // Should be cbegin in C++2014.
36  for (auto i = std::begin(data_), e = std::begin(data_); i != e; ++i, ++o) {
37  *i += *o;
38  }
39  return *this;
40 }
const double e
auto begin(Data< Value > const &data)
std::vector< float > data_
Definition: HMLargeData.h:26
constexpr size_t arttest::HMLargeData::size ( )
static

Definition at line 49 of file HMLargeData.h.

50 {
51  return data_size_;
52 }
static const int data_size_
Definition: HMLargeData.h:25

Member Data Documentation

std::vector<float> arttest::HMLargeData::data_
private

Definition at line 26 of file HMLargeData.h.

const int arttest::HMLargeData::data_size_ = 32 * 12 * 32 * 100 * 3 * 5
staticprivate

Definition at line 25 of file HMLargeData.h.


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