CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <Named.hh>
CRTP Mixin for 'named' database objects with no id
Public Types | |
typedef Base::MostDerived | MostDerived |
Public Member Functions | |
Named () | |
std::string | name () const |
std::string | alias () const |
Return "alias" if object stored in database and alias exists, return empty string otherwise. More... | |
Protected Member Functions | |
void | clear_name () const |
Unset "name", if object is modified. More... | |
void | regenerate_name () const |
Regenerate "name". More... | |
void | set_name (std::string _name) const |
Set "name", explicity. More... | |
Private Attributes | |
std::string | m_name |
typedef Base::MostDerived CASM::DB::Named< Base >::MostDerived |
CASM::DB::Named< Base >::Named |
Definition at line 11 of file Named_impl.hh.
std::string CASM::DB::Named< Base >::alias |
Return "alias" if object stored in database and alias exists, return empty string otherwise.
Definition at line 24 of file Named_impl.hh.
|
protected |
Unset "name", if object is modified.
Definition at line 30 of file Named_impl.hh.
std::string CASM::DB::Named< Base >::name |
Definition at line 14 of file Named_impl.hh.
|
protected |
Regenerate "name".
Definition at line 36 of file Named_impl.hh.
|
protected |
|
mutableprivate |