QMCPACK
container_proxy< Vector< T > > Struct Template Reference
+ Collaboration diagram for container_proxy< Vector< T > >:

Public Types

enum  { DIM = scalar_traits<T>::DIM }
 
using pointer = typename container_proxy< T >::pointer
 

Public Member Functions

 container_proxy (Vector< T > &a)
 
size_t size () const
 
pointer data ()
 
template<typename I >
void resize (I *n)
 

Public Attributes

Vector< T > & ref
 

Detailed Description

template<typename T>
struct qmcplusplus::container_proxy< Vector< T > >

Definition at line 174 of file container_proxy.h.

Member Typedef Documentation

◆ pointer

using pointer = typename container_proxy<T>::pointer

Definition at line 180 of file container_proxy.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Constructor & Destructor Documentation

◆ container_proxy()

container_proxy ( Vector< T > &  a)
inline

Definition at line 182 of file container_proxy.h.

Member Function Documentation

◆ data()

◆ resize()

void resize ( I n)
inline

Definition at line 186 of file container_proxy.h.

References qmcplusplus::n, and container_proxy< T >::ref.

187  {
188  ref.resize(static_cast<size_t>(n[0]));
189  }
void resize(size_type n, Type_t val=Type_t())
Resize the container.
Definition: OhmmsVector.h:166

◆ size()

size_t size ( ) const
inline

Definition at line 183 of file container_proxy.h.

References container_proxy< T >::ref.

Member Data Documentation

◆ ref

Vector<T>& ref

Definition at line 181 of file container_proxy.h.


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