Barebones Static CTR Library 2.1.4
Loading...
Searching...
No Matches
Observer.hpp
1#pragma once
2
3#include <blaze/Math.h>
4#include <vector>
5
6typedef blaze::StaticVector<double, 15UL> state_type;
7
12{
13private:
17 std::vector<state_type> &m_states;
18
22 std::vector<double> &m_arcLength;
23
24public:
28 Observer() = delete;
29
37 Observer(std::vector<state_type> &states, std::vector<double> &s) : m_states(states), m_arcLength(s) {}
38
42 ~Observer() = default;
43
50 void operator()(const state_type &states, double s);
51};
Class for implementing an ODEInt::Observer for storing the states at each arc-lengths along the CTR b...
Definition Observer.hpp:12
Observer()=delete
Removes the default Observer Class constructor.
std::vector< state_type > & m_states
A vector containing all CTR states along the entire backbone.
Definition Observer.hpp:17
void operator()(const state_type &states, double s)
Functor that overloads the constructor's signature and implements the method for capturing data from ...
Definition Observer.cpp:7
~Observer()=default
Destroys the Observer object.
std::vector< double > & m_arcLength
A vector containing all discrete arc-length points along the backbone, representing the shape of the ...
Definition Observer.hpp:22
Observer(std::vector< state_type > &states, std::vector< double > &s)
Implements the overloaded constructor for the Observer class. The Observer is responsible for capturi...
Definition Observer.hpp:37