37 class AttributeAccessor;
38 class AttributeChecker;
allow setting and getting the value of an attribute.
virtual bool HasGetter(void) const =0
virtual bool Get(const ObjectBase *object, AttributeValue &attribute) const =0
virtual bool Set(ObjectBase *object, const AttributeValue &value) const =0
virtual bool HasSetter(void) const =0
virtual ~AttributeAccessor()
Represent the type of an attribute.
virtual Ptr< AttributeValue > Create(void) const =0
virtual std::string GetUnderlyingTypeInformation(void) const =0
virtual ~AttributeChecker()
virtual bool Check(const AttributeValue &value) const =0
virtual bool Copy(const AttributeValue &source, AttributeValue &destination) const =0
Copy the source to the destination.
virtual bool HasUnderlyingTypeInformation(void) const =0
Ptr< AttributeValue > CreateValidValue(const AttributeValue &value) const
Create a valid value from the argument value, or reinterpret the argument as a string.
virtual std::string GetValueTypeName(void) const =0
Hold a value for an Attribute.
virtual bool DeserializeFromString(std::string value, Ptr< const AttributeChecker > checker)=0
virtual ~AttributeValue()
virtual Ptr< AttributeValue > Copy(void) const =0
virtual std::string SerializeToString(Ptr< const AttributeChecker > checker) const =0
An accessor for EmptyAttributeValue.
virtual bool HasGetter(void) const
virtual bool HasSetter(void) const
virtual bool Set(ObjectBase *object, const AttributeValue &value) const
virtual bool Get(const ObjectBase *object, AttributeValue &attribute) const
~EmptyAttributeAccessor()
A checker for EmptyAttributeValue.
virtual Ptr< AttributeValue > Create(void) const
virtual std::string GetUnderlyingTypeInformation(void) const
virtual bool Copy(const AttributeValue &source, AttributeValue &destination) const
Copy the source to the destination.
virtual bool HasUnderlyingTypeInformation(void) const
virtual bool Check(const AttributeValue &value) const
virtual std::string GetValueTypeName(void) const
A class for an empty attribute value.
virtual std::string SerializeToString(Ptr< const AttributeChecker > checker) const
EmptyAttributeValue()
Default constructor.
virtual bool DeserializeFromString(std::string value, Ptr< const AttributeChecker > checker)
virtual Ptr< AttributeValue > Copy(void) const
Anchor the ns-3 type and attribute system.
Smart pointer class similar to boost::intrusive_ptr.
A template-based reference counting class.
static Ptr< AttributeChecker > MakeEmptyAttributeChecker()
Create an empty AttributeChecker.
static Ptr< const AttributeAccessor > MakeEmptyAttributeAccessor()
Create an empty AttributeAccessor.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::Ptr smart pointer declaration and implementation.
ns3::SimpleRefCount declaration and template implementation.