CNORXZ
Container with Native Operation Routines and Expressions
Loading...
Searching...
No Matches
src
include
xpr
index_id.h
Go to the documentation of this file.
1
// -*- C++ -*-
12
#ifndef __cxz_index_id_h__
13
#define __cxz_index_id_h__
14
15
#include "
base/base.h
"
16
17
namespace
CNORXZ
18
{
19
20
// if I == 0: no static comparison; fall back to usual runtime comparison of mId
21
template
<SizeT I = 0>
22
class
IndexId
23
{
24
private
:
25
PtrId
mId = 0;
26
27
public
:
28
DEFAULT_MEMBERS
(
IndexId
);
29
30
explicit
constexpr
IndexId
(
PtrId
id
);
31
32
constexpr
const
PtrId
&
id
()
const
;
33
34
template
<SizeT J>
35
constexpr
decltype
(
auto
)
operator
==(
const
IndexId<J>
& a)
const
;
36
37
template
<SizeT J>
38
constexpr
decltype
(
auto
)
operator
!=(
const
IndexId<J>
& a)
const
;
39
};
40
}
41
42
#endif
base.h
basic headers
CNORXZ::IndexId
Definition
index_id.h:23
CNORXZ::IndexId::DEFAULT_MEMBERS
DEFAULT_MEMBERS(IndexId)
CNORXZ::IndexId::id
constexpr const PtrId & id() const
Definition
index_id.cc.h:26
CNORXZ::IndexId::IndexId
constexpr IndexId(PtrId id)
Definition
index_id.cc.h:21
CNORXZ
Definition
aindex.cc.h:18
CNORXZ::PtrId
std::intptr_t PtrId
Definition
types.h:35
Generated by
1.10.0