torc::common::Annotated Class Reference

Concept for any object that can be annotated. More...

#include <Annotated.hpp>

Inheritance diagram for torc::common::Annotated:

Inheritance graph
[legend]

List of all members.

Public Types

enum  EAnnotationType {
  ePlacerInstanceTypeIndex, ePlacerInstanceSitePtr, ePlacerInstanceCollection, eRouterNetTilewireSources,
  eRouterNetTilewireSinks, eRouterNetArcList, eRouterNetRouteNodePtrVector, eRouterNetRouteTime,
  eRouterNetArcVector, eAnnotationGlobalRouter, eAnnotationCount
}
 Enumeration for all types of annotations. More...

Public Member Functions

 Annotated ()
 Default constructor containing no annotations.
 ~Annotated ()
 Destructor.
boost::any getAnnotation (uint32 inKey)
 Get an annotation. Returns an empty annotation if the index doesn't exist.
void setAnnotation (uint32 inKey, boost::any inValue)
 Set an annotation.
void removeAnnotation (uint32 inKey)
 Remove an annotation.
bool hasAnnotation (uint32 inKey)
 Check if an annotation exists.

Protected Attributes

boost::unordered_map
< boost::uint32_t, boost::any > 
mAnnotations
 Map containing any annotations.

Private Types

typedef boost::uint32_t uint32


Detailed Description

Concept for any object that can be annotated.

Definition at line 29 of file Annotated.hpp.


Member Enumeration Documentation

Enumeration for all types of annotations.

Definition at line 57 of file Annotated.hpp.


Constructor & Destructor Documentation

torc::common::Annotated::Annotated (  )  [inline]

Default constructor containing no annotations.

Definition at line 39 of file Annotated.hpp.

torc::common::Annotated::~Annotated (  )  [inline]

Destructor.

Definition at line 41 of file Annotated.hpp.


Member Function Documentation

boost::any torc::common::Annotated::getAnnotation ( uint32  inKey  )  [inline]

Get an annotation. Returns an empty annotation if the index doesn't exist.

Definition at line 45 of file Annotated.hpp.

void torc::common::Annotated::setAnnotation ( uint32  inKey,
boost::any  inValue 
) [inline]

Set an annotation.

Definition at line 47 of file Annotated.hpp.

void torc::common::Annotated::removeAnnotation ( uint32  inKey  )  [inline]

Remove an annotation.

Definition at line 49 of file Annotated.hpp.

bool torc::common::Annotated::hasAnnotation ( uint32  inKey  )  [inline]

Check if an annotation exists.

Definition at line 51 of file Annotated.hpp.


Member Data Documentation

boost::unordered_map<boost::uint32_t, boost::any> torc::common::Annotated::mAnnotations [protected]

Map containing any annotations.

Definition at line 34 of file Annotated.hpp.


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

Generated on Thu Oct 13 16:49:53 2011 for TORC by  doxygen 1.5.6