Skip to main content

GlobalRoutingTree

Struct GlobalRoutingTree 

Source
pub struct GlobalRoutingTree {
    pub worst_wirelength: i32,
    /* private fields */
}
Expand description

A rectilinear Steiner routing tree.

Fields§

§worst_wirelength: i32

Implementations§

Source§

impl GlobalRoutingTree

Source

pub fn new(source_position: Point<i32, i32>) -> Self

Source

pub fn get_source(&self) -> &RoutingNode

Source

pub fn get_source_mut(&mut self) -> &mut RoutingNode

Source

pub fn insert_steiner_node( &mut self, point: Point<i32, i32>, parent_id: Option<&str>, ) -> String

Source

pub fn insert_terminal_node( &mut self, point: Point<i32, i32>, parent_id: Option<&str>, ) -> String

Source

pub fn insert_terminal_with_steiner( &mut self, point: Point<i32, i32>, keepouts: Option<Vec<Interval<i32>>>, )

Source

pub fn insert_terminal_with_constraints( &mut self, point: Point<i32, i32>, allowed_wirelength: i32, keepouts: Option<Vec<Interval<i32>>>, )

Source

pub fn calculate_total_wirelength(&self) -> i32

Source

pub fn calculate_worst_wirelength(&self) -> i32

Source

pub fn find_path_to_source(&self, node_id: &str) -> Vec<&RoutingNode>

Source

pub fn get_all_terminals(&self) -> Vec<&RoutingNode>

Source

pub fn get_all_steiner_nodes(&self) -> Vec<&RoutingNode>

Source

pub fn get_tree_structure(&self) -> String

Source

pub fn visualize_tree(&self)

Source

pub fn optimize_steiner_points(&mut self)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.