Public Member Functions | Protected Attributes | List of all members
dynamicgraph::SignalBase< Time > Class Template Reference

The base class for signals: not to be used as such. More...

#include <fwd.hh>

Inheritance diagram for dynamicgraph::SignalBase< Time >:
Inheritance graph
[legend]

Public Member Functions

 SignalBase (std::string name="")
 
virtual ~SignalBase ()
 
Time
virtual const Time & getTime () const
 
virtual void setTime (const Time &t)
 
const bool & getReady () const
 
const std::string & getName () const
 
void getClassName (std::string &aClassName) const
 
virtual void setPeriodTime (const Time &)
 
virtual Time getPeriodTime () const
 
Dependencies
virtual void addDependency (const SignalBase< Time > &)
 
virtual void removeDependency (const SignalBase< Time > &)
 
virtual void clearDependencies ()
 
virtual bool needUpdate (const Time &) const
 
void setReady (const bool sready=true)
 
virtual std::ostream & writeGraph (std::ostream &os) const
 
virtual std::ostream & displayDependencies (std::ostream &os, const int=-1, std::string space="", std::string next1="", std::string="") const
 
Plug
virtual void plug (SignalBase< Time > *sigarg)
 
virtual void unplug ()
 
virtual bool isPlugged () const
 
virtual SignalBase< Time > * getPluged () const
 
virtual void setConstantDefault ()
 
Set
virtual void set (std::istringstream &)
 
virtual void get (std::ostream &) const
 
virtual void recompute (const Time &)
 
virtual void trace (std::ostream &) const
 
Display
virtual std::ostream & display (std::ostream &os) const
 
std::string shortName () const
 
Information providers
virtual void ExtractNodeAndLocalNames (std::string &LocalName, std::string &NodeName) const
 
Test
virtual void checkCompatibility ()
 

Protected Attributes

std::string name
 
bool ready
 
Time signalTime
 

Detailed Description

template<class Time>
class dynamicgraph::SignalBase< Time >

The base class for signals: not to be used as such.

Signal values can be accessed programmatically using the access () or accessCopy () methods; the former directly accesses the value of the signal, which can involve an extra computation, while the latter accesses a cached value, or 'copy'.

Definition at line 51 of file fwd.hh.

Constructor & Destructor Documentation

◆ SignalBase()

template<class Time>
dynamicgraph::SignalBase< Time >::SignalBase ( std::string  name = "")
inlineexplicit

Definition at line 29 of file signal-base.h.

◆ ~SignalBase()

template<class Time>
virtual dynamicgraph::SignalBase< Time >::~SignalBase ( )
inlinevirtual

Definition at line 32 of file signal-base.h.

Member Function Documentation

◆ addDependency()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::addDependency ( const SignalBase< Time > &  )
inlinevirtual

◆ checkCompatibility()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::checkCompatibility ( )
inlinevirtual

◆ clearDependencies()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::clearDependencies ( )
inlinevirtual

◆ display()

template<class Time>
virtual std::ostream& dynamicgraph::SignalBase< Time >::display ( std::ostream &  os) const
inlinevirtual

◆ displayDependencies()

template<class Time>
virtual std::ostream& dynamicgraph::SignalBase< Time >::displayDependencies ( std::ostream &  os,
const int  = -1,
std::string  space = "",
std::string  next1 = "",
std::string  = "" 
) const
inlinevirtual

◆ ExtractNodeAndLocalNames()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::ExtractNodeAndLocalNames ( std::string &  LocalName,
std::string &  NodeName 
) const
inlinevirtual

Definition at line 174 of file signal-base.h.

◆ get()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::get ( std::ostream &  ) const
inlinevirtual

◆ getClassName()

template<class Time>
void dynamicgraph::SignalBase< Time >::getClassName ( std::string &  aClassName) const
inline

Definition at line 44 of file signal-base.h.

◆ getName()

template<class Time>
const std::string& dynamicgraph::SignalBase< Time >::getName ( ) const
inline

Definition at line 42 of file signal-base.h.

◆ getPeriodTime()

template<class Time>
virtual Time dynamicgraph::SignalBase< Time >::getPeriodTime ( ) const
inlinevirtual

◆ getPluged()

template<class Time>
virtual SignalBase<Time>* dynamicgraph::SignalBase< Time >::getPluged ( ) const
inlinevirtual

◆ getReady()

template<class Time>
const bool& dynamicgraph::SignalBase< Time >::getReady ( ) const
inline

Definition at line 40 of file signal-base.h.

◆ getTime()

template<class Time>
virtual const Time& dynamicgraph::SignalBase< Time >::getTime ( ) const
inlinevirtual

◆ isPlugged()

template<class Time>
virtual bool dynamicgraph::SignalBase< Time >::isPlugged ( ) const
inlinevirtual

◆ needUpdate()

template<class Time>
virtual bool dynamicgraph::SignalBase< Time >::needUpdate ( const Time &  ) const
inlinevirtual

◆ plug()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::plug ( SignalBase< Time > *  sigarg)
inlinevirtual

◆ recompute()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::recompute ( const Time &  )
inlinevirtual

◆ removeDependency()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::removeDependency ( const SignalBase< Time > &  )
inlinevirtual

◆ set()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::set ( std::istringstream &  )
inlinevirtual

◆ setConstantDefault()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::setConstantDefault ( )
inlinevirtual

◆ setPeriodTime()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::setPeriodTime ( const Time &  )
inlinevirtual

◆ setReady()

template<class Time>
void dynamicgraph::SignalBase< Time >::setReady ( const bool  sready = true)
inline

Definition at line 65 of file signal-base.h.

◆ setTime()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::setTime ( const Time &  t)
inlinevirtual

Definition at line 38 of file signal-base.h.

◆ shortName()

template<class Time>
std::string dynamicgraph::SignalBase< Time >::shortName ( ) const
inline

Definition at line 159 of file signal-base.h.

◆ trace()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::trace ( std::ostream &  ) const
inlinevirtual

◆ unplug()

template<class Time>
virtual void dynamicgraph::SignalBase< Time >::unplug ( )
inlinevirtual

◆ writeGraph()

template<class Time>
virtual std::ostream& dynamicgraph::SignalBase< Time >::writeGraph ( std::ostream &  os) const
inlinevirtual

Member Data Documentation

◆ name

template<class Time>
std::string dynamicgraph::SignalBase< Time >::name
protected

Definition at line 200 of file signal-base.h.

◆ ready

template<class Time>
bool dynamicgraph::SignalBase< Time >::ready
protected

Definition at line 202 of file signal-base.h.

◆ signalTime

template<class Time>
Time dynamicgraph::SignalBase< Time >::signalTime
protected

Definition at line 201 of file signal-base.h.


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


dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Sun Jun 25 2023 02:06:03