|
Drake
|
Represent a set of Variable instances. More...
#include <drake/core/functional_form.h>
Public Types | |
| typedef unspecified_bidirectional_const_iterator< Variable > | const_iterator |
| Type used to iterate through the set. More... | |
Public Member Functions | |
| Variables ()=default | |
| Construct an empty set. More... | |
| Variables (std::initializer_list< Variable > init) | |
| Construct a set from an initializer list. More... | |
| Variables (Variables &&)=default | |
| Move-construct a set from an rvalue. More... | |
| Variables (Variables const &)=default | |
| Copy-construct a set from an lvalue. More... | |
| Variables & | operator= (Variables &&)=default |
| Move-assign a set from an rvalue. More... | |
| Variables & | operator= (Variables const &)=default |
| Copy-assign a set from an lvalue. More... | |
| const_iterator | begin () const |
| Return an iterator at the beginning of the set. More... | |
| const_iterator | end () const |
| Return an iterator at the end of the set. More... | |
| bool | empty () const |
Return true if the set is empty and false otherwise. More... | |
| std::size_t | size () const |
| Return the size of the set. More... | |
Static Public Member Functions | |
| static Variables | Union (Variables const &l, Variables const &r) |
| Return the union of two sets. More... | |
Friends | |
| DRAKECORE_EXPORT bool | operator== (Variables const &lhs, Variables const &rhs) |
Return true if lhs and rhs represent the same set. More... | |
| DRAKECORE_EXPORT bool | operator!= (Variables const &lhs, Variables const &rhs) |
Return false if lhs and rhs represent the same set. More... | |
Represent a set of Variable instances.
The set contains a list of Variable instances ordered according to the Variable Ordering without duplicates. The contained set is immutable.
| typedef unspecified_bidirectional_const_iterator<Variable> const_iterator |
Type used to iterate through the set.
The iterator dereferences to const Variable and supports bidirectional iteration but is otherwise of an unspecified type.
|
default |
Construct an empty set.

Construct a set from an initializer list.

| FunctionalForm::Variables::const_iterator begin | ( | ) | const |
Return an iterator at the beginning of the set.
| bool empty | ( | ) | const |
Return true if the set is empty and false otherwise.

| FunctionalForm::Variables::const_iterator end | ( | ) | const |
Return an iterator at the end of the set.
| std::size_t size | ( | ) | const |
Return the size of the set.
|
static |
Return the union of two sets.


|
friend |
Return false if lhs and rhs represent the same set.
|
friend |
Return true if lhs and rhs represent the same set.