Template Class for ignoring. More...

#include "rdm_time_series_dead_end.h"

Public Member Functions

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

Protected Member Functions

uint32_t init_tables_to_write_lock (RDM_TABLE_ID *tables)
IDs of the tables where rows are inserted. More...
uint32_t init_tables_to_read_lock (RDM_TABLE_ID *tables)
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 threshold = 1,
RDM::DB::TRANSACTIONAL_T transactional = RDM::DB::NOT_TRANSACTIONAL
)
inline

Flush this object.

Calling this method does not do anything here.

Return values
sOKAY Normal, successful return.
Parameters
threshold [IN] Only flush objects where at least this many elements have been collected
transactional [IN] Is the flush required to be transactional
172 {
173return sOKAY;
174 }

References sOKAY.

flush_stats()

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

Flush this object.

Calling this method does not do anything here.

Return values
sOKAY Normal, successful return.
Parameters
threshold [IN] Only flush objects where at least this many elements have been collected
transactional [IN] Is the flush required to be transactional
159 {
160return sOKAY;
161 }

References sOKAY.

flush_value()

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

Flush this object.

Calling this method does not do anything here.

Return values
sOKAY Normal, successful return.
Parameters
threshold [IN] Only flush objects where at least this many elements have been collected
transactional [IN] Is the flush required to be transactional
146 {
147return sOKAY;
148 }

References sOKAY.

init()

RDM_RETCODE RDM::TIME_SERIES::dead_end::init ( RDM_DB 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.
Parameters
db [IN] Ignore this database here. Parameter is only needed for interface compliance
Examples
time_series_stats.cpp.
123 {
124return sOKAY;
125 }

References sOKAY.

init_tables_to_read_lock()

uint32_t RDM::TIME_SERIES::dead_end::init_tables_to_read_lock ( RDM_TABLE_ID * tables )
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.

93 {
94return 0;
95 }

init_tables_to_write_lock()

uint32_t RDM::TIME_SERIES::dead_end::init_tables_to_write_lock ( RDM_TABLE_ID * tables )
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 }

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.

82 {
83return 0;
84 }

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 * source_range,
RDM::DB::TRANSACTIONAL_T transactional = 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.
Parameters
[in] source_range The source range sent to this class
transactional [IN] Is the put required to be transactional
220 {
221return sOKAY;
222 }

References sOKAY.

put_stats()

template<class SOURCE_STATS_T >
RDM_RETCODE RDM::TIME_SERIES::dead_end::put_stats ( SOURCE_STATS_T * source_stats,
RDM::DB::TRANSACTIONAL_T transactional = 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.
Parameters
[in] source_stats The source statistics sent to this class
transactional [IN] Is the put required to be transactional
204 {
205return sOKAY;
206 }

References sOKAY.

put_value()

template<class SOURCE_VALUE_T >
RDM_RETCODE RDM::TIME_SERIES::dead_end::put_value ( SOURCE_VALUE_T * source_value,
RDM::DB::TRANSACTIONAL_T transactional = 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.
Parameters
[in] source_value The source value sent to this class
transactional [IN] Is the put required to be transactional
188 {
189return sOKAY;
190 }

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.

134 {
135 }

unflush()

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

Undo a previous flush operation.

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

unput()

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

Undo a previous put operation.

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

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:97