#include <CrowdInternal.h>
类 | |
| struct | AdvanceGuard |
| struct | AvoidanceNeighbor |
| struct | ContactDelta |
| struct | ContactPair |
| struct | FlowCacheEntry |
| struct | MotionBackup |
| struct | PreferredFlow |
| struct | RegistryEntry |
| struct | SchedulerFailure |
Public 类型 | |
| using | TieKey = CrowdTieKey |
Public 成员函数 | |
| void | dispatchWork (std::size_t items, const std::function< void(std::size_t, std::size_t)> &body) |
| void | applyAgentUpdate (const AgentUpdate &update, std::size_t slot) |
| Impl () | |
| void | reserveAgentAppend () |
| void | appendAgentIdentity (int denseIndex) |
| void | eraseAgentIdentity (int denseIndex) |
| void | clearAgentIdentities () |
| int | resolveAgent (AgentRef reference) const noexcept |
| Result< std::vector< FlowCacheEntry > > | stageFlowCache (std::uint64_t budget, std::uint64_t bytes, size_t count) const |
| Stage cache metadata and deterministic unleased evictions without live mutation. @ownership Returns owning metadata, retaining immutable fields. @thread Owner thread only. @cost Bounded scan/copy of at most 10000 entries, amortized per cache publication/configuration. | |
| FlowLease | leaseFor (FlowCacheEntry &entry) |
| bool | isFlowLeaseCurrent (const FlowLease &lease) const noexcept |
| bool | validId (int id) const |
| bool | isMovementCompatible (size_t index) const |
| int | navigationMismatchCount () const noexcept |
| const CrowdField * | navigationField (size_t index) const noexcept |
| Observe the selected compatible built field, or null when unavailable. @ownership Borrowed read-only pointer; never delete or retain across frames/tasks. @lifetime Valid only in the current owner-thread phase until lease/default-field mutation or Crowd destruction. @thread Owner thread only. @reentrancy No callbacks. | |
| bool | canContact (size_t a, size_t b) const |
| bool | canAvoid (size_t a, size_t b) const |
| void | spendPreferredWork (std::int64_t amount) |
| void | preparePreferredNeighbors () |
| void | preparePreferredVelocities (float dt) |
| void | rebuildGrid () |
| template<typename Fn > | |
| void | forEachNeighbor (float qx, float qy, float radius, Fn &&fn, StepReport *partitionReport=nullptr) const |
| void | stepAgents (float dt) |
| void | prepareAvoidanceNeighbors () |
| void | selectAvoidanceVelocity (size_t index, float dt, float &vx, float &vy) |
| float | resolveOverlapsPass () |
| void | resolveWalls () |
静态 Public 成员函数 | |
| static std::uint64_t | retainedFlowBytes (const CrowdField &value) |
| static bool | isFlowKeyBefore (const FlowCacheEntry &a, const FlowCacheEntry &b) |
Public 属性 | |
| CrowdExecution | execution = CrowdExecution::Serial |
| std::shared_ptr< CrowdWorkScheduler > | workScheduler |
| std::uint64_t | owner |
| std::vector< RegistryEntry > | registry |
| std::vector< std::uint32_t > | denseToRegistry |
| std::vector< std::uint32_t > | freeRegistry |
| CrowdField | field |
| NavigationSurfaceStamp | surfaceStamp |
| std::vector< FlowCacheEntry > | flowCache |
| std::uint64_t | flowCacheBudget = 64 * 1024 * 1024 |
| std::uint64_t | nextFlowGeneration = 1 |
| struct eve::crowd::Crowd::Impl::MotionBackup | rollback |
| SimulationTick | tick |
| Duration | elapsed |
| std::optional< ClockAuthority > | clock |
| AdvanceBudget | activeBudget |
| bool | budgetActive = false |
| float | defaultSpeed = 120.f |
| float | defaultRadius = 6.f |
| float | defaultTurnRate = 6.f |
| float | arriveRadius = 64.f |
| float | sepRadius = 28.f |
| float | perceiveRadius = 64.f |
| float | sepWeight = 1.f |
| float | alignWeight = 0.f |
| float | cohesionWeight = 0.f |
| float | wanderWeight = 0.f |
| float | goalWeight = 1.f |
| bool | resolveOverlaps = true |
| bool | clampToField = true |
| int | maxAgents = 100000 |
| float | simTime = 0.f |
| AvoidanceSettings | avoidance |
| std::int64_t | avoidanceChecks = 0 |
| int | avoidanceTruncations = 0 |
| StepReport | workReport |
| float | avoidanceMaxSpeed = 0.f |
| float | avoidanceMaxRadius = 0.f |
| std::vector< std::vector< AvoidanceNeighbor > > | predictionNeighbors |
| Per-step avoidance neighbor scratch space. @cost Linear in checked neighbors and bounded by avoidance work limits. | |
| std::vector< float > | xs |
| SOA agent storage, indexed by compact slot id. @cost Linear in agent count; mutation keeps all owned vectors aligned. | |
| std::vector< float > | ys |
| std::vector< float > | headings |
| std::vector< float > | vxs |
| std::vector< float > | vys |
| std::vector< float > | speeds |
| std::vector< float > | nextVxs |
| std::vector< float > | nextVys |
| std::vector< float > | correctionXs |
| std::vector< float > | correctionYs |
| std::vector< float > | preferredVxs |
| std::vector< float > | preferredVys |
| std::vector< float > | arriveFactors |
| std::vector< float > | radii |
| std::vector< float > | maxSpeeds |
| std::vector< float > | maxAccels |
| std::vector< float > | turnRates |
| std::vector< int32_t > | actions |
| std::vector< int32_t > | datas |
| std::vector< int32_t > | avoidancePriorities |
| std::vector< uint8_t > | hasTargets |
| std::vector< InteractionPolicy > | interactions |
| std::vector< MovementBinding > | movements |
| std::vector< FlowLease > | flows |
| std::vector< float > | targetXs |
| std::vector< float > | targetYs |
| std::vector< float > | wanderPhases |
| std::vector< std::string > | stableIds |
| std::vector< TieKey > | tieKeys |
| std::unordered_map< std::uint64_t, int > | namedTieKeys |
| std::uint64_t | nextAnonymousTieKey = 1 |
| std::unordered_map< std::string, int > | namedAgents |
| CrowdSpatialIndex | spatialIndex |
| std::vector< ContactPair > | contactPairs |
| std::vector< ContactDelta > | contactDeltas |
| std::vector< std::size_t > | incidentStarts |
| std::vector< std::size_t > | incidentPairs |
| std::vector< std::size_t > | pairCounts |
| std::vector< std::size_t > | pairStarts |
| std::vector< std::size_t > | preferredCounts |
| std::vector< std::size_t > | preferredStarts |
| std::vector< int > | preferredNeighbors |
| std::vector< PreferredFlow > | preferredFlows |
详细描述
在文件 CrowdInternal.h 第 74 行定义.
成员类型定义说明
◆ TieKey
在文件 CrowdInternal.h 第 179 行定义.
构造及析构函数说明
◆ Impl()
| eve::crowd::Crowd::Impl::Impl | ( | ) |
在文件 CrowdRegistry.cpp 第 21 行定义.
成员函数说明
◆ appendAgentIdentity()
| void eve::crowd::Crowd::Impl::appendAgentIdentity | ( | int | denseIndex | ) |
在文件 CrowdRegistry.cpp 第 72 行定义.
◆ applyAgentUpdate()
| void eve::crowd::Crowd::Impl::applyAgentUpdate | ( | const AgentUpdate & | update, |
| std::size_t | slot | ||
| ) |
在文件 CrowdBatch.cpp 第 47 行定义.
引用了 eve::crowd::AgentUpdate::avoidancePriority, eve::crowd::canonicalInteraction(), d, eve::crowd::AgentUpdate::data, eve::crowd::AgentUpdate::flow, eve::crowd::AgentUpdate::headingTurnRate, eve::crowd::AgentUpdate::holdPosition, eve::crowd::AgentUpdate::intent, eve::crowd::AgentUpdate::interaction, eve::crowd::AgentUpdate::maxAcceleration, eve::crowd::AgentUpdate::maxSpeed, eve::crowd::AgentUpdate::movement, eve::crowd::AgentUpdate::policy, eve::crowd::AgentUpdate::radius , 以及 slot.
◆ canAvoid()
|
inline |
◆ canContact()
|
inline |
在文件 CrowdInternal.h 第 227 行定义.
引用了 a, b , 以及 interactions.
被这些函数引用 prepareAvoidanceNeighbors() , 以及 resolveOverlapsPass().
◆ clearAgentIdentities()
| void eve::crowd::Crowd::Impl::clearAgentIdentities | ( | ) |
在文件 CrowdRegistry.cpp 第 102 行定义.
◆ dispatchWork()
| void eve::crowd::Crowd::Impl::dispatchWork | ( | std::size_t | items, |
| const std::function< void(std::size_t, std::size_t)> & | body | ||
| ) |
在文件 CrowdScheduler.cpp 第 17 行定义.
引用了 body, execution, first, grain, index, result, eve::crowd::Serial, eve::crowd::Crowd::Impl::SchedulerFailure::status , 以及 workScheduler.
被这些函数引用 prepareAvoidanceNeighbors() , 以及 resolveOverlapsPass().
◆ eraseAgentIdentity()
| void eve::crowd::Crowd::Impl::eraseAgentIdentity | ( | int | denseIndex | ) |
在文件 CrowdRegistry.cpp 第 85 行定义.
引用了 generation, index, eve::RuntimeHandle< CrowdAgentTag >::nextGeneration() , 以及 registry.
◆ forEachNeighbor()
|
inline |
在文件 CrowdInternal.h 第 248 行定义.
引用了 activeBudget, budgetActive, eve::crowd::StepReport::candidatesVisited, eve::crowd::StepReport::cellsVisited, dx, dy, fn, eve::crowd::AdvanceBudget::maxNeighborVisits, eve::crowd::AdvanceBudget::maxSpatialVisits, qx, qy, radius, spatialIndex, eve::crowd::StepReport::spatialVisits, eve::crowd::CrowdSpatialIndex::visit(), workReport, xs , 以及 ys.
被这些函数引用 prepareAvoidanceNeighbors() , 以及 resolveOverlapsPass().
◆ isFlowKeyBefore()
|
static |
在文件 CrowdFlowCache.cpp 第 44 行定义.
◆ isFlowLeaseCurrent()
|
inlinenoexcept |
在文件 CrowdInternal.h 第 118 行定义.
引用了 field, eve::crowd::flowBuildAlgorithmVersion, eve::crowd::CrowdField::inputRevision(), lease , 以及 owner.
被这些函数引用 isMovementCompatible().
◆ isMovementCompatible()
|
inline |
在文件 CrowdInternal.h 第 199 行定义.
引用了 binding, eve::crowd::NavigationSurfaceStamp::clearanceRadius, field, flows, index, isFlowLeaseCurrent(), eve::crowd::NavigationSurfaceStamp::movement, eve::crowd::NavigationSurfaceStamp::movementRevision, movements, radii , 以及 surfaceStamp.
被这些函数引用 navigationField() , 以及 navigationMismatchCount().
◆ leaseFor()
| FlowLease eve::crowd::Crowd::Impl::leaseFor | ( | FlowCacheEntry & | entry | ) |
在文件 CrowdFlowCache.cpp 第 84 行定义.
引用了 eve::crowd::Crowd::Impl::FlowCacheEntry::access, eve::crowd::Crowd::Impl::FlowCacheEntry::algorithm, eve::crowd::Crowd::Impl::FlowCacheEntry::field, eve::crowd::Crowd::Impl::FlowCacheEntry::generation, eve::crowd::Crowd::Impl::FlowCacheEntry::input, owner, eve::crowd::Crowd::Impl::FlowCacheEntry::pins, result , 以及 tick.
◆ navigationField()
|
inlinenoexcept |
Observe the selected compatible built field, or null when unavailable. @ownership Borrowed read-only pointer; never delete or retain across frames/tasks. @lifetime Valid only in the current owner-thread phase until lease/default-field mutation or Crowd destruction. @thread Owner thread only. @reentrancy No callbacks.
在文件 CrowdInternal.h 第 221 行定义.
引用了 field, flows, index, eve::crowd::CrowdField::isBuilt() , 以及 isMovementCompatible().
◆ navigationMismatchCount()
|
inlinenoexcept |
在文件 CrowdInternal.h 第 209 行定义.
引用了 actions, count, eve::crowd::Flow, index , 以及 isMovementCompatible().
◆ prepareAvoidanceNeighbors()
| void eve::crowd::Crowd::Impl::prepareAvoidanceNeighbors | ( | ) |
在文件 CrowdAvoidance.cpp 第 32 行定义.
引用了 a, actions, activeBudget, arriveRadius, avoidance, avoidanceMaxRadius, avoidanceMaxSpeed, avoidanceTruncations, b, budgetActive, canAvoid(), canContact(), eve::crowd::StepReport::candidatesVisited, eve::crowd::StepReport::cellsVisited, dispatchWork(), dx, dy, error, EV_PROFILE_MODULE, execution, first, forEachNeighbor(), grain, hasTargets, eve::crowd::AvoidanceSettings::horizon, interactions, eve::crowd::AvoidanceSettings::margin, eve::crowd::AvoidanceSettings::maxNeighbors, eve::crowd::AdvanceBudget::maxNeighborVisits, eve::crowd::AdvanceBudget::maxSpatialVisits, maxSpeeds, neighbor, position, predictionNeighbors, radii, resolveOverlaps, eve::crowd::Serial, slot, eve::crowd::StepReport::spatialVisits, targetXs, targetYs, tieKeys, vxs, vys, workReport, xs , 以及 ys.
◆ preparePreferredNeighbors()
| void eve::crowd::Crowd::Impl::preparePreferredNeighbors | ( | ) |
◆ preparePreferredVelocities()
| void eve::crowd::Crowd::Impl::preparePreferredVelocities | ( | float | dt | ) |
◆ rebuildGrid()
| void eve::crowd::Crowd::Impl::rebuildGrid | ( | ) |
在文件 CrowdSimulation.cpp 第 13 行定义.
引用了 actions, activeBudget, budgetActive, eve::crowd::CrowdSpatialIndex::cellCount(), eve::crowd::StepReport::gridBuilds, eve::crowd::StepReport::gridCellsPeak, eve::crowd::StepReport::gridEntriesPeak, eve::crowd::StepReport::gridSortComparisons, eve::crowd::AdvanceBudget::maxGridCells, radii, eve::crowd::CrowdSpatialIndex::rebuild(), spatialIndex, tieKeys, workReport, xs , 以及 ys.
◆ reserveAgentAppend()
| void eve::crowd::Crowd::Impl::reserveAgentAppend | ( | ) |
在文件 CrowdRegistry.cpp 第 32 行定义.
引用了 actions, capacity, count, eve::RuntimeHandle< CrowdAgentTag >::invalidIndex, radii, registry, target , 以及 values.
◆ resolveAgent()
|
noexcept |
在文件 CrowdRegistry.cpp 第 106 行定义.
◆ resolveOverlapsPass()
| float eve::crowd::Crowd::Impl::resolveOverlapsPass | ( | ) |
在文件 CrowdContactSolver.cpp 第 4 行定义.
引用了 a, actions, activeBudget, angle, avoidancePriorities, b, budgetActive, canContact(), contactDeltas, contactPairs, eve::crowd::StepReport::contactPairsChecked, eve::crowd::StepReport::contactPairsPeak, eve::crowd::StepReport::contactPasses, correctionXs, correctionYs, cursor, d, dispatchWork(), dx, dy, EV_ASSERT, first, forEachNeighbor(), hash, incidentPairs, incidentStarts, interactions, left, length, limit, eve::crowd::AdvanceBudget::maxContactChecks, eve::crowd::AdvanceBudget::maxContactPairs, eve::crowd::AdvanceBudget::maxPairVisits, n, nx, ny, pairCounts, pairStarts, eve::crowd::StepReport::pairVisits, radii, right, scale, second, tieKeys, workReport, xs , 以及 ys.
◆ resolveWalls()
| void eve::crowd::Crowd::Impl::resolveWalls | ( | ) |
◆ retainedFlowBytes()
|
static |
◆ selectAvoidanceVelocity()
| void eve::crowd::Crowd::Impl::selectAvoidanceVelocity | ( | size_t | index, |
| float | dt, | ||
| float & | vx, | ||
| float & | vy | ||
| ) |
在文件 CrowdAvoidance.cpp 第 126 行定义.
引用了 a, acceleration, angle, avoidance, avoidancePriorities, b, best, c, clampToField, cost, dt, dx, dy, field, fraction, eve::crowd::CrowdField::getCellSize(), eve::crowd::CrowdField::getHeight(), eve::crowd::CrowdField::getOriginX(), eve::crowd::CrowdField::getOriginY(), eve::crowd::CrowdField::getWidth(), headings, eve::crowd::AvoidanceSettings::horizon, length, eve::crowd::AvoidanceSettings::margin, maxAccels, maxSpeeds, neighbor, predictionNeighbors, preferredVxs, preferredVys, priority, px, py, radii, radius, eve::crowd::CrowdField::resolvePenetration(), score, urgency, eve::crowd::CrowdField::valid(), value, vx, vxs, vy, vys, x, xs, y , 以及 ys.
◆ spendPreferredWork()
| void eve::crowd::Crowd::Impl::spendPreferredWork | ( | std::int64_t | amount | ) |
◆ stageFlowCache()
| Result< std::vector< Crowd::Impl::FlowCacheEntry > > eve::crowd::Crowd::Impl::stageFlowCache | ( | std::uint64_t | budget, |
| std::uint64_t | bytes, | ||
| size_t | count | ||
| ) | const |
Stage cache metadata and deterministic unleased evictions without live mutation. @ownership Returns owning metadata, retaining immutable fields. @thread Owner thread only. @cost Bounded scan/copy of at most 10000 entries, amortized per cache publication/configuration.
在文件 CrowdFlowCache.cpp 第 53 行定义.
引用了 bytes, count , 以及 eve::PreconditionViolation.
◆ stepAgents()
| void eve::crowd::Crowd::Impl::stepAgents | ( | float | dt | ) |
◆ validId()
|
inline |
在文件 CrowdInternal.h 第 198 行定义.
引用了 actions.
类成员变量说明
◆ actions
| std::vector<int32_t> eve::crowd::Crowd::Impl::actions |
在文件 CrowdInternal.h 第 171 行定义.
被这些函数引用 navigationMismatchCount(), prepareAvoidanceNeighbors(), rebuildGrid(), resolveOverlapsPass() , 以及 validId().
◆ activeBudget
| AdvanceBudget eve::crowd::Crowd::Impl::activeBudget |
◆ alignWeight
| float eve::crowd::Crowd::Impl::alignWeight = 0.f |
在文件 CrowdInternal.h 第 139 行定义.
◆ arriveFactors
| std::vector<float> eve::crowd::Crowd::Impl::arriveFactors |
在文件 CrowdInternal.h 第 169 行定义.
◆ arriveRadius
| float eve::crowd::Crowd::Impl::arriveRadius = 64.f |
在文件 CrowdInternal.h 第 135 行定义.
被这些函数引用 prepareAvoidanceNeighbors().
◆ avoidance
| AvoidanceSettings eve::crowd::Crowd::Impl::avoidance |
在文件 CrowdInternal.h 第 147 行定义.
被这些函数引用 prepareAvoidanceNeighbors() , 以及 selectAvoidanceVelocity().
◆ avoidanceChecks
| std::int64_t eve::crowd::Crowd::Impl::avoidanceChecks = 0 |
在文件 CrowdInternal.h 第 148 行定义.
被这些函数引用 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ avoidanceMaxRadius
| float eve::crowd::Crowd::Impl::avoidanceMaxRadius = 0.f |
在文件 CrowdInternal.h 第 151 行定义.
被这些函数引用 prepareAvoidanceNeighbors().
◆ avoidanceMaxSpeed
| float eve::crowd::Crowd::Impl::avoidanceMaxSpeed = 0.f |
在文件 CrowdInternal.h 第 151 行定义.
被这些函数引用 prepareAvoidanceNeighbors().
◆ avoidancePriorities
| std::vector<int32_t> eve::crowd::Crowd::Impl::avoidancePriorities |
在文件 CrowdInternal.h 第 171 行定义.
被这些函数引用 resolveOverlapsPass() , 以及 selectAvoidanceVelocity().
◆ avoidanceTruncations
| int eve::crowd::Crowd::Impl::avoidanceTruncations = 0 |
在文件 CrowdInternal.h 第 149 行定义.
被这些函数引用 prepareAvoidanceNeighbors() , 以及 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ budgetActive
| bool eve::crowd::Crowd::Impl::budgetActive = false |
◆ clampToField
| bool eve::crowd::Crowd::Impl::clampToField = true |
在文件 CrowdInternal.h 第 144 行定义.
被这些函数引用 selectAvoidanceVelocity().
◆ clock
| std::optional<ClockAuthority> eve::crowd::Crowd::Impl::clock |
在文件 CrowdInternal.h 第 128 行定义.
◆ cohesionWeight
| float eve::crowd::Crowd::Impl::cohesionWeight = 0.f |
在文件 CrowdInternal.h 第 140 行定义.
◆ contactDeltas
| std::vector<ContactDelta> eve::crowd::Crowd::Impl::contactDeltas |
在文件 CrowdInternal.h 第 194 行定义.
被这些函数引用 resolveOverlapsPass() , 以及 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ contactPairs
| std::vector<ContactPair> eve::crowd::Crowd::Impl::contactPairs |
在文件 CrowdInternal.h 第 193 行定义.
被这些函数引用 resolveOverlapsPass() , 以及 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ correctionXs
| std::vector<float> eve::crowd::Crowd::Impl::correctionXs |
在文件 CrowdInternal.h 第 168 行定义.
被这些函数引用 resolveOverlapsPass().
◆ correctionYs
| std::vector<float> eve::crowd::Crowd::Impl::correctionYs |
在文件 CrowdInternal.h 第 168 行定义.
被这些函数引用 resolveOverlapsPass().
◆ datas
| std::vector<int32_t> eve::crowd::Crowd::Impl::datas |
在文件 CrowdInternal.h 第 171 行定义.
◆ defaultRadius
| float eve::crowd::Crowd::Impl::defaultRadius = 6.f |
在文件 CrowdInternal.h 第 133 行定义.
◆ defaultSpeed
| float eve::crowd::Crowd::Impl::defaultSpeed = 120.f |
在文件 CrowdInternal.h 第 132 行定义.
◆ defaultTurnRate
| float eve::crowd::Crowd::Impl::defaultTurnRate = 6.f |
在文件 CrowdInternal.h 第 134 行定义.
◆ denseToRegistry
| std::vector<std::uint32_t> eve::crowd::Crowd::Impl::denseToRegistry |
在文件 CrowdInternal.h 第 91 行定义.
◆ elapsed
| Duration eve::crowd::Crowd::Impl::elapsed |
在文件 CrowdInternal.h 第 127 行定义.
◆ execution
| CrowdExecution eve::crowd::Crowd::Impl::execution = CrowdExecution::Serial |
在文件 CrowdInternal.h 第 78 行定义.
被这些函数引用 dispatchWork() , 以及 prepareAvoidanceNeighbors().
◆ field
| CrowdField eve::crowd::Crowd::Impl::field |
在文件 CrowdInternal.h 第 97 行定义.
被这些函数引用 isFlowLeaseCurrent(), isMovementCompatible(), navigationField() , 以及 selectAvoidanceVelocity().
◆ flowCache
| std::vector<FlowCacheEntry> eve::crowd::Crowd::Impl::flowCache |
在文件 CrowdInternal.h 第 116 行定义.
◆ flowCacheBudget
| std::uint64_t eve::crowd::Crowd::Impl::flowCacheBudget = 64 * 1024 * 1024 |
在文件 CrowdInternal.h 第 117 行定义.
◆ flows
| std::vector<FlowLease> eve::crowd::Crowd::Impl::flows |
在文件 CrowdInternal.h 第 175 行定义.
被这些函数引用 isMovementCompatible() , 以及 navigationField().
◆ freeRegistry
| std::vector<std::uint32_t> eve::crowd::Crowd::Impl::freeRegistry |
在文件 CrowdInternal.h 第 91 行定义.
◆ goalWeight
| float eve::crowd::Crowd::Impl::goalWeight = 1.f |
在文件 CrowdInternal.h 第 142 行定义.
◆ hasTargets
| std::vector<uint8_t> eve::crowd::Crowd::Impl::hasTargets |
在文件 CrowdInternal.h 第 172 行定义.
被这些函数引用 prepareAvoidanceNeighbors().
◆ headings
| std::vector<float> eve::crowd::Crowd::Impl::headings |
◆ incidentPairs
| std::vector<std::size_t> eve::crowd::Crowd::Impl::incidentPairs |
在文件 CrowdInternal.h 第 195 行定义.
被这些函数引用 resolveOverlapsPass() , 以及 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ incidentStarts
| std::vector<std::size_t> eve::crowd::Crowd::Impl::incidentStarts |
在文件 CrowdInternal.h 第 195 行定义.
被这些函数引用 resolveOverlapsPass() , 以及 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ interactions
| std::vector<InteractionPolicy> eve::crowd::Crowd::Impl::interactions |
在文件 CrowdInternal.h 第 173 行定义.
被这些函数引用 canAvoid(), canContact(), prepareAvoidanceNeighbors() , 以及 resolveOverlapsPass().
◆ maxAccels
| std::vector<float> eve::crowd::Crowd::Impl::maxAccels |
在文件 CrowdInternal.h 第 170 行定义.
被这些函数引用 selectAvoidanceVelocity().
◆ maxAgents
| int eve::crowd::Crowd::Impl::maxAgents = 100000 |
在文件 CrowdInternal.h 第 145 行定义.
◆ maxSpeeds
| std::vector<float> eve::crowd::Crowd::Impl::maxSpeeds |
在文件 CrowdInternal.h 第 170 行定义.
被这些函数引用 prepareAvoidanceNeighbors() , 以及 selectAvoidanceVelocity().
◆ movements
| std::vector<MovementBinding> eve::crowd::Crowd::Impl::movements |
在文件 CrowdInternal.h 第 174 行定义.
被这些函数引用 isMovementCompatible().
◆ namedAgents
| std::unordered_map<std::string, int> eve::crowd::Crowd::Impl::namedAgents |
在文件 CrowdInternal.h 第 183 行定义.
◆ namedTieKeys
| std::unordered_map<std::uint64_t, int> eve::crowd::Crowd::Impl::namedTieKeys |
在文件 CrowdInternal.h 第 181 行定义.
◆ nextAnonymousTieKey
| std::uint64_t eve::crowd::Crowd::Impl::nextAnonymousTieKey = 1 |
在文件 CrowdInternal.h 第 182 行定义.
◆ nextFlowGeneration
| std::uint64_t eve::crowd::Crowd::Impl::nextFlowGeneration = 1 |
在文件 CrowdInternal.h 第 117 行定义.
◆ nextVxs
| std::vector<float> eve::crowd::Crowd::Impl::nextVxs |
在文件 CrowdInternal.h 第 168 行定义.
◆ nextVys
| std::vector<float> eve::crowd::Crowd::Impl::nextVys |
在文件 CrowdInternal.h 第 168 行定义.
◆ owner
| std::uint64_t eve::crowd::Crowd::Impl::owner |
在文件 CrowdInternal.h 第 89 行定义.
被这些函数引用 isFlowLeaseCurrent().
◆ pairCounts
| std::vector<std::size_t> eve::crowd::Crowd::Impl::pairCounts |
在文件 CrowdInternal.h 第 196 行定义.
被这些函数引用 resolveOverlapsPass().
◆ pairStarts
| std::vector<std::size_t> eve::crowd::Crowd::Impl::pairStarts |
在文件 CrowdInternal.h 第 196 行定义.
被这些函数引用 resolveOverlapsPass().
◆ perceiveRadius
| float eve::crowd::Crowd::Impl::perceiveRadius = 64.f |
在文件 CrowdInternal.h 第 137 行定义.
◆ predictionNeighbors
| std::vector<std::vector<AvoidanceNeighbor> > eve::crowd::Crowd::Impl::predictionNeighbors |
Per-step avoidance neighbor scratch space. @cost Linear in checked neighbors and bounded by avoidance work limits.
在文件 CrowdInternal.h 第 160 行定义.
被这些函数引用 prepareAvoidanceNeighbors(), selectAvoidanceVelocity() , 以及 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ preferredCounts
| std::vector<std::size_t> eve::crowd::Crowd::Impl::preferredCounts |
在文件 CrowdInternal.h 第 236 行定义.
被这些函数引用 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ preferredFlows
| std::vector<PreferredFlow> eve::crowd::Crowd::Impl::preferredFlows |
在文件 CrowdInternal.h 第 241 行定义.
被这些函数引用 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ preferredNeighbors
| std::vector<int> eve::crowd::Crowd::Impl::preferredNeighbors |
在文件 CrowdInternal.h 第 237 行定义.
被这些函数引用 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ preferredStarts
| std::vector<std::size_t> eve::crowd::Crowd::Impl::preferredStarts |
在文件 CrowdInternal.h 第 236 行定义.
被这些函数引用 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ preferredVxs
| std::vector<float> eve::crowd::Crowd::Impl::preferredVxs |
在文件 CrowdInternal.h 第 169 行定义.
被这些函数引用 selectAvoidanceVelocity().
◆ preferredVys
| std::vector<float> eve::crowd::Crowd::Impl::preferredVys |
在文件 CrowdInternal.h 第 169 行定义.
被这些函数引用 selectAvoidanceVelocity().
◆ radii
| std::vector<float> eve::crowd::Crowd::Impl::radii |
在文件 CrowdInternal.h 第 170 行定义.
被这些函数引用 isMovementCompatible(), prepareAvoidanceNeighbors(), rebuildGrid(), resolveOverlapsPass() , 以及 selectAvoidanceVelocity().
◆ registry
| std::vector<RegistryEntry> eve::crowd::Crowd::Impl::registry |
在文件 CrowdInternal.h 第 90 行定义.
◆ resolveOverlaps
| bool eve::crowd::Crowd::Impl::resolveOverlaps = true |
在文件 CrowdInternal.h 第 143 行定义.
被这些函数引用 prepareAvoidanceNeighbors().
◆ rollback
| struct eve::crowd::Crowd::Impl::MotionBackup eve::crowd::Crowd::Impl::rollback |
◆ sepRadius
| float eve::crowd::Crowd::Impl::sepRadius = 28.f |
在文件 CrowdInternal.h 第 136 行定义.
◆ sepWeight
| float eve::crowd::Crowd::Impl::sepWeight = 1.f |
在文件 CrowdInternal.h 第 138 行定义.
◆ simTime
| float eve::crowd::Crowd::Impl::simTime = 0.f |
在文件 CrowdInternal.h 第 146 行定义.
被这些函数引用 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ spatialIndex
| CrowdSpatialIndex eve::crowd::Crowd::Impl::spatialIndex |
在文件 CrowdInternal.h 第 185 行定义.
被这些函数引用 forEachNeighbor(), rebuildGrid() , 以及 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ speeds
| std::vector<float> eve::crowd::Crowd::Impl::speeds |
◆ stableIds
| std::vector<std::string> eve::crowd::Crowd::Impl::stableIds |
在文件 CrowdInternal.h 第 178 行定义.
◆ surfaceStamp
| NavigationSurfaceStamp eve::crowd::Crowd::Impl::surfaceStamp |
在文件 CrowdInternal.h 第 98 行定义.
被这些函数引用 isMovementCompatible().
◆ targetXs
| std::vector<float> eve::crowd::Crowd::Impl::targetXs |
在文件 CrowdInternal.h 第 176 行定义.
被这些函数引用 prepareAvoidanceNeighbors().
◆ targetYs
| std::vector<float> eve::crowd::Crowd::Impl::targetYs |
在文件 CrowdInternal.h 第 176 行定义.
被这些函数引用 prepareAvoidanceNeighbors().
◆ tick
| SimulationTick eve::crowd::Crowd::Impl::tick |
在文件 CrowdInternal.h 第 126 行定义.
◆ tieKeys
| std::vector<TieKey> eve::crowd::Crowd::Impl::tieKeys |
在文件 CrowdInternal.h 第 180 行定义.
被这些函数引用 prepareAvoidanceNeighbors(), rebuildGrid() , 以及 resolveOverlapsPass().
◆ turnRates
| std::vector<float> eve::crowd::Crowd::Impl::turnRates |
在文件 CrowdInternal.h 第 170 行定义.
◆ vxs
| std::vector<float> eve::crowd::Crowd::Impl::vxs |
◆ vys
| std::vector<float> eve::crowd::Crowd::Impl::vys |
◆ wanderPhases
| std::vector<float> eve::crowd::Crowd::Impl::wanderPhases |
◆ wanderWeight
| float eve::crowd::Crowd::Impl::wanderWeight = 0.f |
在文件 CrowdInternal.h 第 141 行定义.
◆ workReport
|
mutable |
◆ workScheduler
| std::shared_ptr<CrowdWorkScheduler> eve::crowd::Crowd::Impl::workScheduler |
在文件 CrowdInternal.h 第 79 行定义.
被这些函数引用 dispatchWork().
◆ xs
| std::vector<float> eve::crowd::Crowd::Impl::xs |
SOA agent storage, indexed by compact slot id. @cost Linear in agent count; mutation keeps all owned vectors aligned.
在文件 CrowdInternal.h 第 167 行定义.
被这些函数引用 eve::crowd::Crowd::Impl::AdvanceGuard::AdvanceGuard(), forEachNeighbor(), prepareAvoidanceNeighbors(), rebuildGrid(), resolveOverlapsPass(), selectAvoidanceVelocity() , 以及 eve::crowd::Crowd::Impl::AdvanceGuard::~AdvanceGuard().
◆ ys
| std::vector<float> eve::crowd::Crowd::Impl::ys |
该结构体的文档由以下文件生成:
- src/modules/crowd/CrowdInternal.h
- src/modules/crowd/CrowdAvoidance.cpp
- src/modules/crowd/CrowdBatch.cpp
- src/modules/crowd/CrowdContactSolver.cpp
- src/modules/crowd/CrowdFlowCache.cpp
- src/modules/crowd/CrowdPreferred.cpp
- src/modules/crowd/CrowdRegistry.cpp
- src/modules/crowd/CrowdScheduler.cpp
- src/modules/crowd/CrowdSimulation.cpp