Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
LocationRule Class Reference

#include "stage/interact/ui-location-solver.hpp"

Description

A rule to determine some location by matching against the UI-tree.

It is comprised of one or several disjunctive clauses, each of which is a coordinate pattern to be matched. The clauses are tried in order and the first successfully matched clause wins.

Definition at line 122 of file ui-location-solver.hpp.

Public Types

using iterator = lib::RangeIter< Clauses::const_iterator >
 

Public Member Functions

 LocationRule (LocationClause &&firstRule)
 
 LocationRule (LocationRule &&rr)
 
LocationRule && append (LocationClause &&furtherRule)
 
iterator begin () const
 
iterator end () const
 
 operator string () const
 

Private Types

using Clauses = std::vector< LocationClause >
 

Private Attributes

Clauses clauses_
 

Additional Inherited Members

- Private Member Functions inherited from NonCopyable
 ~NonCopyable ()=default
 
 NonCopyable ()=default
 
 NonCopyable (NonCopyable const &)=delete
 
NonCopyableoperator= (NonCopyable const &)=delete
 

Constructor & Destructor Documentation

◆ LocationRule() [1/2]

LocationRule ( LocationClause &&  firstRule)
inline

Definition at line 130 of file ui-location-solver.hpp.

References LocationRule::append().

+ Here is the call graph for this function:

◆ LocationRule() [2/2]

LocationRule ( LocationRule &&  rr)
inline

Definition at line 135 of file ui-location-solver.hpp.

Member Typedef Documentation

◆ Clauses

using Clauses = std::vector<LocationClause>
private

Definition at line 125 of file ui-location-solver.hpp.

◆ iterator

using iterator = lib::RangeIter<Clauses::const_iterator>

Definition at line 148 of file ui-location-solver.hpp.

Member Function Documentation

◆ append()

LocationRule && append ( LocationClause &&  furtherRule)
inline

Definition at line 141 of file ui-location-solver.hpp.

References LocationRule::clauses_.

Referenced by LocationRule::LocationRule(), stage::interact::operator or(), and stage::interact::operator or().

+ Here is the caller graph for this function:

◆ begin()

iterator begin ( ) const
inline

Definition at line 149 of file ui-location-solver.hpp.

References LocationRule::clauses_.

◆ end()

iterator end ( ) const
inline

Definition at line 150 of file ui-location-solver.hpp.

◆ operator string()

operator string ( ) const
inline

Definition at line 212 of file ui-location-solver.hpp.

References util::join().

+ Here is the call graph for this function:

Member Data Documentation

◆ clauses_

Clauses clauses_
private

Definition at line 127 of file ui-location-solver.hpp.

Referenced by LocationRule::append(), and LocationRule::begin().

+ Inheritance diagram for LocationRule:
+ Collaboration diagram for LocationRule:

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