QMCPACK
container_proxy< std::vector< bool > > Struct Template Reference
+ Collaboration diagram for container_proxy< std::vector< bool > >:

Public Types

enum  { DIM = 1 }
 
using pointer = int *
 

Public Member Functions

 container_proxy (std::vector< bool > &a)
 
 ~container_proxy ()
 
size_t size () const
 
pointer data ()
 

Public Attributes

std::vector< bool > & ref
 
std::vector< int > my_copy
 

Detailed Description

template<>
struct qmcplusplus::container_proxy< std::vector< bool > >

Definition at line 119 of file container_proxy.h.

Member Typedef Documentation

◆ pointer

using pointer = int*

Definition at line 125 of file container_proxy.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
DIM 

Definition at line 121 of file container_proxy.h.

Constructor & Destructor Documentation

◆ container_proxy()

container_proxy ( std::vector< bool > &  a)
inline

Definition at line 128 of file container_proxy.h.

References copy().

128  : ref(a)
129  {
130  my_copy.resize(a.size());
131  copy(a.begin(), a.end(), my_copy.begin());
132  }
void copy(const Array< T1, 3 > &src, Array< T2, 3 > &dest)
Definition: Blitz.h:639

◆ ~container_proxy()

~container_proxy ( )
inline

Definition at line 133 of file container_proxy.h.

References copy(), and container_proxy< T >::ref.

133 { copy(my_copy.begin(), my_copy.end(), ref.begin()); }
void copy(const Array< T1, 3 > &src, Array< T2, 3 > &dest)
Definition: Blitz.h:639

Member Function Documentation

◆ data()

pointer data ( )
inline

Definition at line 135 of file container_proxy.h.

135 { return &my_copy[0]; }

◆ size()

size_t size ( ) const
inline

Definition at line 134 of file container_proxy.h.

134 { return my_copy.size(); }

Member Data Documentation

◆ my_copy

std::vector<int> my_copy

Definition at line 127 of file container_proxy.h.

◆ ref

std::vector<bool>& ref

Definition at line 126 of file container_proxy.h.


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