ROSE  0.9.9.139
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
Rose::BinaryAnalysis::Partitioner2::Trigger Class Reference

Description

Trigger based on number of times called.

Definition at line 180 of file Utility.h.

#include <Utility.h>

Classes

struct  Settings
 

Public Types

typedef AddressInterval SizeInterval
 

Public Member Functions

 Trigger ()
 Trigger armed for single call. More...
 
 Trigger (const Settings &settings)
 Armed for triggering when number of calls falls within when. More...
 
 Trigger (size_t nSkip, size_t nTimes)
 Armed for triggering after nSkip calls but not more than nTimes times. More...
 
bool isArmed () const
 True if trigger is armed. More...
 
bool shouldTrigger ()
 Increment calls and return true if triggering. More...
 
size_t nCalls () const
 Number of times called. More...
 
void reset ()
 Reset number of calls to zero. More...
 

Static Public Member Functions

static Trigger once ()
 Armed for one call. More...
 
static Trigger always ()
 Armed to always trigger. More...
 
static Trigger never ()
 Armed to never trigger. More...
 
static Sawyer::CommandLine::SwitchGroup switches (Settings &)
 Command-line switches to initialize settings. More...
 
static std::string docString ()
 Documentation for command-line switches. More...
 

Constructor & Destructor Documentation

Rose::BinaryAnalysis::Partitioner2::Trigger::Trigger ( )
inline

Trigger armed for single call.

Definition at line 192 of file Utility.h.

Referenced by always(), never(), and once().

Rose::BinaryAnalysis::Partitioner2::Trigger::Trigger ( const Settings settings)
inlineexplicit

Armed for triggering when number of calls falls within when.

Definition at line 195 of file Utility.h.

Rose::BinaryAnalysis::Partitioner2::Trigger::Trigger ( size_t  nSkip,
size_t  nTimes 
)
inline

Armed for triggering after nSkip calls but not more than nTimes times.

Definition at line 198 of file Utility.h.

References Sawyer::Container::Interval< rose_addr_t >::baseSize().

Member Function Documentation

static Trigger Rose::BinaryAnalysis::Partitioner2::Trigger::once ( )
inlinestatic

Armed for one call.

Definition at line 203 of file Utility.h.

References Trigger().

static Trigger Rose::BinaryAnalysis::Partitioner2::Trigger::always ( )
inlinestatic

Armed to always trigger.

Definition at line 206 of file Utility.h.

References Trigger().

static Trigger Rose::BinaryAnalysis::Partitioner2::Trigger::never ( )
inlinestatic

Armed to never trigger.

Definition at line 209 of file Utility.h.

References Trigger().

bool Rose::BinaryAnalysis::Partitioner2::Trigger::isArmed ( ) const
inline

True if trigger is armed.

Definition at line 212 of file Utility.h.

References Sawyer::Container::Interval< T >::greatest(), and Sawyer::Container::Interval< T >::isEmpty().

bool Rose::BinaryAnalysis::Partitioner2::Trigger::shouldTrigger ( )
inline

Increment calls and return true if triggering.

Definition at line 215 of file Utility.h.

References Sawyer::Container::Interval< T >::isContaining().

size_t Rose::BinaryAnalysis::Partitioner2::Trigger::nCalls ( ) const
inline

Number of times called.

Definition at line 218 of file Utility.h.

void Rose::BinaryAnalysis::Partitioner2::Trigger::reset ( )
inline

Reset number of calls to zero.

Definition at line 221 of file Utility.h.

static Sawyer::CommandLine::SwitchGroup Rose::BinaryAnalysis::Partitioner2::Trigger::switches ( Settings )
static

Command-line switches to initialize settings.

static std::string Rose::BinaryAnalysis::Partitioner2::Trigger::docString ( )
static

Documentation for command-line switches.


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