The generic class to hold the pointer to other node.
More...
#include </builds/gaudi/Gaudi/GaudiPartProp/include/Gaudi/Decays/iNode.h>
The generic class to hold the pointer to other node.
- Author
- Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
- Date
- 2008-04-12
Definition at line 74 of file iNode.h.
◆ Node() [1/2]
constructor from the node
Definition at line 32 of file iNode.cpp.
32 {
33 if (
typeid( Decays::Node ) ==
typeid(
node ) ) {
35 m_node.reset( _node.m_node->clone() );
36 } else {
38 }
39}
std::unique_ptr< iNode > m_node
the node itself:
Node(const Decays::iNode &node)
constructor from the node
const iNode & node() const
◆ Node() [2/2]
copy constructor
Definition at line 41 of file iNode.cpp.
41: Decays::iNode( right ),
m_node( right.
m_node->clone() ) {}
◆ clone()
MANDATORY: clone method ("virtual constructor")
Implements Gaudi::Decays::iNode.
Definition at line 72 of file iNode.cpp.
72{ return new Decays::Node( *this ); }
◆ fillStream()
std::ostream & Gaudi::Decays::Node::fillStream |
( |
std::ostream & | s | ) |
const |
|
overridevirtual |
◆ node() [1/2]
const iNode & Gaudi::Decays::Node::node |
( |
| ) |
const |
|
inline |
◆ node() [2/2]
Definition at line 99 of file iNode.h.
99{
return node()( pid ); }
◆ op_and()
Definition at line 74 of file iNode.cpp.
74{
return ( *
this = ( *
m_node && right ) ); }
◆ op_or()
Definition at line 76 of file iNode.cpp.
76{
return ( *
this = ( *
m_node || right ) ); }
◆ operator&=()
Node & Gaudi::Decays::Node::operator&= |
( |
const iNode & | right | ) |
|
|
inline |
Definition at line 92 of file iNode.h.
Node & op_and(const iNode &right)
◆ operator()()
◆ operator=() [1/2]
assignment from arbitrary node
Definition at line 59 of file iNode.cpp.
59 {
60 if ( &right == this ) { return *this; }
61 Decays::iNode*
node =
nullptr;
62 if ( typeid( Decays::Node ) == typeid( right ) ) {
63 const Node& _node =
dynamic_cast<const Node&
>( right );
64 node = _node.m_node->clone();
65 } else {
67 }
69 return *this;
70}
◆ operator=() [2/2]
assignment operator:
Definition at line 53 of file iNode.cpp.
53 {
54 if ( &right == this ) { return *this; }
55 m_node.reset( right.m_node->clone() );
56 return *this;
57}
◆ operator|=()
Node & Gaudi::Decays::Node::operator|= |
( |
const iNode & | right | ) |
|
|
inline |
Definition at line 93 of file iNode.h.
93{
return op_or( right ); }
Node & op_or(const iNode &right)
◆ valid()
bool Gaudi::Decays::Node::valid |
( |
| ) |
const |
|
overridevirtual |
◆ validate()
◆ m_node
std::unique_ptr<iNode> Gaudi::Decays::Node::m_node |
|
private |
the node itself:
Definition at line 111 of file iNode.h.
The documentation for this class was generated from the following files: