g4tools  5.4.0
Public Member Functions | Public Attributes | List of all members
tools::get_named Class Reference
Inheritance diagram for tools::get_named:
Inheritance graph
[legend]
Collaboration diagram for tools::get_named:
Collaboration graph
[legend]

Public Member Functions

virtual bool binary (unsigned int, const valop &a_1, const valop &a_2)
 
virtual bool unary (unsigned int, const valop &a_1)
 
virtual bool variable (unsigned int, const value &)
 
virtual bool option (const valop &a_node)
 
virtual bool func_1 (const valop &, const valop &a_1)
 
virtual bool func_2 (const valop &, const valop &a_1, const valop &a_2)
 
virtual bool func_3 (const valop &, const valop &a_1, const valop &a_2, const valop &a_3)
 
virtual bool func_4 (const valop &, const valop &a_1, const valop &a_2, const valop &a_3, const valop &a_4)
 
virtual bool func_5 (const valop &, const valop &a_1, const valop &a_2, const valop &a_3, const valop &a_4, const valop &a_5)
 
virtual bool func_6 (const valop &, const valop &a_1, const valop &a_2, const valop &a_3, const valop &a_4, const valop &a_5, const valop &a_6)
 
 get_named ()
 
virtual ~get_named ()
 
 get_named (const get_named &a_from)
 
get_namedoperator= (const get_named &)
 
- Public Member Functions inherited from tools::valop_visitor
virtual ~valop_visitor ()
 
bool visit (const valop &a_valop)
 

Public Attributes

std::vector< valop * > m_nodes
 

Detailed Description

Definition at line 652 of file valop.

Constructor & Destructor Documentation

◆ get_named() [1/2]

tools::get_named::get_named ( )
inline

Definition at line 717 of file valop.

717 {}

◆ ~get_named()

virtual tools::get_named::~get_named ( )
inlinevirtual

Definition at line 718 of file valop.

718 {}

◆ get_named() [2/2]

tools::get_named::get_named ( const get_named a_from)
inline

Definition at line 720 of file valop.

720 :valop_visitor(a_from){}

Member Function Documentation

◆ binary()

virtual bool tools::get_named::binary ( unsigned int  ,
const valop a_1,
const valop a_2 
)
inlinevirtual

Implements tools::valop_visitor.

Definition at line 654 of file valop.

654  {
655  if(!visit(a_1)) return false;
656  if(!visit(a_2)) return false;
657  return true; //continue searching
658  }

◆ func_1()

virtual bool tools::get_named::func_1 ( const valop ,
const valop a_1 
)
inlinevirtual

Implements tools::valop_visitor.

Definition at line 671 of file valop.

671  {
672  if(!visit(a_1)) return false;
673  return true;
674  }

◆ func_2()

virtual bool tools::get_named::func_2 ( const valop ,
const valop a_1,
const valop a_2 
)
inlinevirtual

Implements tools::valop_visitor.

Definition at line 676 of file valop.

676  {
677  if(!visit(a_1)) return false;
678  if(!visit(a_2)) return false;
679  return true;
680  }

◆ func_3()

virtual bool tools::get_named::func_3 ( const valop ,
const valop a_1,
const valop a_2,
const valop a_3 
)
inlinevirtual

Implements tools::valop_visitor.

Definition at line 681 of file valop.

682  {
683  if(!visit(a_1)) return false;
684  if(!visit(a_2)) return false;
685  if(!visit(a_3)) return false;
686  return true;
687  }

◆ func_4()

virtual bool tools::get_named::func_4 ( const valop ,
const valop a_1,
const valop a_2,
const valop a_3,
const valop a_4 
)
inlinevirtual

Implements tools::valop_visitor.

Definition at line 688 of file valop.

689  {
690  if(!visit(a_1)) return false;
691  if(!visit(a_2)) return false;
692  if(!visit(a_3)) return false;
693  if(!visit(a_4)) return false;
694  return true;
695  }

◆ func_5()

virtual bool tools::get_named::func_5 ( const valop ,
const valop a_1,
const valop a_2,
const valop a_3,
const valop a_4,
const valop a_5 
)
inlinevirtual

Implements tools::valop_visitor.

Definition at line 696 of file valop.

697  {
698  if(!visit(a_1)) return false;
699  if(!visit(a_2)) return false;
700  if(!visit(a_3)) return false;
701  if(!visit(a_4)) return false;
702  if(!visit(a_5)) return false;
703  return true;
704  }

◆ func_6()

virtual bool tools::get_named::func_6 ( const valop ,
const valop a_1,
const valop a_2,
const valop a_3,
const valop a_4,
const valop a_5,
const valop a_6 
)
inlinevirtual

Implements tools::valop_visitor.

Definition at line 705 of file valop.

707  {
708  if(!visit(a_1)) return false;
709  if(!visit(a_2)) return false;
710  if(!visit(a_3)) return false;
711  if(!visit(a_4)) return false;
712  if(!visit(a_5)) return false;
713  if(!visit(a_6)) return false;
714  return true;
715  }

◆ operator=()

get_named& tools::get_named::operator= ( const get_named )
inline

Definition at line 721 of file valop.

721 {return *this;}

◆ option()

virtual bool tools::get_named::option ( const valop a_node)
inlinevirtual

Implements tools::valop_visitor.

Definition at line 666 of file valop.

666  {
667  m_nodes.push_back((valop*)&a_node);
668  return true;
669  }

◆ unary()

virtual bool tools::get_named::unary ( unsigned int  ,
const valop a_1 
)
inlinevirtual

Implements tools::valop_visitor.

Definition at line 660 of file valop.

660  {
661  if(!visit(a_1)) return false;
662  return true;
663  }

◆ variable()

virtual bool tools::get_named::variable ( unsigned int  ,
const value  
)
inlinevirtual

Implements tools::valop_visitor.

Definition at line 665 of file valop.

665 {return true;}

Member Data Documentation

◆ m_nodes

std::vector<valop*> tools::get_named::m_nodes

Definition at line 723 of file valop.


The documentation for this class was generated from the following file:
tools::valop_visitor::visit
bool visit(const valop &a_valop)
Definition: valop:419
tools::get_named::m_nodes
std::vector< valop * > m_nodes
Definition: valop:723