OpenROAD's Doxygen Pages
Compilation of detailed documentation for OpenROAD modules
Loading...
Searching...
No Matches
odb::dbProperty Class Reference

#include <db.h>

Inheritance diagram for odb::dbProperty:
Collaboration diagram for odb::dbProperty:

Public Types

enum  Type { STRING_PROP = 0 , BOOL_PROP = 1 , INT_PROP = 2 , DOUBLE_PROP = 3 }

Public Member Functions

Type getType () const
 Get the type of this property.
std::string getName () const
 Get thetname of this property.
dbObject * getPropOwner () const
 Get the owner of this property.

Static Public Member Functions

static dbProperty * find (dbObject *object, const char *name)
 Find the named property. Returns nullptr if the property does not exist.
static dbProperty * find (dbObject *object, const char *name, Type type)
static void destroy (dbProperty *prop)
 Destroy a specific property.
static void destroyProperties (dbObject *obj)
 Destroy all properties of the specific object.
static dbSet< dbProperty > getProperties (dbObject *object)
static dbSet< dbProperty >::iterator destroy (dbSet< dbProperty >::iterator itr)
static std::string writeProperties (dbObject *object)
static std::string writePropValue (dbProperty *prop)

Detailed Description

Definition at line 9224 of file db.h.

Member Enumeration Documentation

◆ Type

Enumerator
STRING_PROP 
BOOL_PROP 
INT_PROP 
DOUBLE_PROP 

Definition at line 9228 of file db.h.

9229 {
9230 // Do not change the order or the values of this enum.
9231 STRING_PROP = 0,
9232 BOOL_PROP = 1,
9233 INT_PROP = 2,
9234 DOUBLE_PROP = 3
9235 };

Member Function Documentation

◆ destroy() [1/2]

void odb::dbProperty::destroy ( dbProperty * prop)
static

Destroy a specific property.

◆ destroy() [2/2]

dbSet< dbProperty >::iterator odb::dbProperty::destroy ( dbSet< dbProperty >::iterator itr)
static

◆ destroyProperties()

void odb::dbProperty::destroyProperties ( dbObject * obj)
static

Destroy all properties of the specific object.

◆ find() [1/2]

dbProperty * odb::dbProperty::find ( dbObject * object,
const char * name )
static

Find the named property. Returns nullptr if the property does not exist.

◆ find() [2/2]

dbProperty * odb::dbProperty::find ( dbObject * object,
const char * name,
Type type )
static

Find the named property of the specified type. Returns nullptr if the property does not exist.

◆ getName()

std::string odb::dbProperty::getName ( ) const

Get thetname of this property.

◆ getProperties()

dbSet< dbProperty > odb::dbProperty::getProperties ( dbObject * object)
static

◆ getPropOwner()

dbObject * odb::dbProperty::getPropOwner ( ) const

Get the owner of this property.

◆ getType()

Type odb::dbProperty::getType ( ) const

Get the type of this property.

◆ writeProperties()

std::string odb::dbProperty::writeProperties ( dbObject * object)
static

◆ writePropValue()

std::string odb::dbProperty::writePropValue ( dbProperty * prop)
static

The documentation for this class was generated from the following file:
  • openroad/odb/include/odb/db.h