Loading [MathJax]/extensions/TeX/AMSmath.js
Radium Engine
1.5.28
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
i
l
m
n
o
p
q
r
s
t
u
v
z
Functions
a
c
d
f
g
i
l
m
n
o
p
q
r
s
t
u
v
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
b
d
f
i
m
s
v
w
Typedefs
a
b
c
f
g
i
k
n
o
r
s
t
u
v
Enumerations
Enumerator
Related Symbols
Files
File List
File Members
All
Macros
▼
Radium Engine
►
Radium Basics
►
Radium Concepts
►
Developer manual
►
Licenses
Todo List
Deprecated List
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
src
▼
Core
►
Animation
►
Asset
▼
Containers
AdjacencyList.cpp
AdjacencyList.hpp
AlignedAllocator.hpp
AlignedStdVector.hpp
DynamicVisitor.cpp
DynamicVisitor.hpp
DynamicVisitorBase.hpp
Grid.hpp
Iterators.hpp
MakeShared.hpp
Tex.hpp
VariableSet.cpp
VariableSet.hpp
VariableSetEnumManagement.cpp
VariableSetEnumManagement.hpp
VectorArray.hpp
►
Geometry
►
Math
►
Random
►
Resources
►
Tasks
►
Utils
CoreMacros.hpp
pch.hpp
RaCore.hpp
Types.hpp
►
Dataflow
►
Engine
►
Gui
►
Headless
►
IO
►
PluginBase
►
tests
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
DynamicVisitor.cpp
1
#include <Core/Containers/DynamicVisitor.hpp>
2
#include <any>
3
#include <functional>
4
#include <typeindex>
5
#include <unordered_map>
6
#include <utility>
7
8
namespace
Ra
{
9
namespace
Core {
10
11
bool
DynamicVisitor::accept
(
const
std::type_index
&
id
)
const
{
12
return
m_visitorOperator.
find
(
id
) != m_visitorOperator.
cend
();
13
}
11
bool
DynamicVisitor::accept
(
const
std::type_index
&
id
)
const
{
…
}
14
15
void
DynamicVisitor::operator()
(
const
std::string
& name,
16
std::any&& in,
17
std::any&& userParam )
const
{
18
m_visitorOperator.
at
(
std::type_index
( in.type() ) )(
19
name, in,
std::forward<std::any>
( userParam ) );
20
}
15
void
DynamicVisitor::operator()
(
const
std::string
& name, {
…
}
21
22
}
// namespace Core
23
}
// namespace Ra
std::unordered_map::at
T at(T... args)
std::string
Ra::Core::DynamicVisitor::operator()
void operator()(const std::string &name, std::any &&in, std::any &&userParam) const override
Execute a visiting operator on accepted types.
Definition
DynamicVisitor.cpp:15
Ra::Core::DynamicVisitor::accept
bool accept(const std::type_index &id) const override
Acceptance function for the visitor.
Definition
DynamicVisitor.cpp:11
std::unordered_map::cend
T cend(T... args)
std::unordered_map::find
T find(T... args)
std::forward
T forward(T... args)
Ra
hepler function to manage enum as underlying types in VariableSet
Definition
Cage.cpp:4
std::type_index
src
Core
Containers
DynamicVisitor.cpp
Generated by
1.12.0