| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Classes | Typedefs | Enumerations | Functions

# Containers Namespace Reference

Containers namespace. More...

## Classes
class | KeyedObjectManager
| KeyedObjectManager Class to manage keyed objects. More...
struct | key_traits
| Definition of the key traits class. More...
struct | traits
| Definition of the container traits class. More...
struct | hashmap
struct | map
struct | array
struct | vector
class | find
## Typedefs
typedef long(* | MANIPULATOR )(void *)
| Object manipulator type definition.
typedef KeyedObjectManager< map > | Map
| Forward declaration of specialized std::map-like object manager.
typedef KeyedObjectManager < hashmap > | HashMap
| Forward declaration of specialized std::hashmap-like object manager.
typedef KeyedObjectManager < vector > | Vector
| Forward declaration of specialized std::vector-like object manager.
typedef KeyedObjectManager< array > | Array
| Forward declaration of specialized redirection array object manager.
## Enumerations
enum | { OBJ_NOT_FOUND, OBJ_DELETED, OBJ_ERASED, OBJ_INSERTED, OBJ_CANNOT_INSERT }
## Functions
GAUDI_API void | cannotInsertToContainer ()
| Function to be called to indicate that an object cannot be inserted to the container.
GAUDI_API void | containerIsInconsistent ()
| Function to be called to indicate that the container is found to be inconsistent.
GAUDI_API void | invalidContainerOperation ()
| Function to be called to indicate that an operation should be performed on the container or it's contained data, which is not allowed.
GAUDI_API void | cannotAssignObjectKey ()
| Function to be called when an object key cannot be assigned.

## Detailed Description

Containers namespace.

## Typedef Documentation

typedef KeyedObjectManager< array > Containers::Array

Forward declaration of specialized redirection array object manager.

Definition at line 101 of file KeyedObjectManager.h.

typedef KeyedObjectManager< hashmap > Containers::HashMap

Forward declaration of specialized std::hashmap-like object manager.

Definition at line 97 of file KeyedObjectManager.h.

typedef long(* Containers::MANIPULATOR)(void *)

Object manipulator type definition.

Definition at line 22 of file KeyedObjectManager.h.

typedef KeyedObjectManager< map > Containers::Map

Forward declaration of specialized std::map-like object manager.

Definition at line 95 of file KeyedObjectManager.h.

typedef KeyedObjectManager< vector > Containers::Vector

Forward declaration of specialized std::vector-like object manager.

Definition at line 99 of file KeyedObjectManager.h.

## Enumeration Type Documentation

anonymous enum

Enumerator:

  OBJ_NOT_FOUND | Object not present in the container.
  OBJ_DELETED | Object was removed from the container and deleted.
  OBJ_ERASED | Object was removed, but not deleted.
  OBJ_INSERTED | Object was inserted into the container.
  OBJ_CANNOT_INSERT | Cannot insert object into container.

Definition at line 20 of file KeyedTraits.h.

           {
        OBJ_NOT_FOUND,
        OBJ_DELETED,
        OBJ_ERASED,
        OBJ_INSERTED,
        OBJ_CANNOT_INSERT
      };

## Function Documentation

void Containers::cannotAssignObjectKey | ( | ) |

Function to be called when an object key cannot be assigned.

Definition at line 67 of file KeyedObjectManager.cpp.

                                             {
      throw GaudiException("Cannot assign key to keyed object! Object already has a key.",
                           "KeyedObject",
                           0);
    }

void Containers::cannotInsertToContainer | ( | ) |

Function to be called to indicate that an object cannot be inserted to the container.

Internally an exception is thrown.

Definition at line 72 of file KeyedObjectManager.cpp.

                                               {
      throw GaudiException("Cannot insert element to Keyed Container!",
                           "KeyedContainer",
                           0);
    }

void Containers::containerIsInconsistent | ( | ) |

Function to be called to indicate that the container is found to be inconsistent.

Internally an exception is thrown.

Definition at line 78 of file KeyedObjectManager.cpp.

                                               {
      throw GaudiException("Keyed Container structures are inconsistent - severe problem!",
                           "KeyedContainer",
                           0);
    }

void Containers::invalidContainerOperation | ( | ) |

Function to be called to indicate that an operation should be performed on the container or it's contained data, which is not allowed.

Internally an exception is thrown.

Definition at line 84 of file KeyedObjectManager.cpp.

                                                 {
      throw GaudiException("Keyed Container cannot satisfy request - severe problem!",
                           "KeyedContainer",
                           0);
    }

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines