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

#include <buffer.h>

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

Public Member Functions

const auto & tensor () const
 
auto & tensor ()
 
void setAtype (AccessType atype)
 
AccessType atype () const
 
void setMtype (MemType mtype)
 
MemType mtype () const
 
void compHash () override
 
- Public Member Functions inherited from freetensor::ASTPart
virtual ~ASTPart ()
 
 ASTPart (ASTPart &&other)
 
 ASTPart (const ASTPart &other)
 
ASTPartoperator= (ASTPart &&)
 
ASTPartoperator= (const ASTPart &)
 
bool trySetParent (const Ref< ASTPart > &parent)
 
void resetParent ()
 
Ref< ASTPartparent () const
 
bool isSubTree () const
 
int depth () const
 
virtual void modifiedHook ()
 
size_t hash ()
 
virtual bool isAST () const
 
- Public Member Functions inherited from freetensor::EnableSelf< ASTPart >
Ref< ASTPartself () const
 

Friends

template<class T >
Ref< BuffermakeBuffer (T &&, AccessType, MemType)
 

Additional Inherited Members

- Public Types inherited from freetensor::EnableSelf< ASTPart >
typedef ASTPart Self
 
- Protected Member Functions inherited from freetensor::ASTPart
void lock ()
 
void unlock ()
 
virtual void compHash ()=0
 
void resetHash ()
 
- Protected Attributes inherited from freetensor::ASTPart
size_t hash_ = ~0ull
 
std::atomic_flag lock_ = ATOMIC_FLAG_INIT
 

Member Function Documentation

◆ atype()

AccessType freetensor::Buffer::atype ( ) const
inline

◆ compHash()

void freetensor::Buffer::compHash ( )
overridevirtual

Implements freetensor::ASTPart.

◆ mtype()

MemType freetensor::Buffer::mtype ( ) const
inline

◆ setAtype()

void freetensor::Buffer::setAtype ( AccessType  atype)
inline

◆ setMtype()

void freetensor::Buffer::setMtype ( MemType  mtype)
inline

◆ tensor() [1/2]

auto & freetensor::Buffer::tensor ( )
inline

◆ tensor() [2/2]

const auto & freetensor::Buffer::tensor ( ) const
inline

Friends And Related Function Documentation

◆ makeBuffer

template<class T >
Ref< Buffer > makeBuffer ( T &&  tensor,
AccessType  atype,
MemType  mtype 
)
friend

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