degate  0.1.2
Namespaces | Defines | Typedefs | Enumerations | Functions
globals.h File Reference
#include <stdio.h>
#include <stdint.h>
#include <memory>
#include <map>
#include <assert.h>
#include "degate_exceptions.h"

Go to the source code of this file.

Namespaces

namespace  degate
 

The namespace 'degate' is the namespace for everything that belongs to libdegate.


Defines

#define DEBUG   1
#define SIGNUM(x)   ((x > 0) ? 1 : (x < 0) ? -1 : 0)
#define RET_IS_OK(call_res)   ((call_res) == RET_OK)
#define RET_IS_NOT_OK(call_res)   ((call_res) != RET_OK)
#define degate_mime_type   "application/degate"
#define DEGATE_VERSION   "0.1.2"
#define TM   __FILE__,__LINE__

Typedefs

typedef std::shared_ptr< Circle > degate::Circle_shptr
typedef std::shared_ptr< Line > degate::Line_shptr
typedef std::shared_ptr
< Rectangle > 
degate::Rectangle_shptr
typedef std::shared_ptr
< ConnectedLogicModelObject > 
degate::ConnectedLogicModelObject_shptr
typedef std::shared_ptr
< PlacedLogicModelObject > 
degate::PlacedLogicModelObject_shptr
typedef std::shared_ptr
< RemoteObject > 
degate::RemoteObject_shptr
typedef std::shared_ptr< Net > degate::Net_shptr
typedef std::shared_ptr< GatePort > degate::GatePort_shptr
typedef std::shared_ptr
< GateTemplate > 
degate::GateTemplate_shptr
typedef std::shared_ptr
< GateLibrary > 
degate::GateLibrary_shptr
typedef std::shared_ptr< Layer > degate::Layer_shptr
typedef std::shared_ptr< Wire > degate::Wire_shptr
typedef std::shared_ptr< Via > degate::Via_shptr
typedef std::shared_ptr< EMarker > degate::EMarker_shptr
typedef std::shared_ptr
< Annotation > 
degate::Annotation_shptr
typedef std::shared_ptr< Module > degate::Module_shptr
typedef std::shared_ptr
< LogicModel > 
degate::LogicModel_shptr
typedef unsigned int degate::layer_position_t
typedef uint32_t degate::color_t
 defines the type for colors
typedef unsigned long long degate::object_id_t
typedef unsigned long long degate::layer_id_t
typedef unsigned long long degate::transaction_id_t
typedef unsigned int degate::diameter_t
typedef unsigned int degate::length_t
typedef int degate::pos_t
typedef std::map< ENTITY_COLOR,
color_t > 
degate::default_colors_t

Enumerations

enum  degate::ret_t {
  degate::RET_OK = 0,
  degate::RET_ERR = 1,
  degate::RET_INV_PTR = 2,
  degate::RET_MALLOC_FAILED = 3,
  degate::RET_INV_PATH = 4,
  degate::RET_MATH_ERR = 5,
  degate::RET_CANCEL = 6
}
enum  degate::ENTITY_COLOR {
  degate::DEFAULT_COLOR_WIRE,
  degate::DEFAULT_COLOR_VIA_UP,
  degate::DEFAULT_COLOR_VIA_DOWN,
  degate::DEFAULT_COLOR_GRID,
  degate::DEFAULT_COLOR_ANNOTATION,
  degate::DEFAULT_COLOR_ANNOTATION_FRAME,
  degate::DEFAULT_COLOR_GATE,
  degate::DEFAULT_COLOR_GATE_FRAME,
  degate::DEFAULT_COLOR_GATE_PORT,
  degate::DEFAULT_COLOR_TEXT,
  degate::DEFAULT_COLOR_EMARKER
}

Functions

void debug (const char *const module, int line, const char *const format,...)
std::string degate::gen_tabs (int n)

Define Documentation

#define DEBUG   1

Definition at line 38 of file globals.h.

#define degate_mime_type   "application/degate"

Definition at line 56 of file globals.h.

#define DEGATE_VERSION   "0.1.2"

Definition at line 68 of file globals.h.

#define RET_IS_NOT_OK (   call_res)    ((call_res) != RET_OK)
#define RET_IS_OK (   call_res)    ((call_res) == RET_OK)

Definition at line 52 of file globals.h.

Referenced by degate::MemoryMap< T >::MemoryMap().

#define SIGNUM (   x)    ((x > 0) ? 1 : (x < 0) ? -1 : 0)

Definition at line 40 of file globals.h.

#define TM   __FILE__,__LINE__

Definition at line 72 of file globals.h.

