PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CyclingVector< T > Class Template Reference

#include <cyclingvector.h>

Collaboration diagram for CyclingVector< T >:
[legend]

Public Member Functions

 CyclingVector (unsigned int _MAX_SIZE, const T &defaultVal)
 
T Get (int idx) const
 
void Set (int idx, const T &value)
 
std::vector< TGetCache () const
 

Private Attributes

RecursiveMutex cs
 
unsigned int MAX_SIZE
 
std::vector< Tvec
 

Detailed Description

template<typename T>
class CyclingVector< T >

Definition at line 18 of file cyclingvector.h.

Constructor & Destructor Documentation

◆ CyclingVector()

template<typename T >
CyclingVector< T >::CyclingVector ( unsigned int  _MAX_SIZE,
const T defaultVal 
)
inline

Definition at line 26 of file cyclingvector.h.

Member Function Documentation

◆ Get()

template<typename T >
T CyclingVector< T >::Get ( int  idx) const
inline

Definition at line 31 of file cyclingvector.h.

◆ GetCache()

template<typename T >
std::vector<T> CyclingVector< T >::GetCache ( ) const
inline

Definition at line 33 of file cyclingvector.h.

Here is the caller graph for this function:

◆ Set()

template<typename T >
void CyclingVector< T >::Set ( int  idx,
const T value 
)
inline

Definition at line 32 of file cyclingvector.h.

Here is the caller graph for this function:

Member Data Documentation

◆ cs

template<typename T >
RecursiveMutex CyclingVector< T >::cs
mutableprivate

Definition at line 21 of file cyclingvector.h.

◆ MAX_SIZE

template<typename T >
unsigned int CyclingVector< T >::MAX_SIZE
private

Definition at line 22 of file cyclingvector.h.

◆ vec

template<typename T >
std::vector<T> CyclingVector< T >::vec
private

Definition at line 23 of file cyclingvector.h.


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