Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
teo::StringArray Class Reference

Teonet string array class. More...

#include <teonet.hpp>

Data Structures

class  iterator
 

Public Member Functions

 StringArray ()
 
 StringArray (const char *str, const char *separators=",", bool with_empty=true, int max_parts=0)
 
 StringArray (const std::string &str, const std::string &separators=",", bool with_empty=true, int max_parts=0)
 
 StringArray (const std::vector< const char * > &vstr, const char *separators=",")
 
StringArrayoperator= (const StringArray &ar)
 
virtual ~StringArray ()
 
const char * operator[] (int i) const
 
int size () const
 
StringArrayadd (const char *str)
 
StringArrayadd (const std::string &str)
 
std::string to_string (const char *separator=NULL) const
 
std::string to_string (const std::string &separator) const
 
bool move (unsigned int fromIdx, unsigned int toIdx)
 
iterator begin ()
 
iterator end ()
 

Detailed Description

Teonet string array class.

Constructor & Destructor Documentation

teo::StringArray::StringArray ( )
inline
teo::StringArray::StringArray ( const char *  str,
const char *  separators = ",",
bool  with_empty = true,
int  max_parts = 0 
)
inlineexplicit
teo::StringArray::StringArray ( const std::string &  str,
const std::string &  separators = ",",
bool  with_empty = true,
int  max_parts = 0 
)
inlineexplicit
teo::StringArray::StringArray ( const std::vector< const char * > &  vstr,
const char *  separators = "," 
)
inlineexplicit

References add().

virtual teo::StringArray::~StringArray ( )
inlinevirtual

Member Function Documentation

StringArray& teo::StringArray::add ( const char *  str)
inline

References ksnet_stringArrAdd().

Referenced by add(), operator=(), and StringArray().

StringArray& teo::StringArray::add ( const std::string &  str)
inline

References add().

iterator teo::StringArray::begin ( )
inline
iterator teo::StringArray::end ( )
inline

References size().

bool teo::StringArray::move ( unsigned int  fromIdx,
unsigned int  toIdx 
)
inline
StringArray& teo::StringArray::operator= ( const StringArray ar)
inline

References add(), and size().

const char* teo::StringArray::operator[] ( int  i) const
inline
int teo::StringArray::size ( ) const
inline

References ksnet_stringArrLength().

Referenced by end(), and operator=().

std::string teo::StringArray::to_string ( const char *  separator = NULL) const
inline

Referenced by to_string().

std::string teo::StringArray::to_string ( const std::string &  separator) const
inline

References to_string().


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