23 #ifndef ICL_CORE_FINALIZABLE_H_INCLUDED 24 #define ICL_CORE_FINALIZABLE_H_INCLUDED 68 throw std::logic_error(
"object is final");
82 throw std::logic_error(
"object is final");
bool isFinal() const
Returns true if the object is final.
std::ostream & operator<<(std::ostream &os)
Output stream operator.
void finalize()
Finalizes the object, i.e. makes it unmodifiable.
bool m_final
Indicates whether m_value is final, i.e. no longer modifiable.
Finalizable(const T &value)
Finalizable(const Finalizable &other)
Finalizable & operator=(const Finalizable &other)
Assignment is only allowed as long as this is not final.