UT_StringArray Class Reference

#include <UT_StringArray.h>

Inheritance diagram for UT_StringArray:

ut_PropertyRow

List of all members.

Public Types

typedef int(* Comparator )(const UT_String *, const UT_String *s2)

Public Member Functions

 UT_StringArray ()
 UT_StringArray (const char **src)
 UT_StringArray (const UT_StringArray &src)
 ~UT_StringArray ()
void merge (UT_StringArray &other)
int append (const char *str)
int insert (const char *str, int idx)
int remove (int idx)
void removeLast ()
void clear ()
void resize (int nsize)
int entries () const
int capacity () const
void fromStdVectorOfStrings (const std::vector< std::string > &vec)
void toStdVectorOfStrings (std::vector< std::string > &vec) const
const UT_StringArrayoperator= (const UT_StringArray &src)
UT_Stringoperator() (int idx)
const UT_Stringoperator() (int idx) const
UT_Stringlast ()
const UT_Stringlast () const
bool operator== (const UT_StringArray &src) const
bool operator!= (const UT_StringArray &src) const
int find (const char *str, unsigned int s=0) const
void sort (bool forward, bool numbered)
void sort ()
void sort (Comparator compare)
int sortedInsert (const char *str, bool forward=true, bool numbered=true)
int sortedFind (const char *str, bool forward=true, bool numbered=true) const
int getLongestPrefixLength () const
void join (const char *sep, UT_String &result) const
unsigned hash () const


Detailed Description

Examples:

CVEX/cvexsample.C, FS/FS_HomeHelper.C, FS/FS_HomeHelper.h, and VRAY/VRAY_DemoVolumeSphere.C.

Definition at line 30 of file UT_StringArray.h.


Member Typedef Documentation

typedef int(* UT_StringArray::Comparator)(const UT_String *, const UT_String *s2)

Definition at line 32 of file UT_StringArray.h.


Constructor & Destructor Documentation

UT_StringArray::UT_StringArray (  ) 

UT_StringArray::UT_StringArray ( const char **  src  )  [explicit]

UT_StringArray::UT_StringArray ( const UT_StringArray src  ) 

UT_StringArray::~UT_StringArray (  ) 


Member Function Documentation

int UT_StringArray::append ( const char *  str  ) 

int UT_StringArray::capacity ( void   )  const [inline]

Definition at line 51 of file UT_StringArray.h.

void UT_StringArray::clear (  ) 

int UT_StringArray::entries (  )  const

int UT_StringArray::find ( const char *  str,
unsigned int  s = 0 
) const

void UT_StringArray::fromStdVectorOfStrings ( const std::vector< std::string > &  vec  ) 

int UT_StringArray::getLongestPrefixLength (  )  const

unsigned UT_StringArray::hash (  )  const

int UT_StringArray::insert ( const char *  str,
int  idx 
)

void UT_StringArray::join ( const char *  sep,
UT_String result 
) const

const UT_String& UT_StringArray::last (  )  const

UT_String& UT_StringArray::last (  ) 

void UT_StringArray::merge ( UT_StringArray other  ) 

bool UT_StringArray::operator!= ( const UT_StringArray src  )  const

const UT_String& UT_StringArray::operator() ( int  idx  )  const

UT_String& UT_StringArray::operator() ( int  idx  ) 

const UT_StringArray& UT_StringArray::operator= ( const UT_StringArray src  ) 

bool UT_StringArray::operator== ( const UT_StringArray src  )  const

int UT_StringArray::remove ( int  idx  ) 

void UT_StringArray::removeLast (  ) 

void UT_StringArray::resize ( int  nsize  ) 

void UT_StringArray::sort ( Comparator  compare  ) 

void UT_StringArray::sort ( void   )  [inline]

Definition at line 76 of file UT_StringArray.h.

void UT_StringArray::sort ( bool  forward,
bool  numbered 
)

int UT_StringArray::sortedFind ( const char *  str,
bool  forward = true,
bool  numbered = true 
) const

int UT_StringArray::sortedInsert ( const char *  str,
bool  forward = true,
bool  numbered = true 
)

void UT_StringArray::toStdVectorOfStrings ( std::vector< std::string > &  vec  )  const


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

Generated on Mon Jan 28 00:49:13 2013 for HDK by  doxygen 1.5.9