ROSE 0.11.145.147
Public Types | Static Public Member Functions | Protected Member Functions | List of all members
Rose::BinaryAnalysis::Partitioner2::AddressIntervalParser Class Reference

Description

Parse an address interval.

An interval is specified in one of the following forms, where N and M are non-negative integers:

The integers can be specified in decimal, octal, hexadecimal, or binary using the usual C/C++ syntax.

Definition at line 175 of file BinaryAnalysis/Partitioner2/Utility.h.

#include <Rose/BinaryAnalysis/Partitioner2/Utility.h>

Inheritance diagram for Rose::BinaryAnalysis::Partitioner2::AddressIntervalParser:
Inheritance graph
[legend]
Collaboration diagram for Rose::BinaryAnalysis::Partitioner2::AddressIntervalParser:
Collaboration graph
[legend]

Public Types

using Ptr = Sawyer::SharedPointer< AddressIntervalParser >
 Shared-ownership pointer to an AddressIntervalParser.
 
- Public Types inherited from Rose::CommandLine::IntervalParser< AddressInterval >
using Ptr = Sawyer::SharedPointer< IntervalParser >
 Shared-ownership pointer.
 
- Public Types inherited from Sawyer::CommandLine::ValueParser
typedef SharedPointer< ValueParserPtr
 Reference counting pointer for this class.
 

Static Public Member Functions

static Ptr instance ()
 Default allocating constructor.
 
static Ptr instance (const Sawyer::CommandLine::ValueSaver::Ptr &valueSaver)
 Allocating constructor.
 
static std::string docString ()
 Runtime documentation.
 
- Static Public Member Functions inherited from Rose::CommandLine::IntervalParser< AddressInterval >
static Ptr instance ()
 Default allocating constructor.
 
static Ptr instance (const Sawyer::CommandLine::ValueSaver::Ptr &valueSaver)
 Allocating constructor.
 
static std::string docString (const std::string &interval="interval", const std::string &value="value")
 Runtime documentation.
 
static AddressInterval parse (const char *input, const char **rest)
 Parse an interval from a C string.
 
static AddressInterval parse (const std::string &input)
 Parse an interval from a C++ string.
 
static std::string toString (const AddressInterval &interval)
 Unparse an interval to a string.
 

Protected Member Functions

 AddressIntervalParser (const Sawyer::CommandLine::ValueSaver::Ptr &valueSaver)
 
- Protected Member Functions inherited from Rose::CommandLine::IntervalParser< AddressInterval >
 IntervalParser (const Sawyer::CommandLine::ValueSaver::Ptr &valueSaver)
 
- Protected Member Functions inherited from Sawyer::CommandLine::ValueParser
 ValueParser ()
 Constructor for derived classes.
 
 ValueParser (const ValueSaver::Ptr &valueSaver)
 Constructor for derived classes.
 

Additional Inherited Members

- Public Member Functions inherited from Sawyer::CommandLine::ValueParser
ParsedValue matchString (const std::string &)
 Parse the entire string and return a value.
 
ParsedValue match (Cursor &)
 Parse a value from the beginning of the specified string.
 
Ptr valueSaver (const ValueSaver::Ptr &f)
 Property: functor responsible for saving a parsed value in user storage.
 
const ValueSaver::Ptr valueSaver () const
 Property: functor responsible for saving a parsed value in user storage.
 
- Public Member Functions inherited from Sawyer::SharedObject
 SharedObject ()
 Default constructor.
 
 SharedObject (const SharedObject &)
 Copy constructor.
 
virtual ~SharedObject ()
 Virtual destructor.
 
SharedObjectoperator= (const SharedObject &)
 Assignment.
 
- Public Member Functions inherited from Sawyer::SharedFromThis< ValueParser >
SharedPointer< ValueParser > sharedFromThis ()
 Create a shared pointer from this.
 
SharedPointer< const ValueParser > sharedFromThis () const
 Create a shared pointer from this.
 

Member Typedef Documentation

◆ Ptr

Shared-ownership pointer to an AddressIntervalParser.

See Shared ownership.

Definition at line 184 of file BinaryAnalysis/Partitioner2/Utility.h.

Constructor & Destructor Documentation

◆ AddressIntervalParser() [1/2]

Rose::BinaryAnalysis::Partitioner2::AddressIntervalParser::AddressIntervalParser ( )
inlineprotected

Definition at line 179 of file BinaryAnalysis/Partitioner2/Utility.h.

◆ AddressIntervalParser() [2/2]

Rose::BinaryAnalysis::Partitioner2::AddressIntervalParser::AddressIntervalParser ( const Sawyer::CommandLine::ValueSaver::Ptr valueSaver)
inlineprotected

Definition at line 180 of file BinaryAnalysis/Partitioner2/Utility.h.

Member Function Documentation

◆ instance() [1/2]

static Ptr Rose::BinaryAnalysis::Partitioner2::AddressIntervalParser::instance ( )
inlinestatic

Default allocating constructor.

Definition at line 187 of file BinaryAnalysis/Partitioner2/Utility.h.

◆ instance() [2/2]

static Ptr Rose::BinaryAnalysis::Partitioner2::AddressIntervalParser::instance ( const Sawyer::CommandLine::ValueSaver::Ptr valueSaver)
inlinestatic

Allocating constructor.

Definition at line 192 of file BinaryAnalysis/Partitioner2/Utility.h.

References Sawyer::CommandLine::ValueParser::valueSaver().


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