Vector of objects of class Rule.
More...
#include <rules-bones.hpp>
|
| Rules () |
|
| Rules (const Rules< Array_Type, Data_Type > &rules_) |
|
Rules< Array_Type, Data_Type > | operator= (const Rules< Array_Type, Data_Type > &rules_) |
|
| ~Rules () |
|
size_t | size () const noexcept |
|
bool | operator() (const Array_Type &a, size_t i, size_t j) |
| Check whether a given cell is free or locked. More...
|
|
void | get_seq (const Array_Type &a, std::vector< size_t > *free, std::vector< size_t > *locked=nullptr) |
| Computes the sequence of free and locked cells in an BArray. More...
|
|
std::vector< std::string > | get_names () const |
|
std::vector< std::string > | get_descriptions () const |
|
std::vector< Rule< Array_Type, Data_Type > >::iterator | begin () |
|
std::vector< Rule< Array_Type, Data_Type > >::iterator | end () |
|
|
|
void | add_rule (Rule< Array_Type, Data_Type > rule) |
|
void | add_rule (Rule_fun_type< Array_Type, Data_Type > rule_, Data_Type data_, std::string name_="", std::string description_="") |
|
template<typename Array_Type, typename Data_Type>
class Rules< Array_Type, Data_Type >
Vector of objects of class Rule.
- Template Parameters
-
Array_Type | An object of class BArray |
Data_Type | Any type. |
Definition at line 71 of file rules-bones.hpp.
◆ Rules() [1/2]
template<typename Array_Type , typename Data_Type >
◆ Rules() [2/2]
template<typename Array_Type , typename Data_Type >
Rules< Array_Type, Data_Type >::Rules |
( |
const Rules< Array_Type, Data_Type > & |
rules_ | ) |
|
|
inline |
◆ ~Rules()
template<typename Array_Type , typename Data_Type >
◆ add_rule() [1/2]
template<typename Array_Type , typename Data_Type >
void Rules< Array_Type, Data_Type >::add_rule |
( |
Rule< Array_Type, Data_Type > |
rule | ) |
|
|
inline |
◆ add_rule() [2/2]
template<typename Array_Type , typename Data_Type >
void Rules< Array_Type, Data_Type >::add_rule |
( |
Rule_fun_type< Array_Type, Data_Type > |
rule_, |
|
|
Data_Type |
data_, |
|
|
std::string |
name_ = "" , |
|
|
std::string |
description_ = "" |
|
) |
| |
|
inline |
◆ begin()
template<typename Array_Type , typename Data_Type >
std::vector< Rule<Array_Type,Data_Type> >::iterator Rules< Array_Type, Data_Type >::begin |
( |
| ) |
|
|
inline |
◆ end()
template<typename Array_Type , typename Data_Type >
std::vector< Rule<Array_Type,Data_Type> >::iterator Rules< Array_Type, Data_Type >::end |
( |
| ) |
|
|
inline |
◆ get_descriptions()
template<typename Array_Type , typename Data_Type >
std::vector< std::string > Rules< Array_Type, Data_Type >::get_descriptions |
|
inline |
◆ get_names()
template<typename Array_Type , typename Data_Type >
std::vector< std::string > Rules< Array_Type, Data_Type >::get_names |
|
inline |
◆ get_seq()
template<typename Array_Type , typename Data_Type >
void Rules< Array_Type, Data_Type >::get_seq |
( |
const Array_Type & |
a, |
|
|
std::vector< size_t > * |
free, |
|
|
std::vector< size_t > * |
locked = nullptr |
|
) |
| |
|
inline |
Computes the sequence of free and locked cells in an BArray.
- Parameters
-
a | An object of class BArray . |
free | Pointer to a vector of pairs (i, j) listing the free cells. |
locked | (optional) Pointer to a vector of pairs (i, j) listing the locked cells. |
- Returns
- Nothing.
Definition at line 117 of file rules-meat.hpp.
◆ operator()()
template<typename Array_Type , typename Data_Type >
bool Rules< Array_Type, Data_Type >::operator() |
( |
const Array_Type & |
a, |
|
|
size_t |
i, |
|
|
size_t |
j |
|
) |
| |
|
inline |
Check whether a given cell is free or locked.
- Parameters
-
a | A BArray object |
i | row position |
j | col position |
- Returns
- true If the cell is locked
-
false If the cell is free
Definition at line 101 of file rules-meat.hpp.
◆ operator=()
template<typename Array_Type , typename Data_Type >
Rules< Array_Type, Data_Type > Rules< Array_Type, Data_Type >::operator= |
( |
const Rules< Array_Type, Data_Type > & |
rules_ | ) |
|
◆ size()
template<typename Array_Type , typename Data_Type >
size_t Rules< Array_Type, Data_Type >::size |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following files: