30 #ifndef GENICAM_GCSTRINGLIST_H 31 #define GENICAM_GCSTRINGLIST_H 39 #if defined (_WIN32) || (defined (__GNUC__) && (defined (__linux__) || defined(__APPLE__) || defined(VXWORKS))) 49 class GCBASE_API gcstring_vector
54 class GCBASE_API const_iterator
59 const_iterator(gcstring *pStr = 0);
65 const gcstring * operator -> (
void)
const;
66 const_iterator & operator ++ (
void);
67 const_iterator operator ++ (
int);
68 const_iterator & operator -- (
void);
69 const_iterator operator -- (
int);
70 const_iterator & operator += (intptr_t iInc);
71 const_iterator operator + (intptr_t iInc)
const;
72 const_iterator & operator -= (intptr_t iDec);
73 intptr_t operator - (
const const_iterator &iter)
const;
74 const_iterator operator - (intptr_t iDec)
const;
75 const gcstring & operator [] (intptr_t iIndex)
const;
76 bool operator == (
const const_iterator &iter)
const;
77 bool operator != (
const const_iterator &iter)
const;
78 bool operator < (
const const_iterator &iter)
const;
79 bool operator > (
const const_iterator &iter)
const;
80 bool operator <= (
const const_iterator &iter)
const;
81 bool operator >= (
const const_iterator &iter)
const;
83 friend const_iterator operator + (intptr_t iInc,
const const_iterator &iter);
91 class GCBASE_API iterator :
97 iterator(gcstring *pStr = 0);
103 gcstring * operator -> (
void)
const;
104 iterator & operator ++ (
void);
105 iterator operator ++ (
int);
106 iterator & operator -- (
void);
107 iterator operator -- (
int);
108 iterator & operator += (intptr_t iInc);
109 iterator operator + (intptr_t iInc)
const;
110 iterator & operator -= (intptr_t iDec);
111 intptr_t operator - (
const iterator &iter)
const;
112 iterator operator - (intptr_t iDec)
const;
113 gcstring & operator [] (intptr_t iIndex)
const;
115 friend iterator operator + (intptr_t iInc,
const iterator &iter);
121 gcstring_vector(
void);
122 explicit gcstring_vector(
size_t uiSize,
const gcstring &str = gcstring());
123 gcstring_vector(
const gcstring_vector &obj);
124 virtual ~gcstring_vector(
void);
129 virtual void assign(
size_t n,
const gcstring &val);
130 virtual void clear(
void);
131 virtual iterator erase(iterator pos);
132 virtual gcstring & at(
size_t uiIndex);
133 virtual const gcstring & at(
size_t uiIndex)
const;
134 virtual gcstring & back(
void);
135 virtual const gcstring & back(
void)
const;
136 virtual iterator begin(
void);
137 virtual const_iterator begin(
void)
const;
138 virtual size_t capacity(
void)
const;
139 virtual iterator end(
void);
140 virtual const_iterator end(
void)
const;
141 virtual gcstring & front(
void);
142 virtual const gcstring & front(
void)
const;
143 virtual size_t max_size(
void)
const;
144 virtual size_t size(
void)
const;
145 virtual iterator insert(iterator pos,
const gcstring &str);
146 virtual bool empty(
void)
const;
147 virtual void pop_back(
void);
148 virtual void push_back(
const gcstring &str);
149 virtual void resize(
size_t uiSize,
const gcstring &str = gcstring());
150 virtual void reserve(
size_t uiSize);
151 virtual bool contains(
const gcstring &str)
const;
155 virtual gcstring_vector & assign(
const gcstring_vector &obj);
156 virtual void erase(
size_t uiIndex);
157 virtual void insert(
size_t uiIndex,
const gcstring &str);
163 gcstring_vector &
operator = (
const gcstring_vector &obj);
164 gcstring & operator [] (
size_t uiIndex);
165 const gcstring & operator [] (
size_t uiIndex)
const;
166 void operator delete (
void *pWhere);
167 void *
operator new (
size_t uiSize);
180 # error No known support for shared libraries 185 #endif // GENICAM_GCSTRINGLIST_H bool operator!=(const MyAlloc< T1 > &, const MyAlloc< T2 > &)
virtual void operator=(bool Value)
Set node value.
bool operator==(const MyAlloc< T1 > &, const MyAlloc< T2 > &)
virtual GENICAM_NAMESPACE::gcstring operator*()=0
Get string node value.
Portable string implementation.
Platform-dependent type definitions.