ReFRACtor
state_vector_observer.h
Go to the documentation of this file.
1 #ifndef STATE_VECTOR_OBSERVER
2 #define STATE_VECTOR_OBSERVER
3 
4 #include "state_vector.h"
5 
6 namespace FullPhysics {
7 /****************************************************************/
15 class StateVectorObserver : public Printable<StateVectorObserver>,
16  public Observer<StateVector> {
17 public:
18  virtual ~StateVectorObserver() {}
19 
20 //-----------------------------------------------------------------------
24 //-----------------------------------------------------------------------
25 
26  virtual void mark_used(const StateVector& Sv,
27  blitz::Array<bool, 1>& Used) const {}
28 
29 //-----------------------------------------------------------------------
32 //-----------------------------------------------------------------------
33 
34  virtual void state_vector_name(const StateVector& Sv,
35  blitz::Array<std::string, 1>& Sv_name) const {}
36 
37  virtual void print(std::ostream& Os) const { Os << "StateVectorObserver";}
38 };
39 }
40 
41 #endif
virtual void mark_used(const StateVector &Sv, blitz::Array< bool, 1 > &Used) const
Mark elements that we are actively using (i.e., that aren&#39;t ignored).
This is an observer of a StateVector.
This is a Mixin for classes that can be printed.
Definition: printable.h:24
virtual void print(std::ostream &Os) const
This handles informing a set of interested objects when the state vector has updated.
Definition: state_vector.h:16
virtual void state_vector_name(const StateVector &Sv, blitz::Array< std::string, 1 > &Sv_name) const
Update any portion of the list of the state vector names that apply to this object.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
Simple Mixin to be and Observer of another object of class T.
Definition: observer.h:29

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:11