Public Types | |
using | VectorType = Vector< T, Allocator > |
using | vectorType = typename std::vector< T, Allocator > |
using | iterator = typename vectorType::iterator |
using | const_iterator = typename vectorType::const_iterator |
using | reference = typename vectorType::reference |
using | const_reference = typename vectorType::const_reference |
using | value_type = T |
using | pointer = T * |
using | const_pointer = const T * |
using | init_list = typename std::initializer_list< T > |
Public Member Functions | |
TypeInfoTemplateNV111 ("Vector", T, memoerySpaceName()) | |
Vector () | |
Empty Vector. More... | |
Vector (const word &name) | |
Empty Vector with a name. More... | |
Vector (const word &name, size_t len) | |
Vector with specified length and name. More... | |
Vector (const word &name, size_t len, const T &val) | |
Vector with name, length and value. More... | |
Vector (const word &name, size_t cap, size_t len, RESERVE) | |
Vector with name, size and reserved capacity. More... | |
Vector (const word &name, const init_list &l) | |
Vector from name and initializer list. More... | |
Vector (const word &name, const vectorType &src) | |
Construct with a name and form std::vector (host memory) More... | |
Vector (const word &name, const vectorType &src, size_t cap) | |
Construct with a name and form std::vector (host memory) and with a desired capacity. More... | |
Vector (const VectorType &src)=default | |
Copy construct. More... | |
Vector (const word &name, const Vector< T > &src) | |
Copy from src with a new name. More... | |
VectorType & | operator= (const VectorType &rhs)=default |
Copy assignment. More... | |
VectorType & | operator= (const vectorType &rhs) |
Copy assignment from std::vector. More... | |
Vector (VectorType &&mv) noexcept=default | |
Move construct. More... | |
VectorType & | operator= (VectorType &&mv) noexcept=default |
Move assignment. More... | |
void | operator= (const T &val) |
Scalar assignment. More... | |
~Vector ()=default | |
Destructor. More... | |
uniquePtr< VectorType > | clone () const |
Clone as a uniquePtr. More... | |
VectorType * | clonePtr () const |
Clone as a pointer. More... | |
const VectorType & | VectorField () const |
Access to this, mostly used by derived classes. More... | |
VectorType & | VectorField () |
const vectorType & | vectorField () const |
vectorType & | vectorField () |
auto & | deviceVectorAll () |
const auto & | deviceVectorAll () const |
auto & | deviceVector () |
const auto & | deviceVector () const |
const word & | name () const |
Name of the vector. More... | |
auto | size () const |
Size of the vector. More... | |
auto | capacity () const |
Capacity of the vector. More... | |
bool | empty () const |
If vector is empty. More... | |
void | reserve (size_t cap) |
Reserve capacity for vector Preserve the content. More... | |
void | fill (const T &val) |
void | fill (uint32 start, uint32 end, const T &val) |
fill the content in range [start, end) More... | |
auto | getSpan () |
auto | getSpan () const |
void | operator+= (const T &val) |
void | operator-= (const T &val) |
void | operator*= (const T &val) |
void | operator/= (const T &val) |
void | operator+= (const VectorType &v) |
void | operator-= (const VectorType &v) |
void | operator/= (const VectorType &v) |
void | operator*= (const VectorType &v) |
VectorType | operator- () const |
bool | read (iIstream &is) |
bool | write (iOstream &os) const |
bool | read (iIstream &is, const IOPattern &iop) |
bool | write (iOstream &os, const IOPattern &iop) const |
Static Public Member Functions | |
static constexpr bool | isHostAccessible () |
static constexpr const char * | memoerySpaceName () |
Private Attributes | |
word | name_ |
Static Private Attributes | |
static constexpr bool | isHostAccessible_ = true |
Definition at line 48 of file Vector.hpp.
using VectorType = Vector<T, Allocator> |
Definition at line 62 of file Vector.hpp.
using vectorType = typename std::vector<T, Allocator> |
Definition at line 64 of file Vector.hpp.
using iterator = typename vectorType::iterator |
Definition at line 66 of file Vector.hpp.
using const_iterator = typename vectorType::const_iterator |
Definition at line 68 of file Vector.hpp.
using reference = typename vectorType::reference |
Definition at line 70 of file Vector.hpp.
using const_reference = typename vectorType::const_reference |
Definition at line 72 of file Vector.hpp.
using value_type = T |
Definition at line 74 of file Vector.hpp.
using pointer = T * |
Definition at line 76 of file Vector.hpp.
using const_pointer = const T * |
Definition at line 78 of file Vector.hpp.
using init_list = typename std::initializer_list<T> |
Definition at line 80 of file Vector.hpp.
|
inline |
Empty Vector.
Definition at line 101 of file Vector.hpp.
Empty Vector with a name.
Definition at line 109 of file Vector.hpp.
Vector with specified length and name.
Definition at line 117 of file Vector.hpp.
Vector with name, length and value.
Definition at line 125 of file Vector.hpp.
Vector with name, size and reserved capacity.
Definition at line 133 of file Vector.hpp.
Vector from name and initializer list.
Definition at line 143 of file Vector.hpp.
|
inline |
Construct with a name and form std::vector (host memory)
Definition at line 150 of file Vector.hpp.
|
inline |
Construct with a name and form std::vector (host memory) and with a desired capacity.
Definition at line 158 of file Vector.hpp.
|
inlinedefault |
Copy construct.
Copy from src with a new name.
Definition at line 169 of file Vector.hpp.
|
defaultnoexcept |
Move construct.
|
default |
Destructor.
TypeInfoTemplateNV111 | ( | "Vector< T, Allocator >" | , |
T | , | ||
memoerySpaceName() | |||
) |
|
inlinedefault |
Copy assignment.
|
inline |
Copy assignment from std::vector.
Definition at line 178 of file Vector.hpp.
|
defaultnoexcept |
Move assignment.
|
inline |
Scalar assignment.
Definition at line 191 of file Vector.hpp.
|
inline |
Clone as a uniquePtr.
Definition at line 201 of file Vector.hpp.
|
inline |
Clone as a pointer.
Definition at line 207 of file Vector.hpp.
|
inline |
Access to this, mostly used by derived classes.
Definition at line 217 of file Vector.hpp.
|
inline |
Definition at line 222 of file Vector.hpp.
|
inline |
Definition at line 227 of file Vector.hpp.
Referenced by main(), Vector< word >::read(), and Vector< word >::write().
|
inline |
Definition at line 232 of file Vector.hpp.
|
inline |
Definition at line 237 of file Vector.hpp.
|
inline |
Definition at line 242 of file Vector.hpp.
|
inline |
Definition at line 247 of file Vector.hpp.
|
inline |
Definition at line 252 of file Vector.hpp.
|
inline |
Name of the vector.
Definition at line 259 of file Vector.hpp.
Referenced by triSurface::append(), VectorSingle< word, HostSpace >::name(), and pFlow::pow().
|
inline |
Size of the vector.
Definition at line 265 of file Vector.hpp.
Referenced by symArray< nonLinearProperties >::assign(), VectorDual< multiRotatingAxis >::assign(), collisionCheck::build(), pFlow::convertToTriSurfaceComponents(), VectorDual< multiRotatingAxis >::deleteElement(), VectorSingle< word, HostSpace >::deviceView(), VectorSingle< word, HostSpace >::empty(), pFlow::fillSequence(), sphereParticles::getParticlesInfoFromShape(), grainParticles::getParticlesInfoFromShape(), Vector< word >::getSpan(), VectorSingle< word, HostSpace >::getSpan(), baseShapeNames::hashToIndex(), VectorSingle< word, HostSpace >::hostView(), MotionModel< rotatingAxisMotion, rotatingAxis >::impl_readDictionary(), Insertion< ShapeType >::insertParticles(), internalPoints::insertPoints(), VectorDual< multiRotatingAxis >::insertSetElement(), pFlow::max(), pFlow::min(), positionRandom::numPoints(), positionOrdered::numPoints(), Vector< word >::operator*=(), Vector< word >::operator+=(), Vector< word >::operator-=(), Vector< word >::operator/=(), positionRandom::positionOnePass(), pFlow::pow(), property::readDictionary(), sphereShape::readFromDictionary3(), grainShape::readFromDictionary3(), linear< limited >::readLinearDictionary(), cGRelativeLinear< limited >::readLinearDictionary(), cGAbsoluteLinear< limited >::readLinearDictionary(), nonLinear< limited >::readNonLinearDictionary(), nonLinearMod< limited >::readNonLinearDictionary(), positionRandom::size(), positionOrdered::size(), shapeMixture::size(), VectorSingle< word, HostSpace >::size(), pFlow::sum(), symArray< nonLinearProperties >::write(), and VectorDual< multiRotatingAxis >::write().
|
inline |
Capacity of the vector.
Definition at line 271 of file Vector.hpp.
Referenced by VectorSingle< word, HostSpace >::capacity(), VectorSingle< word, HostSpace >::deviceViewAll(), VectorSingle< word, HostSpace >::hostViewAll(), InsertionRegion< ShapeType >::insertParticles(), and pFlow::pow().
|
inline |
If vector is empty.
Definition at line 277 of file Vector.hpp.
Referenced by pFlow::selectedFieldVals().
|
inline |
Reserve capacity for vector Preserve the content.
Definition at line 284 of file Vector.hpp.
Referenced by VectorSingle< word, HostSpace >::assign(), pFlow::convertToTriSurfaceComponents(), sphereParticles::getParticlesInfoFromShape(), grainParticles::getParticlesInfoFromShape(), InsertionRegion< ShapeType >::insertParticles(), VectorSingle< word, HostSpace >::reserve(), selectBox::selectAllPointsInBox(), selectorRandomPoints::selectAllPointsInRange(), selectorStridedRange::selectAllPointsInRange(), and Vector< word >::Vector().
|
inline |
Definition at line 23 of file VectorI.hpp.
Referenced by geometry::createPropertyId(), VectorSingle< word, HostSpace >::fill(), and Vector< word >::operator=().
fill the content in range [start, end)
Definition at line 29 of file VectorI.hpp.
|
inline |
Definition at line 296 of file Vector.hpp.
Referenced by triSurface::append().
|
inline |
Definition at line 302 of file Vector.hpp.
|
inlinestaticconstexpr |
Definition at line 307 of file Vector.hpp.
|
inline |
Definition at line 38 of file VectorI.hpp.
|
inline |
Definition at line 48 of file VectorI.hpp.
|
inline |
Definition at line 58 of file VectorI.hpp.
|
inline |
Definition at line 68 of file VectorI.hpp.
|
inline |
Definition at line 78 of file VectorI.hpp.
|
inline |
Definition at line 97 of file VectorI.hpp.
|
inline |
Definition at line 135 of file VectorI.hpp.
|
inline |
Definition at line 116 of file VectorI.hpp.
|
inline |
Definition at line 155 of file VectorI.hpp.
|
inline |
Definition at line 324 of file Vector.hpp.
Referenced by pFlow::operator>>(), symArray< nonLinearProperties >::read(), and VectorSingle< word, HostSpace >::read().
|
inline |
Definition at line 328 of file Vector.hpp.
Referenced by pFlow::operator<<(), symArray< nonLinearProperties >::write(), VectorSingle< word, HostSpace >::write(), and VectorDual< multiRotatingAxis >::write().
Definition at line 333 of file Vector.hpp.
Definition at line 338 of file Vector.hpp.
|
inlinestaticconstexpr |
Definition at line 344 of file Vector.hpp.
|
private |
Definition at line 85 of file Vector.hpp.
Referenced by Vector< word >::name().
|
staticconstexprprivate |
Definition at line 88 of file Vector.hpp.
Referenced by Vector< word >::isHostAccessible().