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

Public Types

using value_type = typename DerivedValueType::value_type
 

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 171 of file WebServerControlTypeRegistry.h.

Member Typedef Documentation

◆ value_type

template<class DerivedValueType >
using Moose::WebServerControlTypeRegistry::Type< DerivedValueType >::value_type = typename DerivedValueType::value_type

Definition at line 175 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 177 of file WebServerControlTypeRegistry.h.

178  {
179  return std::make_unique<DerivedValueType>(name, type());
180  }
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 181 of file WebServerControlTypeRegistry.h.

183  {
184  return std::make_unique<DerivedValueType>(name, type(), json_value);
185  }
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 149 of file WebServerControlTypeRegistry.h.

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

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

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