The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::Decays::Nodes::_Node Class Reference

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

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

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

Public Member Functions

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

Private Member Functions

_Node & op_or (const NodeList &right)
_Node & op_and (const NodeList &right)

Private Attributes

Decays::Node m_node
 the node holder itself

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.

65: m_node( Decays::Nodes::Invalid() ) {}
Decays::Node m_node
the node holder itself
Definition Nodes.h:165

◆ _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 ) {}
const Decays::iNode & node() const
the accessor to the node
Definition Nodes.h:157

◆ _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 ); }
_Node & op_and(const NodeList &right)
Definition Nodes.cpp:47

◆ 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 ); }
_Node & op_or(const NodeList &right)
Definition Nodes.cpp:43

◆ 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: