SUMO - Simulation of Urban MObility
DistributionCont Class Reference

#include <DistributionCont.h>

Static Public Member Functions

static bool dictionary (const std::string &type, const std::string &id, Distribution *d)
 Adds a distribution of the given type and name to the container.
static Distributiondictionary (const std::string &type, const std::string &id)
 retrieves the distribution described by a type and a name from the container

Private Types

typedef std::map< std::string,
Distribution * > 
DistDict
 Definition of a map from distribution ids to distributions.
typedef std::map< std::string,
DistDict
TypedDistDict
 Definition of a map from distribution types to distribution ids to distributions.

Static Private Attributes

static TypedDistDict myDict
 Map from distribution types to distribution ids to distributions.

Detailed Description

A container for distributions of different type.

Definition at line 45 of file DistributionCont.h.


Member Typedef Documentation

typedef std::map<std::string, Distribution*> DistributionCont::DistDict [private]

Definition of a map from distribution ids to distributions.

Definition at line 57 of file DistributionCont.h.

typedef std::map<std::string, DistDict> DistributionCont::TypedDistDict [private]

Definition of a map from distribution types to distribution ids to distributions.

Definition at line 60 of file DistributionCont.h.


Member Function Documentation

bool DistributionCont::dictionary ( const std::string &  type,
const std::string &  id,
Distribution d 
) [static]

Adds a distribution of the given type and name to the container.

Definition at line 46 of file DistributionCont.cpp.

References myDict.

Distribution * DistributionCont::dictionary ( const std::string &  type,
const std::string &  id 
) [static]

retrieves the distribution described by a type and a name from the container

Definition at line 65 of file DistributionCont.cpp.

References myDict.


Field Documentation

Map from distribution types to distribution ids to distributions.

Definition at line 63 of file DistributionCont.h.

Referenced by dictionary().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines