SoA

Structure of arrays similar to members of S.

Constructors

this
this(Capacity initialCapacity, Allocator allocator)
Undocumented in source.
this
this()
Undocumented in source.
this
this(Capacity initialCapacity)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

empty
bool empty()

Returns true iff no elements are present.

insertBack
void insertBack(S value)

Push element (struct) value to back of array.

insertBackMembers
void insertBackMembers(Types members)

Push element (struct) value to back of array using its data members members.

opDispatch
auto opDispatch()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
inout(SoAElementRef!S) opIndex(Capacity elementIndex)

Index operator.

opOpAssign
void opOpAssign(S value)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
inout(SoASlice!S) opSlice()

Slice operator.

Manifest constants

_growthP
enum _growthP;
_growthQ
enum _growthQ;

Growth factor P/Q. https://github.com/facebook/folly/blob/master/folly/docs/FBVector.md#memory-handling

Use 1.5 like Facebook's fbvector does.

Properties

capacity
Capacity capacity [@property getter]

Capacity of this array.

length
Capacity length [@property getter]

Length of this array.

Meta