Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
IR::IndexSpace< Definition, Type > Struct Template Reference

#include <Module.h>

Public Member Functions

Uptr size () const
 
Type getType (Uptr index) const
 

Public Attributes

std::vector< Import< Type > > imports
 
std::vector< Definition > defs
 

Detailed Description

template<typename Definition, typename Type>
struct IR::IndexSpace< Definition, Type >

Definition at line 115 of file Module.h.

Member Function Documentation

◆ getType()

template<typename Definition , typename Type >
Type IR::IndexSpace< Definition, Type >::getType ( Uptr index) const
inline

Definition at line 121 of file Module.h.

122 {
123 if(index < imports.size()) { return imports[index].type; }
124 else { return defs[index - imports.size()].type; }
125 }
std::vector< Definition > defs
Definition Module.h:118
std::vector< Import< Type > > imports
Definition Module.h:117

◆ size()

template<typename Definition , typename Type >
Uptr IR::IndexSpace< Definition, Type >::size ( ) const
inline

Definition at line 120 of file Module.h.

120{ return imports.size() + defs.size(); }

Member Data Documentation

◆ defs

template<typename Definition , typename Type >
std::vector<Definition> IR::IndexSpace< Definition, Type >::defs

Definition at line 118 of file Module.h.

◆ imports

template<typename Definition , typename Type >
std::vector<Import<Type> > IR::IndexSpace< Definition, Type >::imports

Definition at line 117 of file Module.h.


The documentation for this struct was generated from the following file: