Loading...
Searching...
No Matches
Opm::FastSmallVector< ValueType, N > Class Template Reference

An implementation of vector/array based on small object optimization. More...

`#include <FastSmallVector.hpp>`

## Public Member Functions

| FastSmallVector ()
| default constructor
| FastSmallVector (const size_t numElem)
| constructor based on the number of the element
| FastSmallVector (const size_t numElem, const ValueType value)
| constructor based on the number of the element, and all the elements will have the same value
| FastSmallVector (const FastSmallVector &other)
| copy constructor
| FastSmallVector (FastSmallVector &&other)
| move constructor
| ~FastSmallVector ()
| destructor
FastSmallVector & | operator= (FastSmallVector &&other)
| move assignment
FastSmallVector & | operator= (const FastSmallVector &other)
| copy assignment
ValueType & | operator[] (size_t idx)
| access the idx th element
const ValueType & | operator[] (size_t idx) const
| const access the idx th element
size_t | size () const
| number of the element

## Detailed Description

template<typename ValueType, unsigned N>
class Opm::FastSmallVector< ValueType, N >

An implementation of vector/array based on small object optimization.

It is intended to be used by the DynamicEvaluation for better efficiency. ValueType is the type of the data N is the size of the buffer that willl be allocated during compilation time

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

- opm/material/common/FastSmallVector.hpp