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

#include <id.h>

Public Member Functions

 ID ()
 
 ID (std::nullopt_t)
 
bool isValid () const
 
 operator uint64_t () const
 

Static Public Member Functions

static ID make ()
 
static ID make (uint64_t id)
 

Friends

class StmtNode
 
struct ::std::hash< ID >
 
std::ostream & operator<< (std::ostream &os, const ID &id)
 
bool operator== (const ID &lhs, const ID &rhs)
 

Detailed Description

Identify an Stmt acrossing passes, so we do not need to pass pointers

An Stmt is identified by a integer id_ property, which is unique to each Stmt node

Constructor & Destructor Documentation

◆ ID() [1/2]

freetensor::ID::ID ( )
inline

◆ ID() [2/2]

freetensor::ID::ID ( std::nullopt_t  )
inline

Member Function Documentation

◆ isValid()

bool freetensor::ID::isValid ( ) const
inline

◆ make() [1/2]

static ID freetensor::ID::make ( )
inlinestatic

◆ make() [2/2]

static ID freetensor::ID::make ( uint64_t  id)
inlinestatic

◆ operator uint64_t()

freetensor::ID::operator uint64_t ( ) const
inline

Friends And Related Function Documentation

◆ ::std::hash< ID >

friend struct ::std::hash< ID >
friend

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const ID id 
)
friend

◆ operator==

bool operator== ( const ID lhs,
const ID rhs 
)
friend

◆ StmtNode

friend class StmtNode
friend

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