TupleStorage< T1, UnitType > Class Template Reference

#include <tuple.h>

Inheritance diagram for TupleStorage< T1, UnitType >:

Public Types

using FirstType = T1
 
using SecondType = UnitType
 
using KeyType = T1
 
using ValueType = UnitType
 

Public Member Functions

 TupleStorage ()
 
template<typename A1 , typename A2 >
 TupleStorage (std::index_sequence< 0, 1 > *, A1 &&a1, A2 &&a2)
 
T1 & GetFirst ()
 
const T1 & GetFirst () const
 
UnitTypeGetSecond ()
 
const UnitTypeGetSecond () const
 
const T1 & GetKey () const
 
UnitTypeGetValue ()
 
const UnitTypeGetValue () const
 

Static Public Member Functions

static Int GetOffset (typename std::integral_constant< UInt32, 0 >::type *)
 
static Int GetOffset (typename std::integral_constant< UInt32, 1 >::type *)
 

Public Attributes

T1 first
 

Static Public Attributes

static const Int COUNT
 

Protected Member Functions

T1 & GetMember (std::integral_constant< UInt32, 0 >::type *)
 
UnitTypeGetMember (std::integral_constant< UInt32, 1 >::type *)
 

Member Typedef Documentation

◆ FirstType

using FirstType = T1

◆ SecondType

◆ KeyType

using KeyType = T1

◆ ValueType

Constructor & Destructor Documentation

◆ TupleStorage() [1/2]

◆ TupleStorage() [2/2]

TupleStorage ( std::index_sequence< 0, 1 > *  ,
A1 &&  a1,
A2 &&  a2 
)

Member Function Documentation

◆ GetFirst() [1/2]

T1& GetFirst ( )

Returns the first element of this tuple.

◆ GetFirst() [2/2]

const T1& GetFirst ( ) const

◆ GetSecond() [1/2]

UnitType& GetSecond ( )

Returns the second element of this tuple.

◆ GetSecond() [2/2]

const UnitType& GetSecond ( ) const

◆ GetKey()

const T1& GetKey ( ) const

Returns the first element of this tuple (map compatibility).

◆ GetValue() [1/2]

UnitType& GetValue ( )

Returns the second element of this tuple (map compatibility).

◆ GetValue() [2/2]

const UnitType& GetValue ( ) const

◆ GetOffset() [1/2]

static Int GetOffset ( typename std::integral_constant< UInt32, 0 >::type )
static

◆ GetOffset() [2/2]

static Int GetOffset ( typename std::integral_constant< UInt32, 1 >::type )
static

◆ GetMember() [1/2]

T1& GetMember ( std::integral_constant< UInt32, 0 >::type )
protected

◆ GetMember() [2/2]

UnitType& GetMember ( std::integral_constant< UInt32, 1 >::type )
protected

Member Data Documentation

◆ COUNT

const Int COUNT
static

◆ first

T1 first