VectorPro
High-performance, header-only dynamic array with configurable growth policy, custom allocator support, and optional modification-event notifications.
Loading...
Searching...
No Matches
VectorPro::Vector< T, Allocator, GrowthNum, GrowthDen, EnableEvents >::EventData Struct Reference

Describes a vector modification event. More...

#include <Vector.h>

Public Attributes

EventType type
 The kind of modification that occurred.
 
std::size_t index
 The index associated with the event, if any.
 
std::size_t oldSize
 Vector size before the operation.
 
std::size_t newSize
 Vector size after the operation.
 

Detailed Description

template<typename T, typename Allocator = std::allocator<T>, std::size_t GrowthNum = 2, std::size_t GrowthDen = 1, bool EnableEvents = false>
struct VectorPro::Vector< T, Allocator, GrowthNum, GrowthDen, EnableEvents >::EventData

Describes a vector modification event.

Passed to subscribed listeners after a modifying operation. index is the affected position when applicable (e.g. insertion or erase index); its meaning is operation-dependent and may be 0 for events like CLEAR that don't target a single index.

Member Data Documentation

◆ index

template<typename T , typename Allocator = std::allocator<T>, std::size_t GrowthNum = 2, std::size_t GrowthDen = 1, bool EnableEvents = false>
std::size_t VectorPro::Vector< T, Allocator, GrowthNum, GrowthDen, EnableEvents >::EventData::index

The index associated with the event, if any.

◆ newSize

template<typename T , typename Allocator = std::allocator<T>, std::size_t GrowthNum = 2, std::size_t GrowthDen = 1, bool EnableEvents = false>
std::size_t VectorPro::Vector< T, Allocator, GrowthNum, GrowthDen, EnableEvents >::EventData::newSize

Vector size after the operation.

◆ oldSize

template<typename T , typename Allocator = std::allocator<T>, std::size_t GrowthNum = 2, std::size_t GrowthDen = 1, bool EnableEvents = false>
std::size_t VectorPro::Vector< T, Allocator, GrowthNum, GrowthDen, EnableEvents >::EventData::oldSize

Vector size before the operation.

◆ type

template<typename T , typename Allocator = std::allocator<T>, std::size_t GrowthNum = 2, std::size_t GrowthDen = 1, bool EnableEvents = false>
EventType VectorPro::Vector< T, Allocator, GrowthNum, GrowthDen, EnableEvents >::EventData::type

The kind of modification that occurred.


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