NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgSenseable Class Reference

#include <tgSenseable.h>

Inheritance diagram for tgSenseable:

Public Member Functions

virtual std::vector
< tgSenseable * > 
getSenseableDescendants () const
 

Detailed Description

This class is used to abstract away the class of pointers that can be passed around in the tgSensors infrastructure. For now, it's really only tgModel that will inherit from it.

Definition at line 38 of file tgSenseable.h.

Member Function Documentation

std::vector< tgSenseable * > tgSenseable::getSenseableDescendants ( ) const
virtual

In order to create sensors for a whole hierarchy of senseable objects, sense-able objects need to have references to thei children. This will be used in a tgDataManager's setup and step functions. For now, this 'should' be handled by tgModel's getDescendants function.

Return an empty vector of descendants. It's up to child classes to re-implement this.

Reimplemented in tgModel.

Definition at line 37 of file tgSenseable.cpp.


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