sub_functor_list Class Reference
#include <list.h>
Detailed Description
The
sub_functor_list class is used to represent a list ofr pointers to
sub_functor instances.
Definition at line 29 of file list.h.
Constructor & Destructor Documentation
virtual sub_functor_list::~sub_functor_list |
( |
|
) |
[virtual] |
sub_functor_list::sub_functor_list |
( |
|
) |
|
The copy constructor. Do not use.
Member Function Documentation
The push_back method is used to append another functor to the end of the fuctor list.
- Parameters:
-
| sfp | The functor to add to the end of the list |
The get method is used to obtain the nth element of the list.
- Parameters:
-
| n | The number (zero based) of the element of interest. |
The array index operator method is used to obtain the nth element of the list.
- Parameters:
-
| n | The number (zero based) of the element of interest. |
Definition at line 67 of file list.h.
size_t sub_functor_list::size |
( |
|
) |
const [inline] |
The size method is used to obtain the number of elements in the list at the moment.
Definition at line 73 of file list.h.
bool sub_functor_list::empty |
( |
|
) |
const [inline] |
The empty method is used to determie whether or not the list is empty at the moment.
Definition at line 79 of file list.h.
The match method is ised to test the gven string against the names of all the functors in the list, treating the names as arglex_compare patterns.
- Parameters:
-
| name | The name of the substitution being looked for |
| result | each matching functor is appended to the list. It is possible for there to be no matches. |
void sub_functor_list::clear |
( |
|
) |
|
The clear method is used to discard all contents of the list
The find method is used to find a list element by name. This differs from the match method in that it looks for an exact name match, not a pattern match.
- Parameters:
-
| name | The name of the functor to look for |
- Returns:
- pointer to functor, or NULL if not found
The assignment operator. Do not use.
Field Documentation
The list instance variable is used to remember the address of the base of the dynamically allocated array of pointers to functors.
Definition at line 117 of file list.h.
The length instance variable is used to remember how much of the array of pointer to functors has been used to date.
Definition at line 123 of file list.h.
The maximum instance variable is used to remember the number of elements allocated to the array of pointers to functors.
Definition at line 129 of file list.h.
The documentation for this class was generated from the following file: