#include <SLDirectoryList.hpp>
Collaboration diagram for SLDirectoryList:
Public Member Functions | |
SLDirectoryList (unsigned int initial_capacity) | |
const SLDirectory & | operator[] (unsigned int index) const |
void | push_back (const SLDirectory &file) |
unsigned int | size () const |
void | sort () |
Protected Attributes | |
boost::shared_ptr< Data > | _shared_ptr |
bool | _isSorted |
This class is optimized for fast copy by value.
|
Build the list with an initial capacity. The initial_capacity allow to avoid frequent reallocations. |
|
The [] operator allow to read the list as it was an array.
|
|
This function works like std::vector. There is no memory allocation while the size of the list remains bellow the initial capacity. |
|
Gets the size of the list.
|
|
The list is unsorted by default. So this function does this work. Note: If called more than once, the sort done only one time. |
|
This variables is true after the 1st call to sort() |
|
This variable hold the various data used by the string in an efficient and memory leaks proof way. |