Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

phObjectNode Class Reference
[ListsThread Safe]

#include <phObjectList.h>

Inheritance diagram for phObjectNode:

phListNode phMutex phObject List of all members.

Detailed Description

The phObjectNode wraps most of the phListNode methods to provide a phObjectNode interface that doesn't require a user to always wrap the phListNode returned pointers to a phObjectNode pointer. The phObjectNode adds methods to set the phObject pointer that is packaged within the node. The autoDelete_on parameter is used to delete the phObjects in the phObjectNodes when delete is called on the phObjectNode. This allows one to add nodes to the list and forget about deleting the objects if it serves the code. Auto-deleting is disabled by default because the common case dictates that a user will add a phObject and then delete that object manually instead of letting the node do it.

phObjects have no means of comparision so they are more often than not just pushed onto the end of the list to allow some function to iterate over them and call some method.

Definition at line 52 of file phObjectList.h.

Public Member Functions

 phObjectNode ()
 phObjectNode (phObject *pobj, int autoDelete_on=0)
 ~phObjectNode ()
int setObject (phObject *obj)
phObjectgetObject ()
phObjectNodegetNextObject ()
phObjectNodegetPreviousObject ()
int enableAutoDelete ()
int disableAutoDelete ()

Protected Attributes

phObjectm_obj
int m_autoDelete


The documentation for this class was generated from the following files:



Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:45:03 2007 for phission by  doxygen 1.4.4