TwiceAsNice  2019-02-18
Public Member Functions | Public Attributes | List of all members
Nice::PropertyBridgePlotBufferImpl< T > Struct Template Reference

#include <BridgePlotBuffer.h>

Inheritance diagram for Nice::PropertyBridgePlotBufferImpl< T >:
Inheritance graph
Collaboration diagram for Nice::PropertyBridgePlotBufferImpl< T >:
Collaboration graph

Public Member Functions

 PropertyBridgePlotBufferImpl (size_t _bufsize=1000, bool _localTime=false)
 
 PropertyBridgePlotBufferImpl (const std::string &_bufsize)
 
 PropertyBridgePlotBufferImpl (const PropertyBridgePlotBufferImpl< T > *_plot)
 
virtual void set (Nice::CompletionState _cs, const Nice::Any &_value, Nice::I64 _setterId, const Nice::DateVar &_date)
 
PropertyBridgePlotBufferclone ()
 
virtual size_t dataSetCount ()
 
 PropertyBridgePlotBufferImpl (size_t _bufsize=1000, bool _localTime=false)
 
 PropertyBridgePlotBufferImpl (const std::string &_bufsize)
 
 PropertyBridgePlotBufferImpl (const PropertyBridgePlotBufferImpl< T > *_plot)
 
virtual void set (Nice::CompletionState _cs, const Nice::Any &_value, Nice::I64 _setterId, const Nice::DateVar &_date)
 
PropertyBridgePlotBufferclone ()
 
virtual size_t dataSetCount ()
 
- Public Member Functions inherited from Nice::PropertyBridgePlotBuffer
 PropertyBridgePlotBuffer (size_t _bufsize=1000, bool _localTime=false)
 
 PropertyBridgePlotBuffer (const std::string &_param)
 
 PropertyBridgePlotBuffer (const PropertyBridgePlotBuffer *_buffer)
 
virtual ~PropertyBridgePlotBuffer ()
 
virtual void setBufferSize (Nice::I64 _size)
 
virtual void clear ()
 
virtual void getDataVector (std::vector< std::vector< double > > &_data)
 
double getMinData (size_t _index=0)
 
double getMaxData (size_t _index=0)
 
virtual std::string name () const
 return bridge name. More...
 
virtual std::string toString () const
 return bridge name. More...
 
virtual const std::string & type ()
 
virtual const std::string & identity ()
 return bridge id. More...
 
 PropertyBridgePlotBuffer (size_t _bufsize=1000, bool _localTime=false)
 
 PropertyBridgePlotBuffer (const std::string &_param)
 
 PropertyBridgePlotBuffer (const PropertyBridgePlotBuffer *_buffer)
 
virtual ~PropertyBridgePlotBuffer ()
 
virtual void setBufferSize (Nice::I64 _size)
 
virtual void clear ()
 
virtual void getDataVector (std::vector< std::vector< double > > &_data)
 
double getMinData (size_t _index=0)
 
double getMaxData (size_t _index=0)
 
virtual std::string name () const
 return bridge name. More...
 
virtual std::string toString () const
 return bridge name. More...
 
virtual const std::string & type ()
 
virtual const std::string & identity ()
 return bridge id. More...
 
- Public Member Functions inherited from Nice::PropertyBridgeBuffer
 PropertyBridgeBuffer (Nice::I64 _bufsize=1000, bool _localTime=false)
 Contructor. More...
 
 PropertyBridgeBuffer (const std::string &_param)
 String based contructor. More...
 
 PropertyBridgeBuffer (const PropertyBridgeBuffer *_buffer)
 Copyconstructor. More...
 
virtual ~PropertyBridgeBuffer ()
 Destructor. More...
 
virtual void init (const PropertyPtr &_property)
 Initialize the buffer with a Property to buffer and Attributes which contain the initial buffer size. More...
 
template<typename E >
std::vector< E > getDataVector ()
 Get the vectorized data as a vector of Es. More...
 
std::vector< Nice::AnygetDataVector ()
 Get the vectorized data as a vector of Nice:::Any. More...
 
virtual std::vector< Nice::DategetTimeVector ()
 Get the vectorized time stamps as a vector of Nice::Date. More...
 
virtual Nice::I64 bufferSize ()
 Get the buffer size in microseconds. More...
 
void insertSorted (const Nice::Date &_date, const Nice::Any &_value)
 Insert new data according to a timestamp. More...
 
 PropertyBridgeBuffer (Nice::I64 _bufsize=1000, bool _localTime=false)
 Contructor. More...
 
 PropertyBridgeBuffer (const std::string &_param)
 String based contructor. More...
 
 PropertyBridgeBuffer (const PropertyBridgeBuffer *_buffer)
 Copyconstructor. More...
 
virtual ~PropertyBridgeBuffer ()
 Destructor. More...
 
virtual void init (const PropertyPtr &_property)
 Initialize the buffer with a Property to buffer and Attributes which contain the initial buffer size. More...
 
