161 explicit TypeId (
const char * name);
207 std::string
GetName (
void)
const;
221 std::size_t
GetSize (
void)
const;
300 template <
typename T>
338 template <
typename T>
422 std::string callback);
460 uint16_t
GetUid (
void)
const;
473 void SetUid (uint16_t tid);
506 explicit TypeId (uint16_t tid);
583 template <
typename T>
590 template <
typename T>
uint32_t GetAttributeN(void) const
Get the number of attributes.
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
Record a new TraceSource.
Smart pointer class similar to boost::intrusive_ptr.
TypeId AddConstructor(void)
Record in this TypeId the fact that the default constructor is accessible.
TypeId SetParent(void)
Set the parent TypeId.
static TypeId LookupByHash(hash_t hash)
Get a TypeId by hash.
Hold a value for an Attribute.
TypeId GetParent(void) const
Get the parent of this TypeId.
ATTRIBUTE_HELPER_HEADER(BleAccessAddress)
static bool LookupByNameFailSafe(std::string name, TypeId *tid)
Get a TypeId by name.
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
Get the constructor callback.
static bool LookupByHashFailSafe(hash_t hash, TypeId *tid)
Get a TypeId by hash.
bool HasConstructor(void) const
Check if this TypeId has a constructor.
The attribute can be read.
Declaration of the various callback functions.
bool MustHideFromDocumentation(void) const
Check if this TypeId should not be listed in documentation.
friend bool operator<(TypeId a, TypeId b)
Comparison operator.
friend bool operator==(TypeId a, TypeId b)
Comparison operator.
static uint32_t GetRegisteredN(void)
Get the number of registered TypeIds.
Ptr< const TraceSourceAccessor > LookupTraceSourceByName(std::string name) const
Find a TraceSource by name.
uint16_t m_tid
The TypeId value.
ns3::AttributeValue, ns3::AttributeAccessor and ns3::AttributeChecker declarations.
TypeId()
Default constructor.
bool HasParent(void) const
Check if this TypeId has a parent.
uint32_t GetTraceSourceN(void) const
Get the number of Trace sources.
static TypeId GetRegistered(uint32_t i)
Get a TypeId by index.
Callback< R > MakeCallback(R(T::*memPtr)(void), OBJ objPtr)
TypeId SetGroupName(std::string groupName)
Set the group name.
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)
Record in this TypeId the fact that a new attribute exists.
void SetUid(uint16_t tid)
Set the internal id of this TypeId.
bool LookupAttributeByName(std::string name, struct AttributeInformation *info) const
Find an Attribute by name.
ns3::TraceSourceAccessor and ns3::MakeTraceSourceAccessor declarations.
The attribute can be written.
AttributeFlag
Flags describing when a given attribute can be read or written.
bool operator==(const BleAccessAddress &a, const BleAccessAddress &b)
Ptr< T > Create(void)
Create class instances by constructors with varying numbers of arguments and return them by Ptr...
bool operator!=(const BleAccessAddress &a, const BleAccessAddress &b)
std::string GetName(void) const
Get the name.
uint16_t GetUid(void) const
Get the internal id of this TypeId.
void DoAddConstructor(Callback< ObjectBase * > callback)
Implementation for AddConstructor().
bool operator<(const BleAccessAddress &a, const BleAccessAddress &b)
hash_t GetHash(void) const
Get the hash.
Declaration of Attribute helper macros.
bool SetAttributeInitialValue(uint32_t i, Ptr< const AttributeValue > initialValue)
Set the initial value of an Attribute.
#define NS_DEPRECATED
Mark a function as deprecated.
TypeId & operator=(const TypeId &o)
Assignment.
friend bool operator!=(TypeId a, TypeId b)
Comparison operator.
std::size_t GetSize(void) const
Get the size of this object.
TypeId SetSize(std::size_t size)
Set the size of this type.
ns3::MakeAccessorHelper declarations and template implementations.
std::string GetAttributeFullName(uint32_t i) const
Get the Attribute name by index.
bool IsChildOf(TypeId other) const
Check if this TypeId is a child of another.
struct TypeId::TraceSourceInformation GetTraceSource(uint32_t i) const
Get the trace source by index.
std::string GetGroupName(void) const
Get the group name.
struct TypeId::AttributeInformation GetAttribute(uint32_t i) const
Get Attribute information by index.
a unique identifier for an interface.
TypeId HideFromDocumentation(void)
Hide this TypeId from documentation.
static TypeId LookupByName(std::string name)
Get a TypeId by name.