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

Aggregate wrap implementation for the count aggregate. More...

#include <aggwrap.h>

Inheritance diagram for ns3::rapidnet::AggWrapCount:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual Ptr< RelationBaseCompute (Ptr< RelationBase > result)
 Compute method as inherited from AggWrap that is not implemented.
virtual Ptr< RelationBaseCompute (Ptr< RelationBase > result, Ptr< Tuple > event)
 Computes the aggregate result.


Detailed Description

Aggregate wrap implementation for the count aggregate.

Member Function Documentation

virtual Ptr<RelationBase> ns3::rapidnet::AggWrapCount::Compute ( Ptr< RelationBase result,
Ptr< Tuple event 
) [virtual]

Computes the aggregate result.

The count aggregate wrap is also required to execute the last join operation with the event tuple in a series of joins that may be involved in the execution of the rule. This is because, if that last join result is empty, then the count value is set to 0 and all other attributes are retrieved from the event that fired the rule. This is precisely the reason why count aggwrap is implemented differently.

Parameters:
result The input relation on which this aggregate is applied.
event The event that triggered the rule that instantiated this aggwrap.

virtual Ptr<RelationBase> ns3::rapidnet::AggWrapCount::Compute ( Ptr< RelationBase result  )  [virtual]

Compute method as inherited from AggWrap that is not implemented.

See also:
Compute() which implements the actual functionality.

Implements ns3::rapidnet::AggWrap.


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