138 explicit TypeId (
const char * name);
172 std::string
GetName (
void)
const;
182 std::size_t
GetSize (
void)
const;
243 template <
typename T>
278 template <
typename T>
353 std::string callback);
380 uint16_t
GetUid (
void)
const;
389 void SetUid (uint16_t tid);
404 explicit TypeId (uint16_t tid);
451 template <
typename T>
458 template <
typename T>
uint32_t GetAttributeN(void) const
uint32_t hash_t
Type of hash values.
std::istream & operator>>(std::istream &is, Angles &a)
initialize a struct Angles from input
TypeId AddTraceSource(std::string name, std::string help, Ptr< const TraceSourceAccessor > accessor) NS_DEPRECATED
Smart pointer class similar to boost::intrusive_ptr.
TypeId AddConstructor(void)
static TypeId LookupByHash(hash_t hash)
Hold a value for an Attribute.
TypeId GetParent(void) const
static bool LookupByNameFailSafe(std::string name, TypeId *tid)
Anchor the ns-3 type and attribute system.
The attribute can be written at construction-time.
Definition of the NS_DEPRECATED macro.
ns3::Hasher, ns3::Hash32() and ns3::Hash64() function declarations.
The attribute can be read, and written at any time.
Callback< ObjectBase * > GetConstructor(void) const
static bool LookupByHashFailSafe(hash_t hash, TypeId *tid)
bool HasConstructor(void) const
The attribute can be read.
Declaration of the various callback functions.
bool MustHideFromDocumentation(void) const
friend bool operator<(TypeId a, TypeId b)
friend bool operator==(TypeId a, TypeId b)
static uint32_t GetRegisteredN(void)
Ptr< const TraceSourceAccessor > LookupTraceSourceByName(std::string name) const
ns3::AttributeValue, ns3::AttributeAccessor and ns3::AttributeChecker declarations.
bool HasParent(void) const
uint32_t GetTraceSourceN(void) const
static TypeId GetRegistered(uint32_t i)
Callback< R > MakeCallback(R(T::*memPtr)(void), OBJ objPtr)
bool operator<(const int64x64_t &lhs, const int64x64_t &rhs)
Less than operator.
TypeId SetGroupName(std::string groupName)
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
TypeId AddAttribute(std::string name, std::string help, const AttributeValue &initialValue, Ptr< const AttributeAccessor > accessor, Ptr< const AttributeChecker > checker)
bool operator!=(Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 > a, Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 > b)
Inequality test.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetUid(uint16_t tid)
bool LookupAttributeByName(std::string name, struct AttributeInformation *info) const
ns3::TraceSourceAccessor and ns3::MakeTraceSourceAccessor declarations.
The attribute can be written.
AttributeFlag
Flags describing when a given attribute can be read or written.
Ptr< T > Create(void)
Create class instances by constructors with varying numbers of arguments and return them by Ptr...
std::string GetName(void) const
friend class AttributeList
uint16_t GetUid(void) const
void DoAddConstructor(Callback< ObjectBase * > callback)
hash_t GetHash(void) const
Declaration of Attribute helper macros.
bool SetAttributeInitialValue(uint32_t i, Ptr< const AttributeValue > initialValue)
#define NS_DEPRECATED
Mark a function as deprecated.
TypeId & operator=(const TypeId &o)
friend bool operator!=(TypeId a, TypeId b)
std::size_t GetSize(void) const
bool operator==(const EventId &a, const EventId &b)
TypeId SetSize(std::size_t size)
Set the size of this type, based on the sizeof operator.
ns3::MakeAccessorHelper declarations and template implementations.
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.
#define ATTRIBUTE_HELPER_HEADER(type)
Declare the attribute value, accessor and checkers for class type.
TypeId HideFromDocumentation(void)
static TypeId LookupByName(std::string name)