#include <TPIntegerVector_p1.h>
Definition at line 25 of file TPIntegerVector_p1.h.
◆ const_iterator
◆ iterator
◆ value_type
◆ TPIntegerVector_p1()
◆ begin() [1/2]
◆ begin() [2/2]
◆ end() [1/2]
◆ end() [2/2]
◆ front_double()
Definition at line 217 of file TPIntegerVector_p1.h.
217 {
218 union {
double d;
struct{
unsigned int i1;
unsigned int i2;}
c; } m_union;
219 m_union.c.i1 = (*i);
i++;
220 m_union.c.i2 = (*i);
i++;
221 return m_union.d;
222}
◆ front_float()
Definition at line 210 of file TPIntegerVector_p1.h.
210 {
211 union {
float f;
unsigned int i;} m_union;
212 m_union.i = (*i);
i++;
213 return m_union.f;
214}
◆ front_int()
Definition at line 203 of file TPIntegerVector_p1.h.
203 {
204 union {
int f;
unsigned int i;} m_union;
205 m_union.i = (*i);
i++;
206 return m_union.f;
207}
◆ front_TPObjRef()
Definition at line 225 of file TPIntegerVector_p1.h.
225 {
226 union {
struct{
unsigned short i1;
unsigned short i2;}
c;
unsigned int I;} m_union;
227 m_union.I = (*i);
i++;
228 TPObjRef
res(TPObjRef::typeID_t(m_union.c.i2, m_union.c.i1),(
int) (*i));
i++;
230}
std::pair< std::vector< unsigned int >, bool > res
◆ front_UI()
◆ front_vTPObjRef()
Definition at line 233 of file TPIntegerVector_p1.h.
233 {
234 int size = (*i);
i++;
235 union {
struct{
unsigned short i1;
unsigned short i2;}
c;
unsigned int I;} m_union;
236 std::vector<TPObjRef>
res;
239 m_union.I = (*i);
i++;
240 res.push_back( TPObjRef(TPObjRef::typeID_t(m_union.c.i2, m_union.c.i1),(
int) (*i)) );
i++;
241 }
243}
◆ operator[]() [1/2]
Definition at line 132 of file TPIntegerVector_p1.h.
132 {
134}
TPIntegerVector_p1(TPIntegerVectorStorage_p1 *storage, int idx)
◆ operator[]() [2/2]
◆ push_back()
| void TPIntegerVector_p1::push_back |
( |
const value_type & | val | ) |
|
|
inline |
◆ push_double()
| void TPIntegerVector_p1::push_double |
( |
const double | val | ) |
|
|
inline |
Definition at line 168 of file TPIntegerVector_p1.h.
168 {
169 union {
struct{
unsigned int i1;
unsigned int i2;}
c;
double d;} m_union;
171 m_storage->m_data.push_back( m_union.c.i1 );
172 m_storage->m_data.push_back( m_union.c.i2 );
174}
◆ push_float()
| void TPIntegerVector_p1::push_float |
( |
const float & | val | ) |
|
|
inline |
◆ push_int()
| void TPIntegerVector_p1::push_int |
( |
const int & | val | ) |
|
|
inline |
◆ push_TPObjRef()
| void TPIntegerVector_p1::push_TPObjRef |
( |
const TPObjRef & | val | ) |
|
|
inline |
Definition at line 177 of file TPIntegerVector_p1.h.
177 {
178 union {
struct{
unsigned short i1;
unsigned short i2;}
c;
unsigned int I;} m_union;
179 m_union.c.i1 =
val.typeID();
180 m_union.c.i2 =
val.topLevelCnvID();
181 m_storage->m_data.push_back( m_union.I );
184}
◆ push_vTPObjRef()
| void TPIntegerVector_p1::push_vTPObjRef |
( |
const std::vector< TPObjRef > & | val | ) |
|
|
inline |
Definition at line 187 of file TPIntegerVector_p1.h.
187 {
190 union {
struct{
unsigned short i1;
unsigned short i2;}
c;
unsigned int I;} m_union;
191 std::vector<TPObjRef>::const_iterator
it=
val.begin();
194 m_union.c.i1 =
v.typeID();
195 m_union.c.i2 =
v.topLevelCnvID();
196 m_storage->m_data.push_back( m_union.I );
198 }
200}
◆ reserve()
| void TPIntegerVector_p1::reserve |
( |
size_t | new_size | ) |
|
|
inline |
Definition at line 123 of file TPIntegerVector_p1.h.
123 {
125 throw std::runtime_error("TPIntegerVector_p1::reserve() only supported on the last element");
126 size_t change = new_size -
size();
128}
◆ resize()
| void TPIntegerVector_p1::resize |
( |
size_t | new_size | ) |
|
|
inline |
Definition at line 114 of file TPIntegerVector_p1.h.
114 {
116 throw std::runtime_error("TPIntegerVector_p1::resize() only supported on the last element");
117 size_t change = new_size -
size();
120}
◆ size()
| size_t TPIntegerVector_p1::size |
( |
| ) |
const |
|
inline |
◆ m_position
| unsigned int TPIntegerVector_p1::m_position |
|
protected |
◆ m_storage
The documentation for this class was generated from the following file: