Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
lib::test::anonymous_namespace{event-log.cpp} Namespace Reference

Typedefs

using Filter = decltype(buildSearchFilter(std::declval< Log const & >()))
 
using ArgSeq = lib::diff::RecordSetup< string >::Storage
 
using RExSeq = std::vector< std::regex >
 

Enumerations

enum  Direction {
  FORWARD ,
  BACKWARD ,
  CURRENT
}
 

Functions

auto find (string match)
 
auto findRegExp (string regExpDef)
 
auto findEvent (string match)
 
auto findEvent (string classifier, string match)
 
auto findCall (string match)
 
auto matchArguments (ArgSeq &&argSeq)
 this filter functor is for refinement of an existing filter
 
auto matchArgument (size_t idx, string match)
 refinement filter to match a specific positional argument
 
auto matchArgsRegExp (RExSeq &&regExpSeq)
 refinement filter, to cover all arguments by regular expression(s)
 
auto matchType (string typeID)
 refinement filter to match on the given typeID
 
auto ensureAttribute (string key)
 refinement filter to ensure a specific attribute is present on the log entry
 
auto matchAttribute (string key, string valueMatch)
 refinement filter to ensure a specific attribute is present on the log entry
 
template<typename COND >
void attachNextSerchStep (Filter &solution, COND &&searchCond, Direction direction)
 
template<typename COND >
void refineSerach (Filter &solution, COND &&additionalCond)
 

Typedef Documentation

◆ Filter

using Filter = decltype( buildSearchFilter (std::declval<Log const&>()) )

Definition at line 55 of file event-log.cpp.

◆ ArgSeq

using ArgSeq = lib::diff::RecordSetup<string>::Storage

Definition at line 57 of file event-log.cpp.

◆ RExSeq

using RExSeq = std::vector<std::regex>

Definition at line 58 of file event-log.cpp.

Enumeration Type Documentation

◆ Direction

enum Direction
Enumerator
FORWARD 
BACKWARD 
CURRENT 

Definition at line 220 of file event-log.cpp.

Function Documentation

◆ find()

auto find ( string  match)
inline

Definition at line 62 of file event-log.cpp.

References find().

Referenced by find().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findRegExp()

auto findRegExp ( string  regExpDef)
inline

Definition at line 71 of file event-log.cpp.

References findRegExp().

Referenced by findRegExp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findEvent() [1/2]

auto findEvent ( string  match)
inline

Definition at line 81 of file event-log.cpp.

References findEvent().

Referenced by findEvent(), and findEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findEvent() [2/2]

auto findEvent ( string  classifier,
string  match 
)
inline

Definition at line 97 of file event-log.cpp.

References findEvent().

+ Here is the call graph for this function:

◆ findCall()

auto findCall ( string  match)
inline

Definition at line 110 of file event-log.cpp.

References findCall().

Referenced by findCall().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ matchArguments()

auto matchArguments ( ArgSeq &&  argSeq)
inline

this filter functor is for refinement of an existing filter

Parameters
argSeqperform a substring match consecutively for each of the log entry's arguments
Note
the match also fails, when the given log entry has more or less arguments, than the number of given match expressions in argSeq
See also
ExtensibleFilterIter::andFilter()

Definition at line 129 of file event-log.cpp.

References matchArguments().

Referenced by matchArguments().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ matchArgument()

auto matchArgument ( size_t  idx,
string  match 
)
inline

refinement filter to match a specific positional argument

Definition at line 146 of file event-log.cpp.

References matchArgument().

Referenced by matchArgument().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ matchArgsRegExp()

auto matchArgsRegExp ( RExSeq &&  regExpSeq)
inline

refinement filter, to cover all arguments by regular expression(s)

Parameters
regExpSeqseveral regular expressions, which, when applied consecutively until exhaustion, must cover and verify all arguments of the log entry.
Remarks
to explain, we "consume" arguments with a regExp from the list, and when this one doesn't match anymore, we try the next one. When we'ver tried all regular expressions, we must have also consumed all arguments, otherwise we fail.

Definition at line 166 of file event-log.cpp.

References matchArgsRegExp().

Referenced by matchArgsRegExp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ matchType()

auto matchType ( string  typeID)
inline

refinement filter to match on the given typeID

Definition at line 185 of file event-log.cpp.

References matchType().

Referenced by matchType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ensureAttribute()

auto ensureAttribute ( string  key)
inline

refinement filter to ensure a specific attribute is present on the log entry

Definition at line 196 of file event-log.cpp.

References ensureAttribute().

Referenced by ensureAttribute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ matchAttribute()

auto matchAttribute ( string  key,
string  valueMatch 
)
inline

refinement filter to ensure a specific attribute is present on the log entry

Definition at line 207 of file event-log.cpp.

References matchAttribute().

Referenced by matchAttribute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ attachNextSerchStep()

template<typename COND >
void attachNextSerchStep ( Filter solution,
COND &&  searchCond,
Direction  direction 
)
inline

Definition at line 226 of file event-log.cpp.

References attachNextSerchStep(), BACKWARD, and CURRENT.

Referenced by attachNextSerchStep().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ refineSerach()

template<typename COND >
void refineSerach ( Filter solution,
COND &&  additionalCond 
)
inline

Definition at line 243 of file event-log.cpp.

References refineSerach().

Referenced by refineSerach().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: