SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
所有成员列表 | Public 成员函数 | 静态 Public 成员函数 | Protected 属性 | 静态 Protected 属性
CIndirectObject< T, P > 模板类 参考

详细描述

template<class T, class P>
class shogun::CIndirectObject< T, P >

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.h25 行定义.

Public 成员函数

 CIndirectObject ()
 
 CIndirectObject (int32_t idx)
 
CIndirectObject< T, P > & operator= (const CIndirectObject< T, P > &x)
 
operator| (const CIndirectObject< T, P > &x) const
 
const T operator& (const CIndirectObject< T, P > &x) const
 
operator<< (int shift)
 
operator>> (int shift)
 
operator^ (const CIndirectObject< T, P > &x) const
 
operator+ (const CIndirectObject< T, P > &x) const
 
operator- (const CIndirectObject< T, P > &x) const
 
operator/ (const CIndirectObject< T, P > &x) const
 
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)
 
operator~ ()
 
 operator T () const
 
CIndirectObject< T, P > & operator-- ()
 
CIndirectObject< T, P > & operator++ ()
 

静态 Public 成员函数

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)
 

Protected 属性

int32_t index
 

静态 Protected 属性

static P array
 

构造及析构函数说明

default constructor (initializes index with -1)

在文件 IndirectObject.h31 行定义.

CIndirectObject ( int32_t  idx)

constructor

参数
idxindex

在文件 IndirectObject.h38 行定义.

成员函数说明

static P get_array ( )
static

get array

返回
array

在文件 IndirectObject.h56 行定义.

static void init_slice ( CIndirectObject< T, P > *  a,
int32_t  len,
int32_t  start = 0,
int32_t  stop = -1 
)
static

initialize slice

返回
array

在文件 IndirectObject.h65 行定义.

operator T ( ) const

return array element

在文件 IndirectObject.h329 行定义.

bool operator!= ( const CIndirectObject< T, P > &  x) const

overload ! operator; test if current object is not equal to x

参数
xx

在文件 IndirectObject.h257 行定义.

const T operator& ( const CIndirectObject< T, P > &  x) const

overload & operator and return x & y

参数
xx

在文件 IndirectObject.h96 行定义.

CIndirectObject<T,P>& operator&= ( const CIndirectObject< T, P > &  x)

overload &= operator

perform bitwise and with current element and x

参数
xx

在文件 IndirectObject.h280 行定义.

T operator* ( const CIndirectObject< T, P > &  x) const

overload * operator and return x * y

参数
xx

在文件 IndirectObject.h163 行定义.

CIndirectObject<T,P>& operator*= ( const CIndirectObject< T, P > &  x)

overload *= operator; multiple x to with current element

参数
xx

在文件 IndirectObject.h192 行定义.

T operator+ ( const CIndirectObject< T, P > &  x) const

overload + operator and return x + y

参数
xx

在文件 IndirectObject.h136 行定义.

CIndirectObject<T,P>& operator++ ( )

increment element by one

在文件 IndirectObject.h339 行定义.

CIndirectObject<T,P>& operator+= ( const CIndirectObject< T, P > &  x)

overload += operator; add x to current element

参数
xx

在文件 IndirectObject.h172 行定义.

T operator- ( const CIndirectObject< T, P > &  x) const

overload - operator and return x - y

参数
xx

在文件 IndirectObject.h145 行定义.

CIndirectObject<T,P>& operator-- ( )

decrement element by one

在文件 IndirectObject.h332 行定义.

CIndirectObject<T,P>& operator-= ( const CIndirectObject< T, P > &  x)

overload -= operator; substract x from current element

参数
xx

在文件 IndirectObject.h182 行定义.

T operator/ ( const CIndirectObject< T, P > &  x) const

overload / operator and return x / y

参数
xx

在文件 IndirectObject.h154 行定义.

CIndirectObject<T,P>& operator/= ( const CIndirectObject< T, P > &  x)

overload /= operator; divide current object by x

参数
xx

在文件 IndirectObject.h202 行定义.

bool operator< ( const CIndirectObject< T, P > &  x) const

overload < operator; test if current object is smaller than x

参数
xx

在文件 IndirectObject.h248 行定义.

T operator<< ( int  shift)

overload << operator

perform bit shift to the left

参数
shiftshift by this amount

在文件 IndirectObject.h107 行定义.

CIndirectObject<T,P>& operator<<= ( int  shift)

overload <<= operator

perform bit shift to the left

参数
shiftshift by this amount

在文件 IndirectObject.h304 行定义.

bool operator<= ( const CIndirectObject< T, P > &  x) const

overload <= operator; test if current object lower equal x

参数
xx

在文件 IndirectObject.h230 行定义.

CIndirectObject<T,P>& operator= ( const CIndirectObject< T, P > &  x)

overload = operator

参数
xassign elements from x

在文件 IndirectObject.h77 行定义.

bool operator== ( const CIndirectObject< T, P > &  x) const

overload == operator; test if current object equals x

参数
xx

在文件 IndirectObject.h212 行定义.

bool operator> ( const CIndirectObject< T, P > &  x) const

overload > operator; test if current object is bigger than x

参数
xx

在文件 IndirectObject.h239 行定义.

bool operator>= ( const CIndirectObject< T, P > &  x) const

overload >= operator; test if current object greater equal x

参数
xx

在文件 IndirectObject.h221 行定义.

T operator>> ( int  shift)

overload >> operator

perform bit shift to the right

参数
shiftshift by this amount

在文件 IndirectObject.h118 行定义.

CIndirectObject<T,P>& operator>>= ( int  shift)

overload >>= operator

perform bit shift to the right

参数
shiftshift by this amount

在文件 IndirectObject.h316 行定义.

T operator^ ( const CIndirectObject< T, P > &  x) const

overload ^ operator and return x ^ y

参数
xx

在文件 IndirectObject.h127 行定义.

CIndirectObject<T,P>& operator^= ( const CIndirectObject< T, P > &  x)

overload ^= operator

perform bitwise xor with current element and x

参数
xx

在文件 IndirectObject.h292 行定义.

T operator| ( const CIndirectObject< T, P > &  x) const

overload | operator and return x | y

参数
xx

在文件 IndirectObject.h87 行定义.

CIndirectObject<T,P>& operator|= ( const CIndirectObject< T, P > &  x)

overload |= operator

perform bitwise or with current element and x

参数
xx

在文件 IndirectObject.h268 行定义.

T operator~ ( )

negate element

在文件 IndirectObject.h323 行定义.

static void set_array ( a)
static

set array

参数
aarray

在文件 IndirectObject.h47 行定义.

类成员变量说明

P array
staticprotected

array

在文件 IndirectObject.h347 行定义.

int32_t index
protected

index into array

在文件 IndirectObject.h350 行定义.


该类的文档由以下文件生成:

SHOGUN 机器学习工具包 - 项目文档