PPL Logo

RandomSequence< T > Class Template Reference

#include <random_sequence.h>

Inheritance diagram for RandomSequence< T >:

Inheritance graph
[legend]
Collaboration diagram for RandomSequence< T >:

Collaboration graph
[legend]

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
min () const
max () const
Type type () const
CkSequenceIteratorInternal< T > * begin ()
CkSequenceIteratorInternal< T > * end ()
void pup (PUP::er &p)

Private Attributes

int num_elements_
start_
min_
max_
char * bit_vector_

Detailed Description

template<typename T>
class RandomSequence< T >

Template Parameters:
T 

Definition at line 114 of file random_sequence.h.


Constructor & Destructor Documentation

template<typename T>
RandomSequence< T >::RandomSequence (  )  [inline]

Definition at line 118 of file random_sequence.h.

template<typename T>
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_.

Here is the call graph for this function:

template<typename T>
template<typename GenericIterator>
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_.

Here is the call graph for this function:

template<typename T>
RandomSequence< T >::~RandomSequence (  )  [inline]

Definition at line 158 of file random_sequence.h.


Member Function Documentation

template<typename T>
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_.

Here is the call graph for this function:

template<typename T>
void RandomSequence< T >::Remove ( const T &  element  )  [inline, virtual]

Implements CkSequenceInternal< T >.

Definition at line 223 of file random_sequence.h.

template<typename T>
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_.

template<typename T>
int RandomSequence< T >::mem_size (  )  const [inline, virtual]

Implements CkSequenceInternal< T >.

Definition at line 232 of file random_sequence.h.

References RandomSequence< T >::max_.

template<typename T>
T RandomSequence< T >::min (  )  const [inline, virtual]

Implements CkSequenceInternal< T >.

Definition at line 169 of file random_sequence.h.

References RandomSequence< T >::start_.

template<typename T>
T RandomSequence< T >::max ( void   )  const [inline, virtual]

template<typename T>
Type RandomSequence< T >::type (  )  const [inline, virtual]

Implements CkSequenceInternal< T >.

Definition at line 177 of file random_sequence.h.

References RANDOM.

template<typename T>
CkSequenceIteratorInternal<T>* RandomSequence< T >::begin ( void   )  [inline, virtual]

template<typename T>
CkSequenceIteratorInternal<T>* RandomSequence< T >::end ( void   )  [inline, virtual]

template<typename T>
void RandomSequence< T >::pup ( PUP::er p  )  [inline, virtual]


Field Documentation

template<typename T>
int RandomSequence< T >::num_elements_ [private]

template<typename T>
T RandomSequence< T >::start_ [private]

template<typename T>
T RandomSequence< T >::min_ [private]

template<typename T>
T RandomSequence< T >::max_ [private]

template<typename T>
char* RandomSequence< T >::bit_vector_ [private]


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

Generated on Mon Sep 21 08:29:17 2020 for Charm++ by  doxygen 1.5.5