A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::EmptyAttributeValue Class Reference

A class for an empty attribute value. More...

#include "attribute.h"

+ Inheritance diagram for ns3::EmptyAttributeValue:
+ Collaboration diagram for ns3::EmptyAttributeValue:

Public Member Functions

 EmptyAttributeValue ()
 Default constructor.
 
- Public Member Functions inherited from ns3::AttributeValue
 AttributeValue ()
 
virtual ~AttributeValue ()
 
virtual Ptr< AttributeValueCopy () const =0
 
virtual bool DeserializeFromString (std::string value, Ptr< const AttributeChecker > checker)=0
 
virtual std::string SerializeToString (Ptr< const AttributeChecker > checker) const =0
 
- Public Member Functions inherited from ns3::SimpleRefCount< AttributeValue >
 SimpleRefCount ()
 Default constructor.
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor.
 
uint32_t GetReferenceCount () const
 Get the reference count of the object.
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator.
 
void Ref () const
 Increment the reference count.
 
void Unref () const
 Decrement the reference count.
 

Private Member Functions

Ptr< AttributeValueCopy () const override
 
bool DeserializeFromString (std::string value, Ptr< const AttributeChecker > checker) override
 
std::string SerializeToString (Ptr< const AttributeChecker > checker) const override
 

Detailed Description

A class for an empty attribute value.

See also
AttributeValue

Definition at line 241 of file attribute.h.

Constructor & Destructor Documentation

◆ EmptyAttributeValue()

ns3::EmptyAttributeValue::EmptyAttributeValue ( )

Default constructor.

Definition at line 92 of file attribute.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

◆ Copy()

Ptr< AttributeValue > ns3::EmptyAttributeValue::Copy ( ) const
overrideprivatevirtual
Returns
a deep copy of this class, wrapped into an Attribute object.

Implements ns3::AttributeValue.

Definition at line 98 of file attribute.cc.

References NS_LOG_FUNCTION.

◆ DeserializeFromString()

bool ns3::EmptyAttributeValue::DeserializeFromString ( std::string  value,
Ptr< const AttributeChecker checker 
)
overrideprivatevirtual
Parameters
[in]valueA string representation of the value
[in]checkerA pointer to the checker associated to the attribute.
Returns
true if the input string was correctly-formatted and could be successfully deserialized, false otherwise.

In the trivial case of EmptyAttributeValue, this should always return true

Implements ns3::AttributeValue.

Definition at line 112 of file attribute.cc.

References NS_LOG_FUNCTION.

◆ SerializeToString()

std::string ns3::EmptyAttributeValue::SerializeToString ( Ptr< const AttributeChecker checker) const
overrideprivatevirtual
Parameters
[in]checkerThe checker associated to the attribute
Returns
a string representation of this value.

In the EmptyAttributeValue case, the string returned will be simply ""

Implements ns3::AttributeValue.

Definition at line 105 of file attribute.cc.

References NS_LOG_FUNCTION.


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