|
virtual bool | filter (char *filename, size_t size) |
| Filter filenames in a derived class.
|
|
bool | load (const char *path) |
| Load a directory path.
|
|
void | add (char **list) |
| Add list to list.
|
|
void | add (const char *text) |
| Add text to list.
|
|
void | assign (StringPager &source) |
| Assign foreign pager to us.
|
|
const char * | at (unsigned item) const |
|
StringPager::member * | begin (void) const |
| Get root of pager list.
|
|
void | clear (void) |
| Purge all members and release pager member.
|
|
unsigned | count (void) const |
| Get the number of items in the pager string list.
|
|
const char * | get (unsigned item) const |
| Get string item from list.
|
|
String | join (const char *prefix=NULL, const char *middle=NULL, const char *suffix=NULL) |
|
char ** | list (void) |
| Gather index list.
|
|
| operator bool () const |
|
| operator char ** () |
|
bool | operator! () const |
|
const char * | operator* () |
|
void | operator+= (const char *text) |
| Convenience operator to add to pager and auto-sort.
|
|
StringPager & | operator<< (const char *text) |
| Convenience operator to add to pager.
|
|
StringPager & | operator= (char **list) |
|
StringPager & | operator>> (const char *text) |
|
const char * | operator[] (unsigned item) const |
| Return specified member from pager list.
|
|
unsigned | pages (void) const |
|
const char * | pop (void) |
| Remove element from back of list.
|
|
const char * | pull (void) |
| Remove element from front of list.
|
|
void | push (char **text) |
| Add text list to front of list.
|
|
void | push (const char *text) |
| Add text to front of list.
|
|
void | set (char **list) |
| Set list to list.
|
|
void | set (unsigned item, const char *string) |
| Replace string item in list.
|
|
size_t | size (void) const |
|
void | sort (void) |
| Sort members.
|
|
unsigned | split (const char *text, const char *string, unsigned flags=0) |
|
unsigned | split (stringex_t &expr, const char *string, unsigned flags=0) |
|
| StringPager (char **list, size_t pagesize=256) |
|
| StringPager (size_t pagesize=256) |
| Create a pager with a maximum page size.
|
|
unsigned | token (const char *text, const char *list, const char *quote=NULL, const char *end=NULL) |
| Tokenize a string and add each token to the StringPager.
|
|
virtual void * | _alloc (size_t size) |
| Allocate memory from the pager heap.
|
|
page_t * | pager (void) |
| Acquire a new page from the heap.
|
|
void | assign (memalloc &source) |
| Assign foreign pager to us.
|
|
unsigned | max (void) const |
| Get the maximum number of pages that are permitted.
|
|
| memalloc (const memalloc ©) |
|
| memalloc (size_t page=0) |
| Construct a memory pager.
|
|
unsigned | pages (void) const |
| Get the number of pages that have been allocated from the real heap.
|
|
void | purge (void) |
| Purge all allocated memory and heap pages immediately.
|
|
size_t | size (void) const |
| Get the size of a memory page.
|
|
unsigned | utilization (void) const |
| Determine fragmentation level of acquired heap pages.
|
|
virtual | ~memalloc () |
| Destroy a memory pager.
|
|
Directory pager is a paged string list for directory file names.
This protocol is used to convert a directory into a list of filenames. As a protocol it offers a filtering method to select which files to include in the list.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 653 of file memory.h.