memlayout
Minimal CPU/GPU header-only example library
Loading...
Searching...
No Matches
memlayout::Wrapper< Struct, pointer, Layout::aos > Struct Template Reference

#include <wrapper.h>

Public Types

using Data = pointer<Struct<value>>

Public Member Functions

 operator Data & ()
 operator const Data & () const
constexpr bool operator== (const Wrapper &other) const
constexpr bool operator!= (const Wrapper &other) const
constexpr bool operator< (const Wrapper &other) const
constexpr Wrapper operator+ (ptrdiff_t i) const
constexpr Wrapper operator- (ptrdiff_t i) const
constexpr ptrdiff_t operator- (const Wrapper &other) const
constexpr Wrapperoperator++ ()
constexpr Wrapperoperator+= (ptrdiff_t i)
constexpr Wrapperoperator-- ()
constexpr Wrapperoperator-= (ptrdiff_t i)
constexpr Wrapper< Struct, referenceoperator[] (size_t i)
constexpr Wrapper< Struct, const_referenceoperator[] (size_t i) const
constexpr Wrapper< Struct, referenceoperator* ()
constexpr Wrapper< Struct, const_referenceoperator* (ptrdiff_t) const

Public Attributes

pointer< Struct< value > > data

Static Public Attributes

static constexpr Layout layout_type = Layout::aos

Detailed Description

template<template< template< class > class > class Struct>
struct memlayout::Wrapper< Struct, pointer, Layout::aos >

Definition at line 101 of file wrapper.h.

Member Typedef Documentation

◆ Data

template<template< template< class > class > class Struct>
using memlayout::Wrapper< Struct, pointer, Layout::aos >::Data = pointer<Struct<value>>

Definition at line 105 of file wrapper.h.

Member Function Documentation

◆ operator const Data &()

template<template< template< class > class > class Struct>
memlayout::Wrapper< Struct, pointer, Layout::aos >::operator const Data & ( ) const
inline

Definition at line 108 of file wrapper.h.

108{ return data; }

◆ operator Data &()

template<template< template< class > class > class Struct>
memlayout::Wrapper< Struct, pointer, Layout::aos >::operator Data & ( )
inline

Definition at line 107 of file wrapper.h.

107{ return data; }

◆ operator!=()

template<template< template< class > class > class Struct>
bool memlayout::Wrapper< Struct, pointer, Layout::aos >::operator!= ( const Wrapper< Struct, pointer, Layout::aos > & other) const
inlineconstexpr

Definition at line 111 of file wrapper.h.

111{ return data != other.data; }

◆ operator*() [1/2]

template<template< template< class > class > class Struct>
Wrapper< Struct, reference > memlayout::Wrapper< Struct, pointer, Layout::aos >::operator* ( )
inlineconstexpr

Definition at line 126 of file wrapper.h.

126{ return *data; }

◆ operator*() [2/2]

template<template< template< class > class > class Struct>
Wrapper< Struct, const_reference > memlayout::Wrapper< Struct, pointer, Layout::aos >::operator* ( ptrdiff_t ) const
inlineconstexpr

Definition at line 127 of file wrapper.h.

127{ return *data; }

◆ operator+()

template<template< template< class > class > class Struct>
Wrapper memlayout::Wrapper< Struct, pointer, Layout::aos >::operator+ ( ptrdiff_t i) const
inlineconstexpr

Definition at line 114 of file wrapper.h.

114{ return {data + i}; }

◆ operator++()

template<template< template< class > class > class Struct>
Wrapper & memlayout::Wrapper< Struct, pointer, Layout::aos >::operator++ ( )
inlineconstexpr

Definition at line 118 of file wrapper.h.

118{ return {++data}; }

◆ operator+=()

template<template< template< class > class > class Struct>
Wrapper & memlayout::Wrapper< Struct, pointer, Layout::aos >::operator+= ( ptrdiff_t i)
inlineconstexpr

Definition at line 119 of file wrapper.h.

119{ return {data += i}; }

◆ operator-() [1/2]

template<template< template< class > class > class Struct>
ptrdiff_t memlayout::Wrapper< Struct, pointer, Layout::aos >::operator- ( const Wrapper< Struct, pointer, Layout::aos > & other) const
inlineconstexpr

Definition at line 116 of file wrapper.h.

116{ return {data - other.data}; }

◆ operator-() [2/2]

template<template< template< class > class > class Struct>
Wrapper memlayout::Wrapper< Struct, pointer, Layout::aos >::operator- ( ptrdiff_t i) const
inlineconstexpr

Definition at line 115 of file wrapper.h.

115{ return {data - i}; }

◆ operator--()

template<template< template< class > class > class Struct>
Wrapper & memlayout::Wrapper< Struct, pointer, Layout::aos >::operator-- ( )
inlineconstexpr

Definition at line 120 of file wrapper.h.

120{ return {--data}; }

◆ operator-=()

template<template< template< class > class > class Struct>
Wrapper & memlayout::Wrapper< Struct, pointer, Layout::aos >::operator-= ( ptrdiff_t i)
inlineconstexpr

Definition at line 121 of file wrapper.h.

121{ return {data -= i}; }

◆ operator<()

template<template< template< class > class > class Struct>
bool memlayout::Wrapper< Struct, pointer, Layout::aos >::operator< ( const Wrapper< Struct, pointer, Layout::aos > & other) const
inlineconstexpr

Definition at line 112 of file wrapper.h.

112{ return data < other.data; }

◆ operator==()

template<template< template< class > class > class Struct>
bool memlayout::Wrapper< Struct, pointer, Layout::aos >::operator== ( const Wrapper< Struct, pointer, Layout::aos > & other) const
inlineconstexpr

Definition at line 110 of file wrapper.h.

110{ return data == other.data; }

◆ operator[]() [1/2]

template<template< template< class > class > class Struct>
Wrapper< Struct, reference > memlayout::Wrapper< Struct, pointer, Layout::aos >::operator[] ( size_t i)
inlineconstexpr

Definition at line 123 of file wrapper.h.

123{ return data[i]; }

◆ operator[]() [2/2]

template<template< template< class > class > class Struct>
Wrapper< Struct, const_reference > memlayout::Wrapper< Struct, pointer, Layout::aos >::operator[] ( size_t i) const
inlineconstexpr

Definition at line 124 of file wrapper.h.

124{ return data[i]; }

Member Data Documentation

◆ data

template<template< template< class > class > class Struct>
pointer<Struct<value> > memlayout::Wrapper< Struct, pointer, Layout::aos >::data

Definition at line 104 of file wrapper.h.

◆ layout_type

template<template< template< class > class > class Struct>
Layout memlayout::Wrapper< Struct, pointer, Layout::aos >::layout_type = Layout::aos
staticconstexpr

Definition at line 102 of file wrapper.h.


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