|
| TypeInfoTemplateNV111 ("Field", T, VectorType::memoerySpaceName()) |
| type info More...
|
|
| Field () |
| construct an empty Filed with default fieldKey More...
|
|
| Field (const word &name) |
|
| Field (const word &name, const word &fieldKey) |
| Construct an empty field with name and fieldKey. More...
|
|
| Field (const word &name, const word &fieldKey, size_t len) |
| Construct a field with name and fieldKey and specified len. More...
|
|
| Field (const word &name, const word &fieldKey, size_t len, const T &val) |
| Construct a field with name, fieldKey and set length to len and value to val. More...
|
|
| Field (const word &name, const word &fieldKey, size_t capacity, size_t len, const T &val) |
|
| Field (const word &name, const word &fieldKey, size_t capacity, size_t len, RESERVE) |
| Construct a field with name, fieldKey, capacity and len. More...
|
|
| Field (const word &fieldKey, const Vector< T > &vec) |
| Construct a field with fieldKey and Vector vec. More...
|
|
| Field (const word &name, const word &fieldKey, const Vector< T > &vec) |
| Construct a field with name, fieldKey and Vector vec. More...
|
|
| Field (const word &name, const word &fieldKey, const std::vector< T > &vec) |
| Construct a field with name and fieldKey and std::vector. More...
|
|
| Field (const word &name, const word &fieldKey, const FieldType &src) |
| Copy construct with new name and fieldkey. More...
|
|
| Field (const FieldType &)=default |
| Default copy constructor. More...
|
|
FieldType & | operator= (const FieldType &rhs) |
| Copy assignment, name and fieldKey on the left hand side are preserved. More...
|
|
| Field (FieldType &&)=default |
| Move constructor. More...
|
|
FieldType & | operator= (FieldType &&)=default |
| Move assignment. More...
|
|
word | fieldKey () const |
| return field key More...
|
|
word | name () const |
|
void | fillField (rangeU32 span, const T &val) |
|
void | fillField (const T &val) |
|
bool | read (iIstream &is) |
|
bool | write (iOstream &os) const |
|
bool | read (iIstream &is, const IOPattern &iop, bool resume=false) |
|
bool | write (iOstream &os, const IOPattern &iop) const |
|
| TypeInfoTemplateNV111 ("VectorSingle", T, memoerySpaceName()) |
| Type info. More...
|
|
| VectorSingle () |
| Empty vector. More...
|
|
| VectorSingle (const word &name) |
| Empty vector with a name (capacity = 2) More...
|
|
| VectorSingle (const word &name, uint32 n) |
| Vector with name and size n. More...
|
|
| VectorSingle (const word &name, uint32 n, const T &val) |
| Vector with name, size and value. More...
|
|
| VectorSingle (const word &name, uint32 cap, uint32 n, RESERVE) |
| Vector with name, size (n) and reserved capacity. More...
|
|
| VectorSingle (const word &name, const std::vector< T > &src) |
| Construct with a name and form std::vector (host memory) More...
|
|
| VectorSingle (const word &name, const std::vector< T > &src, uint32 cap) |
| Construct with a name and form std::vector (host memory) and with a desired capacity. More...
|
|
| VectorSingle (const VectorSingle &src) |
| Copy construct (performs deep copy) More...
|
|
| VectorSingle (const word &name, const VectorSingle &src) |
| Copy construct with a new name (perform deep copy) More...
|
|
| VectorSingle (const word &name, const ViewType1D< T, void > &src) |
| Copy construct with a new name (perform deep copy) More...
|
|
| VectorSingle (VectorSingle &&)=default |
| Move construct. More...
|
|
VectorSingle & | operator= (const VectorSingle &rhs) |
| Copy assignment (perform deep copy from rhs to *this) More...
|
|
VectorSingle & | operator= (VectorSingle &&)=default |
| Move assignment. More...
|
|
| ~VectorSingle () |
| Descructor This may not destroy the underlying memory, sice view is shared_ptr and maybe referenced by another object too
More...
|
|
INLINE_FUNCTION_H uniquePtr< VectorSingle > | clone () const |
| Clone as a uniquePtr (perform deep copy) More...
|
|
INLINE_FUNCTION_H VectorType & | VectorField () |
| Return *this. More...
|
|
const INLINE_FUNCTION_H VectorType & | VectorField () const |
| Return *this. More...
|
|
INLINE_FUNCTION_H auto & | deviceViewAll () |
| Device view range [0,capcity) More...
|
|
const INLINE_FUNCTION_H auto & | deviceViewAll () const |
| Device view range [0,capcity) More...
|
|
INLINE_FUNCTION_H auto | deviceView () const |
| Device view range [0, size) More...
|
|
INLINE_FUNCTION_H auto | hostViewAll () const |
| Return a view accessible on Host in range [0,capacity) More...
|
|
INLINE_FUNCTION_H auto | hostView () const |
| Return a view accessible on Host in range [0,size) More...
|
|
INLINE_FUNCTION_H word | name () const |
| Name of the vector. More...
|
|
INLINE_FUNCTION_H uint32 | size () const |
| Size of the vector. More...
|
|
INLINE_FUNCTION_H uint32 | capacity () const |
|
INLINE_FUNCTION_H bool | empty () const |
| If vector is empty. More...
|
|
INLINE_FUNCTION_H void | reserve (uint32 cap) |
| Reserve capacity for vector Preserve the content. More...
|
|
INLINE_FUNCTION_H void | reallocate (uint32 cap) |
| Reallocate memory to new cap and set size to 0. More...
|
|
INLINE_FUNCTION_H void | reallocate (uint32 cap, uint32 newSize) |
| Reallocate memory to new cap and set size to newSize. More...
|
|
INLINE_FUNCTION_H void | resize (uint32 n) |
| Resize the vector and preserve the content. More...
|
|
INLINE_FUNCTION_H void | resize (uint32 n, const T &val) |
| Resize the vector and assign the value to it. More...
|
|
INLINE_FUNCTION_H void | clear () |
| Clear the vector, but keep the allocated memory unchanged. More...
|
|
INLINE_FUNCTION_H void | fill (const T &val) |
| Fill the range [0,size) with val. More...
|
|
INLINE_FUNCTION_H void | fill (rangeU32 r, const T &val) |
|
INLINE_FUNCTION_H void | assign (size_t n, const T &val) |
| Change size of the vector and assign val to vector and. More...
|
|
INLINE_FUNCTION_H void | assign (const std::vector< T > &src, uint32 cap) |
| Assign source vector with specified capacity. More...
|
|
INLINE_FUNCTION_H void | assign (const std::vector< T > &src) |
| Assign source vector. More...
|
|
INLINE_FUNCTION_H void | assign (const VectorType &src, bool srcCapacity=true) |
|
INLINE_FUNCTION_H void | assignFromHost (const VectorTypeHost &src) |
| Assign source vector from host side. More...
|
|
INLINE_FUNCTION_H void | assignFromDevice (const VectorSingle< T, MSpace > &src, bool srcCapacity=true) |
|
INLINE_FUNCTION_H void | append (const ViewType1D< T, void > &appVec) |
|
INLINE_FUNCTION_H void | append (const std::vector< T > &appVec) |
|
INLINE_FUNCTION_H void | append (const VectorType &appVec) |
|
INLINE_FUNCTION_H auto | getSpan () |
|
INLINE_FUNCTION_H auto | getSpan () const |
|
INLINE_FUNCTION_H bool | insertSetElement (const uint32IndexContainer &indices, const T &val) |
|
INLINE_FUNCTION_H bool | insertSetElement (const uint32IndexContainer &indices, const std::vector< T > &vals) |
|
INLINE_FUNCTION_H bool | insertSetElement (const uint32IndexContainer &indices, const ViewType1D< T, memory_space > vals) |
|
INLINE_FUNCTION_H bool | reorderItems (const uint32IndexContainer &indices) |
|
INLINE_FUNCTION_H std::enable_if_t< isHostAccessible_ &&Enable, void > | push_back (const T &val) |
| push a new element at the end (host call only) resize if necessary and works on host accessible vector. More...
|
|
INLINE_FUNCTION_H pointer | data () |
|
INLINE_FUNCTION_H const_pointer | data () const |
|
INLINE_FUNCTION_H std::enable_if_t< isHostAccessible_ &&Enable, iterator > | begin () |
| Return begin iterator. It works when devices is host accessible. More...
|
|
INLINE_FUNCTION_H std::enable_if_t< isHostAccessible_ &&Enable, const_iterator > | begin () const |
| Return begin iterator. it works when host is accessible. More...
|
|
INLINE_FUNCTION_H std::enable_if_t< isHostAccessible_ &&Enable, iterator > | end () |
| Return end iterator. it works when host is accessible. More...
|
|
INLINE_FUNCTION_H std::enable_if_t< isHostAccessible_ &&Enable, const_iterator > | end () const |
| Return end iterator. it works when host is accessible. More...
|
|
INLINE_FUNCTION_H std::enable_if_t< isHostAccessible_ &&Enable, reference > | operator[] (size_t i) |
| Return reference to element i. it works when host is accessible. More...
|
|
INLINE_FUNCTION_H std::enable_if_t< isHostAccessible_ &&Enable, const_reference > | operator[] (size_t i) const |
| Return reference to element i. it works when host is accessible. More...
|
|
FUNCTION_H bool | read (iIstream &is) |
| Read vector from stream. More...
|
|
FUNCTION_H bool | read (iIstream &is, const IOPattern &iop) |
| Read vector from stream. More...
|
|
FUNCTION_H bool | write (iOstream &os, const IOPattern &iop) const |
| Write the vector to os. More...
|
|
FUNCTION_H bool | write (iOstream &os) const |
|
FUNCTION_H bool | write (iOstream &os, const IOPattern &iop, const HostMask &mask) const |
|
template<class T, class MemorySpace = void>
class pFlow::Field< T, MemorySpace >
Definition at line 36 of file Field.hpp.