initialize member variables of EpsBearer upon construction
This commit is contained in:
@@ -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 ()
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user