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

#include <control.hpp>

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

Public Member Functions

 ~ControlType () noexcept override
 
 ControlType (size_t nalternatives)
 
std::string debug_string () const override
 
bool operator== (const jlm::rvsdg::Type &other) const noexcept override
 
std::size_t ComputeHash () const noexcept override
 
TypeKind Kind () const noexcept override
 Return the kind of this type. More...
 
size_t nalternatives () const noexcept
 
- 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 ControlTypeCreate (std::size_t nalternatives)
 Instantiates control type. More...
 

Private Attributes

size_t nalternatives_
 

Additional Inherited Members

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

Detailed Description

Definition at line 22 of file control.hpp.

Constructor & Destructor Documentation

◆ ~ControlType()

jlm::rvsdg::ControlType::~ControlType ( )
overridedefaultnoexcept

◆ ControlType()

jlm::rvsdg::ControlType::ControlType ( size_t  nalternatives)
explicit

Definition at line 17 of file control.cpp.

Member Function Documentation

◆ ComputeHash()

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

Computes a hash value for the instance of the type.

Returns
A hash value.

Implements jlm::rvsdg::Type.

Definition at line 36 of file control.cpp.

◆ Create()

std::shared_ptr< const ControlType > jlm::rvsdg::ControlType::Create ( std::size_t  nalternatives)
static

Instantiates control type.

Parameters
nalternativesNumber of alternatives
Returns
Control type instance

Creates an instance of a control type capable of representing the specified number of alternatives. The returned instance will usually be a static singleton for the type.

Definition at line 50 of file control.cpp.

◆ debug_string()

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

Implements jlm::rvsdg::Type.

Definition at line 23 of file control.cpp.

◆ Kind()

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

Return the kind of this type.

Implements jlm::rvsdg::Type.

Definition at line 44 of file control.cpp.

◆ nalternatives()

size_t jlm::rvsdg::ControlType::nalternatives ( ) const
inlinenoexcept

Definition at line 42 of file control.hpp.

◆ operator==()

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

Implements jlm::rvsdg::Type.

Definition at line 29 of file control.cpp.

Member Data Documentation

◆ nalternatives_

size_t jlm::rvsdg::ControlType::nalternatives_
private

Definition at line 62 of file control.hpp.


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