initialize member variables of EpsBearer upon construction

This commit is contained in:
Nicola Baldo
2012-12-19 17:34:54 +01:00
parent 1bf68e5219
commit 1d1815ed2d
2 changed files with 22 additions and 0 deletions

View File

@@ -27,7 +27,20 @@
namespace ns3 {
GbrQosInformation::GbrQosInformation ()
: gbrDl (0),
gbrUl (0),
mbrDl (0),
mbrUl (0)
{
}
AllocationRetentionPriority::AllocationRetentionPriority ()
: priorityLevel (0),
preemptionCapability (false),
preemptionVulnerability (false)
{
}
EpsBearer::EpsBearer ()
{

View File

@@ -32,6 +32,11 @@ namespace ns3 {
*/
struct GbrQosInformation
{
/**
* Default constructor, inizializes member variables to zero or equivalent
*/
GbrQosInformation ();
uint64_t gbrDl; /**< Guaranteed Bit Rate (bit/s) in downlink */
uint64_t gbrUl; /**< Guaranteed Bit Rate (bit/s) in uplink */
uint64_t mbrDl; /**< Maximum Bit Rate (bit/s) in downlink */
@@ -45,6 +50,10 @@ struct GbrQosInformation
*/
struct AllocationRetentionPriority
{
/**
* Default constructor, inizializes member variables to zero or equivalent
*/
AllocationRetentionPriority ();
uint8_t priorityLevel; // /< 1-15; 1 = highest
bool preemprionCapability; // /< true if bearer can preempt others
bool preemprionVulnerability; // true if bearer can be preempted by others