Referenced by degate::Layer::add_object(), degate::ProjectArchiver::add_single_file(), degate::TemplateMatching::calc_single_xcorr(), degate::Importer::check_file(), degate::TileCache< PixelPolicy >::cleanup_cache(), degate::ScalingManager< ImageType >::create_scalings(), degate::determine_module_ports_for_root(), degate::LogicModelDOTExporter::export_data(), degate::MemoryMap< T >::get(), degate::get_available_standard_layers(), degate::TemplateMatchingInRows::get_next_pos(), degate::TemplateMatchingInCols::get_next_pos(), degate::Layer::get_object_at_position(), degate::Annotation::get_parameter(), degate::MemoryMap< T >::get_void_ptr(), degate::grab_template_images(), degate::GateLibraryImporter::import(), degate::ProjectImporter::import(), degate::ProjectImporter::import_all(), degate::RCVBlacklistImporter::import_into(), degate::LogicModelImporter::import_into(), degate::TemplateMatching::init(), degate::TemplateMatchingAlongGrid::initialize_state_struct(), degate::ProjectImporter::load_background_image(), degate::load_background_image(), degate::load_image(), degate::MemoryMap< T >::map_file(), degate::MemoryMap< T >::map_file_by_fd(), degate::MemoryMap< T >::map_temp_file(), degate::TemplateMatching::match_single_template(), degate::MemoryMap< T >::MemoryMap(), degate::LineSegmentMap::merge(), degate::region_iterator< T >::next_node(), degate::region_iterator< T >::operator++(), degate::Importer::parse_bool(), degate::ProjectImporter::parse_layers_element(), degate::LogicModelImporter::parse_nets_element(), degate::GateLibraryImporter::parse_template_implementations_element(), degate::LinearPrimitive::print(), degate::process_changelog_command(), degate::pull_changes_from_server(), degate::RemoteObject::push(), degate::push_changes_to_server(), degate::JPEGReader< ImageType >::read(), degate::GlobalTileCache::release_cache_memory(), degate::LogicModel::remove_gate(), degate::Layer::remove_object(), degate::LogicModel::remove_object(), degate::GlobalTileCache::remove_oldest(), degate::LogicModel::remove_remote_object(), degate::GlobalTileCache::request_cache_memory(), degate::ERCOpenPorts::run(), degate::RuleChecker::run(), degate::WireMatching::run(), degate::ViaMatching::run(), degate::ExternalMatching::run(), degate::TemplateMatching::run(), degate::ViaMatching::scan(), degate::MemoryMap< T >::set(), degate::GateTemplate::set_image(), degate::TemplateMatching::set_orientations(), degate::EdgeDetection::setup_pipe(), degate::region_iterator< T >::skip_non_matching_children(), degate::QuadTree< T >::split(), degate::Layer::unset_image(), degate::LogicModel::update_ports(), degate::Gate::~Gate(), and degate::MemoryMap< T >::~MemoryMap().


Function Documentation

void debug ( const char *const  module,
int  line,
const char *const  format,
  ... 
)

Definition at line 30 of file debug.cc.

Referenced by degate::Layer::add_object(), degate::ProjectArchiver::add_single_file(), degate::TemplateMatching::calc_single_xcorr(), degate::Importer::check_file(), degate::TileCache< PixelPolicy >::cleanup_cache(), degate::ScalingManager< ImageType >::create_scalings(), degate::determine_module_ports_for_root(), degate::LogicModelDOTExporter::export_data(), degate::MemoryMap< T >::get(), degate::get_available_standard_layers(), degate::TemplateMatchingInRows::get_next_pos(), degate::TemplateMatchingInCols::get_next_pos(), degate::Layer::get_object_at_position(), degate::Annotation::get_parameter(), degate::MemoryMap< T >::get_void_ptr(), degate::grab_template_images(), degate::GateLibraryImporter::import(), degate::ProjectImporter::import(), degate::ProjectImporter::import_all(), degate::RCVBlacklistImporter::import_into(), degate::LogicModelImporter::import_into(), degate::TemplateMatching::init(), degate::TemplateMatchingAlongGrid::initialize_state_struct(), degate::ProjectImporter::load_background_image(), degate::load_background_image(), degate::load_image(), degate::MemoryMap< T >::map_file(), degate::MemoryMap< T >::map_file_by_fd(), degate::MemoryMap< T >::map_temp_file(), degate::TemplateMatching::match_single_template(), degate::MemoryMap< T >::MemoryMap(), degate::LineSegmentMap::merge(), degate::region_iterator< T >::next_node(), degate::region_iterator< T >::operator++(), degate::Importer::parse_bool(), degate::ProjectImporter::parse_layers_element(), degate::LogicModelImporter::parse_nets_element(), degate::GateLibraryImporter::parse_template_implementations_element(), degate::LinearPrimitive::print(), degate::process_changelog_command(), degate::pull_changes_from_server(), degate::RemoteObject::push(), degate::push_changes_to_server(), degate::JPEGReader< ImageType >::read(), degate::GlobalTileCache::release_cache_memory(), degate::LogicModel::remove_gate(), degate::Layer::remove_object(), degate::LogicModel::remove_object(), degate::GlobalTileCache::remove_oldest(), degate::LogicModel::remove_remote_object(), degate::GlobalTileCache::request_cache_memory(), degate::ERCOpenPorts::run(), degate::RuleChecker::run(), degate::WireMatching::run(), degate::ViaMatching::run(), degate::ExternalMatching::run(), degate::TemplateMatching::run(), degate::ViaMatching::scan(), degate::MemoryMap< T >::set(), degate::GateTemplate::set_image(), degate::TemplateMatching::set_orientations(), degate::EdgeDetection::setup_pipe(), degate::region_iterator< T >::skip_non_matching_children(), degate::QuadTree< T >::split(), degate::Layer::unset_image(), degate::LogicModel::update_ports(), degate::Gate::~Gate(), and degate::MemoryMap< T >::~MemoryMap().

                                                                                {

  va_list args;
  printf("[%s:%d] ", module, line);

  va_start(args, format);
  vfprintf(stdout, format, args);
  va_end(args);
  puts("");

}