llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
Public Member Functions | List of all members
Ref< T > Class Template Reference

#include <core/ref.h>

Inheritance diagram for Ref< T >:
Inheritance graph
[legend]
Collaboration diagram for Ref< T >:
Collaboration graph
[legend]

Public Member Functions

 Ref (T &inst, unsigned idx=0)
 
 Ref (T *inst, unsigned idx=0)
 
template<typename U , class = typename std::enable_if<std::is_base_of<U, T>::value>::type>
 operator Ref< U > () const
 
- Public Member Functions inherited from RefBase< T >
T * Get () const
 
T * operator-> () const
 
T & operator* () const
 
unsigned Index () const
 
template<typename U = T>
std::enable_if< std::is_base_of< Inst, U >::value, Type >::type GetType () const
 
 operator bool () const
 
bool operator== (const RefBase< T > &that) const
 
bool operator!= (const RefBase< T > &that) const
 

Additional Inherited Members

- Protected Member Functions inherited from RefBase< T >
 RefBase (T *inst, unsigned index)
 
- Protected Attributes inherited from RefBase< T >
T * inst_
 Instruction pointed to.
 
unsigned index_
 Index of the return value in the instruction.
 

Detailed Description

template<typename T>
class Ref< T >

Reference to an instruction or a value.


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