Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields  

clawsoft::List< T >::nodeT Class Reference

#include <List.h>

Inheritance diagram for clawsoft::List< T >::nodeT:

Inheritance graph
[legend]
Collaboration diagram for clawsoft::List< T >::nodeT:

Collaboration graph
[legend]

Detailed Description

template<class T>
class clawsoft::List< T >::nodeT

This subclass represents a node in the list it stores the information en the data member and has a pointer to the following node int the member next.


Public Methods

 nodeT ()
 This is the default constructor, initializes its data to zero (NULL) and the next node to none by making it point to NULL.

 nodeT (T d)
 This is the default constructor, initializes its data to d and the next node to none by making it point to NULL.

unsigned int size ()
 Returns the size of the given list.

const char * getClassName ()
 Returns the name of the current class.


Static Public Methods

int installedCPUs ()
 This will return how many CPUs are installed in the system.

double cpuSpeed ()
 This will return the CPU speed in megahertz.

int totalMemory ()
 Will return the total amount of system memory.

int freeMemory ()
 Will return the total amount of free system memory.

void usleep (Uint32 usec)
 Will freeze the software for usec microseconds.


Data Fields

data
 Stores the information.

nodeT * next
 Keeps a pointer to the next node.

nodeT * before
 Keeps a pointer to the node befor this.


Protected Methods

void setClassName (const char *n)
 Call this method when you need to set the name of the class you're creating, typically in it's constructor, remember that you must set the classname for every class you create, that way you can have more information while debugging.


Protected Attributes

unsigned int num_data
 Keeps a count of the number of elements contained in the list.


Constructor & Destructor Documentation

template<class T>
clawsoft::List< T >::nodeT::nodeT   [inline]
 

This is the default constructor, initializes its data to zero (NULL) and the next node to none by making it point to NULL.

template<class T>
clawsoft::List< T >::nodeT::nodeT   d [inline]
 

This is the default constructor, initializes its data to d and the next node to none by making it point to NULL.


Member Function Documentation

double clawsoft::System::cpuSpeed   [static, inherited]
 

This will return the CPU speed in megahertz.

int clawsoft::System::freeMemory   [static, inherited]
 

Will return the total amount of free system memory.

const char * clawsoft::Object::getClassName   [inherited]
 

Returns the name of the current class.

int clawsoft::System::installedCPUs   [static, inherited]
 

This will return how many CPUs are installed in the system.

void clawsoft::Object::setClassName const char *    n [protected, inherited]
 

Call this method when you need to set the name of the class you're creating, typically in it's constructor, remember that you must set the classname for every class you create, that way you can have more information while debugging.

unsigned int clawsoft::Container::size   [inline, inherited]
 

Returns the size of the given list.

int clawsoft::System::totalMemory   [static, inherited]
 

Will return the total amount of system memory.

void clawsoft::System::usleep Uint32    usec [static, inherited]
 

Will freeze the software for usec microseconds.


Field Documentation

template<class T>
nodeT* clawsoft::List< T >::nodeT::before
 

Keeps a pointer to the node befor this.

template<class T>
T clawsoft::List< T >::nodeT::data
 

Stores the information.

template<class T>
nodeT* clawsoft::List< T >::nodeT::next
 

Keeps a pointer to the next node.

unsigned int clawsoft::Container::num_data [protected, inherited]
 

Keeps a count of the number of elements contained in the list.


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

Authors:

Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara

Powered by:

SourceForgeLogo