memlayout
Minimal CPU/GPU header-only example library
Loading...
Searching...
No Matches
memlayout Namespace Reference

Classes

struct  RandomAccessAt
struct  GetPointer
struct  AggregateConstructor
struct  FirstMember
struct  PreIncrement
struct  PreDecrement
struct  Advance
struct  CopyAssignment
struct  Wrapper
struct  Wrapper< Struct, Container, Layout::aos >
struct  Wrapper< Struct, pointer, Layout::aos >
struct  Wrapper< Struct, Container, Layout::soa >
struct  Wrapper< Struct, value, Layout::soa >
struct  Wrapper< Struct, reference, Layout::soa >
struct  Wrapper< Struct, const_reference, Layout::soa >
struct  Wrapper< Struct, pointer, Layout::soa >
struct  Wrapper< Struct, const_pointer, Layout::soa >

Typedefs

using size_t = decltype(sizeof(0))
using ptrdiff_t = decltype(static_cast<int*>(nullptr) - static_cast<int*>(nullptr))
template<class T>
using value = T
template<class T>
using reference = T&
template<class T>
using const_reference = const T&
template<class T>
using pointer = T*
template<class T>
using const_pointer = const T*

Enumerations

enum class  Layout { aos = 0 , soa = 1 }

Typedef Documentation

◆ const_pointer

template<class T>
using memlayout::const_pointer = const T*

Definition at line 13 of file wrapper.h.

◆ const_reference

template<class T>
using memlayout::const_reference = const T&

Definition at line 11 of file wrapper.h.

◆ pointer

template<class T>
using memlayout::pointer = T*

Definition at line 12 of file wrapper.h.

◆ ptrdiff_t

using memlayout::ptrdiff_t = decltype(static_cast<int*>(nullptr) - static_cast<int*>(nullptr))

Definition at line 7 of file wrapper.h.

◆ reference

template<class T>
using memlayout::reference = T&

Definition at line 10 of file wrapper.h.

◆ size_t

using memlayout::size_t = decltype(sizeof(0))

Definition at line 6 of file wrapper.h.

◆ value

template<class T>
using memlayout::value = T

Definition at line 9 of file wrapper.h.

Enumeration Type Documentation

◆ Layout

enum class memlayout::Layout
strong
Enumerator
aos 
soa 

Definition at line 71 of file wrapper.h.

71{ aos = 0, soa = 1 };