Jlm
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
jlm::rvsdg::TestType Class Referencefinal

#include <TestType.hpp>

Inheritance diagram for jlm::rvsdg::TestType:
Inheritance graph
[legend]
Collaboration diagram for jlm::rvsdg::TestType:
Collaboration graph
[legend]

Public Member Functions

 ~TestType () noexcept override
 
constexpr TestType (const TypeKind kind) noexcept
 
std::string debug_string () const override
 
bool operator== (const Type &other) const noexcept override
 
std::size_t ComputeHash () const noexcept override
 
TypeKind Kind () const noexcept override
 Return the kind of this type. More...
 
- Public Member Functions inherited from jlm::rvsdg::Type
virtual ~Type () noexcept
 
bool operator!= (const jlm::rvsdg::Type &other) const noexcept
 

Static Public Member Functions

static std::shared_ptr< const TestTypecreateStateType ()
 
static std::shared_ptr< const TestTypecreateValueType ()
 

Private Attributes

TypeKind kind_
 

Additional Inherited Members

- Protected Member Functions inherited from jlm::rvsdg::Type
constexpr Type () noexcept
 

Detailed Description

A configurable type that can be used for testing.

Definition at line 17 of file TestType.hpp.

Constructor & Destructor Documentation

◆ ~TestType()

jlm::rvsdg::TestType::~TestType ( )
overridedefaultnoexcept

◆ TestType()

constexpr jlm::rvsdg::TestType::TestType ( const TypeKind  kind)
inlineexplicitconstexprnoexcept

Definition at line 22 of file TestType.hpp.

Member Function Documentation

◆ ComputeHash()

std::size_t jlm::rvsdg::TestType::ComputeHash ( ) const
overridevirtualnoexcept

Computes a hash value for the instance of the type.

Returns
A hash value.

Implements jlm::rvsdg::Type.

Definition at line 46 of file TestType.cpp.

◆ createStateType()

std::shared_ptr< const TestType > jlm::rvsdg::TestType::createStateType ( )
static

Definition at line 60 of file TestType.cpp.

◆ createValueType()

std::shared_ptr< const TestType > jlm::rvsdg::TestType::createValueType ( )
static

Definition at line 67 of file TestType.cpp.

◆ debug_string()

std::string jlm::rvsdg::TestType::debug_string ( ) const
overridevirtual

Implements jlm::rvsdg::Type.

Definition at line 33 of file TestType.cpp.

◆ Kind()

TypeKind jlm::rvsdg::TestType::Kind ( ) const
overridevirtualnoexcept

Return the kind of this type.

Implements jlm::rvsdg::Type.

Definition at line 54 of file TestType.cpp.

◆ operator==()

bool jlm::rvsdg::TestType::operator== ( const Type other) const
overridevirtualnoexcept

Implements jlm::rvsdg::Type.

Definition at line 39 of file TestType.cpp.

Member Data Documentation

◆ kind_

TypeKind jlm::rvsdg::TestType::kind_
private

Definition at line 45 of file TestType.hpp.


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