#include <rrrAndNetwork.h>
Public Member Functions | |
| AndNetwork () | |
| AndNetwork (AndNetwork const &x) | |
| AndNetwork & | operator= (AndNetwork const &x) |
| void | Clear (bool fClearCallbacks=true) |
| void | Reserve (int nReserve) |
| int | AddPi () |
| int | AddAnd (int id0, int id1, bool c0, bool c1) |
| int | AddPo (int id, bool c) |
| template<typename Ntk, typename Reader> | |
| void | Read (Ntk *pFrom, Reader &reader, bool fNew=true) |
| bool | UseComplementedEdges () const |
| int | GetNumNodes () const |
| int | GetNumPis () const |
| int | GetNumInts () const |
| int | GetNumPos () const |
| int | GetNumLevels () const |
| int | GetConst0 () const |
| int | GetPi (int idx) const |
| int | GetPo (int idx) const |
| std::vector< int > | GetPis () const |
| std::vector< int > | GetInts () const |
| std::vector< int > | GetPisInts () const |
| std::vector< int > | GetPos () const |
| bool | IsPi (int id) const |
| bool | IsInt (int id) const |
| bool | IsPo (int id) const |
| NodeType | GetNodeType (int id) const |
| bool | IsPoDriver (int id) const |
| int | GetPiIndex (int id) const |
| int | GetIntIndex (int id) const |
| int | GetPoIndex (int id) const |
| int | GetNumFanins (int id) const |
| int | GetNumFanouts (int id) const |
| int | GetFanin (int id, int idx) const |
| bool | GetCompl (int id, int idx) const |
| int | FindFanin (int id, int fi) const |
| bool | IsReconvergent (int id) |
| std::vector< int > | GetNeighbors (int id, bool fPis, int nHops) |
| template<template< typename... > typename Container, typename... Ts, template< typename... > typename Container2, typename... Ts2> | |
| bool | IsReachable (Container< Ts... > const &srcs, Container2< Ts2... > const &dsts) |
| template<template< typename... > typename Container, typename... Ts, template< typename... > typename Container2, typename... Ts2> | |
| std::vector< int > | GetInners (Container< Ts... > const &srcs, Container2< Ts2... > const &dsts) |
| std::set< int > | GetExtendedFanins (int id) |
| void | ForEachPi (std::function< void(int)> const &func) const |
| void | ForEachPiIdx (std::function< void(int, int)> const &func) const |
| void | ForEachInt (std::function< void(int)> const &func) const |
| void | ForEachIntReverse (std::function< void(int)> const &func) const |
| void | ForEachPiInt (std::function< void(int)> const &func) const |
| void | ForEachPo (std::function< void(int)> const &func) const |
| template<typename Func> | |
| void | ForEachPoDriver (Func const &func) const |
| template<typename Func> | |
| void | ForEachFanin (int id, Func const &func) const |
| template<typename Func> | |
| void | ForEachFaninIdx (int id, Func const &func) const |
| template<typename Func> | |
| void | ForEachFanout (int id, bool fPos, Func const &func) const |
| template<typename Func> | |
| void | ForEachFanoutRidx (int id, bool fPos, Func const &func) const |
| void | ForEachTfi (int id, bool fPis, std::function< void(int)> const &func) |
| template<template< typename... > typename Container, typename... Ts> | |
| void | ForEachTfiEnd (int id, Container< Ts... > const &ends, std::function< void(int)> const &func) |
| void | ForEachTfiUpdate (int id, bool fPis, std::function< bool(int)> const &func) |
| template<template< typename... > typename Container, typename... Ts> | |
| void | ForEachTfisUpdate (Container< Ts... > const &ids, bool fPis, std::function< bool(int)> const &func) |
| void | ForEachTfo (int id, bool fPos, std::function< void(int)> const &func) |
| void | ForEachTfoReverse (int id, bool fPos, std::function< void(int)> const &func) |
| void | ForEachTfoUpdate (int id, bool fPos, std::function< bool(int)> const &func) |
| template<template< typename... > typename Container, typename... Ts> | |
| void | ForEachTfos (Container< Ts... > const &ids, bool fPos, std::function< void(int)> const &func) |
| template<template< typename... > typename Container, typename... Ts> | |
| void | ForEachTfosUpdate (Container< Ts... > const &ids, bool fPos, std::function< bool(int)> const &func) |
| template<template< typename... > typename Container, typename... Ts> | |
| AndNetwork * | Extract (Container< Ts... > const &ids, std::vector< int > const &vInputs, std::vector< int > const &vOutputs) |
| void | RemoveFanin (int id, int idx) |
| void | RemoveUnused (int id, bool fRecursive=false, bool fSweeping=false) |
| void | RemoveBuffer (int id) |
| void | RemoveConst (int id) |
| void | AddFanin (int id, int fi, bool c) |
| void | TrivialCollapse (int id) |
| void | TrivialDecompose (int id) |
| template<typename Func> | |
| void | SortFanins (int id, Func const &cost) |
| std::pair< std::vector< int >, std::vector< bool > > | Insert (AndNetwork *pNtk, std::vector< int > const &vInputs, std::vector< bool > const &vCompls, std::vector< int > const &vOutputs) |
| void | Propagate (int id=-1) |
| void | Sweep (bool fPropagate=true) |
| int | Save (int slot=-1) |
| void | Load (int slot) |
| void | PopBack () |
| void | AddCallback (Callback const &callback) |
| void | Print () const |
Definition at line 15 of file rrrAndNetwork.h.
| rrr::AndNetwork::AndNetwork | ( | ) |
Definition at line 237 of file rrrAndNetwork.h.

| rrr::AndNetwork::AndNetwork | ( | AndNetwork const & | x | ) |
Definition at line 248 of file rrrAndNetwork.h.

Definition at line 311 of file rrrAndNetwork.h.
| void rrr::AndNetwork::AddCallback | ( | Callback const & | callback | ) |
Definition at line 1608 of file rrrAndNetwork.h.
| void rrr::AndNetwork::AddFanin | ( | int | id, |
| int | fi, | ||
| bool | c ) |
Definition at line 1339 of file rrrAndNetwork.h.

|
inline |
Definition at line 303 of file rrrAndNetwork.h.

|
inline |
Definition at line 325 of file rrrAndNetwork.h.

Definition at line 276 of file rrrAndNetwork.h.

| AndNetwork * rrr::AndNetwork::Extract | ( | Container< Ts... > const & | ids, |
| std::vector< int > const & | vInputs, | ||
| std::vector< int > const & | vOutputs ) |
Definition at line 1169 of file rrrAndNetwork.h.

|
inline |
Definition at line 497 of file rrrAndNetwork.h.


|
inline |
Definition at line 790 of file rrrAndNetwork.h.

|
inline |
Definition at line 802 of file rrrAndNetwork.h.


|
inline |
Definition at line 814 of file rrrAndNetwork.h.


|
inline |
Definition at line 856 of file rrrAndNetwork.h.


|
inline |
Definition at line 750 of file rrrAndNetwork.h.

|
inline |
Definition at line 756 of file rrrAndNetwork.h.
|
inline |
Definition at line 738 of file rrrAndNetwork.h.
|
inline |
Definition at line 744 of file rrrAndNetwork.h.

|
inline |
Definition at line 762 of file rrrAndNetwork.h.

|
inline |
Definition at line 771 of file rrrAndNetwork.h.
|
inline |
Definition at line 778 of file rrrAndNetwork.h.


|
inline |
Definition at line 897 of file rrrAndNetwork.h.
|
inline |
Definition at line 910 of file rrrAndNetwork.h.
|
inline |
Definition at line 951 of file rrrAndNetwork.h.
|
inline |
Definition at line 920 of file rrrAndNetwork.h.

|
inline |
Definition at line 980 of file rrrAndNetwork.h.

|
inline |
Definition at line 1010 of file rrrAndNetwork.h.

|
inline |
Definition at line 1087 of file rrrAndNetwork.h.

|
inline |
Definition at line 1122 of file rrrAndNetwork.h.

|
inline |
Definition at line 1054 of file rrrAndNetwork.h.

|
inline |
Definition at line 493 of file rrrAndNetwork.h.

|
inline |
Definition at line 386 of file rrrAndNetwork.h.

|
inline |
Definition at line 697 of file rrrAndNetwork.h.

|
inline |
Definition at line 489 of file rrrAndNetwork.h.

|
inline |
Definition at line 640 of file rrrAndNetwork.h.
|
inline |
Definition at line 459 of file rrrAndNetwork.h.
|
inline |
Definition at line 402 of file rrrAndNetwork.h.
|
inline |
Definition at line 542 of file rrrAndNetwork.h.

