Lumiera  0.pre.03
LocationRule Class Reference

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


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 129 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 (NonCopyable const &)=delete
 ~NonCopyable ()=default
NonCopyableoperator= (NonCopyable const &)=delete

Member Typedef Documentation

◆ Clauses

using Clauses = std::vector<LocationClause>

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

◆ iterator

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

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

Constructor & Destructor Documentation

◆ LocationRule() [1/2]

LocationRule ( LocationClause &&  firstRule)

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

◆ LocationRule() [2/2]

LocationRule ( LocationRule &&  rr)

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

Member Function Documentation

◆ append()

LocationRule&& append ( LocationClause &&  furtherRule)

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

Referenced by gui::interact::operator or().

+ Here is the caller graph for this function:

◆ begin()

iterator begin ( ) const

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

◆ end()

iterator end ( ) const

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

◆ operator string()

operator string ( ) const

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

References util::join().

+ Here is the call graph for this function:

Member Data Documentation

◆ clauses_

Clauses clauses_

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

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

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