#include <random_sequence.h>
Public Member Functions | |
RandomSequence () | |
RandomSequence (char *&bit_vector, int start, int end) | |
template<typename GenericIterator> | |
RandomSequence (const GenericIterator &begin, const GenericIterator &end) | |
~RandomSequence () | |
void | Insert (const T &element) |
void | Remove (const T &element) |
int | num_elements () const |
int | mem_size () const |
T | min () const |
T | max () const |
Type | type () const |
CkSequenceIteratorInternal< T > * | begin () |
CkSequenceIteratorInternal< T > * | end () |
void | pup (PUP::er &p) |
Private Attributes | |
int | num_elements_ |
T | start_ |
T | min_ |
T | max_ |
char * | bit_vector_ |
T |
Definition at line 114 of file random_sequence.h.
RandomSequence< T >::RandomSequence | ( | ) | [inline] |
Definition at line 118 of file random_sequence.h.
RandomSequence< T >::RandomSequence | ( | char *& | bit_vector, | |
int | start, | |||
int | end | |||
) | [inline] |
Definition at line 121 of file random_sequence.h.
References RandomSequence< T >::bit_vector_, endl(), malloc(), RandomSequence< T >::max_, RandomSequence< T >::min_, and RandomSequence< T >::start_.
RandomSequence< T >::RandomSequence | ( | const GenericIterator & | begin, | |
const GenericIterator & | end | |||
) | [inline] |
Definition at line 131 of file random_sequence.h.
References RandomSequence< T >::bit_vector_, endl(), malloc(), RandomSequence< T >::max_, RandomSequence< T >::min_, and RandomSequence< T >::num_elements_.
RandomSequence< T >::~RandomSequence | ( | ) | [inline] |
Definition at line 158 of file random_sequence.h.
void RandomSequence< T >::Insert | ( | const T & | element | ) | [inline, virtual] |
Implements CkSequenceInternal< T >.
Definition at line 209 of file random_sequence.h.
References RandomSequence< T >::bit_vector_, RandomSequence< T >::max_, realloc(), and RandomSequence< T >::start_.
void RandomSequence< T >::Remove | ( | const T & | element | ) | [inline, virtual] |
int RandomSequence< T >::num_elements | ( | ) | const [inline, virtual] |
Implements CkSequenceInternal< T >.
Definition at line 227 of file random_sequence.h.
References RandomSequence< T >::num_elements_.
int RandomSequence< T >::mem_size | ( | ) | const [inline, virtual] |
Implements CkSequenceInternal< T >.
Definition at line 232 of file random_sequence.h.
References RandomSequence< T >::max_.
T RandomSequence< T >::min | ( | ) | const [inline, virtual] |
Implements CkSequenceInternal< T >.
Definition at line 169 of file random_sequence.h.
References RandomSequence< T >::start_.
T RandomSequence< T >::max | ( | void | ) | const [inline, virtual] |
Implements CkSequenceInternal< T >.
Definition at line 173 of file random_sequence.h.
References RandomSequence< T >::max_, and RandomSequence< T >::start_.
Type RandomSequence< T >::type | ( | ) | const [inline, virtual] |
Implements CkSequenceInternal< T >.
Definition at line 177 of file random_sequence.h.
References RANDOM.
CkSequenceIteratorInternal<T>* RandomSequence< T >::begin | ( | void | ) | [inline, virtual] |
Implements CkSequenceInternal< T >.
Definition at line 181 of file random_sequence.h.
References RandomSequence< T >::bit_vector_, RandomSequence< T >::max_, RandomSequence< T >::min_, and RandomSequence< T >::start_.
CkSequenceIteratorInternal<T>* RandomSequence< T >::end | ( | void | ) | [inline, virtual] |
Implements CkSequenceInternal< T >.
Definition at line 185 of file random_sequence.h.
References RandomSequence< T >::bit_vector_, RandomSequence< T >::max_, and RandomSequence< T >::start_.
void RandomSequence< T >::pup | ( | PUP::er & | p | ) | [inline, virtual] |
Implements CkSequenceInternal< T >.
Definition at line 189 of file random_sequence.h.
References RandomSequence< T >::bit_vector_, PUP::er::isUnpacking(), malloc(), RandomSequence< T >::max_, RandomSequence< T >::min_, RandomSequence< T >::num_elements_, PUP::PUParray(), and RandomSequence< T >::start_.
int RandomSequence< T >::num_elements_ [private] |
Definition at line 201 of file random_sequence.h.
Referenced by RandomSequence< T >::num_elements(), RandomSequence< T >::pup(), and RandomSequence< T >::RandomSequence().
T RandomSequence< T >::start_ [private] |
Definition at line 202 of file random_sequence.h.
Referenced by RandomSequence< T >::begin(), RandomSequence< T >::end(), RandomSequence< T >::Insert(), RandomSequence< T >::max(), RandomSequence< T >::min(), RandomSequence< T >::pup(), and RandomSequence< T >::RandomSequence().
T RandomSequence< T >::min_ [private] |
Definition at line 203 of file random_sequence.h.
Referenced by RandomSequence< T >::begin(), RandomSequence< T >::pup(), and RandomSequence< T >::RandomSequence().
T RandomSequence< T >::max_ [private] |
Definition at line 204 of file random_sequence.h.
Referenced by RandomSequence< T >::begin(), RandomSequence< T >::end(), RandomSequence< T >::Insert(), RandomSequence< T >::max(), RandomSequence< T >::mem_size(), RandomSequence< T >::pup(), and RandomSequence< T >::RandomSequence().
char* RandomSequence< T >::bit_vector_ [private] |
Definition at line 205 of file random_sequence.h.
Referenced by RandomSequence< T >::begin(), RandomSequence< T >::end(), RandomSequence< T >::Insert(), RandomSequence< T >::pup(), and RandomSequence< T >::RandomSequence().