ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ModuleIO::InputDomain Class Reference

#include <input_domain.h>

Collaboration diagram for ModuleIO::InputDomain:

Public Member Functions

 InputDomain ()=default
void bind (AvailabilityValueKind kind, const std::function< InputValue(const Parameter &)> &getter)
void scalar ()
void set_choices (const std::vector< std::string > &choices)
void set_rule (const std::string &rule)
void set_active_when (const std::string &condition)
void add_requirement (const std::string &when, const std::string &require)
bool empty () const
bool bound () const
bool can_write (const Parameter &input) const
AvailabilityValueKind kind () const
InputValue value (const Parameter &input) const
std::string format_choices () const
std::string format_rule () const
std::string format_requirements () const
const std::vector< std::string > & choices () const
void validate_schema (const std::string &label, const std::map< std::string, AvailabilityValueKind > &types) const
std::string validate_explicit (const std::string &label, const std::vector< std::string > &tokens) const
std::string validate_resolved (const std::string &label, const InputValues &values) const
std::string validate_requirements (const std::string &label, const InputValues &values) const

Private Member Functions

bool accepts (const InputValue &value) const
std::string expected () const

Private Attributes

AvailabilityValueKind kind_ = AvailabilityValueKind::Unknown
std::function< InputValue(const Parameter &)> getter_
bool scalar_ = false
std::vector< std::string > choices_
AvailabilityExpr rule_
AvailabilityExpr active_when_
std::vector< InputRequirement > requirements_

Constructor & Destructor Documentation

◆ InputDomain()

ModuleIO::InputDomain::InputDomain ( )
default
Here is the call graph for this function:

Member Function Documentation

◆ accepts()

bool ModuleIO::InputDomain::accepts ( const InputValue & value) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ add_requirement()

void ModuleIO::InputDomain::add_requirement ( const std::string & when,
const std::string & require )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ bind()

void ModuleIO::InputDomain::bind ( AvailabilityValueKind kind,
const std::function< InputValue(const Parameter &)> & getter )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ bound()

bool ModuleIO::InputDomain::bound ( ) const
Here is the caller graph for this function:

◆ can_write()

bool ModuleIO::InputDomain::can_write ( const Parameter & input) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ choices()

const std::vector< std::string > & ModuleIO::InputDomain::choices ( ) const
Here is the caller graph for this function:

◆ empty()

bool ModuleIO::InputDomain::empty ( ) const
Here is the caller graph for this function:

◆ expected()

std::string ModuleIO::InputDomain::expected ( ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ format_choices()

std::string ModuleIO::InputDomain::format_choices ( ) const
Here is the caller graph for this function:

◆ format_requirements()

std::string ModuleIO::InputDomain::format_requirements ( ) const
Here is the caller graph for this function:

◆ format_rule()

std::string ModuleIO::InputDomain::format_rule ( ) const
Here is the caller graph for this function:

◆ kind()

Kind ModuleIO::InputDomain::kind ( ) const
Here is the caller graph for this function:

◆ scalar()

void ModuleIO::InputDomain::scalar ( )
Here is the caller graph for this function:

◆ set_active_when()

void ModuleIO::InputDomain::set_active_when ( const std::string & condition)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_choices()

void ModuleIO::InputDomain::set_choices ( const std::vector< std::string > & choices)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_rule()

void ModuleIO::InputDomain::set_rule ( const std::string & rule)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validate_explicit()

std::string ModuleIO::InputDomain::validate_explicit ( const std::string & label,
const std::vector< std::string > & tokens ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validate_requirements()

std::string ModuleIO::InputDomain::validate_requirements ( const std::string & label,
const InputValues & values ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validate_resolved()

std::string ModuleIO::InputDomain::validate_resolved ( const std::string & label,
const InputValues & values ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validate_schema()

void ModuleIO::InputDomain::validate_schema ( const std::string & label,
const std::map< std::string, AvailabilityValueKind > & types ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ value()

InputValue ModuleIO::InputDomain::value ( const Parameter & input) const
Here is the caller graph for this function:

Member Data Documentation

◆ active_when_

AvailabilityExpr ModuleIO::InputDomain::active_when_
private

◆ choices_

std::vector<std::string> ModuleIO::InputDomain::choices_
private

◆ getter_

std::function<InputValue(const Parameter&)> ModuleIO::InputDomain::getter_
private

◆ kind_

AvailabilityValueKind ModuleIO::InputDomain::kind_ = AvailabilityValueKind::Unknown
private

◆ requirements_

std::vector<InputRequirement> ModuleIO::InputDomain::requirements_
private

◆ rule_

AvailabilityExpr ModuleIO::InputDomain::rule_
private

◆ scalar_

bool ModuleIO::InputDomain::scalar_ = false
private

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