Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends
jafar::ddf::InfoContainer Class Reference

Class for manipulating information This class is a container class for communicating, storing information in a network of sensor nodes. More...


Detailed Description

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.

Author:
Pierre Lamon

Definition at line 20 of file infocontainer.hpp.

#include <infocontainer.hpp>

List of all members.

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 >
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)

Member Function Documentation

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 (

See also:
ComputeSerialSize() )

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:33 for Jafar by doxygen 1.7.6.1
LAAS-CNRS