sofa::simulation::CactusStackStorage Class Reference

Cactus Stack implementation of LocalStorage. More...

#include <CactusStackStorage.h>

Inheritance diagram for sofa::simulation::CactusStackStorage:

Inheritance graph
[legend]
Collaboration diagram for sofa::simulation::CactusStackStorage:

Collaboration graph
[legend]

Public Member Functions

 CactusStackStorage ()
void setParent (CactusStackStorage *parent)
void setChildren (CactusStackStorage *children)
CactusStackStorage * getParent ()
CactusStackStorage * getChildren ()
void push (void *data)
void * pop ()
void * top () const
bool empty () const

Protected Attributes

CactusStackStorage * up
 This point to the parent stack.
CactusStackStorage * down
 This point to the *array* of child stacks.
std::stack< void * > stack

Detailed Description

Cactus Stack implementation of LocalStorage.

See http://www.nist.gov/dads/HTML/cactusstack.html

Definition at line 41 of file CactusStackStorage.h.


Constructor & Destructor Documentation

sofa::simulation::CactusStackStorage::CactusStackStorage (  )  [inline]

Definition at line 48 of file CactusStackStorage.h.


Member Function Documentation

bool sofa::simulation::CactusStackStorage::empty (  )  const [virtual]

Implements sofa::simulation::LocalStorage.

Definition at line 54 of file CactusStackStorage.cpp.

References empty(), stack, and up.

Referenced by empty().

CactusStackStorage* sofa::simulation::CactusStackStorage::getChildren ( void   )  [inline]

Definition at line 64 of file CactusStackStorage.h.

References down.

CactusStackStorage* sofa::simulation::CactusStackStorage::getParent (  )  [inline]

Definition at line 60 of file CactusStackStorage.h.

References up.

void * sofa::simulation::CactusStackStorage::pop (  )  [virtual]

Implements sofa::simulation::LocalStorage.

Definition at line 37 of file CactusStackStorage.cpp.

References stack.

void sofa::simulation::CactusStackStorage::push ( void *  data  )  [virtual]

Implements sofa::simulation::LocalStorage.

Definition at line 33 of file CactusStackStorage.cpp.

References stack.

void sofa::simulation::CactusStackStorage::setChildren ( CactusStackStorage *  children  )  [inline]

Definition at line 56 of file CactusStackStorage.h.

References down.

void sofa::simulation::CactusStackStorage::setParent ( CactusStackStorage *  parent  )  [inline]

Definition at line 52 of file CactusStackStorage.h.

References up.

void * sofa::simulation::CactusStackStorage::top (  )  const [virtual]

Implements sofa::simulation::LocalStorage.

Definition at line 44 of file CactusStackStorage.cpp.

References stack, top(), and up.

Referenced by top().


Field Documentation

This point to the *array* of child stacks.

Definition at line 45 of file CactusStackStorage.h.

Referenced by getChildren(), and setChildren().

std::stack<void*> sofa::simulation::CactusStackStorage::stack [protected]

Definition at line 46 of file CactusStackStorage.h.

Referenced by empty(), pop(), push(), and top().

This point to the parent stack.

Definition at line 44 of file CactusStackStorage.h.

Referenced by empty(), getParent(), setParent(), and top().


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

Generated on Sun Nov 23 04:24:21 2008 for Sofa by  doxygen 1.5.7.1