GCC Code Coverage Report


Directory: ./
File: include/sot/core/vector-constant.hh
Date: 2024-08-13 12:13:25
Exec Total Coverage
Lines: 0 2 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /*
2 * Copyright 2010,
3 * François Bleibel,
4 * Olivier Stasse,
5 *
6 * CNRS/AIST
7 *
8 */
9
10 #ifndef DYNAMICGRAPH_SOT_VECTOR_CONSTANT_H
11 #define DYNAMICGRAPH_SOT_VECTOR_CONSTANT_H
12
13 #include <dynamic-graph/all-signals.h>
14 #include <dynamic-graph/entity.h>
15
16 /* Matrix */
17 #include <dynamic-graph/linear-algebra.h>
18
19 /* --------------------------------------------------------------------- */
20 /* --- VECTOR ---------------------------------------------------------- */
21 /* --------------------------------------------------------------------- */
22 namespace dynamicgraph {
23 namespace sot {
24
25 namespace command {
26 namespace vectorConstant {
27 class Resize;
28 }
29 } // namespace command
30
31 class VectorConstant : public Entity {
32 friend class command::vectorConstant::Resize;
33 int rows;
34
35 public:
36 static const std::string CLASS_NAME;
37 virtual const std::string &getClassName(void) const { return CLASS_NAME; }
38
39 VectorConstant(const std::string &name);
40
41 virtual ~VectorConstant(void) {}
42
43 SignalTimeDependent<dynamicgraph::Vector, int> SOUT;
44
45 /// \brief Set value of vector (and therefore of output signal)
46 void setValue(const dynamicgraph::Vector &inValue);
47 };
48
49 } // namespace sot
50 } // namespace dynamicgraph
51
52 #endif // DYNAMICGRAPH_SOT_VECTOR_CONSTANT_H
53