template<typename E >
std::vector< E > getDataVector ()
 Get the vectorized data as a vector of Es. More...
 
std::vector< Nice::AnygetDataVector ()
 Get the vectorized data as a vector of Nice:::Any. More...
 
virtual std::vector< Nice::DategetTimeVector ()
 Get the vectorized time stamps as a vector of Nice::Date. More...
 
virtual Nice::I64 bufferSize ()
 Get the buffer size in microseconds. More...
 
void insertSorted (const Nice::Date &_date, const Nice::Any &_value)
 Insert new data according to a timestamp. More...
 
- Public Member Functions inherited from Nice::PropertyBridge
 PropertyBridge ()
 Constructor. More...
 
virtual ~PropertyBridge ()
 Destructor. More...
 
virtual void disconnect ()
 Abstract function to connect an instance of THIS bridge to another bridge. More...
 
 PropertyBridge ()
 Constructor. More...
 
virtual ~PropertyBridge ()
 Destructor. More...
 
virtual void disconnect ()
 Abstract function to connect an instance of THIS bridge to another bridge. More...
 

Public Attributes

m_avarage
 
- Public Attributes inherited from Nice::PropertyBridgePlotBuffer
std::vector< std::deque< double > > * s_data
 
- Public Attributes inherited from Nice::PropertyBridgeBuffer
std::deque< Nice::Datem_time
 
std::deque< Nice::Anym_data
 
Nice::I64 m_bufsize
 
bool m_localTime
 
std::string m_identity
 

Additional Inherited Members

- Protected Attributes inherited from Nice::PropertyBridgePlotBuffer
Nice::Mutex m_mutex
 
- Protected Attributes inherited from Nice::PropertyBridgeBuffer
std::string m_type
 
- Protected Attributes inherited from Nice::PropertyBridge
Nice::Propertym_property
 

Constructor & Destructor Documentation

◆ PropertyBridgePlotBufferImpl() [1/6]

template<typename T >
Nice::PropertyBridgePlotBufferImpl< T >::PropertyBridgePlotBufferImpl ( size_t  _bufsize = 1000,
bool  _localTime = false 
)
inline
Parameters

◆ PropertyBridgePlotBufferImpl() [2/6]

template<typename T >
Nice::PropertyBridgePlotBufferImpl< T >::PropertyBridgePlotBufferImpl ( const std::string &  _bufsize)
inline
Parameters

◆ PropertyBridgePlotBufferImpl() [3/6]

Parameters

◆ PropertyBridgePlotBufferImpl() [4/6]

template<typename T >
Nice::PropertyBridgePlotBufferImpl< T >::PropertyBridgePlotBufferImpl ( size_t  _bufsize = 1000,
bool  _localTime = false 
)
inline
Parameters

◆ PropertyBridgePlotBufferImpl() [5/6]

template<typename T >
Nice::PropertyBridgePlotBufferImpl< T >::PropertyBridgePlotBufferImpl ( const std::string &  _bufsize)
inline
Parameters

◆ PropertyBridgePlotBufferImpl() [6/6]

Parameters

Member Function Documentation

◆ clone() [1/2]

template<typename T >
PropertyBridgePlotBuffer* Nice::PropertyBridgePlotBufferImpl< T >::clone ( )
inlinevirtual
Parameters

Implements Nice::PropertyBridgePlotBuffer.

◆ clone() [2/2]

template<typename T >
PropertyBridgePlotBuffer* Nice::PropertyBridgePlotBufferImpl< T >::clone ( )
inlinevirtual
Parameters

Implements Nice::PropertyBridgePlotBuffer.

◆ dataSetCount() [1/2]

template<typename T >
virtual size_t Nice::PropertyBridgePlotBufferImpl< T >::dataSetCount ( )
inlinevirtual
Parameters

Implements Nice::PropertyBridgePlotBuffer.

◆ dataSetCount() [2/2]

template<typename T >
virtual size_t Nice::PropertyBridgePlotBufferImpl< T >::dataSetCount ( )
inlinevirtual
Parameters

Implements Nice::PropertyBridgePlotBuffer.

◆ set() [1/2]

template<typename T >
virtual void Nice::PropertyBridgePlotBufferImpl< T >::set ( Nice::CompletionState  _cs,
const Nice::Any _value,
Nice::I64  _setterId,
const Nice::DateVar _date 
)
inlinevirtual
Parameters

Reimplemented from Nice::PropertyBridgeBuffer.

◆ set() [2/2]

template<typename T >
virtual void Nice::PropertyBridgePlotBufferImpl< T >::set ( Nice::CompletionState  _cs,
const Nice::Any _value,
Nice::I64  _setterId,
const Nice::DateVar _date 
)
inlinevirtual
Parameters

Reimplemented from Nice::PropertyBridgeBuffer.

Member Data Documentation

◆ m_avarage

template<typename T >
T Nice::PropertyBridgePlotBufferImpl< T >::m_avarage

The documentation for this struct was generated from the following file: