feisty meow concerns codebase
2.140
|
the basket class holds an object and supports connecting them as nodes. More...
#include <node.h>
Public Member Functions | |
basket (int links, const contents &to_store=contents()) | |
basket (const basket &to_copy) | |
basket & | operator= (const contents &to_copy) |
const contents & | stored () const |
allows a peek at the stored object. More... | |
contents & | stored () |
provides access to the stored object. More... | |
![]() | |
node (int number_of_links=0) | |
the constructor provides for "number_of_links" links initially. More... | |
virtual | ~node () |
the destructor simply invalidates the node. More... | |
int | links () const |
Returns the number of links the node currently holds. More... | |
void | set_link (int link_number, node *new_link) |
Connects the node "new_link" to this node. More... | |
node * | get_link (int link_number) const |
Returns the node that is connected to the specified "link_number". More... | |
void | zap_link (int link_number) |
the specified link is removed from the node. More... | |
void | insert_link (int where, node *to_add=NULL_POINTER) |
adds a new link prior to the position specified in "where". More... | |
int | which (node *to_find) const |
locates the index where "to_find" lives in our list of links. More... | |
the basket class holds an object and supports connecting them as nodes.
the templated object is required to provide both a default constructor and a copy constructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |