PGROUTING  2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StringTokenizer Class Reference

#include "utils.h"

Public Member Functions

 StringTokenizer ()
 
 StringTokenizer ()
 
 StringTokenizer ()
 
bool getToken (std::string &strToken, long iTokenIndex)
 
bool getToken (std::string &strToken, int64_t iTokenIndex)
 
bool getToken (std::string &strToken, size_t iTokenIndex)
 
size_t getTokenCount ()
 
size_t getTokenCount ()
 
size_t getTokenCount ()
 
bool getTokens (StringVector &vecTokensRef)
 
bool getTokens (StringVector &vecTokensRef)
 
bool getTokens (StringVector &vecTokensRef)
 
bool parse (std::string strInput, std::string chDelim)
 
bool parse (std::string strInput, std::string chDelim)
 
bool parse (std::string strInput, std::string chDelim)
 
void reset ()
 
void reset ()
 
void reset ()
 

Private Attributes

std::string strInput
 
StringVector vecTokens
 

Detailed Description

Definition at line 58 of file bd_astar/tester/utils.h.

Constructor & Destructor Documentation

StringTokenizer::StringTokenizer ( )
inline

Definition at line 61 of file bd_astar/tester/utils.h.

References reset().

StringTokenizer::StringTokenizer ( )
inline

Definition at line 39 of file trsp/src/utils.h.

References reset().

StringTokenizer::StringTokenizer ( )
inline

Definition at line 72 of file Utils.h.

References reset().

Member Function Documentation

bool StringTokenizer::getToken ( std::string &  strToken,
long  iTokenIndex 
)
inline

Definition at line 83 of file trsp/src/utils.h.

References vecTokens.

bool StringTokenizer::getToken ( std::string &  strToken,
int64_t  iTokenIndex 
)
inline

Definition at line 93 of file Utils.h.

References vecTokens.

bool StringTokenizer::getToken ( std::string &  strToken,
size_t  iTokenIndex 
)
inline

Definition at line 105 of file bd_astar/tester/utils.h.

References vecTokens.

size_t StringTokenizer::getTokenCount ( )
inline

Definition at line 78 of file trsp/src/utils.h.

References vecTokens.

size_t StringTokenizer::getTokenCount ( )
inline

Definition at line 89 of file Utils.h.

References vecTokens.

size_t StringTokenizer::getTokenCount ( )
inline

Definition at line 100 of file bd_astar/tester/utils.h.

References vecTokens.

bool StringTokenizer::getTokens ( StringVector vecTokensRef)
inline

Definition at line 94 of file trsp/src/utils.h.

References vecTokens.

bool StringTokenizer::getTokens ( StringVector vecTokensRef)
inline

Definition at line 102 of file Utils.h.

References vecTokens.

bool StringTokenizer::getTokens ( StringVector vecTokensRef)
inline

Definition at line 116 of file bd_astar/tester/utils.h.

References vecTokens.

Referenced by loadDistanceMatrix(), loadGraph(), loadOrders(), loadVehicles(), and main().

bool StringTokenizer::parse ( std::string  strInput,
std::string  chDelim 
)
inline

Definition at line 50 of file trsp/src/utils.h.

References vecTokens.

bool StringTokenizer::parse ( std::string  strInput,
std::string  chDelim 
)
inline

Definition at line 72 of file bd_astar/tester/utils.h.

References vecTokens.

Referenced by loadDistanceMatrix(), loadGraph(), loadOrders(), loadVehicles(), and main().

bool StringTokenizer::parse ( std::string  strInput,
std::string  chDelim 
)
inline

Definition at line 81 of file Utils.h.

References tokenizer::has_more_tokens(), tokenizer::next_token(), and vecTokens.

void StringTokenizer::reset ( void  )
inline

Definition at line 44 of file trsp/src/utils.h.

References strInput, and vecTokens.

void StringTokenizer::reset ( void  )
inline

Definition at line 66 of file bd_astar/tester/utils.h.

References strInput, and vecTokens.

Referenced by StringTokenizer().

void StringTokenizer::reset ( void  )
inline

Definition at line 76 of file Utils.h.

References strInput, and vecTokens.

Member Data Documentation

std::string StringTokenizer::strInput
private

Definition at line 123 of file bd_astar/tester/utils.h.

Referenced by reset().

StringVector StringTokenizer::vecTokens
private

Definition at line 124 of file bd_astar/tester/utils.h.

Referenced by getToken(), getTokenCount(), getTokens(), parse(), and reset().


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