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

An accessor for EmptyAttributeValue. More...

#include "attribute.h"

+ Inheritance diagram for ns3::EmptyAttributeAccessor:
+ Collaboration diagram for ns3::EmptyAttributeAccessor:

Public Member Functions

 EmptyAttributeAccessor ()
 
 ~EmptyAttributeAccessor () override
 
bool Get (const ObjectBase *object, AttributeValue &attribute) const override
 
bool HasGetter () const override
 
bool HasSetter () const override
 
bool Set (ObjectBase *object, const AttributeValue &value) const override
 
- Public Member Functions inherited from ns3::AttributeAccessor
 AttributeAccessor ()
 
virtual ~AttributeAccessor ()
 
virtual bool Get (const ObjectBase *object, AttributeValue &attribute) const =0
 
virtual bool HasGetter () const =0
 
virtual bool HasSetter () const =0
 
virtual bool Set (ObjectBase *object, const AttributeValue &value) const =0
 
- Public Member Functions inherited from ns3::SimpleRefCount< AttributeAccessor >
 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.
 

Detailed Description

An accessor for EmptyAttributeValue.

Does nothing, since every EmptyAttributeValue is the same.

Definition at line 277 of file attribute.h.

Constructor & Destructor Documentation

◆ EmptyAttributeAccessor()

ns3::EmptyAttributeAccessor::EmptyAttributeAccessor ( )

Definition at line 118 of file attribute.cc.

◆ ~EmptyAttributeAccessor()

ns3::EmptyAttributeAccessor::~EmptyAttributeAccessor ( )
override

Definition at line 123 of file attribute.cc.

Member Function Documentation

◆ Get()

bool ns3::EmptyAttributeAccessor::Get ( const ObjectBase object,
AttributeValue attribute 
) const
overridevirtual
Parameters
[in,out]objectThe object instance to get the value from
[out]attributeA pointer to where the value should be set.
Returns
true if the value could be read successfully, and stored in the input value, false otherwise.

This method expects that the caller has checked that the input value is valid with AttributeChecker::Check.

Implements ns3::AttributeAccessor.

Definition at line 135 of file attribute.cc.

◆ HasGetter()

bool ns3::EmptyAttributeAccessor::HasGetter ( ) const
overridevirtual
Returns
true if this accessor supports the Get operation, false otherwise.

Implements ns3::AttributeAccessor.

Definition at line 142 of file attribute.cc.

◆ HasSetter()

bool ns3::EmptyAttributeAccessor::HasSetter ( ) const
overridevirtual
Returns
true if this accessor supports the Set operation, false otherwise.

Implements ns3::AttributeAccessor.

Definition at line 148 of file attribute.cc.

◆ Set()

bool ns3::EmptyAttributeAccessor::Set ( ObjectBase object,
const AttributeValue value 
) const
overridevirtual
Parameters
[in,out]objectThe object instance to set the value in
[in]valueThe value to set
Returns
true if the value could be set successfully, false otherwise.

This method expects that the caller has checked that the input value is valid with AttributeChecker::Check.

Implements ns3::AttributeAccessor.

Definition at line 128 of file attribute.cc.


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