36template <
typename T,
typename U>
47template <
typename T,
typename U,
typename INDEX>
49 INDEX (T::*getN)() const);
55template <
typename T,
typename U,
typename INDEX>
57 Ptr<U> (T::*get)(INDEX) const);
63template <
typename T,
typename U>
69 bool DoGetN(
const ObjectBase*
object, std::size_t* n)
const override
71 const T* obj =
dynamic_cast<const T*
>(
object);
76 *n = (obj->*m_memberVector).size();
82 std::size_t* index)
const override
84 const T* obj =
static_cast<const T*
>(
object);
85 auto begin = (obj->*m_memberVector).begin();
86 auto end = (obj->*m_memberVector).end();
88 for (
auto j = begin; j != end; j++, k++)
101 U T::*m_memberVector;
102 }* spec =
new MemberStdContainer();
104 spec->m_memberVector = memberVector;
109Ptr<const AttributeChecker>
115template <
typename T,
typename U,
typename INDEX>
116Ptr<const AttributeAccessor>
122template <
typename T,
typename U,
typename INDEX>
123Ptr<const AttributeAccessor>
ns3::AttributeValue, ns3::AttributeAccessor and ns3::AttributeChecker declarations.
Anchor the ns-3 type and attribute system.
AttributeAccessor implementation for ObjectPtrContainerValue.
Container for a set of ns3::Object pointers.
Smart pointer class similar to boost::intrusive_ptr.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
Ptr< const AttributeAccessor > MakeObjectPtrContainerAccessor(Ptr< U >(T::*get)(INDEX) const, INDEX(T::*getN)() const)
Create an AttributeAccessor using a container class indexed get method.
Ptr< const AttributeChecker > MakeObjectPtrContainerChecker()
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ObjectPtrContainerValue ObjectMapValue
ObjectMapValue is an alias for ObjectPtrContainerValue.
Ptr< const AttributeAccessor > MakeObjectMapAccessor(U T::*memberVariable)
MakeAccessorHelper implementation for ObjectVector.
Ptr< const AttributeChecker > MakeObjectMapChecker()
ns3::ObjectPtrContainerValue attribute value declarations and template implementations.
ns3::Object class declaration, which is the root of the Object hierarchy and Aggregation.
ns3::Ptr smart pointer declaration and implementation.