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 442 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 445 of file Training.h.

445{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 447 of file Training.h.

448 {
449 return this->at(key);
450 }

◆ exists()

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

Check if property is present.

Definition at line 452 of file Training.h.

453 {
454 return (this->find(key) != this->end());
455 }

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: