Template Class for ignoring. More...

#include "rdm_time_series_dead_end.h"

Public Member Functions

uint8_t * serialize (uint8_t *buffer)
uint8_t * unserialize (uint8_t *buffer)
RDM_RETCODE init (RDM_DB)
Initialize this object. More...
void reset (void)
Reset this object. More...
RDM_RETCODE flush_value (uint32_t=1, RDM::DB::TRANSACTIONAL_T=RDM::DB::NOT_TRANSACTIONAL)
Flush this object. More...
RDM_RETCODE flush_stats (uint32_t=1, RDM::DB::TRANSACTIONAL_T=RDM::DB::NOT_TRANSACTIONAL)
Flush this object. More...
RDM_RETCODE flush_range (uint32_t=1, RDM::DB::TRANSACTIONAL_T=RDM::DB::NOT_TRANSACTIONAL)
Flush this object. More...
template<class SOURCE_VALUE_T >
RDM_RETCODE put_value (SOURCE_VALUE_T *, RDM::DB::TRANSACTIONAL_T=RDM::DB::NOT_TRANSACTIONAL)
Template method for receiving a data value. More...
template<class SOURCE_STATS_T >
RDM_RETCODE put_stats (SOURCE_STATS_T *, RDM::DB::TRANSACTIONAL_T=RDM::DB::NOT_TRANSACTIONAL)
Template method for receiving statistics. More...
template<class SOURCE_RANGE_T >
RDM_RETCODE put_range (SOURCE_RANGE_T *, RDM::DB::TRANSACTIONAL_T=RDM::DB::NOT_TRANSACTIONAL)
Template method for receiving ranges. More...

Static Public Member Functions

constexpr static int get_serialize_size (void)
Get the size of a buffer for serialization to hold its state. More...

Protected Member Functions

uint32_t init_tables_to_write_lock (RDM_TABLE_ID *)
IDs of the tables where rows are inserted. More...
uint32_t init_tables_to_read_lock (RDM_TABLE_ID *)
IDs of the tables where rows are read. More...
void unput (void)
Undo a previous put operation. More...
void unflush (void)
Undo a previous flush operation. More...

Static Protected Member Functions

constexpr static int number_of_tables_to_write_lock (void)
Number of tables where rows are inserted. More...
constexpr static int number_of_tables_to_read_lock (void)
Number of tables where rows are read. More...

Friends

template<class ANY_NEXT >
class RDM::DB::transaction
template<class ANY_NEXT_1 , class ANY_NEXT_2 >
class split
template<uint32_t ANY_N, class ANY_RANGE_T , class ANY_NEXT >
class collect
template<uint32_t ANY_N, class ANY_RANGE_T , class ANY_INDATA_T , class ANY_NEXT >
class fft
template<uint32_t ANY_N, class ANY_AGGREGATE_T , class ANY_AGG_ELEMENT_T , class ANY_NEXT >
class mean
template<class ANY_RATIO , class ANY_NEXT >
class scale
template<uint32_t ANY_N, class ANY_STATS_T , class ANY_NEXT >
class stats
template<uint32_t ANY_N, class ANY_NEXT >
class downsample
template<class ANY_NEXT >
class custom

Detailed Description

Template Class for ignoring.

Class for ignoring what is received. This class may be at the end of a chain of template classes and is only useful as a temporary replacement for something else to be added later or where certain computations are being profiled without persisting the result.

This class can also be used for user-defined customization similar to custom, except that here we do not have a next class. Where customization is needed, create a subclass and implement the relevant methods there.

Examples
time_series_stats.cpp.

Member Function Documentation

flush_range()

RDM_RETCODE RDM::TIME_SERIES::dead_end::flush_range ( uint32_t = 1,
RDM::DB::TRANSACTIONAL_T = RDM::DB::NOT_TRANSACTIONAL
)
inline

Flush this object.

Calling this method does not do anything here.

Return values
sOKAY Normal, successful return.
204 {
205return sOKAY;
206 }

References sOKAY.

flush_stats()

RDM_RETCODE RDM::TIME_SERIES::dead_end::flush_stats ( uint32_t = 1,
RDM::DB::TRANSACTIONAL_T = RDM::DB::NOT_TRANSACTIONAL
)
inline

Flush this object.

Calling this method does not do anything here.

Return values
sOKAY Normal, successful return.
191 {
192return sOKAY;
193 }

References sOKAY.

flush_value()

RDM_RETCODE RDM::TIME_SERIES::dead_end::flush_value ( uint32_t = 1,
RDM::DB::TRANSACTIONAL_T = RDM::DB::NOT_TRANSACTIONAL
)
inline

Flush this object.

Calling this method does not do anything here.

Return values
sOKAY Normal, successful return.
178 {
179return sOKAY;
180 }

References sOKAY.

get_serialize_size()

constexpr static int RDM::TIME_SERIES::dead_end::get_serialize_size ( void )
inlinestaticconstexpr

Get the size of a buffer for serialization to hold its state.

Get the size needed for a buffer to hold the state of this object.

118 {
119return 0;
120 }

init()

RDM_RETCODE RDM::TIME_SERIES::dead_end::init ( RDM_DB )
inline

Initialize this object.

Call this method before sending it any data values, ranges, or statistics. If you do not call it, the methods in this class will not complain as they always ignore everything and return sOKAY.

Return values
sOKAY Normal, successful return.
Examples
time_series_stats.cpp.
155 {
156return sOKAY;
157 }

References sOKAY.

init_tables_to_read_lock()

uint32_t RDM::TIME_SERIES::dead_end::init_tables_to_read_lock ( RDM_TABLE_ID * )
inlineprotected

IDs of the tables where rows are read.

Use this method to initialize an array of table IDs. This array can then be used to start a transaction where those tables are specified.

94 {
95return 0;
96 }

init_tables_to_write_lock()

uint32_t RDM::TIME_SERIES::dead_end::init_tables_to_write_lock ( RDM_TABLE_ID * )
inlineprotected

IDs of the tables where rows are inserted.

Use this method to initialize an array of table IDs. This array can then be used to start a transaction where those tables are specified.

72 {
73return 0;
74 ;
75 }

number_of_tables_to_read_lock()

constexpr static int RDM::TIME_SERIES::dead_end::number_of_tables_to_read_lock ( void )
inlinestaticconstexprprotected

Number of tables where rows are read.

Constant expression method used to statically calculate the size of the array needed for table locking.

83 {
84return 0;
85 }

number_of_tables_to_write_lock()

constexpr static int RDM::TIME_SERIES::dead_end::number_of_tables_to_write_lock ( void )
inlinestaticconstexprprotected

Number of tables where rows are inserted.

Constant expression method used to statically calculate the size of the array needed for table locking.

61 {
62return 0;
63 }

put_range()

template<class SOURCE_RANGE_T >
RDM_RETCODE RDM::TIME_SERIES::dead_end::put_range ( SOURCE_RANGE_T * ,
RDM::DB::TRANSACTIONAL_T = RDM::DB::NOT_TRANSACTIONAL
)
inline

Template method for receiving ranges.

Receive one range and ignore it.

Template Parameters
SOURCE_RANGE_T The actual type of the range received.
Return values
sOKAY Normal, successful return.
258 {
259return sOKAY;
260 }

References sOKAY.

put_stats()

template<class SOURCE_STATS_T >
RDM_RETCODE RDM::TIME_SERIES::dead_end::put_stats ( SOURCE_STATS_T * ,
RDM::DB::TRANSACTIONAL_T = RDM::DB::NOT_TRANSACTIONAL
)
inline

Template method for receiving statistics.

Receive one statistic and ignore it.

Template Parameters
SOURCE_STATS_T The actual type of the statistic received.
Return values
sOKAY Normal, successful return.
242 {
243return sOKAY;
244 }

References sOKAY.

put_value()

template<class SOURCE_VALUE_T >
RDM_RETCODE RDM::TIME_SERIES::dead_end::put_value ( SOURCE_VALUE_T * ,
RDM::DB::TRANSACTIONAL_T = RDM::DB::NOT_TRANSACTIONAL
)
inline

Template method for receiving a data value.

Receive one data value and ignore it.

Template Parameters
SOURCE_VALUE_T The actual type of the source values received.
Return values
sOKAY Normal, successful return.
223 {
224return sOKAY;
225 }

References sOKAY.

reset()

void RDM::TIME_SERIES::dead_end::reset ( void )
inline

Reset this object.

Call this method to discard all internally kept data values, ranges, and statistics that have not yet been persisted and start over from scratch.

166 {
167 }

serialize()

uint8_t* RDM::TIME_SERIES::dead_end::serialize ( uint8_t * buffer )
inline
129 {
130return buffer;
131 }

unflush()

void RDM::TIME_SERIES::dead_end::unflush ( void )
inlineprotected

Undo a previous flush operation.

108 {
109/* Nothing to be done here */
110 }

unput()

void RDM::TIME_SERIES::dead_end::unput ( void )
inlineprotected

Undo a previous put operation.

101 {
102/* Nothing to be done here */
103 }

unserialize()

uint8_t* RDM::TIME_SERIES::dead_end::unserialize ( uint8_t * buffer )
inline
140 {
141return buffer;
142 }

Friends And Related Function Documentation

collect

template<uint32_t ANY_N, class ANY_RANGE_T , class ANY_NEXT >
friend class collect
friend

custom

template<class ANY_NEXT >
friend class custom
friend

downsample

template<uint32_t ANY_N, class ANY_NEXT >
friend class downsample
friend

fft

template<uint32_t ANY_N, class ANY_RANGE_T , class ANY_INDATA_T , class ANY_NEXT >
friend class fft
friend

mean

template<uint32_t ANY_N, class ANY_AGGREGATE_T , class ANY_AGG_ELEMENT_T , class ANY_NEXT >
friend class mean
friend

RDM::DB::transaction

template<class ANY_NEXT >
friend class RDM::DB::transaction
friend

scale

template<class ANY_RATIO , class ANY_NEXT >
friend class scale
friend

split

template<class ANY_NEXT_1 , class ANY_NEXT_2 >
friend class split
friend

stats

template<uint32_t ANY_N, class ANY_STATS_T , class ANY_NEXT >
friend class stats
friend

The documentation for this class was generated from the following file:
@ sOKAY
Definition: rdmretcodetypes.h:100