A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
config-store
model
attribute-default-iterator.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License version 2 as
5
* published by the Free Software Foundation;
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
*
16
* Authors: Faker Moatamri <faker.moatamri@sophia.inria.fr>
17
* Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
18
*/
19
20
#ifndef ATTRIBUTE_DEFAULT_ITERATOR_H
21
#define ATTRIBUTE_DEFAULT_ITERATOR_H
22
23
#include "ns3/type-id.h"
24
#include <string>
25
26
namespace
ns3
{
27
33
class
AttributeDefaultIterator
34
{
35
public
:
36
virtual
~AttributeDefaultIterator
() = 0;
43
void
Iterate
(
void
);
44
private
:
48
virtual
void
StartVisitTypeId
(std::string name);
52
virtual
void
EndVisitTypeId
(
void
);
56
virtual
void
VisitAttribute
(
TypeId
tid, std::string name, std::string defaultValue, uint32_t index);
60
virtual
void
DoVisitAttribute
(std::string name, std::string defaultValue);
61
};
62
63
}
// namespace ns3
64
65
#endif
/* ATTRIBUTE_DEFAULT_ITERATOR_H */
ns3::AttributeDefaultIterator::EndVisitTypeId
virtual void EndVisitTypeId(void)
Just an interface that needs to be implemented.
Definition:
attribute-default-iterator.cc:112
ns3::AttributeDefaultIterator::~AttributeDefaultIterator
virtual ~AttributeDefaultIterator()=0
Definition:
attribute-default-iterator.cc:31
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::AttributeDefaultIterator::Iterate
void Iterate(void)
This function will go through all the TypeIds and get only the attributes which are explicit values (...
Definition:
attribute-default-iterator.cc:35
ns3::AttributeDefaultIterator::DoVisitAttribute
virtual void DoVisitAttribute(std::string name, std::string defaultValue)
This method is just an interface and needs to be implemented.
Definition:
attribute-default-iterator.cc:117
ns3::AttributeDefaultIterator::VisitAttribute
virtual void VisitAttribute(TypeId tid, std::string name, std::string defaultValue, uint32_t index)
This method can be implemented, otherwise, it will call DoVisitAttribute.
Definition:
attribute-default-iterator.cc:122
ns3::AttributeDefaultIterator
Iterator to iterate on the default values of attributes of an ns3::Object.
Definition:
attribute-default-iterator.h:33
ns3::AttributeDefaultIterator::StartVisitTypeId
virtual void StartVisitTypeId(std::string name)
Just an interface that needs to be implemented.
Definition:
attribute-default-iterator.cc:108
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
Generated on Wed Nov 7 2018 10:01:48 for ns-3 by
1.8.14