|
Jafar
|
Class for manipulating information This class is a container class for communicating, storing information in a network of sensor nodes. More...
Class for manipulating information This class is a container class for communicating, storing information in a network of sensor nodes.
It contains an information vector, an information matrix (associated with the information vector) and a timestamp.
Definition at line 20 of file infocontainer.hpp.
#include <infocontainer.hpp>
Public Member Functions | |
| InfoContainer (unsigned short sv_size) | |
| InfoContainer (InfoContainer const &other) | |
| InfoContainer (VEC const &y, MSYM const &Y, time const &t) | |
| void | SetAll (VEC const &y, MSYM const &Y, time const &t) |
| void | ClearAll () |
| void | SetTime (time const &t) |
| MSYM const & | GetInfoMat () const |
| VEC const & | Getinfo () const |
| time const & | GetTime () const |
| unsigned short | GetSize () const |
| unsigned int | GetSerialSize () const |
| unsigned int | ComputeSerialSize (unsigned short dim) const |
| Compute the size of the buffer after serialization (in bytes) | |
| unsigned int | Serialize (unsigned char *buf) const |
| Serialize the class content into buf. | |
| unsigned int | UnSerialize (unsigned char *buf) |
| Recover fields from a buffer containing serialized data. | |
| void | operator= (InfoContainer const &other) |
| InfoContainer | operator- (InfoContainer const &other) const |
| InfoContainer | operator+ (InfoContainer const &other) const |
| bool | operator< (InfoContainer const &other) const |
| bool | operator> (InfoContainer const &other) const |
| bool | CompareInfo (InfoContainer const &other) const |
| bool | CompareAll (InfoContainer const &other) const |
Public Attributes | |
| VEC | m_info |
| MSYM | m_InfoMat |
| time | m_time |
Private Member Functions | |
| void | Resize (unsigned short new_size) |
| template<typename T > | |
| T | SumArithmeticSerie (int n, T Uo, T r) const |
Private Attributes | |
| unsigned int | m_ser_size |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, InfoContainer const &other) |
| unsigned int jafar::ddf::InfoContainer::Serialize | ( | unsigned char * | buf | ) | const |
Serialize the class content into buf.
Place the information vector first, then the information matrix (only the upper triangle)\ and finally the timestamp. buf should have a sufficient size to accomodate output (
| Generated on Wed Oct 15 2014 00:37:33 for Jafar by doxygen 1.7.6.1 |
|