SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::simulation::common::ChangeListener Class Reference

#include <ChangeListener.h>

Inheritance diagram for sofa::simulation::common::ChangeListener:

Public Attributes

std::set< core::objectmodel::BaseObject * > added
 
std::set< core::objectmodel::BaseObject * > removed
 

Public Member Functions

 ChangeListener ()
 
void addObject (Node *parent, core::objectmodel::BaseObject *object)
 
void removeObject (Node *, core::objectmodel::BaseObject *object)
 
bool changed ()
 
void reset ()
 
- Public Member Functions inherited from sofa::simulation::MutationListener
virtual ~MutationListener ()
 
virtual void sleepChanged (Node *node)
 
virtual void onBeginAddChild (Node *parent, Node *child)
 
virtual void onBeginRemoveChild (Node *parent, Node *child)
 
virtual void onBeginAddObject (Node *parent, core::objectmodel::BaseObject *object)
 
virtual void onBeginRemoveObject (Node *parent, core::objectmodel::BaseObject *object)
 
virtual void onBeginAddSlave (core::objectmodel::BaseObject *master, core::objectmodel::BaseObject *slave)
 
virtual void onBeginRemoveSlave (core::objectmodel::BaseObject *master, core::objectmodel::BaseObject *slave)
 
virtual void onEndAddChild (Node *parent, Node *child)
 
virtual void onEndRemoveChild (Node *parent, Node *child)
 
virtual void onEndAddObject (Node *parent, core::objectmodel::BaseObject *object)
 
virtual void onEndRemoveObject (Node *parent, core::objectmodel::BaseObject *object)
 
virtual void onEndAddSlave (core::objectmodel::BaseObject *master, core::objectmodel::BaseObject *slave)
 
virtual void onEndRemoveSlave (core::objectmodel::BaseObject *master, core::objectmodel::BaseObject *slave)
 

Attribute details

std::set<core::objectmodel::BaseObject *> sofa::simulation::common::ChangeListener::added
std::set<core::objectmodel::BaseObject*> sofa::simulation::common::ChangeListener::removed

Constructor details

sofa::simulation::common::ChangeListener::ChangeListener ( )
inline

Function details

void sofa::simulation::common::ChangeListener::addObject ( Node parent,
core::objectmodel::BaseObject object 
)
bool sofa::simulation::common::ChangeListener::changed ( )
void sofa::simulation::common::ChangeListener::removeObject ( Node ,
core::objectmodel::BaseObject object 
)
void sofa::simulation::common::ChangeListener::reset ( void  )