class
ecs::TSingleStorageViewCommon
template<typename StorageType>Provides helper functionality for a view containing single include types, and no excluded types.
Public
Methods
GetLeadingTypeStorage
const StorageType *GetLeadingTypeStorage() const
Returns the included type storage pointer.
GetSizeEstimate
u64 GetSizeEstimate() const
Returns a number of elements in the view based on the number of elements in the leading storage.
Begin
Iterator Begin() const
Iterator to the first entity matching the view filter.
End
Iterator End() const
Iterator past the last entity matching the view filter.
Front
Entity Front() const
Reference to the first entity matching the view filter, or null if none matches.
Back
Entity Back() const
Reference to the last entity matching the view filter, or null if none matches.
Find
Iterator Find(Entity entity)
Returns an iterator to the entity in the view, or End() iterator if no entity is found.
Contains
bool Contains(Entity entity)
Returns true if the provided entity matches the view filter.
IsValid
bool IsValid()
Returns true if included storage pointer is initialized.
View is not usable unless this returns true.
begin
iterator begin()
end
iterator end()
rbegin
reverse_iterator rbegin()
rend
reverse_iterator rend()
Protected
Constructors
TSingleStorageViewCommon<StorageType>
TSingleStorageViewCommon<StorageType>() = default
TSingleStorageViewCommon<StorageType>
TSingleStorageViewCommon<StorageType>(const StorageType *storage)
Fields
mStorage
const StorageType * mStorage