PhyStar  v0.0.0 thu24
dmdyn::CavityQueue< T > Class Template Reference

This class is designed for saving the cavity in the particlefield smartplist. More...

#include <SmartPList.hpp>

Public Member Functions

 CavityQueue ()
 
 CavityQueue (const int &num)
 
void Init (const int &num)
 
const int Length ()
 
const int & MaxLength ()
 
void InitQueue ()
 
bool IsInqueuing ()
 
bool IsDequeuing ()
 
void AllocateBuffer ()
 
void CleanBuffer (const T val=-2)
 
void Inqueue (const T &val)
 
bool IsEmpty ()
 
const auto & Dequeue ()
 
const auto & Pop ()
 
const auto & End ()
 
const T & operator() (const int &i)
 

Private Attributes

Array1< T > _buffer
 
int _len = 0
 
int _head = 0
 

Static Private Attributes

static T * ptr_cavity_null = nullptr
 

Detailed Description

template<typename T>
class dmdyn::CavityQueue< T >

This class is designed for saving the cavity in the particlefield smartplist.

Template Parameters
T

Constructor & Destructor Documentation

◆ CavityQueue() [1/2]

template<typename T >
dmdyn::CavityQueue< T >::CavityQueue ( )
inline

◆ CavityQueue() [2/2]

template<typename T >
dmdyn::CavityQueue< T >::CavityQueue ( const int &  num)
inline

Member Function Documentation

◆ AllocateBuffer()

template<typename T >
void dmdyn::CavityQueue< T >::AllocateBuffer ( )
inline

◆ CleanBuffer()

template<typename T >
void dmdyn::CavityQueue< T >::CleanBuffer ( const T  val = -2)
inline
Here is the caller graph for this function:

◆ Dequeue()

template<typename T >
const auto& dmdyn::CavityQueue< T >::Dequeue ( )
inline
Here is the caller graph for this function:

◆ End()

template<typename T >
const auto& dmdyn::CavityQueue< T >::End ( )
inline

◆ Init()

template<typename T >
void dmdyn::CavityQueue< T >::Init ( const int &  num)
inline
Here is the caller graph for this function:

◆ InitQueue()

template<typename T >
void dmdyn::CavityQueue< T >::InitQueue ( )
inline
Here is the caller graph for this function:

◆ Inqueue()

template<typename T >
void dmdyn::CavityQueue< T >::Inqueue ( const T &  val)
inline
Here is the caller graph for this function:

◆ IsDequeuing()

template<typename T >
bool dmdyn::CavityQueue< T >::IsDequeuing ( )
inline

◆ IsEmpty()

template<typename T >
bool dmdyn::CavityQueue< T >::IsEmpty ( )
inline
Here is the caller graph for this function:

◆ IsInqueuing()

template<typename T >
bool dmdyn::CavityQueue< T >::IsInqueuing ( )
inline
Here is the caller graph for this function:

◆ Length()

template<typename T >
const int dmdyn::CavityQueue< T >::Length ( )
inline
Here is the caller graph for this function:

◆ MaxLength()

template<typename T >
const int& dmdyn::CavityQueue< T >::MaxLength ( )
inline
Here is the caller graph for this function:

◆ operator()()

template<typename T >
const T& dmdyn::CavityQueue< T >::operator() ( const int &  i)
inline

◆ Pop()

template<typename T >
const auto& dmdyn::CavityQueue< T >::Pop ( )
inline
Here is the caller graph for this function:

Member Data Documentation

◆ _buffer

template<typename T >
Array1<T> dmdyn::CavityQueue< T >::_buffer
private

◆ _head

template<typename T >
int dmdyn::CavityQueue< T >::_head = 0
private

◆ _len

template<typename T >
int dmdyn::CavityQueue< T >::_len = 0
private

◆ ptr_cavity_null

template<typename T >
T* dmdyn::CavityQueue< T >::ptr_cavity_null = nullptr
inlinestaticprivate

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