ONE - On-device Neural Engine
|
Class for set of custom element &. More...
#include <Set.h>
Public Member Functions | |
Set ()=default | |
Construct default Set object. | |
Set (const Set< Element > &)=default | |
Construct Set object by copy semantics. | |
Set (Set< Element > &&)=default | |
Construct move Set object by move semantics. | |
Set< Element > & | operator= (const Set< Element > &)=default |
copy assignment operator | |
Set< Element > & | operator= (Set< Element > &&)=default |
move assignment operator | |
void | add (const Element &e) |
Add a given element to the set. | |
void | remove (const Element &e) |
remove a given element from the set | |
uint32_t | size () const |
Get size of the set. | |
bool | empty () const |
Get whether the set is empty. | |
bool | contains (const Element &e) const |
Get whether a given element exists in the set. | |
const Element & | getOnlyElement () const |
Get first element of the set. | |
Set< Element > | operator| (const Set< Element > &other) const |
operator overloading function for | | |
Set< Element > | operator& (const Set< Element > &other) const |
operator overloading function for & | |
Set< Element > | operator- (const Set< Element > &other) const |
operator overloading function for - | |
std::unordered_set< Element >::const_iterator | begin () const |
begin() of const_iterator for this class | |
std::unordered_set< Element >::const_iterator | end () const |
end() of const_iterator for this class | |
Class for set of custom element &.
Element | Key type of Set |
|
default |
Construct default Set object.
|
default |
Construct Set object by copy semantics.
|
default |
Construct move Set object by move semantics.
|
inline |
Add a given element to the set.
e | Element added |
Definition at line 70 of file Set.h.
Referenced by onert::compiler::OperandLowerInfo::addDefBackend(), onert::compiler::OperandLowerInfo::addUseBackend(), onert::ir::train::TrainableGraph::btopolSortOperations(), onert::util::Set< Element >::operator&(), onert::backend::basic::register_source_memory_tensors(), onert::backend::train::TensorBuilder::registerLayerScopeTensor(), onert::compiler::pass::UnusedOperandEliminationPass::run(), and onert::ir::Graph::topolSortOperations().
|
inline |
|
inline |
Get whether a given element exists in the set.
e | A given element |
Definition at line 96 of file Set.h.
Referenced by onert::ir::train::TrainableGraph::btopolSortOperations(), onert::backend::basic::genTensors(), onert::backend::basic::initConsts(), onert::backend::basic::initSharedMemoryConsts(), onert::util::Set< Element >::operator&(), onert::backend::basic::planTensors(), onert::backend::basic::register_source_memory_tensors(), onert::compiler::pass::UnusedOperandEliminationPass::run(), and onert::ir::Graph::topolSortOperations().
|
inline |
Get whether the set is empty.
Definition at line 88 of file Set.h.
Referenced by onert::ir::Graph::topolSortOperations().
|
inline |
|
inline |
|
inline |
operator overloading function for &
Definition at line 128 of file Set.h.
References onert::util::Set< Element >::add(), and onert::util::Set< Element >::contains().
|
inline |
|
default |
copy assignment operator
|
default |
move assignment operator
|
inline |
|
inline |
remove a given element from the set
e | Element removed |
Definition at line 76 of file Set.h.
Referenced by onert::ir::train::TrainableGraph::btopolSortOperations(), onert::compiler::OperandLowerInfo::removeDefBackend(), onert::compiler::OperandLowerInfo::removeUseBackend(), and onert::ir::Graph::topolSortOperations().
|
inline |