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

#include <wrapper.h>

Inheritance diagram for memlayout::Wrapper< Struct, Container, Layout::aos >:

Public Types

using Base = Container<Struct<value>>

Public Member Functions

constexpr Wrapper ()=default
template<template< class > class other_Container>
constexpr Wrapper (Wrapper< Struct, other_Container, Layout::aos > &other)
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

Static Public Attributes

static constexpr Layout layout_type = Layout::aos

Detailed Description

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

Definition at line 84 of file wrapper.h.

Member Typedef Documentation

◆ Base

template<template< template< class > class > class Struct, template< class > class Container>
using memlayout::Wrapper< Struct, Container, Layout::aos >::Base = Container<Struct<value>>

Definition at line 86 of file wrapper.h.

Constructor & Destructor Documentation

◆ Wrapper() [1/2]

template<template< template< class > class > class Struct, template< class > class Container>
memlayout::Wrapper< Struct, Container, Layout::aos >::Wrapper ( )
constexprdefault

◆ Wrapper() [2/2]

template<template< template< class > class > class Struct, template< class > class Container>
template<template< class > class other_Container>
memlayout::Wrapper< Struct, Container, Layout::aos >::Wrapper ( Wrapper< Struct, other_Container, Layout::aos > & other)
inlineconstexpr

Definition at line 91 of file wrapper.h.

Member Function Documentation

◆ operator*() [1/2]

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

Definition at line 96 of file wrapper.h.

96{ return operator[](0); }
constexpr Wrapper< Struct, reference > operator[](size_t i)
Definition wrapper.h:93

◆ operator*() [2/2]

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

Definition at line 97 of file wrapper.h.

97{ return operator[](0); }

◆ operator[]() [1/2]

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

Definition at line 93 of file wrapper.h.

93{ return Base::operator[](i); }

◆ operator[]() [2/2]

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

Definition at line 94 of file wrapper.h.

94{ return Base::operator[](i); }

Member Data Documentation

◆ layout_type

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

Definition at line 85 of file wrapper.h.


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