Internal checker class templated to each AttributeChecker for each entry in the tuple. More...
#include "tuple.h"
Inheritance diagram for ns3::internal::TupleChecker< Args >:
Collaboration diagram for ns3::internal::TupleChecker< Args >:Public Member Functions | |
| template<class... Ts> | |
| TupleChecker (Ts... checkers) | |
| Constructor. | |
| bool | Check (const AttributeValue &value) const override |
| bool | Copy (const AttributeValue &source, AttributeValue &destination) const override |
| Copy the source to the destination. | |
| Ptr< AttributeValue > | Create () const override |
| const std::vector< Ptr< const AttributeChecker > > & | GetCheckers () const override |
| Get the checkers for all tuple elements. | |
| 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< AttributeValue > | CreateValidValue (const AttributeValue &value) const |
| Create a valid value from the argument value, or reinterpret the argument as a string. | |
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. | |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| Assignment operator. | |
| void | Ref () const |
| Increment the reference count. | |
| void | Unref () const |
| Decrement the reference count. | |
Private Attributes | |
| std::vector< Ptr< const AttributeChecker > > | m_checkers |
| attribute checkers | |
Internal checker class templated to each AttributeChecker for each entry in the tuple.
|
inline |
Constructor.
| Ts | [deduced] the type of the attribute checkers |
| checkers | the attribute checkers for individual elements of the tuple |
Definition at line 375 of file tuple.h.
References m_checkers.
|
inlineoverridevirtual |
| [in] | value | A pointer to the value to check |
Implements ns3::AttributeChecker.
Definition at line 385 of file tuple.h.
References Check(), and m_checkers.
Referenced by Check().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineoverridevirtual |
Copy the source to the destination.
| [in] | source | Source AttributeValue |
| [out] | destination | Destination AttributeValue |
Implements ns3::AttributeChecker.
|
inlineoverridevirtual |
This method is typically used to create a temporary variable prior to calling Attribute::DeserializeFromString.
Implements ns3::AttributeChecker.
Definition at line 415 of file tuple.h.
References ns3::Create().
Here is the call graph for this function:
|
inlineoverridevirtual |
Get the checkers for all tuple elements.
Implements ns3::TupleChecker.
Definition at line 380 of file tuple.h.
References m_checkers.
|
inlineoverridevirtual |
Implements ns3::AttributeChecker.
|
inlineoverridevirtual |
A typical return value here is FooValue where Foo is the name of the type being wrapped.
Implements ns3::AttributeChecker.
|
inlineoverridevirtual |
If this method returns false, the return value of the GetUnderlyingTypeInformation method cannot be relied upon.
Implements ns3::AttributeChecker.
|
private |
attribute checkers
Definition at line 433 of file tuple.h.
Referenced by TupleChecker(), Check(), and GetCheckers().