All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
Minnie Class Reference

Public Member Functions

 Minnie ()
 
 Minnie (br_t::const_iterator min)
 
 Minnie (Minnie const &other, tbb::split)
 
void operator() (br_t const &r)
 
void join (Minnie const &other)
 
br_t::const_iterator min () const
 
bool valid () const
 

Private Attributes

br_t::const_iterator min_
 
bool valid_
 

Detailed Description

Definition at line 37 of file tbb_preduce_01_t.cc.

Constructor & Destructor Documentation

Minnie::Minnie ( )
inline

Definition at line 116 of file tbb_preduce_01_t.cc.

116 : min_(), valid_(false) {}
br_t::const_iterator min_
Minnie::Minnie ( br_t::const_iterator  min)
inline

Definition at line 118 of file tbb_preduce_01_t.cc.

118 : min_(min), valid_(true) {}
br_t::const_iterator min_
br_t::const_iterator min() const
Minnie::Minnie ( Minnie const &  other,
tbb::split   
)
inline

Definition at line 120 of file tbb_preduce_01_t.cc.

121  : min_(other.min_), valid_(other.valid_)
122 {}
br_t::const_iterator min_

Member Function Documentation

void Minnie::join ( Minnie const &  other)
inline

Definition at line 136 of file tbb_preduce_01_t.cc.

137 {
138  if (other.valid_ && (!valid_ || (*other.min_ < *min_))) {
139  min_ = other.min_;
140  valid_ = true;
141  }
142 }
br_t::const_iterator min_
br_t::const_iterator Minnie::min ( ) const
inline

Definition at line 145 of file tbb_preduce_01_t.cc.

146 {
147  return min_;
148 }
br_t::const_iterator min_
void Minnie::operator() ( br_t const &  r)
inline

Definition at line 125 of file tbb_preduce_01_t.cc.

126 {
127  for (br_t::const_iterator i = r.begin(), e = r.end(); i != e; ++i) {
128  if (!valid_ || *i < *min_) {
129  min_ = i;
130  valid_ = true;
131  }
132  }
133 }
const double e
intermediate_table::const_iterator const_iterator
br_t::const_iterator min_
bool Minnie::valid ( ) const
inline

Definition at line 151 of file tbb_preduce_01_t.cc.

152 {
153  return valid_;
154 }

Member Data Documentation

br_t::const_iterator Minnie::min_
private

Definition at line 49 of file tbb_preduce_01_t.cc.

bool Minnie::valid_
private

Definition at line 50 of file tbb_preduce_01_t.cc.


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