QMCPACK
RecordPropertyList Class Reference
+ Collaboration diagram for RecordPropertyList:

Public Types

using RecordList_t = std::vector< RecordProperty * >
 

Public Member Functions

 RecordPropertyList ()
 
virtual ~RecordPropertyList ()
 
void addRecord (RecordProperty *a)
 
void setstride (int n)
 
void report (int iter)
 
void finalize ()
 
void clear ()
 

Protected Attributes

std::vector< RecordProperty * > Properties
 

Detailed Description

Definition at line 40 of file RecordProperty.h.

Member Typedef Documentation

◆ RecordList_t

using RecordList_t = std::vector<RecordProperty*>

Definition at line 43 of file RecordProperty.h.

Constructor & Destructor Documentation

◆ RecordPropertyList()

RecordPropertyList ( )
inline

Definition at line 45 of file RecordProperty.h.

45 {}

◆ ~RecordPropertyList()

virtual ~RecordPropertyList ( )
inlinevirtual

Definition at line 46 of file RecordProperty.h.

References clear().

46 { clear(); }

Member Function Documentation

◆ addRecord()

void addRecord ( RecordProperty a)
inline

Definition at line 48 of file RecordProperty.h.

References Properties.

48 { Properties.push_back(a); }
std::vector< RecordProperty * > Properties

◆ clear()

void clear ( )
inline

Definition at line 79 of file RecordProperty.h.

References Properties.

Referenced by ~RecordPropertyList().

80  {
81  std::vector<RecordProperty*>::iterator it = Properties.begin();
82  while (it != Properties.end())
83  {
84  delete (*it);
85  it++;
86  }
87  Properties.clear();
88  }
std::vector< RecordProperty * > Properties

◆ finalize()

void finalize ( )
inline

Definition at line 70 of file RecordProperty.h.

References Properties.

71  {
72  RecordList_t::iterator it = Properties.begin();
73  while (it != Properties.end())
74  {
75  (*it)->finalize();
76  it++;
77  }
78  }
std::vector< RecordProperty * > Properties

◆ report()

void report ( int  iter)
inline

Definition at line 60 of file RecordProperty.h.

References Properties.

61  {
62  RecordList_t::iterator it = Properties.begin();
63  while (it != Properties.end())
64  {
65  (*it)->report(iter);
66  it++;
67  }
68  }
std::vector< RecordProperty * > Properties

◆ setstride()

void setstride ( int  n)
inline

Definition at line 50 of file RecordProperty.h.

References qmcplusplus::n, and Properties.

51  {
52  RecordList_t::iterator it = Properties.begin();
53  while (it != Properties.end())
54  {
55  (*it)->stride = n;
56  it++;
57  }
58  }
std::vector< RecordProperty * > Properties

Member Data Documentation

◆ Properties

std::vector<RecordProperty*> Properties
protected

Definition at line 91 of file RecordProperty.h.

Referenced by addRecord(), clear(), finalize(), report(), and setstride().


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