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

#include <core/ref.h>

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

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

template<typename T>
class ConstRef< T >

Constant reference to an instruction or a value.


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