ns3::rapidnet::Database Class Reference
[RapidNet Library]

A RapidNet database. More...

#include <database.h>

Inheritance diagram for ns3::rapidnet::Database:

Inheritance graph
[legend]
Collaboration diagram for ns3::rapidnet::Database:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual TypeId GetInstanceTypeId ()
virtual bool HasRelation (string name)
 Returns true if a relation with the given name exists in this database.
virtual void AddRelation (Ptr< RelationBase > reln)
 Adds a relation to the database if it does not already exist. Throws an error otherwise.
virtual bool RemoveRelation (string name)
 Removes the relation with the given name from this database.
virtual Ptr< RelationBaseGetRelation (string name)
 Returns the relation with the given name, throws an error otherwise.
int Insert (Ptr< Tuple > tuple)
 Inserts the given tuple into the relation with the same name as the tuple. If no relation with this name exists, an error is thrown.
Ptr< RapidNetApplicationBaseGetApplication ()
 Returns the associated.
map< string, Ptr< RelationBase > > GetAllRelations ()
 Returns name-relation map in this database.

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::Object.
static Ptr< DatabaseNew (Ptr< RapidNetApplicationBase > application)
 Factory method to create a new database.

Protected Member Functions

virtual void CleanTupleBeforeInsert (Ptr< Tuple > &tuple)
 Removes RapidNet specific attributes from the tuple before insertion into the database relation.


Detailed Description

A RapidNet database.

It is implemented as a map of

See also:
Relation objects keyed by their name. The database Object is associated with one

RapidNetApplicationBase Object to which it belongs.


Member Function Documentation

Ptr<RapidNetApplicationBase> ns3::rapidnet::Database::GetApplication (  )  [inline]

Returns the associated.

See also:
RapidNet application Object.

virtual TypeId ns3::rapidnet::Database::GetInstanceTypeId (  )  [inline, virtual]

Returns:
the TypeId associated to the most-derived type of this instance.
This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.

Implements ns3::ObjectBase.

References GetTypeId().

static TypeId ns3::rapidnet::Database::GetTypeId ( void   )  [static]

This method returns the TypeId associated to ns3::Object.

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::Object.

Referenced by GetInstanceTypeId().


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

Generated on Fri Apr 9 15:01:11 2010 for NS-3 by  doxygen 1.5.8