Version: 9.15.0
Visitor1 Class Reference
Inheritance diagram for Visitor1:
Collaboration diagram for Visitor1:

Public Member Functions

 Visitor1 (std::map< std::string, std::tuple< ElementaryPoint *, Node *, std::shared_ptr< Bloc > > > *m)
 
void beginForkBlocPoint (ForkBlocPoint *pt)
 
void endForkBlocPoint (ForkBlocPoint *pt)
 
void beginLinkedBlocPoint (LinkedBlocPoint *pt)
 
void endLinkedBlocPoint (LinkedBlocPoint *pt)
 
void beginElementaryPoint (ElementaryPoint *pt)
 
void endElementaryPoint (ElementaryPoint *pt)
 
void beginNotSimpleCasePoint (NotSimpleCasePoint *pt)
 
void endNotSimpleCasePoint (NotSimpleCasePoint *pt)
 

Private Attributes

std::map< std::string, std::tuple< ElementaryPoint *, Node *, std::shared_ptr< Bloc > > > * _m
 

Detailed Description

Definition at line 263 of file AbstractPoint.cxx.

Constructor & Destructor Documentation

◆ Visitor1()

Visitor1::Visitor1 ( std::map< std::string, std::tuple< ElementaryPoint *, Node *, std::shared_ptr< Bloc > > > *  m)
inline

Definition at line 266 of file AbstractPoint.cxx.

266 :_m(m) { }
std::map< std::string, std::tuple< ElementaryPoint *, Node *, std::shared_ptr< Bloc > > > * _m

Member Function Documentation

◆ beginElementaryPoint()

void Visitor1::beginElementaryPoint ( ElementaryPoint pt)
inlinevirtual

Implements YACS::ENGINE::PointVisitor.

Definition at line 271 of file AbstractPoint.cxx.

272  {
273  std::string nodeName(pt->getNodeName());
274  auto it(_m->find(nodeName));
275  if(it==_m->end())
276  {
277  (*_m)[nodeName] = std::tuple< ElementaryPoint *, Node *, std::shared_ptr<Bloc> >(pt,pt->getNode(),std::make_shared<Bloc>(nodeName));
278  }
279  }

References YACS::ENGINE::ElementaryPoint::getNode(), and YACS::ENGINE::ElementaryPoint::getNodeName().

◆ beginForkBlocPoint()

void Visitor1::beginForkBlocPoint ( ForkBlocPoint pt)
inlinevirtual

Implements YACS::ENGINE::PointVisitor.

Definition at line 267 of file AbstractPoint.cxx.

267 { }

◆ beginLinkedBlocPoint()

void Visitor1::beginLinkedBlocPoint ( LinkedBlocPoint pt)
inlinevirtual

Implements YACS::ENGINE::PointVisitor.

Definition at line 269 of file AbstractPoint.cxx.

269 { }

◆ beginNotSimpleCasePoint()

void Visitor1::beginNotSimpleCasePoint ( NotSimpleCasePoint pt)
inlinevirtual

Implements YACS::ENGINE::PointVisitor.

Definition at line 281 of file AbstractPoint.cxx.

281 { }

◆ endElementaryPoint()

void Visitor1::endElementaryPoint ( ElementaryPoint pt)
inlinevirtual

Implements YACS::ENGINE::PointVisitor.

Definition at line 280 of file AbstractPoint.cxx.

280 { }

◆ endForkBlocPoint()

void Visitor1::endForkBlocPoint ( ForkBlocPoint pt)
inlinevirtual

Implements YACS::ENGINE::PointVisitor.

Definition at line 268 of file AbstractPoint.cxx.

268 { }

◆ endLinkedBlocPoint()

void Visitor1::endLinkedBlocPoint ( LinkedBlocPoint pt)
inlinevirtual

Implements YACS::ENGINE::PointVisitor.

Definition at line 270 of file AbstractPoint.cxx.

270 { }

◆ endNotSimpleCasePoint()

void Visitor1::endNotSimpleCasePoint ( NotSimpleCasePoint pt)
inlinevirtual

Implements YACS::ENGINE::PointVisitor.

Definition at line 282 of file AbstractPoint.cxx.

282 { }

Member Data Documentation

◆ _m

std::map< std::string, std::tuple< ElementaryPoint *, Node *, std::shared_ptr<Bloc> > >* Visitor1::_m
private

Definition at line 284 of file AbstractPoint.cxx.


The documentation for this class was generated from the following file: