FreeTensor
Loading...
Searching...
No Matches
Public Member Functions | List of all members
freetensor::SourceMetadataContent Class Reference

#include <metadata.h>

Inheritance diagram for freetensor::SourceMetadataContent:
Inheritance graph
[legend]
Collaboration diagram for freetensor::SourceMetadataContent:
Collaboration graph
[legend]

Public Member Functions

 SourceMetadataContent (const std::vector< std::string > &labels, const std::optional< std::pair< std::string, int > > &location, const Metadata &callerMetadata)
 
 ~SourceMetadataContent () override=default
 
const std::vector< std::string > & labels () const
 
const std::unordered_set< std::string > & labelsSet () const
 
const Metadatacaller () const
 
MetadataType getType () const override
 
bool printByDefault () const override
 
void print (std::ostream &os, bool printLocation, int nIndent) const override
 
size_t hash () const override
 
bool sameAs (const MetadataContent &other) const override
 
- Public Member Functions inherited from freetensor::MetadataContent
virtual ~MetadataContent ()
 
virtual MetadataType getType () const =0
 
virtual bool printByDefault () const =0
 
virtual void print (std::ostream &os, bool printLocation, int nIndent) const =0
 
virtual size_t hash () const =0
 
virtual bool sameAs (const MetadataContent &other) const =0
 

Constructor & Destructor Documentation

◆ SourceMetadataContent()

freetensor::SourceMetadataContent::SourceMetadataContent ( const std::vector< std::string > &  labels,
const std::optional< std::pair< std::string, int > > &  location,
const Metadata callerMetadata 
)

◆ ~SourceMetadataContent()

freetensor::SourceMetadataContent::~SourceMetadataContent ( )
overridedefault

Member Function Documentation

◆ caller()

const Metadata & freetensor::SourceMetadataContent::caller ( ) const
inline

◆ getType()

MetadataType freetensor::SourceMetadataContent::getType ( ) const
inlineoverridevirtual

◆ hash()

size_t freetensor::SourceMetadataContent::hash ( ) const
overridevirtual

◆ labels()

const std::vector< std::string > & freetensor::SourceMetadataContent::labels ( ) const
inline

◆ labelsSet()

const std::unordered_set< std::string > & freetensor::SourceMetadataContent::labelsSet ( ) const
inline

◆ print()

void freetensor::SourceMetadataContent::print ( std::ostream &  os,
bool  printLocation,
int  nIndent 
) const
overridevirtual

◆ printByDefault()

bool freetensor::SourceMetadataContent::printByDefault ( ) const
inlineoverridevirtual

◆ sameAs()

bool freetensor::SourceMetadataContent::sameAs ( const MetadataContent other) const
overridevirtual

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