SHOGUN v0.9.0
|
an array class that accesses elements indirectly via an index array.
It does not store the objects itself, but only indices to objects. This conveniently allows e.g. sorting the array without changing the order of objects (but only the order of their indices).
在文件IndirectObject.h第23行定义。
公有成员 | |
CIndirectObject () | |
CIndirectObject (int32_t idx) | |
CIndirectObject< T, P > & | operator= (const CIndirectObject< T, P > &x) |
T | operator| (const CIndirectObject< T, P > &x) const |
const T | operator& (const CIndirectObject< T, P > &x) const |
T | operator<< (int shift) |
T | operator>> (int shift) |
T | operator^ (const CIndirectObject< T, P > &x) const |
T | operator+ (const CIndirectObject< T, P > &x) const |
T | operator- (const CIndirectObject< T, P > &x) const |
T | operator/ (const CIndirectObject< T, P > &x) const |
T | operator* (const CIndirectObject< T, P > &x) const |
CIndirectObject< T, P > & | operator+= (const CIndirectObject< T, P > &x) |
CIndirectObject< T, P > & | operator-= (const CIndirectObject< T, P > &x) |
CIndirectObject< T, P > & | operator*= (const CIndirectObject< T, P > &x) |
CIndirectObject< T, P > & | operator/= (const CIndirectObject< T, P > &x) |
bool | operator== (const CIndirectObject< T, P > &x) const |
bool | operator>= (const CIndirectObject< T, P > &x) const |
bool | operator<= (const CIndirectObject< T, P > &x) const |
bool | operator> (const CIndirectObject< T, P > &x) const |
bool | operator< (const CIndirectObject< T, P > &x) const |
bool | operator!= (const CIndirectObject< T, P > &x) const |
CIndirectObject< T, P > & | operator|= (const CIndirectObject< T, P > &x) |
CIndirectObject< T, P > & | operator&= (const CIndirectObject< T, P > &x) |
CIndirectObject< T, P > & | operator^= (const CIndirectObject< T, P > &x) |
CIndirectObject< T, P > & | operator<<= (int shift) |
CIndirectObject< T, P > & | operator>>= (int shift) |
T | operator~ () |
operator T () const | |
CIndirectObject< T, P > & | operator-- () |
CIndirectObject< T, P > & | operator++ () |
静态公有成员 | |
static void | set_array (P a) |
static P | get_array () |
static void | init_slice (CIndirectObject< T, P > *a, int32_t len, int32_t start=0, int32_t stop=-1) |
保护属性 | |
int32_t | index |
静态保护属性 | |
static P | array |
CIndirectObject | ( | ) |
default constructor (initializes index with -1)
在文件IndirectObject.h第29行定义。
CIndirectObject | ( | int32_t | idx | ) |
static P get_array | ( | void | ) | [static] |
static void init_slice | ( | CIndirectObject< T, P > * | a, |
int32_t | len, | ||
int32_t | start = 0 , |
||
int32_t | stop = -1 |
||
) | [static] |
operator T | ( | ) | const |
return array element
在文件IndirectObject.h第327行定义。
bool operator!= | ( | const CIndirectObject< T, P > & | x | ) | const |
const T operator& | ( | const CIndirectObject< T, P > & | x | ) | const |
CIndirectObject<T,P>& operator&= | ( | const CIndirectObject< T, P > & | x | ) |
overload &= operator
perform bitwise and with current element and x
x | x |
在文件IndirectObject.h第278行定义。
T operator* | ( | const CIndirectObject< T, P > & | x | ) | const |
CIndirectObject<T,P>& operator*= | ( | const CIndirectObject< T, P > & | x | ) |
T operator+ | ( | const CIndirectObject< T, P > & | x | ) | const |
CIndirectObject<T,P>& operator++ | ( | ) |
increment element by one
在文件IndirectObject.h第337行定义。
CIndirectObject<T,P>& operator+= | ( | const CIndirectObject< T, P > & | x | ) |
T operator- | ( | const CIndirectObject< T, P > & | x | ) | const |
CIndirectObject<T,P>& operator-- | ( | ) |
decrement element by one
在文件IndirectObject.h第330行定义。
CIndirectObject<T,P>& operator-= | ( | const CIndirectObject< T, P > & | x | ) |
T operator/ | ( | const CIndirectObject< T, P > & | x | ) | const |
CIndirectObject<T,P>& operator/= | ( | const CIndirectObject< T, P > & | x | ) |
bool operator< | ( | const CIndirectObject< T, P > & | x | ) | const |
T operator<< | ( | int | shift | ) |
overload << operator
perform bit shift to the left
shift | shift by this amount |
在文件IndirectObject.h第105行定义。
CIndirectObject<T,P>& operator<<= | ( | int | shift | ) |
overload <<= operator
perform bit shift to the left
shift | shift by this amount |
在文件IndirectObject.h第302行定义。
bool operator<= | ( | const CIndirectObject< T, P > & | x | ) | const |
CIndirectObject<T,P>& operator= | ( | const CIndirectObject< T, P > & | x | ) |
bool operator== | ( | const CIndirectObject< T, P > & | x | ) | const |
bool operator> | ( | const CIndirectObject< T, P > & | x | ) | const |
bool operator>= | ( | const CIndirectObject< T, P > & | x | ) | const |
T operator>> | ( | int | shift | ) |
overload >> operator
perform bit shift to the right
shift | shift by this amount |
在文件IndirectObject.h第116行定义。
CIndirectObject<T,P>& operator>>= | ( | int | shift | ) |
overload >>= operator
perform bit shift to the right
shift | shift by this amount |
在文件IndirectObject.h第314行定义。
T operator^ | ( | const CIndirectObject< T, P > & | x | ) | const |
CIndirectObject<T,P>& operator^= | ( | const CIndirectObject< T, P > & | x | ) |
overload ^= operator
perform bitwise xor with current element and x
x | x |
在文件IndirectObject.h第290行定义。
T operator| | ( | const CIndirectObject< T, P > & | x | ) | const |
CIndirectObject<T,P>& operator|= | ( | const CIndirectObject< T, P > & | x | ) |
overload |= operator
perform bitwise or with current element and x
x | x |
在文件IndirectObject.h第266行定义。
T operator~ | ( | ) |
negate element
在文件IndirectObject.h第321行定义。
static void set_array | ( | P | a | ) | [static] |
P array [static, protected] |
array
在文件IndirectObject.h第345行定义。
int32_t index [protected] |
index into array
在文件IndirectObject.h第348行定义。