A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::BuildingList Class Reference

Container for Building class. More...

#include "building-list.h"

Public Types

typedef std::vector< Ptr< Building > >::const_iterator Iterator
 Const Iterator.
 

Static Public Member Functions

static uint32_t Add (Ptr< Building > building)
 
static Iterator Begin ()
 
static Iterator End ()
 
static Ptr< BuildingGetBuilding (uint32_t n)
 
static uint32_t GetNBuildings ()
 

Detailed Description

Container for Building class.

Definition at line 28 of file building-list.h.

Member Typedef Documentation

◆ Iterator

typedef std::vector<Ptr<Building>>::const_iterator ns3::BuildingList::Iterator

Const Iterator.

Definition at line 32 of file building-list.h.

Member Function Documentation

◆ Add()

uint32_t ns3::BuildingList::Add ( Ptr< Building > building)
static
Parameters
buildingbuilding to add
Returns
index of building in list.

This method is called automatically from Building::Building so the user has little reason to call it himself.

Definition at line 207 of file building-list.cc.

References ns3::BuildingListPriv::Get().

Referenced by ns3::Building::Building().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Begin()

BuildingList::Iterator ns3::BuildingList::Begin ( )
static
Returns
a C++ iterator located at the beginning of this list.

Definition at line 213 of file building-list.cc.

References ns3::BuildingListPriv::Get().

Referenced by ns3::ThreeGppV2vHighwayChannelConditionModel::GetChCondAndFixCallback(), ns3::BuildingContainer::GetGlobal(), ns3::OutdoorPositionAllocator::GetNext(), ns3::RandomBuildingPositionAllocator::GetNext(), ns3::RandomRoomPositionAllocator::GetNext(), ns3::RandomWalk2dOutdoorMobilityModel::IsLineClearOfBuildings(), ns3::BuildingsChannelConditionModel::IsLineOfSightBlocked(), ns3::MobilityBuildingInfo::MakeConsistent(), and PrintGnuplottableBuildingListToFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ End()

BuildingList::Iterator ns3::BuildingList::End ( )
static
Returns
a C++ iterator located at the end of this list.

Definition at line 219 of file building-list.cc.

References ns3::BuildingListPriv::Get().

Referenced by ns3::ThreeGppV2vHighwayChannelConditionModel::GetChCondAndFixCallback(), ns3::BuildingContainer::GetGlobal(), ns3::OutdoorPositionAllocator::GetNext(), ns3::RandomBuildingPositionAllocator::GetNext(), ns3::RandomRoomPositionAllocator::GetNext(), ns3::RandomWalk2dOutdoorMobilityModel::IsLineClearOfBuildings(), ns3::BuildingsChannelConditionModel::IsLineOfSightBlocked(), ns3::MobilityBuildingInfo::MakeConsistent(), and PrintGnuplottableBuildingListToFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBuilding()

Ptr< Building > ns3::BuildingList::GetBuilding ( uint32_t n)
static
Parameters
nindex of requested building.
Returns
the Building associated to index n.

Definition at line 225 of file building-list.cc.

References ns3::BuildingListPriv::Get().

Referenced by ns3::RandomBuildingPositionAllocator::GetNext().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetNBuildings()

uint32_t ns3::BuildingList::GetNBuildings ( )
static
Returns
the number of buildings currently in the list.

Definition at line 231 of file building-list.cc.

References ns3::BuildingListPriv::Get().

Referenced by ns3::OutdoorPositionAllocator::GetNext(), ns3::RandomBuildingPositionAllocator::GetNext(), and ns3::RandomRoomPositionAllocator::GetNext().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: