23 #include "attribute.h"
24 #include "attribute-accessor-helper.h"
25 #include "trace-source-accessor.h"
26 #include "attribute-helper.h"
104 explicit TypeId (
const char * name);
117 bool HasParent (
void)
const;
138 std::string
GetName (
void)
const;
199 template <
typename T>
218 template <
typename T>
277 TypeId HideFromDocumentation (
void);
302 uint16_t
GetUid (
void)
const;
311 void SetUid (uint16_t tid);
320 friend class AttributeList;
326 explicit TypeId (uint16_t tid);
353 TypeId::TypeId (
const TypeId &o)
356 TypeId &TypeId::operator = (
const TypeId &o)
364 inline bool operator == (TypeId a, TypeId b)
366 return a.m_tid == b.m_tid;
369 inline bool operator != (TypeId a, TypeId b)
371 return a.m_tid != b.m_tid;
379 template <
typename T>
386 template <
typename T>
397 DoAddConstructor (cb);
uint32_t GetAttributeN(void) const
std::istream & operator>>(std::istream &is, Angles &a)
smart pointer class similar to boost::intrusive_ptr
TypeId AddConstructor(void)
Hold a value for an Attribute.
TypeId GetParent(void) const
static bool LookupByNameFailSafe(std::string name, TypeId *tid)
implement the ns-3 type and attribute system
Callback< ObjectBase * > GetConstructor(void) const
bool HasConstructor(void) const
bool MustHideFromDocumentation(void) const
static uint32_t GetRegisteredN(void)
Ptr< const TraceSourceAccessor > LookupTraceSourceByName(std::string name) const
uint32_t GetTraceSourceN(void) const
static TypeId GetRegistered(uint32_t i)
Callback< R > MakeCallback(R(T::*memPtr)(void), OBJ objPtr)
TypeId SetGroupName(std::string groupName)
#define ATTRIBUTE_HELPER_HEADER(type)
std::ostream & operator<<(std::ostream &os, const Angles &a)
TypeId AddAttribute(std::string name, std::string help, const AttributeValue &initialValue, Ptr< const AttributeAccessor > accessor, Ptr< const AttributeChecker > checker)
void SetUid(uint16_t tid)
bool LookupAttributeByName(std::string name, struct AttributeInformation *info) const
std::string GetName(void) const
uint16_t GetUid(void) const
bool SetAttributeInitialValue(uint32_t i, Ptr< const AttributeValue > initialValue)
TypeId AddTraceSource(std::string name, std::string help, Ptr< const TraceSourceAccessor > accessor)
std::string GetAttributeFullName(uint32_t i) const
bool IsChildOf(TypeId other) const
struct TypeId::TraceSourceInformation GetTraceSource(uint32_t i) const
std::string GetGroupName(void) const
struct TypeId::AttributeInformation GetAttribute(uint32_t i) const
a unique identifier for an interface.
static TypeId LookupByName(std::string name)