Chombo + EB  3.0
Public Member Functions | Private Member Functions | List of all members
ParticleVector< T, Comparator > Class Template Reference

#include <sort.H>

Inheritance diagram for ParticleVector< T, Comparator >:
Inheritance graph
[legend]

Public Member Functions

 ParticleVector (unsigned int size)
 
void global_sort (Comparator a_less, const int a_version=2)
 
- Public Member Functions inherited from Vector< T >
 Vector ()
 
virtual ~Vector ()
 
 Vector (const Vector< T > &invec)
 
 Vector (const std::vector< T > &invec)
 
Vector< T > & operator= (const std::vector< T > &invec)
 
Vector< T > & operator= (const Vector< T > &invec)
 
Vector< T > & assign (const T &inval)
 assign a scalar to every element of the vector More...
 
 Vector (unsigned int isize)
 
void clear ()
 
size_t size () const
 
 Vector (unsigned int isize, const T &value)
 
T & operator[] (unsigned int n)
 
const T & operator[] (unsigned int n) const
 
T & front ()
 
T & back ()
 
void pop_back ()
 
const T & back () const
 
void swap (Vector< T > &other)
 
void push_back (const T &in)
 
void append (const Vector< T > &invec)
 
void resize (unsigned int isize)
 
void reserve (size_t isize)
 
size_t capacity () const
 
void resize (unsigned int isize, const T &value)
 
void sort ()
 
std::vector< T > & stdVector ()
 Returns std::vector under the hood. More...
 
const std::vector< T > & constStdVector () const
 

Private Member Functions

T * memsort (T *a_data, int *a_local_len, const int a_capacity, Comparator a_less, const int a_version=2)
 

Constructor & Destructor Documentation

template<class T , class Comparator >
ParticleVector< T, Comparator >::ParticleVector ( unsigned int  size)
inline

Member Function Documentation

template<class T , class Comparator >
void ParticleVector< T, Comparator >::global_sort ( Comparator  a_less,
const int  a_version = 2 
)

References CH_assert.

template<class T , class Comparator >
T * ParticleVector< T, Comparator >::memsort ( T *  a_data,
int *  a_local_len,
const int  a_capacity,
Comparator  a_less,
const int  a_version = 2 
)
private

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