|
inline |
Definition at line 432 of file rrrAndNetwork.h.

|
inline |
Definition at line 481 of file rrrAndNetwork.h.

|
inline |
Definition at line 485 of file rrrAndNetwork.h.

|
inline |
Definition at line 361 of file rrrAndNetwork.h.

| int rrr::AndNetwork::GetNumLevels | ( | ) | const |
Definition at line 369 of file rrrAndNetwork.h.

|
inline |
Definition at line 353 of file rrrAndNetwork.h.
|
inline |
Definition at line 357 of file rrrAndNetwork.h.

|
inline |
Definition at line 365 of file rrrAndNetwork.h.

|
inline |
Definition at line 390 of file rrrAndNetwork.h.

|
inline |
Definition at line 451 of file rrrAndNetwork.h.

|
inline |
Definition at line 398 of file rrrAndNetwork.h.
|
inline |
Definition at line 406 of file rrrAndNetwork.h.
|
inline |
Definition at line 394 of file rrrAndNetwork.h.

|
inline |
Definition at line 473 of file rrrAndNetwork.h.

|
inline |
Definition at line 412 of file rrrAndNetwork.h.
| std::pair< std::vector< int >, std::vector< bool > > rrr::AndNetwork::Insert | ( | AndNetwork * | pNtk, |
| std::vector< int > const & | vInputs, | ||
| std::vector< bool > const & | vCompls, | ||
| std::vector< int > const & | vOutputs ) |
Definition at line 1440 of file rrrAndNetwork.h.

|
inline |
Definition at line 424 of file rrrAndNetwork.h.

|
inline |
Definition at line 420 of file rrrAndNetwork.h.


|
inline |
Definition at line 428 of file rrrAndNetwork.h.


|
inline |
Definition at line 442 of file rrrAndNetwork.h.

|
inline |
Definition at line 585 of file rrrAndNetwork.h.

|
inline |
Definition at line 506 of file rrrAndNetwork.h.

| void rrr::AndNetwork::Load | ( | int | slot | ) |
Definition at line 1585 of file rrrAndNetwork.h.
| AndNetwork & rrr::AndNetwork::operator= | ( | AndNetwork const & | x | ) |
Definition at line 261 of file rrrAndNetwork.h.

| void rrr::AndNetwork::PopBack | ( | ) |
Definition at line 1595 of file rrrAndNetwork.h.
| void rrr::AndNetwork::Print | ( | ) | const |
Definition at line 1612 of file rrrAndNetwork.h.

| void rrr::AndNetwork::Propagate | ( | int | id = -1 | ) |
Definition at line 1517 of file rrrAndNetwork.h.


| void rrr::AndNetwork::Read | ( | Ntk * | pFrom, |
| Reader & | reader, | ||
| bool | fNew = true ) |
Definition at line 336 of file rrrAndNetwork.h.


| void rrr::AndNetwork::RemoveBuffer | ( | int | id | ) |
Definition at line 1245 of file rrrAndNetwork.h.


| void rrr::AndNetwork::RemoveConst | ( | int | id | ) |
Definition at line 1298 of file rrrAndNetwork.h.


| void rrr::AndNetwork::RemoveFanin | ( | int | id, |
| int | idx ) |
Definition at line 1206 of file rrrAndNetwork.h.


Definition at line 1220 of file rrrAndNetwork.h.


| void rrr::AndNetwork::Reserve | ( | int | nReserve | ) |
Definition at line 298 of file rrrAndNetwork.h.

| int rrr::AndNetwork::Save | ( | int | slot = -1 | ) |
Definition at line 1569 of file rrrAndNetwork.h.
| void rrr::AndNetwork::SortFanins | ( | int | id, |
| Func const & | cost ) |
Definition at line 1416 of file rrrAndNetwork.h.
Definition at line 1551 of file rrrAndNetwork.h.

| void rrr::AndNetwork::TrivialCollapse | ( | int | id | ) |
Definition at line 1360 of file rrrAndNetwork.h.

| void rrr::AndNetwork::TrivialDecompose | ( | int | id | ) |
Definition at line 1390 of file rrrAndNetwork.h.

|
inline |
Definition at line 349 of file rrrAndNetwork.h.