MemoryQueryProcessorBase< _MemoryT, _ResultMemoryT, _ChildProcessorT > Class Template Reference

#include <RobotAPI/libraries/armem/server/query_proc/base/MemoryQueryProcessorBase.h>

+ Inheritance diagram for MemoryQueryProcessorBase< _MemoryT, _ResultMemoryT, _ChildProcessorT >:

Public Types

using ChildProcessorT = _ChildProcessorT
 
using CoreSegmentT = typename MemoryT::CoreSegmentT
 
using MemoryT = _MemoryT
 
using ResultCoreSegmentT = typename ResultMemoryT::CoreSegmentT
 
using ResultMemoryT = _ResultMemoryT
 
- Public Types inherited from BaseQueryProcessorBase< _MemoryT, _ResultMemoryT, armem::query::data::MemoryQuery >
using QueryPtrT = ::IceInternal::Handle< armem::query::data::MemoryQuery >
 
using QuerySeqT = std::vector< QueryPtrT >
 

Public Member Functions

 MemoryQueryProcessorBase ()
 
 MemoryQueryProcessorBase (ChildProcessorT &&childProcessor)
 
ResultMemoryT process (const armem::query::data::Input &input, const MemoryT &memory) const
 
virtual void process (ResultMemoryT &result, const armem::query::data::memory::All &query, const MemoryT &memory) const
 
virtual void process (ResultMemoryT &result, const armem::query::data::memory::Regex &query, const MemoryT &memory) const
 
virtual void process (ResultMemoryT &result, const armem::query::data::memory::Single &query, const MemoryT &memory) const
 
virtual void process (ResultMemoryT &result, const armem::query::data::MemoryQuery &query, const MemoryT &memory) const override
 Process the query and populate result. More...
 
- Public Member Functions inherited from BaseQueryProcessorBase< _MemoryT, _ResultMemoryT, armem::query::data::MemoryQuery >
void process (_ResultMemoryT &result, const QuerySeqT &queries, const _MemoryT &data) const
 
_ResultMemoryT process (const armem::query::data::MemoryQuery &query, const _MemoryT &data) const
 
_ResultMemoryT process (const QueryPtrT &query, const _MemoryT &data) const
 
_ResultMemoryT process (const QuerySeqT &queries, const _MemoryT &data) const
 
virtual ~BaseQueryProcessorBase ()=default
 

Protected Types

using Base = BaseQueryProcessorBase< _MemoryT, _ResultMemoryT, armem::query::data::MemoryQuery >
 

Protected Member Functions

virtual bool _processAllowed (const armem::query::data::MemoryQuery &query) const
 
void _processResult (ResultMemoryT &result, const CoreSegmentT &coreSegment, const armem::query::data::MemoryQuery &query) const
 

Protected Attributes

ChildProcessorT childProcessor
 

Detailed Description

template<class _MemoryT, class _ResultMemoryT, class _ChildProcessorT>
class armarx::armem::server::query_proc::base::MemoryQueryProcessorBase< _MemoryT, _ResultMemoryT, _ChildProcessorT >

Definition at line 14 of file MemoryQueryProcessorBase.h.

Member Typedef Documentation

◆ Base

using Base = BaseQueryProcessorBase<_MemoryT, _ResultMemoryT, armem::query::data::MemoryQuery>
protected

Definition at line 19 of file MemoryQueryProcessorBase.h.

◆ ChildProcessorT

using ChildProcessorT = _ChildProcessorT

Definition at line 28 of file MemoryQueryProcessorBase.h.

◆ CoreSegmentT

using CoreSegmentT = typename MemoryT::CoreSegmentT

Definition at line 23 of file MemoryQueryProcessorBase.h.

◆ MemoryT

using MemoryT = _MemoryT

Definition at line 22 of file MemoryQueryProcessorBase.h.

◆ ResultCoreSegmentT

using ResultCoreSegmentT = typename ResultMemoryT::CoreSegmentT

Definition at line 26 of file MemoryQueryProcessorBase.h.

◆ ResultMemoryT

using ResultMemoryT = _ResultMemoryT

Definition at line 25 of file MemoryQueryProcessorBase.h.

Constructor & Destructor Documentation

◆ MemoryQueryProcessorBase() [1/2]

Definition at line 32 of file MemoryQueryProcessorBase.h.

◆ MemoryQueryProcessorBase() [2/2]

MemoryQueryProcessorBase ( ChildProcessorT &&  childProcessor)
inline

Definition at line 36 of file MemoryQueryProcessorBase.h.

Member Function Documentation

◆ _processAllowed()

virtual bool _processAllowed ( const armem::query::data::MemoryQuery &  query) const
inlineprotectedvirtual

◆ _processResult()

void _processResult ( ResultMemoryT result,
const CoreSegmentT coreSegment,
const armem::query::data::MemoryQuery &  query 
) const
inlineprotected

Definition at line 117 of file MemoryQueryProcessorBase.h.

+ Here is the caller graph for this function:

◆ process() [1/5]

ResultMemoryT process ( const armem::query::data::Input &  input,
const MemoryT memory 
) const
inline

Definition at line 43 of file MemoryQueryProcessorBase.h.

+ Here is the caller graph for this function:

◆ process() [2/5]

virtual void process ( ResultMemoryT result,
const armem::query::data::memory::All &  query,
const MemoryT memory 
) const
inlinevirtual

Definition at line 72 of file MemoryQueryProcessorBase.h.

◆ process() [3/5]

virtual void process ( ResultMemoryT result,
const armem::query::data::memory::Regex &  query,
const MemoryT memory 
) const
inlinevirtual

Definition at line 92 of file MemoryQueryProcessorBase.h.

◆ process() [4/5]

virtual void process ( ResultMemoryT result,
const armem::query::data::memory::Single &  query,
const MemoryT memory 
) const
inlinevirtual

Definition at line 81 of file MemoryQueryProcessorBase.h.

◆ process() [5/5]

virtual void process ( ResultMemoryT result,
const armem::query::data::MemoryQuery &  query,
const MemoryT data 
) const
inlineoverridevirtual

Process the query and populate result.

Parameters
resultThe result container.
queryThe query.
dataThe source container.

Implements BaseQueryProcessorBase< _MemoryT, _ResultMemoryT, armem::query::data::MemoryQuery >.

Definition at line 49 of file MemoryQueryProcessorBase.h.

Member Data Documentation

◆ childProcessor

ChildProcessorT childProcessor
protected

Definition at line 131 of file MemoryQueryProcessorBase.h.


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