VectorEntity
1.1.0
Medical Data Segmentation Toolkit
|
A simple container of objects derived from MCListNode implemented as a doubly-linked list. More...
#include <mclist.h>
Public Types | |
typedef NODE_TYPE | MT_NODE |
Node type. | |
Public Member Functions | |
NODE_TYPE * | GetFirst () |
Returns pointer to the first node in the list, NULL in case of the empty list. | |
NODE_TYPE * | GetLast () |
Returns pointer to the first node in the list, NULL in case of the empty list. | |
int | GetNumber () const |
Returns the number of nodes in the list. | |
MCList () | |
Default constructor. | |
~MCList () | |
An empty destructor! | |
Protected Member Functions | |
void | AddNode (NODE_TYPE *new_node) |
Adds a new node at the end of the list. | |
void | ClearAllNode () |
Clears the list of nodes. | |
void | EraseNode (NODE_TYPE *erase_node) |
Removes a given node from the list. | |
Protected Attributes | |
NODE_TYPE * | first_node |
Pointer to the first node. | |
NODE_TYPE * | last_node |
Pointer to the last node in the list. | |
int | list_node_number |
Number of nodes in the list. |
A simple container of objects derived from MCListNode implemented as a doubly-linked list.
typedef NODE_TYPE vctl::MCList< NODE_TYPE >::MT_NODE |
Node type.
vctl::MCList< NODE_TYPE >::MCList | ( | ) | [inline] |
Default constructor.
vctl::MCList< NODE_TYPE >::~MCList | ( | ) | [inline] |
An empty destructor!
void vctl::MCList< NODE_TYPE >::AddNode | ( | NODE_TYPE * | new_node | ) | [inline, protected] |
Adds a new node at the end of the list.
void vctl::MCList< NODE_TYPE >::ClearAllNode | ( | ) | [inline, protected] |
Clears the list of nodes.
void vctl::MCList< NODE_TYPE >::EraseNode | ( | NODE_TYPE * | erase_node | ) | [inline, protected] |
Removes a given node from the list.
NODE_TYPE* vctl::MCList< NODE_TYPE >::GetFirst | ( | ) | [inline] |
Returns pointer to the first node in the list, NULL in case of the empty list.
NODE_TYPE* vctl::MCList< NODE_TYPE >::GetLast | ( | ) | [inline] |
Returns pointer to the first node in the list, NULL in case of the empty list.
int vctl::MCList< NODE_TYPE >::GetNumber | ( | ) | const [inline] |
Returns the number of nodes in the list.
NODE_TYPE* vctl::MCList< NODE_TYPE >::first_node [protected] |
Pointer to the first node.
NODE_TYPE* vctl::MCList< NODE_TYPE >::last_node [protected] |
Pointer to the last node in the list.
int vctl::MCList< NODE_TYPE >::list_node_number [protected] |
Number of nodes in the list.