ns3::internal::APointerChecker< T > Class Template Reference

#include <pointer.h>

Inheritance diagram for ns3::internal::APointerChecker< T >:
Inheritance graph
[legend]
Collaboration diagram for ns3::internal::APointerChecker< T >:
Collaboration graph
[legend]

List of all members.

Private Member Functions

virtual bool Check (const AttributeValue &val) const
virtual std::string GetValueTypeName (void) const
virtual bool HasUnderlyingTypeInformation (void) const
virtual std::string GetUnderlyingTypeInformation (void) const
virtual Ptr< AttributeValueCreate (void) const
virtual bool Copy (const AttributeValue &source, AttributeValue &destination) const
virtual TypeId GetPointeeTypeId (void) const

Detailed Description

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

Definition at line 84 of file pointer.h.


Member Function Documentation

template<typename T >
virtual bool ns3::internal::APointerChecker< T >::Check ( const AttributeValue value  )  const [inline, private, virtual]
Parameters:
value a 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 86 of file pointer.h.

References ns3::PointerValue::GetObject(), and ns3::PeekPointer().

template<typename T >
virtual bool ns3::internal::APointerChecker< T >::Copy ( const AttributeValue source,
AttributeValue destination 
) const [inline, private, virtual]

Implements ns3::AttributeChecker.

Definition at line 116 of file pointer.h.

template<typename T >
virtual Ptr<AttributeValue> ns3::internal::APointerChecker< T >::Create ( void   )  const [inline, private, virtual]
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 113 of file pointer.h.

template<typename T >
virtual TypeId ns3::internal::APointerChecker< T >::GetPointeeTypeId ( void   )  const [inline, private, virtual]

Implements ns3::PointerChecker.

Definition at line 126 of file pointer.h.

template<typename T >
virtual std::string ns3::internal::APointerChecker< T >::GetUnderlyingTypeInformation ( void   )  const [inline, private, virtual]
Returns:
a human-readable representation of information about the underlying C++ type.

Implements ns3::AttributeChecker.

Definition at line 109 of file pointer.h.

References ns3::TypeId::GetName().

template<typename T >
virtual std::string ns3::internal::APointerChecker< T >::GetValueTypeName ( void   )  const [inline, private, virtual]
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 103 of file pointer.h.

template<typename T >
virtual bool ns3::internal::APointerChecker< T >::HasUnderlyingTypeInformation ( void   )  const [inline, private, virtual]
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 106 of file pointer.h.


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 14:12:20 2009 for NS-3 by  doxygen 1.6.3