ppap4lmp  0.7.2
StaCustom Class Reference

StaCustom sets an user-defined Json object to a new Element object as its Element::data. More...

#include <sta_custom.h>

Inheritance diagram for StaCustom:
Collaboration diagram for StaCustom:

Public Member Functions

 StaCustom (const Json &json_)
 Constructor of StaCustom class. More...
 
- Public Member Functions inherited from Starter
 Updater ()=default
 Constructor of Updater class. More...
 
- Public Member Functions inherited from Updater
 Updater ()=default
 Constructor of Updater class. More...
 
void compute (const ElPtr &elem, const int elementid, Json &data)
 Managing computation to update Element::data. More...
 
void remove_from_skippable_elementids (const int elementid)
 Remove Element::elementid from skippable_elementids. More...
 
const ShPtr< Generator > & get_ext_generator ()
 Get ext_generator of this object. More...
 

Protected Member Functions

virtual void compute_impl (Json &data, JsonToVoidFunc check_required_keys, JsonToBoolFunc check_optional_keys) override
 This method overrides Updater::compute_impl.
 
- Protected Member Functions inherited from Starter
virtual void compute_body (const ElPtr &elem, Json &data) override
 Compute or parse properties and set them to Element::data given as a mutable reference. More...
 
- Protected Member Functions inherited from Updater
virtual void compute_common (const ElPtr &elem, Json &data)
 Common part of compute_body. More...
 

Private Attributes

Json json
 

Additional Inherited Members

- Protected Attributes inherited from Updater
ShPtr< Generatorext_generator
 
- Static Protected Attributes inherited from Starter
static const bool do_sorting_by_id = true
 

Detailed Description

StaCustom sets an user-defined Json object to a new Element object as its Element::data.

An object of this class takes an user-defined Json object to be set as Element::data.

About usage in Python, please see pybind::py_sta_custom.

Definition at line 24 of file sta_custom.h.

Constructor & Destructor Documentation

◆ StaCustom()

StaCustom::StaCustom ( const Json json_)

Constructor of StaCustom class.

Parameters
json_A Json (complex of dictionary and list) object to be set as Element::data. This parameter is assigned to json.

Definition at line 16 of file sta_custom.cpp.

Member Data Documentation

◆ json

Json StaCustom::json
private

A Json (complex of dictionary and list) object to be set as Element::data.

Definition at line 29 of file sta_custom.h.


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