https://mooseframework.inl.gov
Public Member Functions | List of all members
Moose::WebServerControlTypeRegistry::Type< DerivedValueType > Struct Template Reference
Inheritance diagram for Moose::WebServerControlTypeRegistry::Type< DerivedValueType >:
[legend]

Public Member Functions

 Type (const std::string &type)
 
virtual std::unique_ptr< ValueBasebuild (const std::string &name) const override final
 Builds a value with the given type, name name, and a default value. More...
 
virtual std::unique_ptr< ValueBasebuild (const std::string &name, const miniJson::Json &json_value) const override final
 Builds a value with the given type, name name, and JSON value json_value. More...
 
const std::string & type () const
 

Detailed Description

template<class DerivedValueType>
struct Moose::WebServerControlTypeRegistry::Type< DerivedValueType >

Definition at line 158 of file WebServerControlTypeRegistry.h.

Constructor & Destructor Documentation

◆ Type()

template<class DerivedValueType >
Moose::WebServerControlTypeRegistry::Type< DerivedValueType >::Type ( const std::string &  type)
inline

Member Function Documentation

◆ build() [1/2]

template<class DerivedValueType >
virtual std::unique_ptr<ValueBase> Moose::WebServerControlTypeRegistry::Type< DerivedValueType >::build ( const std::string &  name) const
inlinefinaloverridevirtual

Builds a value with the given type, name name, and a default value.

This will be called on processors that are not rank 0 for cloning.

Implements Moose::WebServerControlTypeRegistry::TypeBase.

Definition at line 162 of file WebServerControlTypeRegistry.h.

163  {
164  return std::make_unique<DerivedValueType>(name, type());
165  }
std::string name(const ElemQuality q)

◆ build() [2/2]

template<class DerivedValueType >
virtual std::unique_ptr<ValueBase> Moose::WebServerControlTypeRegistry::Type< DerivedValueType >::build ( const std::string &  name,
const miniJson::Json &  json_value 
) const
inlinefinaloverridevirtual

Builds a value with the given type, name name, and JSON value json_value.

This will parse the JSON value into the underlying type and will be called on only rank 0 where server listens.

Implements Moose::WebServerControlTypeRegistry::TypeBase.

Definition at line 166 of file WebServerControlTypeRegistry.h.

168  {
169  return std::make_unique<DerivedValueType>(name, type(), json_value);
170  }
std::string name(const ElemQuality q)

◆ type()

const std::string& Moose::WebServerControlTypeRegistry::TypeBase::type ( ) const
inlineinherited
Returns
The string representation of the type

Definition at line 136 of file WebServerControlTypeRegistry.h.

Referenced by Moose::WebServerControlTypeRegistry::Type< DerivedValueType >::build().

136 { return _type; }
const std::string _type
The string representation of the underlying type.

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