n2p2 - A neural network potential package
nnp::Training::PropertyMap Struct Reference

Map of all training properties. More...

Inheritance diagram for nnp::Training::PropertyMap:
Collaboration diagram for nnp::Training::PropertyMap:

Public Member Functions

Propertyoperator[] (std::string const &key)
 Overload [] operator to simplify access. More...
 
Property const & operator[] (std::string const &key) const
 Overload [] operator to simplify access (const version). More...
 
bool exists (std::string const &key)
 Check if property is present. More...
 

Detailed Description

Map of all training properties.

Definition at line 486 of file Training.h.

Member Function Documentation

◆ operator[]() [1/2]

Property & nnp::Training::PropertyMap::operator[] ( std::string const &  key)
inline

Overload [] operator to simplify access.

Definition at line 489 of file Training.h.

489{return this->at(key);}

◆ operator[]() [2/2]

Property const & nnp::Training::PropertyMap::operator[] ( std::string const &  key) const
inline

Overload [] operator to simplify access (const version).

Definition at line 491 of file Training.h.

492 {
493 return this->at(key);
494 }

◆ exists()

bool nnp::Training::PropertyMap::exists ( std::string const &  key)
inline

Check if property is present.

Definition at line 496 of file Training.h.

497 {
498 return (this->find(key) != this->end());
499 }

Referenced by nnp::Training::selectSets(), nnp::Training::setupTraining(), and nnp::Training::setupUpdatePlan().

Here is the caller graph for this function:

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