|
Rosetta
|
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_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.
References debug_assert, and subloop_histogram::key.
|
inlineprotected |
Key + identifier constructor.
References debug_assert, and subloop_histogram::key.
|
inlineexplicitprotected |
Identifier constructor.
|
inlineoverride |
Destructor.
|
inlineoverrideprotected |
Key assignment.
References utility::keys::AutoKey< O, S, C >::code_, utility::keys::AutoKey< O, S, C >::comparable(), debug_assert, utility::keys::AutoKey< O, S, C >::id_, utility::keys::AutoKey< O, S, C >::identifier_, utility::keys::AutoKey< O, S, C >::index_, and subloop_histogram::key.
Referenced by utility::keys::AutoKey< O, S, C >::operator=().
|
overridepure virtual |
Clone this.
Implemented in utility::options::VectorOptionKey, utility::options::ScalarOptionKey, utility::options::OptionKey, utility::options::StringVectorOptionKey, utility::options::StringOptionKey, utility::options::ResidueChainVectorOptionKey, utility::options::RealVectorOptionKey, utility::options::RealOptionKey, utility::options::PathVectorOptionKey, utility::options::PathOptionKey, utility::options::IntegerVectorOptionKey, utility::options::IntegerOptionKey, utility::options::FileVectorOptionKey, utility::options::FileOptionKey, utility::options::BooleanVectorOptionKey, utility::options::BooleanOptionKey, utility::options::AnyVectorOptionKey, and utility::options::AnyOptionKey.
|
inlineoverride |
Code.
References utility::keys::AutoKey< O, S, C >::code_.
Referenced by utility::options::ScalarOption_T_< K, T >::code(), and utility::options::VectorOption_T_< K, T >::code().
|
inlineoverride |
Code.
References utility::keys::AutoKey< O, S, C >::code_.
|
inlineoverride |
Code assignment.
References utility::keys::AutoKey< O, S, C >::code_.
|
inlineoverrideprotected |
Comparable to a Key?
References subloop_histogram::key.
Referenced by utility::keys::AutoKey< O, S, C >::assign_Key().
|
inlineoverrideprotected |
Equal to a Key?
References utility::keys::AutoKey< O, S, C >::index_, and subloop_histogram::key.
|
inlineoverride |
ID.
References utility::keys::AutoKey< O, S, C >::id_.
Referenced by schema.Job::__repr__(), basic::options::add_anonymous_option(), utility::options::ScalarOption_T_< K, T >::id(), utility::options::VectorOption_T_< K, T >::id(), basic::options::int2afteroption(), basic::options::intafteroption(), main(), utility::options::ScalarOption_T_< K, T >::name(), utility::options::VectorOption_T_< K, T >::name(), basic::options::optional_positive_intafteroption(), basic::options::real2afteroption(), basic::options::real3afteroption(), basic::options::realafteroption(), basic::options::stringafteroption(), and basic::options::truefalseoption().
|
inlineoverride |
|
inlineoverride |
ID assignment.
References utility::keys::AutoKey< O, S, C >::id_.
Referenced by schema.Job::__repr__().
|
inlineoverride |
|
inlineoverride |
Identifier.
References utility::keys::AutoKey< O, S, C >::identifier_.
|
inlineoverride |
Identifier assignment.
References utility::keys::AutoKey< O, S, C >::identifier_.
|
inlineoverrideprotected |
|
inlineoverrideprotected |
Index.
References utility::keys::AutoKey< O, S, C >::index_.
|
inlineoverrideprotected |
Index assignment.
References utility::keys::AutoKey< O, S, C >::index_.
|
inlineoverrideprotected |
Less than a Key?
References utility::keys::AutoKey< O, S, C >::index_, and subloop_histogram::key.
|
inlinestatic |
Number of keys with distinct indexes.
References utility::keys::AutoKey< O, S, C >::n_key_().
|
inlinestaticprivate |
Number of keys with distinct indexes.
Referenced by utility::keys::AutoKey< O, S, C >::n_key(), and utility::keys::AutoKey< O, S, C >::next_index().
|
inlinestaticprivate |
Increment the index counter and return it.
References debug_assert, and utility::keys::AutoKey< O, S, C >::n_key_().
|
inlineprotected |
Index value conversion.
References utility::keys::AutoKey< O, S, C >::index_.
|
inline |
Copy assignment.
References utility::keys::AutoKey< O, S, C >::assign_Key(), and subloop_histogram::key.
|
inline |
Key assignment.
References utility::keys::AutoKey< O, S, C >::assign_Key(), and subloop_histogram::key.
|
inlineoverride |
Index.
References utility::keys::AutoKey< O, S, C >::index_.
|
friend |
AutoKeys are sequential?
|
private |
Code: Coded identifier.
Referenced by utility::keys::AutoKey< O, S, C >::assign_Key(), and utility::keys::AutoKey< O, S, C >::code().
|
private |
ID: Short identifier.
Referenced by utility::keys::AutoKey< O, S, C >::assign_Key(), and utility::keys::AutoKey< O, S, C >::id().
|
private |
Identifier: Long identifier.
Referenced by utility::keys::AutoKey< O, S, C >::assign_Key(), and utility::keys::AutoKey< O, S, C >::identifier().
|
private |
Index.
Referenced by utility::keys::AutoKey< O, S, C >::assign_Key(), utility::keys::AutoKey< O, S, C >::equals(), utility::keys::AutoKey< O, S, C >::index(), utility::keys::AutoKey< O, S, C >::less_than(), utility::keys::AutoKey< O, S, C >::operator Index(), and utility::keys::AutoKey< O, S, C >::private_index().