A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
trailer.cc
Go to the documentation of this file.
1
#include "
trailer.h
"
2
#include "ns3/log.h"
3
4
NS_LOG_COMPONENT_DEFINE
(
"Trailer"
);
5
6
namespace
ns3 {
7
8
NS_OBJECT_ENSURE_REGISTERED
(Trailer)
9
;
10
11
Trailer::~Trailer
()
12
{
13
NS_LOG_FUNCTION
(
this
);
14
}
15
16
TypeId
17
Trailer::GetTypeId
(
void
)
18
{
19
static
TypeId
tid =
TypeId
(
"ns3::Trailer"
)
20
.
SetParent
<
Chunk
> ()
21
;
22
return
tid;
23
}
24
25
std::ostream &
operator <<
(std::ostream &os,
const
Trailer
&trailer)
26
{
27
trailer.
Print
(os);
28
return
os;
29
}
30
31
}
// namespace ns3
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
Definition:
log.h:345
ns3::NS_OBJECT_ENSURE_REGISTERED
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
ns3::Trailer::~Trailer
virtual ~Trailer()
Definition:
trailer.cc:11
ns3::Trailer::Print
virtual void Print(std::ostream &os) const =0
ns3::Trailer::GetTypeId
static TypeId GetTypeId(void)
Definition:
trailer.cc:17
ns3::operator<<
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Definition:
angles.cc:43
ns3::Trailer
Protocol trailer serialization and deserialization.
Definition:
trailer.h:40
NS_LOG_COMPONENT_DEFINE
NS_LOG_COMPONENT_DEFINE("Trailer")
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Definition:
type-id.cc:611
ns3::Chunk
abstract base class for ns3::Header and ns3::Trailer
Definition:
chunk.h:14
trailer.h
src
network
model
trailer.cc
Generated on Sat Apr 19 2014 14:07:05 for ns-3 by
1.8.6