CACAO
Public Member Functions | Data Fields
cacao::jit::compiler2::Segment< Tag, RefCategory >::IdxTy Struct Reference

Prevent mixing indices. More...

Public Member Functions

 IdxTy ()
 default constructor More...
 
 IdxTy (std::size_t idx)
 explicit constructor More...
 
IdxTyoperator= (const IdxTy &other)
 copy assignment operator More...
 
IdxTy operator+ (std::size_t i) const
 
IdxTy operator- (std::size_t i) const
 
bool operator== (const IdxTy &other) const
 

Data Fields

std::size_t idx
 

Detailed Description

template<typename Tag, typename RefCategory>
struct cacao::jit::compiler2::Segment< Tag, RefCategory >::IdxTy

Prevent mixing indices.

See Item 18 in "Efficient C++" [6].

Definition at line 85 of file Segment.hpp.

Constructor & Destructor Documentation

template<typename Tag, typename RefCategory>
cacao::jit::compiler2::Segment< Tag, RefCategory >::IdxTy::IdxTy ( )
inline

default constructor

Definition at line 89 of file Segment.hpp.

template<typename Tag, typename RefCategory>
cacao::jit::compiler2::Segment< Tag, RefCategory >::IdxTy::IdxTy ( std::size_t  idx)
inlineexplicit

explicit constructor

Definition at line 91 of file Segment.hpp.

Member Function Documentation

template<typename Tag, typename RefCategory>
IdxTy cacao::jit::compiler2::Segment< Tag, RefCategory >::IdxTy::operator+ ( std::size_t  i) const
inline

Definition at line 97 of file Segment.hpp.

template<typename Tag, typename RefCategory>
IdxTy cacao::jit::compiler2::Segment< Tag, RefCategory >::IdxTy::operator- ( std::size_t  i) const
inline

Definition at line 100 of file Segment.hpp.

template<typename Tag, typename RefCategory>
IdxTy& cacao::jit::compiler2::Segment< Tag, RefCategory >::IdxTy::operator= ( const IdxTy other)
inline

copy assignment operator

Definition at line 93 of file Segment.hpp.

template<typename Tag, typename RefCategory>
bool cacao::jit::compiler2::Segment< Tag, RefCategory >::IdxTy::operator== ( const IdxTy other) const
inline

Definition at line 103 of file Segment.hpp.

Field Documentation

template<typename Tag, typename RefCategory>
std::size_t cacao::jit::compiler2::Segment< Tag, RefCategory >::IdxTy::idx

Definition at line 86 of file Segment.hpp.


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