PeriDyno 1.0.0
Loading...
Searching...
No Matches
VectorBase.h
Go to the documentation of this file.
1#pragma once
2#include <iostream>
3#include "Platform.h"
4
5namespace dyno {
6
7#if(defined(__NVCC__))
8# define DYN_ALIGN_16 __align__(16)
9#else
10# define DYN_ALIGN_16 alignas(16)
11#endif
12 template<typename T>
14 {
15 public:
16 virtual int size()const = 0;
17 virtual T& operator[] (unsigned int) = 0;
18 virtual const T& operator[] (unsigned int) const = 0;
19 };
20
21
22 template <typename T, int Dim>
23 class Vector
24 {
25 public:
26 DYN_FUNC Vector() {};
27 DYN_FUNC ~Vector() {};
28 };
29
30} //end of namespace dyno
31
virtual T & operator[](unsigned int)=0
virtual int size() const =0
DYN_FUNC ~Vector()
Definition VectorBase.h:27
DYN_FUNC Vector()
Definition VectorBase.h:26
#define T(t)
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25