A Discrete-Event Network Simulator
API
ns3::internal::ObjectPtrContainerChecker< T > Class Template Reference

ObjectPtrContainerChecker implementation class. More...

#include "object-ptr-container.h"

+ Inheritance diagram for ns3::internal::ObjectPtrContainerChecker< T >:
+ Collaboration diagram for ns3::internal::ObjectPtrContainerChecker< T >:

Public Member Functions

bool Check (const AttributeValue &value) const override
 
bool Copy (const AttributeValue &source, AttributeValue &destination) const override
 Copy the source to the destination. More...
 
Ptr< AttributeValueCreate () const override
 
TypeId GetItemTypeId () const override
 Get the TypeId of the container class type. More...
 
std::string GetUnderlyingTypeInformation () const override
 
std::string GetValueTypeName () const override
 
bool HasUnderlyingTypeInformation () const override
 
- Public Member Functions inherited from ns3::AttributeChecker
 AttributeChecker ()
 
virtual ~AttributeChecker ()
 
Ptr< AttributeValueCreateValidValue (const AttributeValue &value) const
 Create a valid value from the argument value, or reinterpret the argument as a string. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< AttributeChecker >
 SimpleRefCount ()
 Default constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o[[maybe_unused]])
 Copy constructor. More...
 
uint32_t GetReferenceCount () const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o[[maybe_unused]])
 Assignment operator. More...
 
void Ref () const
 Increment the reference count. More...
 
void Unref () const
 Decrement the reference count. More...
 

Detailed Description

template<typename T>
class ns3::internal::ObjectPtrContainerChecker< T >

ObjectPtrContainerChecker implementation class.

Definition at line 176 of file object-ptr-container.h.

Member Function Documentation

◆ Check()

template<typename T >
bool ns3::internal::ObjectPtrContainerChecker< T >::Check ( const AttributeValue value) const
inlineoverridevirtual
Parameters
[in]valueA pointer to the value to check
Returns
true if the input value is both of the right type and if its value is within the requested range. Returns false otherwise.

Implements ns3::AttributeChecker.

Definition at line 184 of file object-ptr-container.h.

◆ Copy()

template<typename T >
bool ns3::internal::ObjectPtrContainerChecker< T >::Copy ( const AttributeValue source,
AttributeValue destination 
) const
inlineoverridevirtual

Copy the source to the destination.

Parameters
[in]sourceSource AttributeValue
[out]destinationDestination AttributeValue
Returns
true if copy was successful

Implements ns3::AttributeChecker.

Definition at line 209 of file object-ptr-container.h.

◆ Create()

template<typename T >
Ptr<AttributeValue> ns3::internal::ObjectPtrContainerChecker< T >::Create ( ) const
inlineoverridevirtual
Returns
a new instance of an AttributeValue (wrapper in an Attribute instance) which matches the type of the underlying attribute.

This method is typically used to create a temporary variable prior to calling Attribute::DeserializeFromString.

Implements ns3::AttributeChecker.

Definition at line 204 of file object-ptr-container.h.

◆ GetItemTypeId()

template<typename T >
TypeId ns3::internal::ObjectPtrContainerChecker< T >::GetItemTypeId ( ) const
inlineoverridevirtual

Get the TypeId of the container class type.

Returns
The class TypeId.

Implements ns3::ObjectPtrContainerChecker.

Definition at line 179 of file object-ptr-container.h.

◆ GetUnderlyingTypeInformation()

template<typename T >
std::string ns3::internal::ObjectPtrContainerChecker< T >::GetUnderlyingTypeInformation ( ) const
inlineoverridevirtual
Returns
a human-readable representation of information about the underlying C++ type.

Implements ns3::AttributeChecker.

Definition at line 199 of file object-ptr-container.h.

◆ GetValueTypeName()

template<typename T >
std::string ns3::internal::ObjectPtrContainerChecker< T >::GetValueTypeName ( ) const
inlineoverridevirtual
Returns
the c++ fully-qualified typename of the subclass of the ns3::AttributeValue base class which is associated to this checker.

A typical return value here is FooValue where Foo is the name of the type being wrapped.

Implements ns3::AttributeChecker.

Definition at line 189 of file object-ptr-container.h.

◆ HasUnderlyingTypeInformation()

template<typename T >
bool ns3::internal::ObjectPtrContainerChecker< T >::HasUnderlyingTypeInformation ( ) const
inlineoverridevirtual
Returns
true if this checker has information about the underlying C++ type, false otherwise.

If this method returns false, the return value of the GetUnderlyingTypeInformation method cannot be relied upon.

Implements ns3::AttributeChecker.

Definition at line 194 of file object-ptr-container.h.


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