Mila 0.13.48
Deep Neural Network Library
Loading...
Searching...
No Matches
Mila::Dnn::Serialization::Serializer Class Referenceabstractexport

Minimal base interface for model serialization backends. More...

Inheritance diagram for Mila::Dnn::Serialization::Serializer:

Public Member Functions

virtual ~Serializer ()=default
virtual bool close ()=0
 Close the file.
virtual const std::string & getFilename () const noexcept=0
 Get the filename.
virtual bool isOpen () const noexcept=0
 Check if currently open.
virtual bool isOpenForRead () const noexcept=0
 Check if open for reading.
virtual bool isOpenForWrite () const noexcept=0
 Check if open for writing.
virtual bool open (const std::string &filename, OpenMode mode)=0
 Open a file for reading or writing.

Detailed Description

Minimal base interface for model serialization backends.

Defines only the essential lifecycle operations common to all serializers. Derived classes implement format-specific APIs.

Constructor & Destructor Documentation

◆ ~Serializer()

virtual Mila::Dnn::Serialization::Serializer::~Serializer ( )
virtualdefault

Member Function Documentation

◆ close()

virtual bool Mila::Dnn::Serialization::Serializer::close ( )
nodiscardpure virtual

Close the file.

Implemented in Mila::Dnn::Serialization::ZipSerializer.

◆ getFilename()

virtual const std::string & Mila::Dnn::Serialization::Serializer::getFilename ( ) const
nodiscardpure virtualnoexcept

Get the filename.

Implemented in Mila::Dnn::Serialization::ZipSerializer.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isOpen()

virtual bool Mila::Dnn::Serialization::Serializer::isOpen ( ) const
nodiscardpure virtualnoexcept

Check if currently open.

Implemented in Mila::Dnn::Serialization::ZipSerializer.

◆ isOpenForRead()

virtual bool Mila::Dnn::Serialization::Serializer::isOpenForRead ( ) const
nodiscardpure virtualnoexcept

Check if open for reading.

Implemented in Mila::Dnn::Serialization::ZipSerializer.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isOpenForWrite()

virtual bool Mila::Dnn::Serialization::Serializer::isOpenForWrite ( ) const
nodiscardpure virtualnoexcept

Check if open for writing.

Implemented in Mila::Dnn::Serialization::ZipSerializer.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ open()

virtual bool Mila::Dnn::Serialization::Serializer::open ( const std::string & filename,
OpenMode mode )
nodiscardpure virtual

Open a file for reading or writing.

Implemented in Mila::Dnn::Serialization::ZipSerializer.


The documentation for this class was generated from the following file: