#include <database.h>
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< RelationBase > | GetRelation (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< RapidNetApplicationBase > | GetApplication () |
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< Database > | New (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. |
It is implemented as a map of
RapidNetApplicationBase Object to which it belongs.
Ptr<RapidNetApplicationBase> ns3::rapidnet::Database::GetApplication | ( | ) | [inline] |
virtual TypeId ns3::rapidnet::Database::GetInstanceTypeId | ( | ) | [inline, virtual] |
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().