TwiceAsNice  2019-02-18
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Nice::PropertyBridgePlotBuffer Struct Referenceabstract

#include <BridgePlotBuffer.h>

Inheritance diagram for Nice::PropertyBridgePlotBuffer:
Inheritance graph
Collaboration diagram for Nice::PropertyBridgePlotBuffer:
Collaboration graph

Public Member Functions

 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 size_t dataSetCount ()=0
 
PropertyBridgePlotBufferclone ()=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 size_t dataSetCount ()=0
 
PropertyBridgePlotBufferclone ()=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...
 
virtual void set (Nice::CompletionState, const Nice::Any &_value, Nice::I64, const Nice::DateVar &_date)
 Append new data to the buffer. 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...
 
virtual void set (Nice::CompletionState, const Nice::Any &_value, Nice::I64, const Nice::DateVar &_date)
 Append new data to the buffer. 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

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
 

Protected Attributes

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

◆ PropertyBridgePlotBuffer() [1/6]

Nice::PropertyBridgePlotBuffer::PropertyBridgePlotBuffer ( size_t  _bufsize = 1000,
bool  _localTime = false 
)
inline
Parameters

◆ PropertyBridgePlotBuffer() [2/6]

Nice::PropertyBridgePlotBuffer::PropertyBridgePlotBuffer ( const std::string &  _param)
inline
Parameters

◆ PropertyBridgePlotBuffer() [3/6]

Nice::PropertyBridgePlotBuffer::PropertyBridgePlotBuffer ( const PropertyBridgePlotBuffer _buffer)
inline
Parameters

◆ ~PropertyBridgePlotBuffer() [1/2]

virtual Nice::PropertyBridgePlotBuffer::~PropertyBridgePlotBuffer ( )
inlinevirtual
Parameters

◆ PropertyBridgePlotBuffer() [4/6]

Nice::PropertyBridgePlotBuffer::PropertyBridgePlotBuffer ( size_t  _bufsize = 1000,
bool  _localTime = false 
)
inline
Parameters

◆ PropertyBridgePlotBuffer() [5/6]

Nice::PropertyBridgePlotBuffer::PropertyBridgePlotBuffer ( const std::string &  _param)
inline
Parameters

◆ PropertyBridgePlotBuffer() [6/6]

Nice::PropertyBridgePlotBuffer::PropertyBridgePlotBuffer ( const PropertyBridgePlotBuffer _buffer)
inline
Parameters

◆ ~PropertyBridgePlotBuffer() [2/2]

virtual Nice::PropertyBridgePlotBuffer::~PropertyBridgePlotBuffer ( )
inlinevirtual
Parameters

Member Function Documentation

◆ clear() [1/2]

virtual void Nice::PropertyBridgePlotBuffer::clear ( )
inlinevirtual
Parameters

Reimplemented from Nice::PropertyBridgeBuffer.

◆ clear() [2/2]

virtual void Nice::PropertyBridgePlotBuffer::clear ( void  )
inlinevirtual
Parameters

Reimplemented from Nice::PropertyBridgeBuffer.

◆ clone() [1/2]

PropertyBridgePlotBuffer* Nice::PropertyBridgePlotBuffer::clone ( )
pure virtual

◆ clone() [2/2]

PropertyBridgePlotBuffer* Nice::PropertyBridgePlotBuffer::clone ( )
pure virtual

◆ dataSetCount() [1/2]

virtual size_t Nice::PropertyBridgePlotBuffer::dataSetCount ( )
pure virtual

◆ dataSetCount() [2/2]

virtual size_t Nice::PropertyBridgePlotBuffer::dataSetCount ( )
pure virtual

◆ getDataVector() [1/2]

virtual void Nice::PropertyBridgePlotBuffer::getDataVector ( std::vector< std::vector< double > > &  _data)
inlinevirtual
Parameters

◆ getDataVector() [2/2]

virtual void Nice::PropertyBridgePlotBuffer::getDataVector ( std::vector< std::vector< double > > &  _data)
inlinevirtual
Parameters

◆ getMaxData() [1/2]

double Nice::PropertyBridgePlotBuffer::getMaxData ( size_t  _index = 0)
inline
Parameters

◆ getMaxData() [2/2]

double Nice::PropertyBridgePlotBuffer::getMaxData ( size_t  _index = 0)
inline
Parameters

◆ getMinData() [1/2]

double Nice::PropertyBridgePlotBuffer::getMinData ( size_t  _index = 0)
inline
Parameters

◆ getMinData() [2/2]

double Nice::PropertyBridgePlotBuffer::getMinData ( size_t  _index = 0)
inline
Parameters

◆ identity() [1/2]

virtual const std::string& Nice::PropertyBridgePlotBuffer::identity ( )
inlinevirtual

return bridge id.

Returns
id.

Reimplemented from Nice::PropertyBridgeBuffer.

◆ identity() [2/2]

virtual const std::string& Nice::PropertyBridgePlotBuffer::identity ( )
inlinevirtual

return bridge id.

Returns
id.

Reimplemented from Nice::PropertyBridgeBuffer.

◆ name() [1/2]

virtual std::string Nice::PropertyBridgePlotBuffer::name ( ) const
inlinevirtual

return bridge name.

Returns
Stringified Property.

Reimplemented from Nice::PropertyBridgeBuffer.

◆ name() [2/2]

virtual std::string Nice::PropertyBridgePlotBuffer::name ( ) const
inlinevirtual

return bridge name.

Returns
Stringified Property.

Reimplemented from Nice::PropertyBridgeBuffer.

◆ setBufferSize() [1/2]

virtual void Nice::PropertyBridgePlotBuffer::setBufferSize ( Nice::I64  _size)
inlinevirtual
Parameters

Reimplemented from Nice::PropertyBridgeBuffer.

◆ setBufferSize() [2/2]

virtual void Nice::PropertyBridgePlotBuffer::setBufferSize ( Nice::I64  _size)
inlinevirtual
Parameters

Reimplemented from Nice::PropertyBridgeBuffer.

◆ toString() [1/2]

virtual std::string Nice::PropertyBridgePlotBuffer::toString ( ) const
inlinevirtual

return bridge name.

Returns
Stringified Property.

Reimplemented from Nice::PropertyBridgeBuffer.

◆ toString() [2/2]

virtual std::string Nice::PropertyBridgePlotBuffer::toString ( ) const
inlinevirtual

return bridge name.

Returns
Stringified Property.

Reimplemented from Nice::PropertyBridgeBuffer.

◆ type() [1/2]

virtual const std::string& Nice::PropertyBridgePlotBuffer::type ( )
inlinevirtual

Reimplemented from Nice::PropertyBridgeBuffer.

◆ type() [2/2]

virtual const std::string& Nice::PropertyBridgePlotBuffer::type ( )
inlinevirtual

Reimplemented from Nice::PropertyBridgeBuffer.

Member Data Documentation

◆ m_mutex

Nice::Mutex Nice::PropertyBridgePlotBuffer::m_mutex
protected

Mutex

◆ s_data

std::vector< std::deque< double > > * Nice::PropertyBridgePlotBuffer::s_data

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