![]() |
QMCPACK
|
Public Types | |
using | value_type = T |
using | size_type = typename std::vector< T >::size_type |
Public Member Functions | |
PooledData () | |
default constructor More... | |
PooledData (size_type n) | |
constructor with a size More... | |
size_type | byteSize () const |
return the size of the data More... | |
size_type | size () const |
return the size of the data More... | |
size_type | current () const |
void | rewind (size_type cur=0) |
set the Current to a cursor More... | |
std::vector< T >::iterator | begin () |
return the starting iterator More... | |
std::vector< T >::iterator | end () |
return the ending iterator More... | |
void | add (T &x) |
void | add (std::complex< T > &x) |
template<class T1 > | |
void | add (T1 &x) |
template<class _InputIterator > | |
void | add (_InputIterator first, _InputIterator last) |
template<typename T1 > | |
void | add (T1 *first, T1 *last) |
template<typename T1 > | |
void | add (std::complex< T1 > *first, std::complex< T1 > *last) |
void | get (T &x) |
void | get (std::complex< T > &x) |
template<class T1 > | |
void | get (T1 &x) |
template<class _OutputIterator > | |
void | get (_OutputIterator first, _OutputIterator last) |
template<typename T1 > | |
void | get (T1 *first, T1 *last) |
template<typename T1 > | |
void | get (std::complex< T1 > *first, std::complex< T1 > *last) |
void | put (T &x) |
void | put (std::complex< T > &x) |
template<typename T1 > | |
void | put (T1 &x) |
template<class _InputIterator > | |
void | put (_InputIterator first, _InputIterator last) |
template<typename T1 > | |
void | put (T1 *first, T1 *last) |
template<typename T1 > | |
void | put (std::complex< T1 > *first, std::complex< T1 > *last) |
T * | data () |
return the address of the first element More... | |
void | print (std::ostream &os) |
template<class Msg > | |
Msg & | putMessage (Msg &m) |
template<class Msg > | |
Msg & | getMessage (Msg &m) |
PooledData< T > & | operator+= (const PooledData< T > &s) |
PooledData< T > & | operator*= (T scale) |
void | clear () |
clear the data and set Current=0 More... | |
void | reserve (size_type n) |
reserve the memory using std::vector<T>::reserve More... | |
void | resize (size_type n, T val=T()) |
resize More... | |
T | operator[] (size_type i) const |
return i-th value More... | |
T & | operator[] (size_type i) |
return i-th value to assign More... | |
Public Attributes | |
size_type | Current |
std::vector< T > | myData |
Definition at line 30 of file PooledData.h.
Definition at line 33 of file PooledData.h.
using value_type = T |
Definition at line 32 of file PooledData.h.
|
inline |
|
inline |
|
inline |
Definition at line 88 of file PooledData.h.
Referenced by MomentumEstimator::addObservables(), EnergyDensityEstimator::addObservables(), SkEstimator::addObservables(), DensityEstimator::addObservables(), SkAllEstimator::addObservables(), SpeciesKineticEnergy::addObservables(), StaticStructureFactor::addObservables(), PairCorrEstimator::addObservables(), SelfHealingOverlapLegacy::addObservables(), LatticeDeviationEstimator::addObservables(), SpinDensity::addObservables(), DensityMatrices1B::addObservables(), SpaceGrid::allocate_buffer_space(), and EinsplineSetBuilder::BroadcastOrbitalInfo().
|
inline |
Definition at line 94 of file PooledData.h.
|
inline |
Definition at line 102 of file PooledData.h.
|
inline |
Definition at line 109 of file PooledData.h.
|
inline |
Definition at line 116 of file PooledData.h.
|
inline |
Definition at line 123 of file PooledData.h.
|
inline |
return the starting iterator
Definition at line 59 of file PooledData.h.
Referenced by ParticleSet::resetCollectables().
|
inline |
return the size of the data
Definition at line 45 of file PooledData.h.
Referenced by qmcplusplus::TEST_CASE().
|
inline |
clear the data and set Current=0
Definition at line 65 of file PooledData.h.
Referenced by QMCHamiltonian::addObservables(), and QMCHamiltonian::makeClone().
|
inline |
Definition at line 51 of file PooledData.h.
Referenced by DensityEstimator::addObservables(), StaticStructureFactor::addObservables(), SelfHealingOverlapLegacy::addObservables(), SpinDensity::addObservables(), and DensityMatrices1B::addObservables().
|
inline |
return the address of the first element
Definition at line 212 of file PooledData.h.
Referenced by Communicate::allreduce(), Communicate::bcast(), Communicate::gather(), and Communicate::gatherv().
|
inline |
return the ending iterator
Definition at line 61 of file PooledData.h.
Referenced by ParticleSet::resetCollectables().
|
inline |
Definition at line 131 of file PooledData.h.
Referenced by EinsplineSetBuilder::bcastSortBands(), and EinsplineSetBuilder::BroadcastOrbitalInfo().
|
inline |
Definition at line 133 of file PooledData.h.
|
inline |
Definition at line 140 of file PooledData.h.
|
inline |
Definition at line 146 of file PooledData.h.
|
inline |
Definition at line 154 of file PooledData.h.
|
inline |
Definition at line 162 of file PooledData.h.
|
inline |
Definition at line 224 of file PooledData.h.
|
inline |
Definition at line 236 of file PooledData.h.
|
inline |
Definition at line 230 of file PooledData.h.
|
inline |
|
inline |
|
inline |
Definition at line 214 of file PooledData.h.
|
inline |
|
inline |
Definition at line 174 of file PooledData.h.
|
inline |
Definition at line 181 of file PooledData.h.
|
inline |
Definition at line 187 of file PooledData.h.
|
inline |
Definition at line 194 of file PooledData.h.
|
inline |
Definition at line 201 of file PooledData.h.
|
inline |
Definition at line 217 of file PooledData.h.
|
inline |
|
inline |
resize
Definition at line 77 of file PooledData.h.
Referenced by QMCHamiltonian::makeClone(), and qmcplusplus::TEST_CASE().
|
inline |
set the Current to a cursor
cur | locator to which Current is assigned |
Definition at line 56 of file PooledData.h.
Referenced by QMCHamiltonian::addObservables(), EinsplineSetBuilder::bcastSortBands(), EinsplineSetBuilder::BroadcastOrbitalInfo(), and QMCHamiltonian::resetObservables().
|
inline |
return the size of the data
Definition at line 48 of file PooledData.h.
Referenced by CollectablesEstimator::accumulate_all(), MomentumEstimator::addObservables(), EnergyDensityEstimator::addObservables(), SkEstimator::addObservables(), SkAllEstimator::addObservables(), SpeciesKineticEnergy::addObservables(), PairCorrEstimator::addObservables(), LatticeDeviationEstimator::addObservables(), QMCHamiltonian::addObservables(), SpaceGrid::allocate_buffer_space(), Communicate::allreduce(), Communicate::bcast(), Communicate::gather(), Communicate::gatherv(), operator!=(), operator==(), QMCHamiltonian::resetObservables(), VMC::run(), RMC::run(), DMC::run(), and CSVMC::run().
size_type Current |
Definition at line 35 of file PooledData.h.
Referenced by PooledData< RealType >::add(), PooledData< RealType >::clear(), PooledData< RealType >::current(), PooledData< RealType >::get(), PooledData< RealType >::put(), PooledData< RealType >::reserve(), PooledData< RealType >::resize(), and PooledData< RealType >::rewind().
std::vector<T> myData |
Definition at line 36 of file PooledData.h.
Referenced by PooledData< RealType >::add(), PooledData< RealType >::begin(), PooledData< RealType >::byteSize(), PooledData< RealType >::clear(), PooledData< RealType >::data(), PooledData< RealType >::end(), PooledData< RealType >::get(), PooledData< RealType >::getMessage(), PooledData< RealType >::operator*=(), PooledData< RealType >::operator+=(), PooledData< RealType >::operator[](), PooledData< RealType >::PooledData(), PooledData< RealType >::print(), PooledData< RealType >::put(), PooledData< RealType >::putMessage(), PooledData< RealType >::reserve(), PooledData< RealType >::resize(), and PooledData< RealType >::size().