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::CLangConditionBool Class Reference

simple boolean condition More...

#include <clang_condition.h>

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

Public Member Functions

 CLangConditionBool (const bool val)
 
virtual Type type () const
 get type id. More...
 
bool value () const
 get condition value More...
 
virtual std::ostream & print (std::ostream &os) const
 print clang message to the output stream More...
 
- Public Member Functions inherited from rcsc::CLangCondition
virtual ~CLangCondition ()=default
 virtual destructor
 
virtual Type type () const =0
 get type id. More...
 
virtual std::ostream & print (std::ostream &os) const =0
 print clang message to the output stream More...
 

Additional Inherited Members

- Public Types inherited from rcsc::CLangCondition
enum  Type {
  BOOL , PPOS , BPOS , BOWNER ,
  PLAY_MODE , AND , OR , NOT ,
  NAMED , COND_COMP , UNUM , MAX_TYPE
}
 clang condition types More...
 
typedef std::shared_ptr< CLangConditionPtr
 smart pointer type
 
- Protected Member Functions inherited from rcsc::CLangCondition
 CLangCondition ()=default
 protected constructor
 

Detailed Description

simple boolean condition

Constructor & Destructor Documentation

◆ CLangConditionBool()

rcsc::CLangConditionBool::CLangConditionBool ( const bool  val)
inline

\create object with condition value

Parameters
valcondition value

Member Function Documentation

◆ print()

virtual std::ostream & rcsc::CLangConditionBool::print ( std::ostream &  os) const
virtual

print clang message to the output stream

Parameters
osreference to the output stream
Returns
reference to the output stream

Implements rcsc::CLangCondition.

◆ type()

virtual Type rcsc::CLangConditionBool::type ( ) const
inlinevirtual

get type id.

Returns
type id.

Implements rcsc::CLangCondition.

◆ value()

bool rcsc::CLangConditionBool::value ( ) const
inline

get condition value

Returns
condition value

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