MySQL 8.4.2
Source Code Documentation
|
This is similar to a std::vector but it is not a drop in replacement. More...
Private Types | |
typedef trx_ids_t::value_type | value_type |
Private Member Functions | |
ids_t () | |
Constructor. More... | |
~ids_t () | |
Destructor. More... | |
void | reserve (ulint n) |
Try and increase the size of the array. More... | |
void | resize (ulint n) |
Resize the array, sets the current element count. More... | |
void | clear () |
Reset the size to 0. More... | |
ulint | capacity () const |
void | assign (const value_type *start, const value_type *end) |
Copy and overwrite the current array contents. More... | |
void | insert (value_type value) |
Insert the value in the correct slot, preserving the order. More... | |
value_type | front () const |
value_type | back () const |
void | push_back (value_type value) |
Append a value to the array. More... | |
trx_id_t * | data () |
const trx_id_t * | data () const |
ulint | size () const |
bool | empty () const |
ids_t (const ids_t &) | |
ids_t & | operator= (const ids_t &) |
Private Attributes | |
value_type * | m_ptr |
Memory for the array. More... | |
ulint | m_size |
Number of active elements in the array. More... | |
ulint | m_reserved |
Size of m_ptr in elements. More... | |
Friends | |
class | ReadView |
This is similar to a std::vector but it is not a drop in replacement.
It is specific to ReadView.
|
private |
|
inlineprivate |
Constructor.
|
inlineprivate |
Destructor.
|
private |
|
private |
Copy and overwrite the current array contents.
Copy and overwrite this array contents.
start | Source array |
end | Pointer to end of array |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Reset the size to 0.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
Insert the value in the correct slot, preserving the order.
Doesn't check for duplicates.
|
private |
Append a value to the array.
value | the value to append |
|
private |
Try and increase the size of the array.
Old elements are copied across. It is a no-op if n is < current size.
n | Make space for n elements |
Keep a minimum threshold
|
inlineprivate |
Resize the array, sets the current element count.
n | new size of the array, in elements |
|
inlineprivate |
|
friend |
|
private |
Memory for the array.
|
private |
Size of m_ptr in elements.
|
private |
Number of active elements in the array.