ns3::AccessorHelper< T, U > Class Template Reference

#include <attribute-accessor-helper.h>

Inheritance diagram for ns3::AccessorHelper< T, U >:
Inheritance graph
[legend]
Collaboration diagram for ns3::AccessorHelper< T, U >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AccessorHelper ()
virtual bool Set (ObjectBase *object, const AttributeValue &val) const
virtual bool Get (const ObjectBase *object, AttributeValue &val) const

Private Member Functions

virtual bool DoSet (T *object, const U *v) const =0
virtual bool DoGet (const T *object, U *v) const =0

Detailed Description

template<typename T, typename U>
class ns3::AccessorHelper< T, U >

Definition at line 57 of file attribute-accessor-helper.h.


Constructor & Destructor Documentation

template<typename T , typename U >
ns3::AccessorHelper< T, U >::AccessorHelper (  )  [inline]

Definition at line 60 of file attribute-accessor-helper.h.


Member Function Documentation

template<typename T , typename U >
virtual bool ns3::AccessorHelper< T, U >::DoGet ( const T *  object,
U *  v 
) const [private, pure virtual]
template<typename T , typename U >
virtual bool ns3::AccessorHelper< T, U >::DoSet ( T *  object,
const U *  v 
) const [private, pure virtual]
template<typename T , typename U >
virtual bool ns3::AccessorHelper< T, U >::Get ( const ObjectBase object,
AttributeValue attribute 
) const [inline, virtual]
Parameters:
object the object instance to get the value from
attribute a 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 76 of file attribute-accessor-helper.h.

References ns3::AccessorHelper< T, U >::DoGet().

template<typename T , typename U >
virtual bool ns3::AccessorHelper< T, U >::Set ( ObjectBase object,
const AttributeValue value 
) const [inline, virtual]
Parameters:
object the object instance to set the value in
value the 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 62 of file attribute-accessor-helper.h.

References ns3::AccessorHelper< T, U >::DoSet().


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