ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
Loading...
Searching...
No Matches
zlayout::spatial::IPBlock Struct Reference

IP Block represents a hierarchical design block. More...

#include <advanced_spatial.hpp>

Collaboration diagram for zlayout::spatial::IPBlock:

Public Member Functions

 IPBlock (const std::string &name, const geometry::Rectangle &boundary, size_t level=0)
bool contains (const geometry::Rectangle &rect) const
bool intersects (const geometry::Rectangle &rect) const
void add_sub_block (std::unique_ptr< IPBlock > block)
void add_component (size_t component_id)

Public Attributes

std::string name
geometry::Rectangle boundary
std::vector< std::unique_ptr< IPBlock > > sub_blocks
std::vector< size_t > component_ids
size_t level

Detailed Description

IP Block represents a hierarchical design block.

Definition at line 131 of file advanced_spatial.hpp.

Constructor & Destructor Documentation

◆ IPBlock()

zlayout::spatial::IPBlock::IPBlock ( const std::string & name,
const geometry::Rectangle & boundary,
size_t level = 0 )
inline

Definition at line 138 of file advanced_spatial.hpp.

Member Function Documentation

◆ add_component()

void zlayout::spatial::IPBlock::add_component ( size_t component_id)
inline

Definition at line 153 of file advanced_spatial.hpp.

Here is the caller graph for this function:

◆ add_sub_block()

void zlayout::spatial::IPBlock::add_sub_block ( std::unique_ptr< IPBlock > block)
inline

Definition at line 149 of file advanced_spatial.hpp.

Here is the caller graph for this function:

◆ contains()

bool zlayout::spatial::IPBlock::contains ( const geometry::Rectangle & rect) const
inline

Definition at line 141 of file advanced_spatial.hpp.

◆ intersects()

bool zlayout::spatial::IPBlock::intersects ( const geometry::Rectangle & rect) const
inline

Definition at line 145 of file advanced_spatial.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ boundary

geometry::Rectangle zlayout::spatial::IPBlock::boundary

Definition at line 133 of file advanced_spatial.hpp.

◆ component_ids

std::vector<size_t> zlayout::spatial::IPBlock::component_ids

Definition at line 135 of file advanced_spatial.hpp.

◆ level

size_t zlayout::spatial::IPBlock::level

Definition at line 136 of file advanced_spatial.hpp.

◆ name

std::string zlayout::spatial::IPBlock::name

Definition at line 132 of file advanced_spatial.hpp.

◆ sub_blocks

std::vector<std::unique_ptr<IPBlock> > zlayout::spatial::IPBlock::sub_blocks

Definition at line 134 of file advanced_spatial.hpp.


The documentation for this struct was generated from the following file: