The Gaudi Framework  master (594c33fa)
Gaudi::Decays::Nodes::_Node Class Reference

#include </builds/gaudi/Gaudi/GaudiPartProp/include/Gaudi/Decays/Nodes.h>

Collaboration diagram for Gaudi::Decays::Nodes::_Node:

Public Member Functions

 _Node ()
 the default constructor More...
 
 _Node (const iNode &node)
 the constructor from iNode More...
 
 _Node (const Node &node)
 the constructor from Node More...
 
 _Node (const _Node &node)=default
 
bool valid () const
 Check the validity. More...
 
StatusCode validate (const Gaudi::Interfaces::IParticlePropertySvc *svc) const
 The proper validation of the node. More...
 
bool operator() (const Gaudi::ParticleID &pid) const
 The major method. More...
 
bool operator== (const Gaudi::ParticleID &pid) const
 
bool operator!= (const Gaudi::ParticleID &pid) const
 
_Nodeoperator= (const Node &right)
 pseudo-assignment operator: More...
 
_Nodeoperator= (const iNode &right)
 pseudo-assignment from arbitrary node More...
 
_Nodeoperator= (const _Node &right)
 pseudo-assignment from arbitrary node More...
 
_Nodeoperator|= (const iNode &right)
 
_Nodeoperator&= (const iNode &right)
 
_Nodeoperator|= (const NodeList &right)
 
_Nodeoperator&= (const NodeList &right)
 
_Nodeoperator|= (const _Node &right)
 
_Nodeoperator&= (const _Node &right)
 
const Decays::iNodenode () const
 the accessor to the node More...
 
 operator const Decays::iNode & () const
 the cast operator to the actual list of nodes More...
 

Private Member Functions

_Nodeop_or (const NodeList &right)
 
_Nodeop_and (const NodeList &right)
 

Private Attributes

Decays::Node m_node
 the node holder itself More...
 

Detailed Description

Helper structure (especially it is light version node-holder the default constructor

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 96 of file Nodes.h.

Constructor & Destructor Documentation

◆ _Node() [1/4]

Gaudi::Decays::Nodes::_Node::_Node ( )

the default constructor

Definition at line 65 of file Nodes.cpp.

◆ _Node() [2/4]

Gaudi::Decays::Nodes::_Node::_Node ( const iNode node)
inline

the constructor from iNode

Definition at line 101 of file Nodes.h.

101 : m_node( node ) {}

◆ _Node() [3/4]

Gaudi::Decays::Nodes::_Node::_Node ( const Node node)
inline

the constructor from Node

Definition at line 103 of file Nodes.h.

103 : m_node( node ) {}

◆ _Node() [4/4]

Gaudi::Decays::Nodes::_Node::_Node ( const _Node node)
default

Member Function Documentation

◆ node()

const Decays::iNode& Gaudi::Decays::Nodes::_Node::node ( ) const
inline

the accessor to the node

Definition at line 157 of file Nodes.h.

157 { return m_node.node(); }

◆ op_and()

Decays::Nodes::_Node & Gaudi::Decays::Nodes::_Node::op_and ( const NodeList right)
private

Definition at line 47 of file Nodes.cpp.

47  {
48  if ( !right.empty() ) { m_node &= Decays::Nodes::And( right ); }
49  return *this;
50 }

◆ op_or()

Decays::Nodes::_Node & Gaudi::Decays::Nodes::_Node::op_or ( const NodeList right)
private

Definition at line 43 of file Nodes.cpp.

43  {
44  if ( !right.empty() ) { m_node |= Decays::Nodes::Or( right ); }
45  return *this;
46 }

◆ operator const Decays::iNode &()

Gaudi::Decays::Nodes::_Node::operator const Decays::iNode & ( ) const
inline

the cast operator to the actual list of nodes

Definition at line 159 of file Nodes.h.

159 { return node(); }

◆ operator!=()

bool Gaudi::Decays::Nodes::_Node::operator!= ( const Gaudi::ParticleID pid) const
inline

Definition at line 117 of file Nodes.h.

117 { return !m_node.node( pid ); }

◆ operator&=() [1/3]

_Node& Gaudi::Decays::Nodes::_Node::operator&= ( const _Node right)
inline

Definition at line 151 of file Nodes.h.

151  {
152  m_node &= right;
153  return *this;
154  }

◆ operator&=() [2/3]

_Node& Gaudi::Decays::Nodes::_Node::operator&= ( const iNode right)
inline

Definition at line 139 of file Nodes.h.

139  {
140  m_node &= right;
141  return *this;
142  }

◆ operator&=() [3/3]

_Node& Gaudi::Decays::Nodes::_Node::operator&= ( const NodeList right)
inline

Definition at line 145 of file Nodes.h.

145 { return op_and( right ); }

◆ operator()()

bool Gaudi::Decays::Nodes::_Node::operator() ( const Gaudi::ParticleID pid) const
inline

The major method.

Definition at line 113 of file Nodes.h.

113 { return m_node.node( pid ); }

◆ operator=() [1/3]

_Node& Gaudi::Decays::Nodes::_Node::operator= ( const _Node right)
inline

pseudo-assignment from arbitrary node

Definition at line 130 of file Nodes.h.

130  {
131  m_node = right.m_node;
132  return *this;
133  }

◆ operator=() [2/3]

_Node& Gaudi::Decays::Nodes::_Node::operator= ( const iNode right)
inline

pseudo-assignment from arbitrary node

Definition at line 125 of file Nodes.h.

125  {
126  m_node = right;
127  return *this;
128  }

◆ operator=() [3/3]

_Node& Gaudi::Decays::Nodes::_Node::operator= ( const Node right)
inline

pseudo-assignment operator:

Definition at line 120 of file Nodes.h.

120  {
121  m_node = right;
122  return *this;
123  }

◆ operator==()

bool Gaudi::Decays::Nodes::_Node::operator== ( const Gaudi::ParticleID pid) const
inline

Definition at line 115 of file Nodes.h.

115 { return m_node.node( pid ); }

◆ operator|=() [1/3]

_Node& Gaudi::Decays::Nodes::_Node::operator|= ( const _Node right)
inline

Definition at line 147 of file Nodes.h.

147  {
148  m_node |= right;
149  return *this;
150  }

◆ operator|=() [2/3]

_Node& Gaudi::Decays::Nodes::_Node::operator|= ( const iNode right)
inline

Definition at line 135 of file Nodes.h.

135  {
136  m_node |= right;
137  return *this;
138  }

◆ operator|=() [3/3]

_Node& Gaudi::Decays::Nodes::_Node::operator|= ( const NodeList right)
inline

Definition at line 144 of file Nodes.h.

144 { return op_or( right ); }

◆ valid()

bool Gaudi::Decays::Nodes::_Node::valid ( ) const
inline

Check the validity.

Definition at line 107 of file Nodes.h.

107 { return m_node.node().valid(); }

◆ validate()

StatusCode Gaudi::Decays::Nodes::_Node::validate ( const Gaudi::Interfaces::IParticlePropertySvc svc) const
inline

The proper validation of the node.

Definition at line 109 of file Nodes.h.

109  {
110  return m_node.node().validate( svc );
111  }

Member Data Documentation

◆ m_node

Decays::Node Gaudi::Decays::Nodes::_Node::m_node
private

the node holder itself

Definition at line 165 of file Nodes.h.


The documentation for this class was generated from the following files:
Gaudi::Decays::Nodes::_Node::m_node
Decays::Node m_node
the node holder itself
Definition: Nodes.h:165
Gaudi::Decays::Nodes::_Node::op_or
_Node & op_or(const NodeList &right)
Definition: Nodes.cpp:43
Gaudi::Decays::Nodes::_Node::op_and
_Node & op_and(const NodeList &right)
Definition: Nodes.cpp:47
Gaudi::Decays::iNode::validate
virtual StatusCode validate(const Gaudi::Interfaces::IParticlePropertySvc *svc) const =0
validate the decay node
EventStatus::Invalid
@ Invalid
Definition: IAlgExecStateSvc.h:73
Gaudi::Decays::iNode::valid
virtual bool valid() const =0
check the validity of the node
Gaudi::Decays::Nodes::_Node::node
const Decays::iNode & node() const
the accessor to the node
Definition: Nodes.h:157
GaudiPartProp.Nodes.Or
Or
Definition: Nodes.py:269
Gaudi::Decays::Node::node
const iNode & node() const
Definition: iNode.h:96
std::right
T right(T... args)
GaudiPartProp.Nodes.And
And
Definition: Nodes.py:270