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

clang rule token More...

#include <clang_token.h>

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

Public Member Functions

 CLangTokenRule ()
 default constructor. ttl is set to 0.
 
 CLangTokenRule (const int ttl)
 construct with ttl value. More...
 
void setTTL (const int ttl)
 set TTL value More...
 
void setCondition (CLangCondition *cond)
 set rule condition More...
 
void addDirective (CLangDirective *dir)
 add directive to this rule More...
 
int ttl () const
 get TTL value More...
 
const CLangCondition::Ptrcondition () const
 get the rule condition More...
 
const CLangDirective::Contdirectives () const
 get the directive list More...
 
virtual std::ostream & print (std::ostream &os) const
 print clang message to the output stream More...
 
- Public Member Functions inherited from rcsc::CLangToken
virtual ~CLangToken ()
 virtual destructor
 
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::CLangToken
typedef std::shared_ptr< const CLangTokenConstPtr
 smart pointer type
 
typedef std::vector< ConstPtrCont
 
- Protected Member Functions inherited from rcsc::CLangToken
 CLangToken ()
 protected constructor
 

Detailed Description

clang rule token

Constructor & Destructor Documentation

◆ CLangTokenRule()

rcsc::CLangTokenRule::CLangTokenRule ( const int  ttl)
inlineexplicit

construct with ttl value.

Parameters
ttltime to live value

Member Function Documentation

◆ addDirective()

void rcsc::CLangTokenRule::addDirective ( CLangDirective dir)
inline

add directive to this rule

Parameters
dirnew directive object pointer

◆ condition()

const CLangCondition::Ptr & rcsc::CLangTokenRule::condition ( ) const
inline

get the rule condition

Returns
condtion object pointer

◆ directives()

const CLangDirective::Cont & rcsc::CLangTokenRule::directives ( ) const
inline

get the directive list

Returns
directive list

◆ print()

virtual std::ostream & rcsc::CLangTokenRule::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::CLangToken.

◆ setCondition()

void rcsc::CLangTokenRule::setCondition ( CLangCondition cond)
inline

set rule condition

Parameters
condnew condition object pointer

◆ setTTL()

void rcsc::CLangTokenRule::setTTL ( const int  ttl)
inline

set TTL value

Parameters
ttlTTL value

◆ ttl()

int rcsc::CLangTokenRule::ttl ( ) const
inline

get TTL value

Returns
TTL value

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