![]() |
Rosetta
2021.16
|
Automatic hidden index key abstract base class. More...
#include <AutoKey.hh>

Public Types | |
| typedef utility::keys::Key | Key |
| typedef O | object_type |
| typedef std::size_t | index_type |
| typedef std::size_t | size_type |
| typedef O | Object |
| typedef std::size_t | Index |
| typedef std::size_t | Size |
Public Types inherited from S | |
| typedef struct S::_D | D |
Public Member Functions | |
| AutoKey * | clone () const override=0 |
| Clone this. More... | |
| ~AutoKey () override | |
| Destructor. More... | |
| AutoKey & | operator= (AutoKey const &key) |
| Copy assignment. More... | |
| AutoKey & | operator= (Key const &key) |
| Key assignment. More... | |
| std::string const & | id () const override |
| ID. More... | |
| std::string & | id () override |
| ID. More... | |
| AutoKey & | id (std::string const &id_a) override |
| ID assignment. More... | |
| std::string const & | identifier () const override |
| Identifier. More... | |
| std::string & | identifier () override |
| Identifier. More... | |
| AutoKey & | identifier (std::string const &identifier_a) override |
| Identifier assignment. More... | |
| std::string const & | code () const override |
| Code. More... | |
| std::string & | code () override |
| Code. More... | |
| AutoKey & | code (std::string const &code_a) override |
| Code assignment. More... | |
| Index | private_index () const override |
| Index. More... | |
Static Public Member Functions | |
| static Size | n_key () |
| Number of keys with distinct indexes. More... | |
Protected Member Functions | |
| AutoKey () | |
| Default constructor. More... | |
| AutoKey (AutoKey const &key) | |
| Copy constructor. More... | |
| AutoKey (AutoKey const &key, std::string const &id_a, std::string const &identifier_a=std::string(), std::string const &code_a=std::string()) | |
| Copy + identifier constructor. More... | |
| AutoKey (Key const &key) | |
| Key constructor. More... | |
| AutoKey (Key const &key, std::string const &id_a, std::string const &identifier_a=std::string(), std::string const &code_a=std::string()) | |
| Key + identifier constructor. More... | |
| AutoKey (std::string const &id_a, std::string const &identifier_a=std::string(), std::string const &code_a=std::string()) | |
| Identifier constructor. More... | |
| void | assign_Key (Key const &key) override |
| Key assignment. More... | |
| operator Index () const | |
| Index value conversion. More... | |
| Index | index () const override |
| Index. More... | |
| Index & | index () override |
| Index. More... | |
| AutoKey & | index (Index const index_a) override |
| Index assignment. More... | |
| bool | equals (Key const &key) const override |
| Equal to a Key? More... | |
| bool | less_than (Key const &key) const override |
| Less than a Key? More... | |
| bool | comparable (Key const &key) const override |
| Comparable to a Key? More... | |
Private Types | |
| typedef S | Super |
Static Private Member Functions | |
| static Size & | n_key_ () |
| Number of keys with distinct indexes. More... | |
| static Size | next_index () |
| Increment the index counter and return it. More... | |
Private Attributes | |
| Index | index_ |
| Index. More... | |
| std::string | id_ |
| ID: Short identifier. More... | |
| std::string | identifier_ |
| Identifier: Long identifier. More... | |
| std::string | code_ |
| Code: Coded identifier. More... | |
Friends | |
| bool | operator== (AutoKey const &a, AutoKey const &b) |
| AutoKey == AutoKey. More... | |
| bool | operator!= (AutoKey const &a, AutoKey const &b) |
| AutoKey != AutoKey. More... | |
| bool | operator< (AutoKey const &a, AutoKey const &b) |
| AutoKey < AutoKey. More... | |
| bool | operator<= (AutoKey const &a, AutoKey const &b) |
| AutoKey <= AutoKey. More... | |
| bool | operator>= (AutoKey const &a, AutoKey const &b) |
| AutoKey >= AutoKey. More... | |
| bool | operator> (AutoKey const &a, AutoKey const &b) |
| AutoKey > AutoKey. More... | |
| template<typename UO , typename US , typename UC > | |
| bool | sequential (AutoKey< UO, US, UC > const &a, AutoKey< UO, US, UC > const &b) |
| AutoKeys are sequential? More... | |
Additional Inherited Members | |
Public Attributes inherited from S | |
| int | a |
| struct { | |
| int b | |
| }; | |
| FL_not_binded | fl |
| struct { | |
| float b4 | |
| } | B_not_binded [4] |
| struct { | |
| int c | |
| } | C_not_binded |
Automatic hidden index key abstract base class.
| typedef std::size_t utility::keys::AutoKey< O, S, C >::Index |
| typedef std::size_t utility::keys::AutoKey< O, S, C >::index_type |
| typedef utility::keys::Key utility::keys::AutoKey< O, S, C >::Key |
| typedef O utility::keys::AutoKey< O, S, C >::Object |
| typedef O utility::keys::AutoKey< O, S, C >::object_type |
| typedef std::size_t utility::keys::AutoKey< O, S, C >::Size |
| typedef std::size_t utility::keys::AutoKey< O, S, C >::size_type |
|
private |
|
inlineprotected |
Default constructor.
|
inlineprotected |
Copy constructor.
|
inlineprotected |
Copy + identifier constructor.
|
inlineexplicitprotected |
Key constructor.
|
inlineprotected |
Key + identifier constructor.
|
inlineexplicitprotected |
Identifier constructor.
|
inlineoverride |
Destructor.
|
inlineoverrideprotected |
Key assignment.
Referenced by utility::keys::AutoKey< Option >::operator=().
|
overridepure virtual |
Clone this.
Implemented in utility::options::OptionKey, utility::options::AnyOptionKey, utility::options::AnyVectorOptionKey, utility::options::BooleanOptionKey, utility::options::BooleanVectorOptionKey, utility::options::FileOptionKey, utility::options::FileVectorOptionKey, utility::options::IntegerOptionKey, utility::options::IntegerVectorOptionKey, utility::options::PathOptionKey, utility::options::PathVectorOptionKey, utility::options::RealOptionKey, utility::options::RealVectorOptionKey, utility::options::ResidueChainVectorOptionKey, utility::options::StringOptionKey, utility::options::StringVectorOptionKey, utility::options::ScalarOptionKey, and utility::options::VectorOptionKey.
|
inlineoverride |
Code.
Referenced by utility::options::OptionCollection::check_key(), utility::options::ScalarOption_T_< PathOptionKey, file::PathName >::code(), utility::options::VectorOption_T_< BooleanVectorOptionKey, bool >::code(), binder::Context::create_all_nested_namespaces(), and utility::options::OptionCollection::find_key_cl().
|
inlineoverride |
Code.
|
inlineoverride |
Code assignment.
|
inlineoverrideprotected |
Comparable to a Key?
Referenced by utility::keys::AutoKey< Option >::assign_Key().
|
inlineoverrideprotected |
Equal to a Key?
|
inlineoverride |
ID.
Referenced by basic::options::add_anonymous_option(), utility::options::OptionCollection::check_key(), utility::options::OptionCollection::find_key_cl(), utility::options::ScalarOption_T_< PathOptionKey, file::PathName >::id(), utility::options::VectorOption_T_< BooleanVectorOptionKey, bool >::id(), basic::options::int2afteroption(), basic::options::intafteroption(), utility::options::OptionCollection::is_relevant(), main(), utility::options::ScalarOption_T_< PathOptionKey, file::PathName >::name(), utility::options::VectorOption_T_< BooleanVectorOptionKey, bool >::name(), basic::options::optional_positive_intafteroption(), basic::options::real2afteroption(), basic::options::real3afteroption(), basic::options::realafteroption(), utility::options::OptionCollection::set_option_value_cl(), utility::options::OptionCollection::set_option_value_file(), basic::resource_manager::show_option_map(), basic::resource_manager::show_option_vector_map(), basic::options::stringafteroption(), and basic::options::truefalseoption().
|
inlineoverride |
ID.
|
inlineoverride |
ID assignment.
|
inlineoverride |
Identifier.
Referenced by utility::options::OptionCollection::check_key(), utility::options::OptionCollection::find_key_cl(), utility::options::ScalarOption_T_< PathOptionKey, file::PathName >::identifier(), utility::options::VectorOption_T_< BooleanVectorOptionKey, bool >::identifier(), and basic::options::replace_option_namespace_colons_with_underscores().
|
inlineoverride |
Identifier.
|
inlineoverride |
Identifier assignment.
|
inlineoverrideprotected |
Index.
|
inlineoverrideprotected |
Index.
|
inlineoverrideprotected |
Index assignment.
|
inlineoverrideprotected |
Less than a Key?
|
inlinestatic |
Number of keys with distinct indexes.
|
inlinestaticprivate |
Number of keys with distinct indexes.
Referenced by utility::keys::AutoKey< Option >::n_key(), and utility::keys::AutoKey< Option >::next_index().
|
inlinestaticprivate |
Increment the index counter and return it.
|
inlineprotected |
Index value conversion.
|
inline |
Copy assignment.
|
inline |
Key assignment.
|
inlineoverride |
Index.
|
friend |
AutoKeys are sequential?
|
private |
Code: Coded identifier.
Referenced by utility::keys::AutoKey< Option >::assign_Key(), and utility::keys::AutoKey< Option >::code().
|
private |
ID: Short identifier.
Referenced by utility::keys::AutoKey< Option >::assign_Key(), and utility::keys::AutoKey< Option >::id().
|
private |
Identifier: Long identifier.
Referenced by utility::keys::AutoKey< Option >::assign_Key(), and utility::keys::AutoKey< Option >::identifier().
|
private |
Index.
Referenced by utility::keys::AutoKey< Option >::assign_Key(), utility::keys::AutoKey< Option >::equals(), utility::keys::AutoKey< Option >::index(), utility::keys::AutoKey< Option >::less_than(), utility::keys::AutoKey< Option >::operator Index(), and utility::keys::AutoKey< Option >::private_index().
1.8.7