www.mooseframework.org
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
GuaranteeProvider Class Reference

Add-on class that provides the functionality to issue guarantees for declared material properties. More...

#include <GuaranteeProvider.h>

Inheritance diagram for GuaranteeProvider:
[legend]

Public Member Functions

 GuaranteeProvider (const MooseObject *moose_object)
 
bool hasGuarantee (const MaterialPropertyName &prop_name, Guarantee guarantee)
 

Protected Member Functions

void issueGuarantee (const MaterialPropertyName &prop_name, Guarantee guarantee)
 
void revokeGuarantee (const MaterialPropertyName &prop_name, Guarantee guarantee)
 

Private Attributes

std::map< MaterialPropertyName, std::set< Guarantee > > _guarantees
 

Detailed Description

Add-on class that provides the functionality to issue guarantees for declared material properties.

The types of guarantees are listed in Guarantees.h

Definition at line 24 of file GuaranteeProvider.h.

Constructor & Destructor Documentation

GuaranteeProvider::GuaranteeProvider ( const MooseObject *  moose_object)

Definition at line 11 of file GuaranteeProvider.C.

11 {}

Member Function Documentation

bool GuaranteeProvider::hasGuarantee ( const MaterialPropertyName &  prop_name,
Guarantee  guarantee 
)

Definition at line 14 of file GuaranteeProvider.C.

15 {
16  auto it = _guarantees.find(prop_name);
17  if (it == _guarantees.end())
18  return false;
19 
20  auto it2 = it->second.find(guarantee);
21  return it2 != it->second.end();
22 }
std::map< MaterialPropertyName, std::set< Guarantee > > _guarantees
void GuaranteeProvider::issueGuarantee ( const MaterialPropertyName &  prop_name,
Guarantee  guarantee 
)
protected
void GuaranteeProvider::revokeGuarantee ( const MaterialPropertyName &  prop_name,
Guarantee  guarantee 
)
protected

Definition at line 32 of file GuaranteeProvider.C.

Referenced by ComputeElasticityTensorCP::ComputeElasticityTensorCP().

33 {
34  auto it = _guarantees.find(prop_name);
35  if (it != _guarantees.end())
36  it->second.erase(guarantee);
37 }
std::map< MaterialPropertyName, std::set< Guarantee > > _guarantees

Member Data Documentation

std::map<MaterialPropertyName, std::set<Guarantee> > GuaranteeProvider::_guarantees
private

Definition at line 36 of file GuaranteeProvider.h.

Referenced by hasGuarantee(), issueGuarantee(), and revokeGuarantee().


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