LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
rcsc::AndPlayerPredicate Class Reference

composite logical "and" predicate More...

#include <player_predicate.h>

Inheritance diagram for rcsc::AndPlayerPredicate:
Inheritance graph
[legend]
Collaboration diagram for rcsc::AndPlayerPredicate:
Collaboration graph
[legend]

Public Member Functions

 AndPlayerPredicate (const PlayerPredicate *p1, const PlayerPredicate *p2)
 construct with 2 predicates. all arguments must be a dynamically allocated object. More...
 
 AndPlayerPredicate (const PlayerPredicate *p1, const PlayerPredicate *p2, const PlayerPredicate *p3)
 construct with 3 predicates. all arguments must be a dynamically allocated object. More...
 
 AndPlayerPredicate (const PlayerPredicate *p1, const PlayerPredicate *p2, const PlayerPredicate *p3, const PlayerPredicate *p4)
 construct with 4 predicates. all arguments must be a dynamically allocated object. More...
 
 AndPlayerPredicate (const PlayerPredicate *p1, const PlayerPredicate *p2, const PlayerPredicate *p3, const PlayerPredicate *p4, const PlayerPredicate *p5)
 construct with 5 predicates. all arguments must be a dynamically allocated object. More...
 
 AndPlayerPredicate (const PlayerPredicate *p1, const PlayerPredicate *p2, const PlayerPredicate *p3, const PlayerPredicate *p4, const PlayerPredicate *p5, const PlayerPredicate *p6)
 construct with 6 predicates. all arguments must be a dynamically allocated object. More...
 
 AndPlayerPredicate (const PlayerPredicate *p1, const PlayerPredicate *p2, const PlayerPredicate *p3, const PlayerPredicate *p4, const PlayerPredicate *p5, const PlayerPredicate *p6, const PlayerPredicate *p7)
 construct with 7 predicates. all arguments must be a dynamically allocated object. More...
 
 AndPlayerPredicate (const PlayerPredicate *p1, const PlayerPredicate *p2, const PlayerPredicate *p3, const PlayerPredicate *p4, const PlayerPredicate *p5, const PlayerPredicate *p6, const PlayerPredicate *p7, const PlayerPredicate *p8)
 construct with 8 predicates. all arguments must be a dynamically allocated object. More...
 
bool operator() (const AbstractPlayerObject &p) const
 predicate function More...
 
Ptr clone () const
 create clone object. More...
 
- Public Member Functions inherited from rcsc::PlayerPredicate
virtual ~PlayerPredicate ()
 virtual destructor
 
virtual bool operator() (const AbstractPlayerObject &p) const =0
 predicate function More...
 
virtual Ptr clone () const =0
 create clone object. More...
 

Additional Inherited Members

- Public Types inherited from rcsc::PlayerPredicate
typedef std::shared_ptr< PlayerPredicatePtr
 smart pointer type
 
typedef std::shared_ptr< const PlayerPredicateConstPtr
 const smart pointer type
 
- Protected Member Functions inherited from rcsc::PlayerPredicate
 PlayerPredicate ()
 protected constructor
 

Detailed Description

composite logical "and" predicate

Constructor & Destructor Documentation

◆ AndPlayerPredicate() [1/7]

rcsc::AndPlayerPredicate::AndPlayerPredicate ( const PlayerPredicate p1,
const PlayerPredicate p2 
)
inline

construct with 2 predicates. all arguments must be a dynamically allocated object.

Parameters
p11st predicate
p22nd predicate

◆ AndPlayerPredicate() [2/7]

rcsc::AndPlayerPredicate::AndPlayerPredicate ( const PlayerPredicate p1,
const PlayerPredicate p2,
const PlayerPredicate p3 
)
inline

construct with 3 predicates. all arguments must be a dynamically allocated object.

Parameters
p11st predicate
p22nd predicate
p33rd predicate

◆ AndPlayerPredicate() [3/7]

rcsc::AndPlayerPredicate::AndPlayerPredicate ( const PlayerPredicate p1,
const PlayerPredicate p2,
const PlayerPredicate p3,
const PlayerPredicate p4 
)
inline

construct with 4 predicates. all arguments must be a dynamically allocated object.

Parameters
p11st predicate
p22nd predicate
p33rd predicate
p44th predicate

◆ AndPlayerPredicate() [4/7]

rcsc::AndPlayerPredicate::AndPlayerPredicate ( const PlayerPredicate p1,
const PlayerPredicate p2,
const PlayerPredicate p3,
const PlayerPredicate p4,
const PlayerPredicate p5 
)
inline

construct with 5 predicates. all arguments must be a dynamically allocated object.

Parameters
p11st predicate
p22nd predicate
p33rd predicate
p44th predicate
p55th predicate

◆ AndPlayerPredicate() [5/7]

rcsc::AndPlayerPredicate::AndPlayerPredicate ( const PlayerPredicate p1,
const PlayerPredicate p2,
const PlayerPredicate p3,
const PlayerPredicate p4,
const PlayerPredicate p5,
const PlayerPredicate p6 
)
inline

construct with 6 predicates. all arguments must be a dynamically allocated object.

Parameters
p11st predicate
p22nd predicate
p33rd predicate
p44th predicate
p55th predicate
p66th predicate

◆ AndPlayerPredicate() [6/7]

rcsc::AndPlayerPredicate::AndPlayerPredicate ( const PlayerPredicate p1,
const PlayerPredicate p2,
const PlayerPredicate p3,
const PlayerPredicate p4,
const PlayerPredicate p5,
const PlayerPredicate p6,
const PlayerPredicate p7 
)
inline

construct with 7 predicates. all arguments must be a dynamically allocated object.

Parameters
p11st predicate
p22nd predicate
p33rd predicate
p44th predicate
p55th predicate
p66th predicate
p77th predicate

◆ AndPlayerPredicate() [7/7]

rcsc::AndPlayerPredicate::AndPlayerPredicate ( const PlayerPredicate p1,
const PlayerPredicate p2,
const PlayerPredicate p3,
const PlayerPredicate p4,
const PlayerPredicate p5,
const PlayerPredicate p6,
const PlayerPredicate p7,
const PlayerPredicate p8 
)
inline

construct with 8 predicates. all arguments must be a dynamically allocated object.

Parameters
p11st predicate
p22nd predicate
p33rd predicate
p44th predicate
p55th predicate
p66th predicate
p77th predicate
p88th predicate

Member Function Documentation

◆ clone()

Ptr rcsc::AndPlayerPredicate::clone ( ) const
inlinevirtual

create clone object.

Returns
cloned object.

Implements rcsc::PlayerPredicate.

◆ operator()()

bool rcsc::AndPlayerPredicate::operator() ( const AbstractPlayerObject p) const
inlinevirtual

predicate function

Parameters
pconst reference to the target player object
Returns
the result of "and" operation of all predicates

Implements rcsc::PlayerPredicate.


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