A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::internal::PointerChecker< T > Class Template Reference

PointerChecker implementation. More...

#include "pointer.h"

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

Private Member Functions

bool Check (const AttributeValue &val) const override
 
bool Copy (const AttributeValue &source, AttributeValue &destination) const override
 Copy the source to the destination.
 
Ptr< AttributeValueCreate () const override
 
TypeId GetPointeeTypeId () const override
 Get the TypeId of the base type.
 
std::string GetUnderlyingTypeInformation () const override
 
std::string GetValueTypeName () const override
 
bool HasUnderlyingTypeInformation () const override
 

Additional Inherited Members

virtual TypeId GetPointeeTypeId () const =0
 Get the TypeId of the base type.
 
- Public Member Functions inherited from ns3::AttributeChecker
 AttributeChecker ()
 
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 Ptr< AttributeValueCreate () const =0
 
Ptr< AttributeValueCreateValidValue (const AttributeValue &value) const
 Create a valid value from the argument value, or reinterpret the argument as a string.
 
virtual std::string GetUnderlyingTypeInformation () const =0
 
virtual std::string GetValueTypeName () const =0
 
virtual bool HasUnderlyingTypeInformation () const =0
 
- Public Member Functions inherited from ns3::SimpleRefCount< AttributeChecker >
 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

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

PointerChecker implementation.

Definition at line 160 of file pointer.h.

Member Function Documentation

◆ Check()

template<typename T >
bool ns3::internal::PointerChecker< T >::Check ( const AttributeValue value) const
inlineoverrideprivatevirtual
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 162 of file pointer.h.

References ns3::PeekPointer().

+ Here is the call graph for this function:

◆ Copy()

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

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 199 of file pointer.h.

◆ Create()

template<typename T >
Ptr< AttributeValue > ns3::internal::PointerChecker< T >::Create ( ) const
inlineoverrideprivatevirtual
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 194 of file pointer.h.

◆ GetPointeeTypeId()

template<typename T >
TypeId ns3::internal::PointerChecker< T >::GetPointeeTypeId ( ) const
inlineoverrideprivatevirtual

Get the TypeId of the base type.

Returns
The base TypeId.

Implements ns3::PointerChecker.

Definition at line 211 of file pointer.h.

◆ GetUnderlyingTypeInformation()

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

Implements ns3::AttributeChecker.

Definition at line 188 of file pointer.h.

References ns3::TypeId::GetName().

+ Here is the call graph for this function:

◆ GetValueTypeName()

template<typename T >
std::string ns3::internal::PointerChecker< T >::GetValueTypeName ( ) const
inlineoverrideprivatevirtual
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 178 of file pointer.h.

◆ HasUnderlyingTypeInformation()

template<typename T >
bool ns3::internal::PointerChecker< T >::HasUnderlyingTypeInformation ( ) const
inlineoverrideprivatevirtual
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 183 of file pointer.h.


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