28 inline const virtual std::string &
name() const noexcept {
39 if (!
name_.has_value()) {
40 name_ = c10::demangle(
typeid(*this).name());
43 if (
name_->find(
"struct ") == 0) {
45 }
else if (
name_->find(
"class ") == 0) {
59 mutable at::optional<std::string>
name_;
Full qualified name descriptor.
Definition fqn.hpp:22
virtual void pretty_print(std::ostream &os=Log(log::info)) const noexcept=0
Returns a string representation.
virtual const std::string & name() const noexcept
Returns the full qualified name of the object.
Definition fqn.hpp:28
at::optional< std::string > name_
String storing the full qualified name of the object.
Definition fqn.hpp:59
virtual ~FullQualifiedName()=default
Definition blocktensor.hpp:24
struct iganet::@0 Log
Logger.